9ef7beb69ef00cfc3218b0cb4506fbe0239e89b3
[gnulib.git] / ChangeLog
1 2011-05-23  Bruno Haible  <bruno@clisp.org>
2
3         userspec: Move AC_LIBOBJ invocations to module description.
4         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
5         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6
7 2011-05-23  Bruno Haible  <bruno@clisp.org>
8
9         unlinkdir: Move AC_LIBOBJ invocations to module description.
10         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
11         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12
13 2011-05-23  Bruno Haible  <bruno@clisp.org>
14
15         unistd-safer: Move AC_LIBOBJ invocations to module description.
16         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
17         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
18
19 2011-05-23  Bruno Haible  <bruno@clisp.org>
20
21         tempname: Move AC_LIBOBJ invocations to module description.
22         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
23         * modules/tempname (Makefile.am): Augment lib_SOURCES.
24
25 2011-05-23  Bruno Haible  <bruno@clisp.org>
26
27         strftime: Move AC_LIBOBJ invocations to module description.
28         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
29         * modules/strftime (Makefile.am): Augment lib_SOURCES.
30
31 2011-05-23  Bruno Haible  <bruno@clisp.org>
32
33         stdlib-safer: Move AC_LIBOBJ invocations to module description.
34         * m4/stdlib-safer.m4: Remove file.
35         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
36         (configure.ac): Remove gl_STDLIB_SAFER call.
37         (Makefile.am): Augment lib_SOURCES.
38
39 2011-05-23  Bruno Haible  <bruno@clisp.org>
40
41         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
42         * m4/stdio-safer.m4: Remove file.
43         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
44         (configure.ac): Remove gl_TMPFILE_SAFER call.
45         (Makefile.am): Augment lib_SOURCES.
46
47 2011-05-23  Bruno Haible  <bruno@clisp.org>
48
49         popen-safer: Move AC_LIBOBJ invocations to module description.
50         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
51         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
52         (configure.ac): Remove gl_POPEN_SAFER call.
53         (Makefile.am): Augment lib_SOURCES.
54
55 2011-05-23  Bruno Haible  <bruno@clisp.org>
56
57         freopen-safer: Move AC_LIBOBJ invocations to module description.
58         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
59         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
60         (configure.ac): Remove gl_FREOPEN_SAFER call.
61         (Makefile.am): Augment lib_SOURCES.
62
63 2011-05-23  Bruno Haible  <bruno@clisp.org>
64
65         fopen-safer: Move AC_LIBOBJ invocations to module description.
66         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
67         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
68         (configure.ac): Remove gl_FOPEN_SAFER call.
69         (Makefile.am): Augment lib_SOURCES.
70
71 2011-05-23  Bruno Haible  <bruno@clisp.org>
72
73         crypto/sha512: Move AC_LIBOBJ invocations to module description.
74         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
75         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
76
77 2011-05-23  Bruno Haible  <bruno@clisp.org>
78
79         crypto/sha256: Move AC_LIBOBJ invocations to module description.
80         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
81         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
82
83 2011-05-23  Bruno Haible  <bruno@clisp.org>
84
85         crypto/sha1: Move AC_LIBOBJ invocations to module description.
86         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
87         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
88
89 2011-05-23  Bruno Haible  <bruno@clisp.org>
90
91         settime: Move AC_LIBOBJ invocations to module description.
92         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
93         * modules/settime (Makefile.am): Augment lib_SOURCES.
94
95 2011-05-23  Bruno Haible  <bruno@clisp.org>
96
97         savedir: Move AC_LIBOBJ invocations to module description.
98         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
99         * modules/savedir (Makefile.am): Augment lib_SOURCES.
100
101 2011-05-23  Bruno Haible  <bruno@clisp.org>
102
103         save-cwd: Move AC_LIBOBJ invocations to module description.
104         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
105         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
106
107 2011-05-23  Bruno Haible  <bruno@clisp.org>
108
109         same: Move AC_LIBOBJ invocations to module description.
110         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
111         * modules/same (Makefile.am): Augment lib_SOURCES.
112
113 2011-05-23  Bruno Haible  <bruno@clisp.org>
114
115         safe-write: Move AC_LIBOBJ invocations to module description.
116         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
117         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
118         instead of gl_SAFE_WRITE.
119         (Makefile.am): Augment lib_SOURCES.
120
121 2011-05-23  Bruno Haible  <bruno@clisp.org>
122
123         safe-read: Move AC_LIBOBJ invocations to module description.
124         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
125         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
126         of gl_SAFE_READ.
127         (Makefile.am): Augment lib_SOURCES.
128
129 2011-05-23  Bruno Haible  <bruno@clisp.org>
130
131         safe-alloc: Move AC_LIBOBJ invocations to module description.
132         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
133         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
134
135 2011-05-23  Bruno Haible  <bruno@clisp.org>
136
137         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
138         * m4/rijndael.m4: Remove file.
139         * modules/crypto/rijndael (Files): Remove it.
140         (configure.ac): Remove gl_RIJNDAEL call.
141         (Makefile.am): Augment lib_SOURCES.
142
143 2011-05-23  Bruno Haible  <bruno@clisp.org>
144
145         readtokens: Move AC_LIBOBJ invocations to module description.
146         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
147         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
148
149 2011-05-23  Bruno Haible  <bruno@clisp.org>
150
151         read-file: Move AC_LIBOBJ invocations to module description.
152         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
153         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
154         of gl_FUNC_READ_FILE.
155         (Makefile.am): Augment lib_SOURCES.
156
157 2011-05-23  Bruno Haible  <bruno@clisp.org>
158
159         quotearg: Move AC_LIBOBJ invocations to module description.
160         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
161         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
162
163 2011-05-23  Bruno Haible  <bruno@clisp.org>
164
165         quote: Move AC_LIBOBJ invocations to module description.
166         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
167         * modules/quote (Makefile.am): Augment lib_SOURCES.
168
169 2011-05-23  Bruno Haible  <bruno@clisp.org>
170
171         posixver: Move AC_LIBOBJ invocations to module description.
172         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
173         * modules/posixver (Makefile.am): Augment lib_SOURCES.
174
175 2011-05-23  Bruno Haible  <bruno@clisp.org>
176
177         posixtm: Move AC_LIBOBJ invocations to module description.
178         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
179         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
180
181 2011-05-23  Bruno Haible  <bruno@clisp.org>
182
183         physmem: Move AC_LIBOBJ invocations to module description.
184         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
185         * modules/physmem (Makefile.am): Augment lib_SOURCES.
186
187 2011-05-23  Bruno Haible  <bruno@clisp.org>
188
189         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
190         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
191         invocation.
192         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
193
194 2011-05-23  Bruno Haible  <bruno@clisp.org>
195
196         mpsort: Move AC_LIBOBJ invocations to module description.
197         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
198         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
199
200 2011-05-23  Bruno Haible  <bruno@clisp.org>
201
202         modechange: Move AC_LIBOBJ invocations to module description.
203         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
204         * modules/modechange (Makefile.am): Augment lib_SOURCES.
205
206 2011-05-23  Bruno Haible  <bruno@clisp.org>
207
208         mkdir-p: Move AC_LIBOBJ invocations to module description.
209         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
210         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
211
212 2011-05-23  Bruno Haible  <bruno@clisp.org>
213
214         mkancesdirs: Move AC_LIBOBJ invocations to module description.
215         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
216         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
217
218 2011-05-23  Bruno Haible  <bruno@clisp.org>
219
220         mgetgroups: Move AC_LIBOBJ invocations to module description.
221         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
222         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
223
224 2011-05-23  Bruno Haible  <bruno@clisp.org>
225
226         memxor: Move AC_LIBOBJ invocations to module description.
227         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
228         * modules/memxor (Makefile.am): Augment lib_SOURCES.
229
230 2011-05-23  Bruno Haible  <bruno@clisp.org>
231
232         memcoll: Move AC_LIBOBJ invocations to module description.
233         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
234         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
235
236 2011-05-23  Bruno Haible  <bruno@clisp.org>
237
238         memcasecmp: Move AC_LIBOBJ invocations to module description.
239         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
240         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
241
242 2011-05-23  Bruno Haible  <bruno@clisp.org>
243
244         crypto/md5: Move AC_LIBOBJ invocations to module description.
245         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
246         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
247
248 2011-05-23  Bruno Haible  <bruno@clisp.org>
249
250         crypto/md4: Move AC_LIBOBJ invocations to module description.
251         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
252         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
253
254 2011-05-23  Bruno Haible  <bruno@clisp.org>
255
256         crypto/md2: Move AC_LIBOBJ invocations to module description.
257         * m4/md2.m4: Remove file.
258         * modules/crypto/md2 (Files): Remove it.
259         (configure.ac): Remove gl_MD2 call.
260         (Makefile.am): Augment lib_SOURCES.
261
262 2011-05-23  Bruno Haible  <bruno@clisp.org>
263
264         long-options: Move AC_LIBOBJ invocations to module description.
265         * m4/long-options.m4: Remove file.
266         * modules/long-options (Files): Remove it.
267         (configure.ac): Remove gl_LONG_OPTIONS call.
268         (Makefile.am): Augment lib_SOURCES.
269
270 2011-05-23  Bruno Haible  <bruno@clisp.org>
271
272         i-ring: Move AC_LIBOBJ invocations to module description.
273         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
274         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
275
276 2011-05-23  Bruno Haible  <bruno@clisp.org>
277
278         idcache: Move AC_LIBOBJ invocations to module description.
279         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
280         * modules/idcache (Makefile.am): Augment lib_SOURCES.
281
282 2011-05-23  Bruno Haible  <bruno@clisp.org>
283
284         human: Move AC_LIBOBJ invocations to module description.
285         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
286         * modules/human (Makefile.am): Augment lib_SOURCES.
287
288 2011-05-23  Bruno Haible  <bruno@clisp.org>
289
290         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
291         * m4/hmac-sha1.m4: Remove file.
292         * modules/crypto/hmac-sha1 (Files): Remove it.
293         (configure.ac): Remove gl_HMAC_SHA1 call.
294         (Makefile.am): Augment lib_SOURCES.
295
296 2011-05-23  Bruno Haible  <bruno@clisp.org>
297
298         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
299         * m4/hmac-md5.m4: Remove file.
300         * modules/crypto/hmac-md5 (Files): Remove it.
301         (configure.ac): Remove gl_HMAC_MD5 call.
302         (Makefile.am): Augment lib_SOURCES.
303
304 2011-05-23  Bruno Haible  <bruno@clisp.org>
305
306         hash: Move AC_LIBOBJ invocations to module description.
307         * m4/hash.m4: Remove file.
308         * modules/hash (Files): Remove it.
309         (configure.ac): Remove gl_HASH call.
310         (Makefile.am): Augment lib_SOURCES.
311
312 2011-05-23  Bruno Haible  <bruno@clisp.org>
313
314         hard-locale: Move AC_LIBOBJ invocations to module description.
315         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
316         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
317
318 2011-05-23  Bruno Haible  <bruno@clisp.org>
319
320         getugroups: Move AC_LIBOBJ invocations to module description.
321         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
322         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
323
324 2011-05-23  Bruno Haible  <bruno@clisp.org>
325
326         gettime: Move AC_LIBOBJ invocations to module description.
327         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
328         * modules/gettime (Makefile.am): Augment lib_SOURCES.
329
330 2011-05-23  Bruno Haible  <bruno@clisp.org>
331
332         getndelim2: Move AC_LIBOBJ invocations to module description.
333         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
334         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
335
336 2011-05-23  Bruno Haible  <bruno@clisp.org>
337
338         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
339         * m4/gc-pbkdf2-sha1.m4: Remove file.
340         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
341         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
342         (Makefile.am): Augment lib_SOURCES.
343
344 2011-05-23  Bruno Haible  <bruno@clisp.org>
345
346         fts: Move AC_LIBOBJ invocations to module description.
347         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
348         * modules/fts (configure.ac): ... to here.
349
350 2011-05-23  Bruno Haible  <bruno@clisp.org>
351
352         file-type: Move AC_LIBOBJ invocations to module description.
353         * m4/file-type.m4: Remove file.
354         * modules/file-type (Files): Remove it.
355         (configure.ac): Remove gl_FILE_TYPE call.
356         (Makefile.am): Augment lib_SOURCES.
357
358 2011-05-23  Bruno Haible  <bruno@clisp.org>
359
360         filenamecat*: Respect rules for use of AC_LIBOBJ.
361         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
362         Remove AC_LIBOBJ invocation.
363         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
364         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
365
366 2011-05-23  Bruno Haible  <bruno@clisp.org>
367
368         filemode: Move AC_LIBOBJ invocations to module description.
369         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
370         * modules/filemode (Makefile.am): Augment lib_SOURCES.
371
372 2011-05-23  Bruno Haible  <bruno@clisp.org>
373
374         openat-safer: Move AC_LIBOBJ invocations to module description.
375         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
376         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
377
378 2011-05-23  Bruno Haible  <bruno@clisp.org>
379
380         fcntl-safer: Move AC_LIBOBJ invocations to module description.
381         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
382         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
383
384 2011-05-23  Bruno Haible  <bruno@clisp.org>
385
386         exclude: Move AC_LIBOBJ invocations to module description.
387         * m4/exclude.m4: Remove file.
388         * modules/exclude (Files): Remove it.
389         (configure.ac): Remove gl_EXCLUDE call.
390         (Makefile.am): Augment lib_SOURCES.
391
392 2011-05-23  Bruno Haible  <bruno@clisp.org>
393
394         dirname*: Respect rules for use of AC_LIBOBJ.
395         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
396         invocations.
397         * modules/dirname (Makefile.am): Augment lib_SOURCES.
398         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
399
400 2011-05-23  Bruno Haible  <bruno@clisp.org>
401
402         dirent-safer: Move AC_LIBOBJ invocations to module description.
403         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
404         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
405
406 2011-05-23  Bruno Haible  <bruno@clisp.org>
407
408         crypto/des: Move AC_LIBOBJ invocations to module description.
409         * m4/des.m4: Remove file.
410         * modules/crypto/des (Files): Remove it.
411         (configure.ac): Remove gl_DES call.
412         (Makefile.am): Augment lib_SOURCES.
413
414 2011-05-23  Bruno Haible  <bruno@clisp.org>
415
416         cycle-check: Move AC_LIBOBJ invocations to module description.
417         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
418         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
419
420 2011-05-23  Bruno Haible  <bruno@clisp.org>
421
422         c-strtold: Move AC_LIBOBJ invocations to module description.
423         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
424         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
425
426 2011-05-23  Bruno Haible  <bruno@clisp.org>
427
428         c-strtod: Move AC_LIBOBJ invocations to module description.
429         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
430         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
431
432 2011-05-23  Bruno Haible  <bruno@clisp.org>
433
434         crc: Move AC_LIBOBJ invocations to module description.
435         * m4/crc.m4: Remove file.
436         * modules/crc (Files): Remove it.
437         (configure.ac): Remove gl_CRC call.
438         (Makefile.am): Augment lib_SOURCES.
439
440 2011-05-23  Bruno Haible  <bruno@clisp.org>
441
442         close-stream: Move AC_LIBOBJ invocations to module description.
443         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
444         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
445
446 2011-05-23  Bruno Haible  <bruno@clisp.org>
447
448         closeout: Move AC_LIBOBJ invocations to module description.
449         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
450         * modules/closeout (Makefile.am): Augment lib_SOURCES.
451
452 2011-05-23  Bruno Haible  <bruno@clisp.org>
453
454         closein: Move AC_LIBOBJ invocations to module description.
455         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
456         * modules/closein (Makefile.am): Augment lib_SOURCES.
457
458 2011-05-23  Bruno Haible  <bruno@clisp.org>
459
460         cloexec: Move AC_LIBOBJ invocations to module description.
461         * m4/cloexec.m4: Remove file.
462         * modules/cloexec (Files): Remove it.
463         (configure.ac): Remove gl_CLOEXEC call.
464         (Makefile.am): Augment lib_SOURCES.
465
466 2011-05-23  Bruno Haible  <bruno@clisp.org>
467
468         check-version: Move AC_LIBOBJ invocations to module description.
469         * m4/check-version.m4: Remove file.
470         * modules/check-version (Files): Remove it.
471         (configure.ac): Remove gl_CHECK_VERSION call.
472         (Makefile.am): Augment lib_SOURCES.
473
474 2011-05-23  Bruno Haible  <bruno@clisp.org>
475
476         chdir-safer: Move AC_LIBOBJ invocations to module description.
477         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
478         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
479
480 2011-05-23  Bruno Haible  <bruno@clisp.org>
481
482         canonicalize: Move AC_LIBOBJ invocations to module description.
483         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
484         AC_LIBOBJ invocation.
485         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
486
487 2011-05-23  Bruno Haible  <bruno@clisp.org>
488
489         canon-host: Move AC_LIBOBJ invocations to module description.
490         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
491         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
492         instead of gl_CANON_HOST.
493         (Makefile.am): Augment lib_SOURCES.
494
495 2011-05-23  Bruno Haible  <bruno@clisp.org>
496
497         backupfile: Move AC_LIBOBJ invocations to module description.
498         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
499         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
500
501 2011-05-23  Bruno Haible  <bruno@clisp.org>
502
503         argmatch: Move AC_LIBOBJ invocations to module description.
504         * m4/argmatch.m4: Remove file.
505         * modules/argmatch (Files): Remove it.
506         (configure.ac): Remove gl_ARGMATCH call.
507         (Makefile.am): Augment lib_SOURCES.
508
509 2011-05-23  Bruno Haible  <bruno@clisp.org>
510
511         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
512         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
513         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
514
515 2011-05-23  Bruno Haible  <bruno@clisp.org>
516
517         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
518         * m4/arcfour.m4: Remove file.
519         * modules/crypto/arcfour (Files): Remove it.
520         (configure.ac): Remove gl_ARCFOUR call.
521         (Makefile.am): Augment lib_SOURCES.
522
523 2011-05-22  Bruno Haible  <bruno@clisp.org>
524
525         write: Move AC_LIBOBJ invocations to module description.
526         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
527         * modules/write (configure.ac): ... to here.
528
529 2011-05-22  Bruno Haible  <bruno@clisp.org>
530
531         wmemset: Move AC_LIBOBJ invocations to module description.
532         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
533         here...
534         * modules/wmemset (configure.ac): ... to here.
535
536 2011-05-22  Bruno Haible  <bruno@clisp.org>
537
538         wmemmove: Move AC_LIBOBJ invocations to module description.
539         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
540         here...
541         * modules/wmemmove (configure.ac): ... to here.
542
543 2011-05-22  Bruno Haible  <bruno@clisp.org>
544
545         wmemcpy: Move AC_LIBOBJ invocations to module description.
546         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
547         here...
548         * modules/wmemcpy (configure.ac): ... to here.
549
550 2011-05-22  Bruno Haible  <bruno@clisp.org>
551
552         wmemcmp: Move AC_LIBOBJ invocations to module description.
553         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
554         here...
555         * modules/wmemcmp (configure.ac): ... to here.
556
557 2011-05-22  Bruno Haible  <bruno@clisp.org>
558
559         wmemchr: Move AC_LIBOBJ invocations to module description.
560         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
561         here...
562         * modules/wmemchr (configure.ac): ... to here.
563
564 2011-05-22  Bruno Haible  <bruno@clisp.org>
565
566         wcswidth: Move AC_LIBOBJ invocations to module description.
567         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
568         here...
569         * modules/wcswidth (configure.ac): ... to here.
570
571 2011-05-22  Bruno Haible  <bruno@clisp.org>
572
573         wcwidth: Respect rules for use of AC_LIBOBJ.
574         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
575         invocation from here...
576         * modules/wcwidth (configure.ac): ... to here.
577         (Depends-on): Update conditions.
578
579 2011-05-22  Bruno Haible  <bruno@clisp.org>
580
581         wctype: Move AC_LIBOBJ invocations to module description.
582         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
583         invocation from here...
584         * modules/wctype (configure.ac): ... to here.
585         (Depends-on): Update conditions.
586
587 2011-05-22  Bruno Haible  <bruno@clisp.org>
588
589         wctrans: Move AC_LIBOBJ invocations to module description.
590         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
591         invocation from here...
592         * modules/wctrans (configure.ac): ... to here.
593
594 2011-05-22  Bruno Haible  <bruno@clisp.org>
595
596         wctomb: Move AC_LIBOBJ invocations to module description.
597         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
598         invocations from here...
599         * modules/wctomb (configure.ac): ... to here.
600
601 2011-05-22  Bruno Haible  <bruno@clisp.org>
602
603         wctob: Move AC_LIBOBJ invocations to module description.
604         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
605         gl_PREREQ_WCTOB invocations from here...
606         * modules/wctob (configure.ac): ... to here.
607         (Depends-on): Update conditions.
608
609 2011-05-22  Bruno Haible  <bruno@clisp.org>
610
611         wcsxfrm: Move AC_LIBOBJ invocations to module description.
612         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
613         here...
614         * modules/wcsxfrm (configure.ac): ... to here.
615
616 2011-05-22  Bruno Haible  <bruno@clisp.org>
617
618         wcstok: Move AC_LIBOBJ invocations to module description.
619         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
620         * modules/wcstok (configure.ac): ... to here.
621
622 2011-05-22  Bruno Haible  <bruno@clisp.org>
623
624         wcsstr: Move AC_LIBOBJ invocations to module description.
625         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
626         * modules/wcsstr (configure.ac): ... to here.
627
628 2011-05-22  Bruno Haible  <bruno@clisp.org>
629
630         wcsspn: Move AC_LIBOBJ invocations to module description.
631         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
632         * modules/wcsspn (configure.ac): ... to here.
633
634 2011-05-22  Bruno Haible  <bruno@clisp.org>
635
636         wcsrtombs: Move AC_LIBOBJ invocations to module description.
637         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
638         gl_PREREQ_WCSRTOMBS invocations from here...
639         * modules/wcsrtombs (configure.ac): ... to here.
640
641 2011-05-22  Bruno Haible  <bruno@clisp.org>
642
643         wcsrchr: Move AC_LIBOBJ invocations to module description.
644         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
645         here...
646         * modules/wcsrchr (configure.ac): ... to here.
647
648 2011-05-22  Bruno Haible  <bruno@clisp.org>
649
650         wcspbrk: Move AC_LIBOBJ invocations to module description.
651         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
652         here...
653         * modules/wcspbrk (configure.ac): ... to here.
654
655 2011-05-22  Bruno Haible  <bruno@clisp.org>
656
657         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
658         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
659         gl_PREREQ_WCSNRTOMBS invocations from here...
660         * modules/wcsnrtombs (configure.ac): ... to here.
661
662 2011-05-22  Bruno Haible  <bruno@clisp.org>
663
664         wcsnlen: Move AC_LIBOBJ invocations to module description.
665         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
666         here...
667         * modules/wcsnlen (configure.ac): ... to here.
668
669 2011-05-22  Bruno Haible  <bruno@clisp.org>
670
671         wcsncpy: Move AC_LIBOBJ invocations to module description.
672         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
673         here...
674         * modules/wcsncpy (configure.ac): ... to here.
675
676 2011-05-22  Bruno Haible  <bruno@clisp.org>
677
678         wcsncmp: Move AC_LIBOBJ invocations to module description.
679         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
680         here...
681         * modules/wcsncmp (configure.ac): ... to here.
682
683 2011-05-22  Bruno Haible  <bruno@clisp.org>
684
685         wcsncat: Move AC_LIBOBJ invocations to module description.
686         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
687         here...
688         * modules/wcsncat (configure.ac): ... to here.
689
690 2011-05-22  Bruno Haible  <bruno@clisp.org>
691
692         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
693         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
694         from here...
695         * modules/wcsncasecmp (configure.ac): ... to here.
696
697 2011-05-22  Bruno Haible  <bruno@clisp.org>
698
699         wcslen: Move AC_LIBOBJ invocations to module description.
700         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
701         * modules/wcslen (configure.ac): ... to here.
702
703 2011-05-22  Bruno Haible  <bruno@clisp.org>
704
705         wcsdup: Move AC_LIBOBJ invocations to module description.
706         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
707         * modules/wcsdup (configure.ac): ... to here.
708
709 2011-05-22  Bruno Haible  <bruno@clisp.org>
710
711         wcscspn: Move AC_LIBOBJ invocations to module description.
712         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
713         here...
714         * modules/wcscspn (configure.ac): ... to here.
715
716 2011-05-22  Bruno Haible  <bruno@clisp.org>
717
718         wcscpy: Move AC_LIBOBJ invocations to module description.
719         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
720         * modules/wcscpy (configure.ac): ... to here.
721
722 2011-05-22  Bruno Haible  <bruno@clisp.org>
723
724         wcscoll: Move AC_LIBOBJ invocations to module description.
725         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
726         here...
727         * modules/wcscoll (configure.ac): ... to here.
728
729 2011-05-22  Bruno Haible  <bruno@clisp.org>
730
731         wcscmp: Move AC_LIBOBJ invocations to module description.
732         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
733         * modules/wcscmp (configure.ac): ... to here.
734
735 2011-05-22  Bruno Haible  <bruno@clisp.org>
736
737         wcschr: Move AC_LIBOBJ invocations to module description.
738         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
739         * modules/wcschr (configure.ac): ... to here.
740
741 2011-05-22  Bruno Haible  <bruno@clisp.org>
742
743         wcscat: Move AC_LIBOBJ invocations to module description.
744         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
745         * modules/wcscat (configure.ac): ... to here.
746
747 2011-05-22  Bruno Haible  <bruno@clisp.org>
748
749         wcscasecmp: Move AC_LIBOBJ invocations to module description.
750         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
751         here...
752         * modules/wcscasecmp (configure.ac): ... to here.
753
754 2011-05-22  Bruno Haible  <bruno@clisp.org>
755
756         wcrtomb: Move AC_LIBOBJ invocations to module description.
757         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
758         invocations from here...
759         * modules/wcrtomb (configure.ac): ... to here.
760
761 2011-05-22  Bruno Haible  <bruno@clisp.org>
762
763         wcpncpy: Move AC_LIBOBJ invocations to module description.
764         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
765         here...
766         * modules/wcpncpy (configure.ac): ... to here.
767
768 2011-05-22  Bruno Haible  <bruno@clisp.org>
769
770         wcpcpy: Move AC_LIBOBJ invocations to module description.
771         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
772         * modules/wcpcpy (configure.ac): ... to here.
773
774 2011-05-22  Bruno Haible  <bruno@clisp.org>
775
776         waitpid: Move AC_LIBOBJ invocations to module description.
777         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
778         invocation from here...
779         * modules/waitpid (configure.ac): ... to here.
780
781 2011-05-22  Bruno Haible  <bruno@clisp.org>
782
783         utimensat: Move AC_LIBOBJ invocations to module description.
784         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
785         here...
786         * modules/utimensat (configure.ac): ... to here.
787
788 2011-05-22  Bruno Haible  <bruno@clisp.org>
789
790         usleep: Move AC_LIBOBJ invocations to module description.
791         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
792         here...
793         * modules/usleep (configure.ac): ... to here.
794
795 2011-05-22  Bruno Haible  <bruno@clisp.org>
796
797         unlockpt: Move AC_LIBOBJ invocations to module description.
798         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
799         gl_PREREQ_UNLOCKPT invocations from here...
800         * modules/unlockpt (configure.ac): ... to here.
801
802 2011-05-22  Bruno Haible  <bruno@clisp.org>
803
804         unlink: Respect rules for use of AC_LIBOBJ.
805         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
806         * modules/unlink (configure.ac): ... to here.
807
808 2011-05-22  Bruno Haible  <bruno@clisp.org>
809
810         uname: Move AC_LIBOBJ invocations to module description.
811         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
812         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
813         here...
814         * modules/uname (configure.ac): ... to here.
815
816 2011-05-22  Bruno Haible  <bruno@clisp.org>
817
818         ttyname_r: Move AC_LIBOBJ invocations to module description.
819         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
820         gl_PREREQ_TTYNAME_R invocations from here...
821         * modules/ttyname_r (configure.ac): ... to here.
822
823 2011-05-22  Bruno Haible  <bruno@clisp.org>
824
825         tsearch: Move AC_LIBOBJ invocations to module description.
826         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
827         invocations from here...
828         * modules/tsearch (configure.ac): ... to here.
829
830 2011-05-22  Bruno Haible  <bruno@clisp.org>
831
832         towctrans: Move AC_LIBOBJ invocations to module description.
833         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
834         AC_LIBOBJ invocation from here...
835         * modules/towctrans (configure.ac): ... to here.
836
837 2011-05-22  Bruno Haible  <bruno@clisp.org>
838
839         tmpfile: Move AC_LIBOBJ invocations to module description.
840         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
841         invocations from here...
842         * modules/tmpfile (configure.ac): ... to here.
843
844 2011-05-22  Bruno Haible  <bruno@clisp.org>
845
846         times: Move AC_LIBOBJ invocations to module description.
847         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
848         * modules/times (configure.ac): ... to here.
849
850 2011-05-22  Bruno Haible  <bruno@clisp.org>
851
852         time_r: Move AC_LIBOBJ invocations to module description.
853         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
854         invocations from here...
855         * modules/time_r (configure.ac): ... to here.
856
857 2011-05-22  Bruno Haible  <bruno@clisp.org>
858
859         timegm: Move AC_LIBOBJ invocations to module description.
860         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
861         invocations from here...
862         * modules/timegm (configure.ac): ... to here.
863
864 2011-05-22  Bruno Haible  <bruno@clisp.org>
865
866         tcgetsid: Move AC_LIBOBJ invocations to module description.
867         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
868         and gl_PREREQ_TCGETSID invocations from here...
869         * modules/tcgetsid (configure.ac): ... to here.
870         (Depends-on): Update conditions.
871
872 2011-05-22  Bruno Haible  <bruno@clisp.org>
873
874         symlinkat: Move AC_LIBOBJ invocations to module description.
875         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
876         here...
877         * modules/symlinkat (configure.ac): ... to here.
878
879 2011-05-22  Bruno Haible  <bruno@clisp.org>
880
881         symlink: Move AC_LIBOBJ invocations to module description.
882         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
883         here...
884         * modules/symlink (configure.ac): ... to here.
885
886 2011-05-22  Bruno Haible  <bruno@clisp.org>
887
888         strverscmp: Move AC_LIBOBJ invocations to module description.
889         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
890         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
891         from here...
892         * modules/strverscmp (configure.ac): ... to here.
893
894 2011-05-22  Bruno Haible  <bruno@clisp.org>
895
896         strtok_r: Move AC_LIBOBJ invocations to module description.
897         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
898         and gl_PREREQ_STRTOK_R invocations from here...
899         * modules/strtok_r (configure.ac): ... to here.
900         (Depends-on): Update conditions.
901
902 2011-05-22  Bruno Haible  <bruno@clisp.org>
903
904         strtoumax: Move AC_LIBOBJ invocations to module description.
905         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
906         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
907         from here...
908         * modules/strtoumax (configure.ac): ... to here.
909
910 2011-05-22  Bruno Haible  <bruno@clisp.org>
911
912         strtoimax: Move AC_LIBOBJ invocations to module description.
913         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
914         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
915         from here...
916         * modules/strtoimax (configure.ac): ... to here.
917
918 2011-05-22  Bruno Haible  <bruno@clisp.org>
919
920         strtoull: Move AC_LIBOBJ invocations to module description.
921         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
922         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
923         from here...
924         * modules/strtoull (configure.ac): ... to here.
925
926 2011-05-22  Bruno Haible  <bruno@clisp.org>
927
928         strtoll: Move AC_LIBOBJ invocations to module description.
929         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
930         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
931         here...
932         * modules/strtoll (configure.ac): ... to here.
933
934 2011-05-22  Bruno Haible  <bruno@clisp.org>
935
936         strtoul: Move AC_LIBOBJ invocations to module description.
937         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
938         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
939         * modules/strtoul (configure.ac): ... to here.
940
941 2011-05-22  Bruno Haible  <bruno@clisp.org>
942
943         strtol: Move AC_LIBOBJ invocations to module description.
944         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
945         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
946         * modules/strtol (configure.ac): ... to here.
947
948 2011-05-22  Bruno Haible  <bruno@clisp.org>
949
950         strtod: Move AC_LIBOBJ invocations to module description.
951         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
952         invocations from here...
953         * modules/strtod (configure.ac): ... to here.
954
955 2011-05-22  Bruno Haible  <bruno@clisp.org>
956
957         strstr*: Move AC_LIBOBJ invocations to module description.
958         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
959         invocations from here...
960         * modules/strstr-simple (configure.ac): ... to here.
961         * modules/strstr (configure.ac): ... and here.
962
963 2011-05-22  Bruno Haible  <bruno@clisp.org>
964
965         strsignal: Move AC_LIBOBJ invocations to module description.
966         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
967         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
968         * modules/strsignal (configure.ac): ... to here.
969         (Depends-on): Update conditions.
970
971 2011-05-22  Bruno Haible  <bruno@clisp.org>
972
973         strsep: Move AC_LIBOBJ invocations to module description.
974         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
975         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
976         here...
977         * modules/strsep (configure.ac): ... to here.
978
979 2011-05-22  Bruno Haible  <bruno@clisp.org>
980
981         strptime: Move AC_LIBOBJ invocations to module description.
982         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
983         gl_PREREQ_STRPTIME invocations from here...
984         * modules/strptime (configure.ac): ... to here.
985
986 2011-05-22  Bruno Haible  <bruno@clisp.org>
987
988         strpbrk: Move AC_LIBOBJ invocations to module description.
989         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
990         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
991         here...
992         * modules/strpbrk (configure.ac): ... to here.
993
994 2011-05-22  Bruno Haible  <bruno@clisp.org>
995
996         strnlen: Move AC_LIBOBJ invocations to module description.
997         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
998         invocations from here...
999         * modules/strnlen (configure.ac): ... to here.
1000
1001 2011-05-22  Bruno Haible  <bruno@clisp.org>
1002
1003         strndup: Move AC_LIBOBJ invocations to module description.
1004         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
1005         invocations from here...
1006         * modules/strndup (configure.ac): ... to here.
1007         (Depends-on): Update conditions.
1008
1009 2011-05-22  Bruno Haible  <bruno@clisp.org>
1010
1011         strncat: Move AC_LIBOBJ invocations to module description.
1012         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
1013         invocations from here...
1014         * modules/strncat (configure.ac): ... to here.
1015
1016 2011-05-22  Bruno Haible  <bruno@clisp.org>
1017
1018         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
1019         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
1020         invocations from here...
1021         * modules/strdup (configure.ac): ... to here.
1022         * modules/strdup-posix (configure.ac): ... and here.
1023
1024 2011-05-22  Bruno Haible  <bruno@clisp.org>
1025
1026         strcspn: Move AC_LIBOBJ invocations to module description.
1027         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
1028         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
1029         here...
1030         * modules/strcspn (configure.ac): ... to here.
1031
1032 2011-05-22  Bruno Haible  <bruno@clisp.org>
1033
1034         strchrnul: Move AC_LIBOBJ invocations to module description.
1035         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
1036         gl_PREREQ_STRCHRNUL invocations from here...
1037         * modules/strchrnul (configure.ac): ... to here.
1038
1039 2011-05-22  Bruno Haible  <bruno@clisp.org>
1040
1041         strcasestr*: Move AC_LIBOBJ invocations to module description.
1042         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
1043         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
1044         * modules/strcasestr-simple (configure.ac): ... to here.
1045         * modules/strcasestr (configure.ac): ... and here.
1046
1047 2011-05-22  Bruno Haible  <bruno@clisp.org>
1048
1049         strcase: Move AC_LIBOBJ invocations to module description.
1050         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
1051         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
1052         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
1053         gl_PREREQ_STRNCASECMP invocations from here...
1054         * modules/strcase (configure.ac): ... to here.
1055
1056 2011-05-22  Bruno Haible  <bruno@clisp.org>
1057
1058         stpncpy: Move AC_LIBOBJ invocations to module description.
1059         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
1060         here...
1061         * modules/stpncpy (configure.ac): ... to here.
1062
1063 2011-05-22  Bruno Haible  <bruno@clisp.org>
1064
1065         stpcpy: Move AC_LIBOBJ invocations to module description.
1066         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
1067         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
1068         here...
1069         * modules/stpcpy (configure.ac): ... to here.
1070
1071 2011-05-21  Bruno Haible  <bruno@clisp.org>
1072
1073         stat: Move AC_LIBOBJ invocations to module description.
1074         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
1075         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
1076         here...
1077         * modules/stat (configure.ac): ... to here.
1078
1079 2011-05-21  Bruno Haible  <bruno@clisp.org>
1080
1081         sleep: Move AC_LIBOBJ invocations to module description.
1082         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
1083         * modules/sleep (configure.ac): ... to here.
1084
1085 2011-05-21  Bruno Haible  <bruno@clisp.org>
1086
1087         signbit: Move AC_LIBOBJ invocations to module description.
1088         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
1089         * modules/signbit (configure.ac): ... to here.
1090
1091 2011-05-21  Bruno Haible  <bruno@clisp.org>
1092
1093         sigprocmask: Move AC_LIBOBJ invocations to module description.
1094         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
1095         gl_PREREQ_SIGPROMASK invocations from here...
1096         * modules/sigprocmask (configure.ac): ... to here.
1097
1098 2011-05-21  Bruno Haible  <bruno@clisp.org>
1099
1100         sigaction: Move AC_LIBOBJ invocations to module description.
1101         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
1102         gl_PREREQ_SIGACTION invocations from here...
1103         * modules/sigaction (configure.ac): ... to here.
1104
1105 2011-05-21  Bruno Haible  <bruno@clisp.org>
1106
1107         sig2str: Move AC_LIBOBJ invocations to module description.
1108         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
1109         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
1110         here...
1111         * modules/sig2str (configure.ac): ... to here.
1112
1113 2011-05-21  Bruno Haible  <bruno@clisp.org>
1114
1115         setlocale: Move AC_LIBOBJ invocations to module description.
1116         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
1117         gl_PREREQ_SETLOCALE invocations from here...
1118         * modules/setlocale (configure.ac): ... to here.
1119
1120 2011-05-21  Bruno Haible  <bruno@clisp.org>
1121
1122         unsetenv: Move AC_LIBOBJ invocations to module description.
1123         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
1124         and gl_PREREQ_UNSETENV invocations from here...
1125         * modules/unsetenv (configure.ac): ... to here.
1126         (Depends-on): Update.
1127
1128 2011-05-21  Bruno Haible  <bruno@clisp.org>
1129
1130         setenv: Move AC_LIBOBJ invocations to module description.
1131         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
1132         here...
1133         * modules/setenv (configure.ac): ... to here.
1134
1135 2011-05-21  Bruno Haible  <bruno@clisp.org>
1136
1137         selinux-h: Move AC_LIBOBJ invocations to module description.
1138         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
1139         AC_LIBOBJ invocation from here...
1140         * modules/selinux-h (configure.ac): ... to here.
1141
1142 2011-05-21  Bruno Haible  <bruno@clisp.org>
1143
1144         select: Respect rules for use of AC_LIBOBJ.
1145         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
1146         here...
1147         * modules/select (configure.ac): ... to here.
1148
1149 2011-05-21  Bruno Haible  <bruno@clisp.org>
1150
1151         scandir: Move AC_LIBOBJ invocations to module description.
1152         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
1153         invocations from here...
1154         * modules/scandir (configure.ac): ... to here.
1155
1156 2011-05-21  Bruno Haible  <bruno@clisp.org>
1157
1158         rpmatch: Move AC_LIBOBJ invocations to module description.
1159         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
1160         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
1161         here...
1162         * modules/rpmatch (configure.ac): ... to here.
1163
1164 2011-05-21  Bruno Haible  <bruno@clisp.org>
1165
1166         rmdir: Respect rules for use of AC_LIBOBJ.
1167         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
1168         * modules/rmdir (configure.ac): ... to here.
1169
1170 2011-05-21  Bruno Haible  <bruno@clisp.org>
1171
1172         renameat: Move AC_LIBOBJ invocations to module description.
1173         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
1174         here...
1175         * modules/renameat (configure.ac): ... to here.
1176
1177 2011-05-21  Bruno Haible  <bruno@clisp.org>
1178
1179         rename: Respect rules for use of AC_LIBOBJ.
1180         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
1181         here...
1182         * modules/rename (configure.ac): ... to here.
1183
1184 2011-05-21  Bruno Haible  <bruno@clisp.org>
1185
1186         remove: Move AC_LIBOBJ invocations to module description.
1187         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
1188         here...
1189         * modules/remove (configure.ac): ... to here.
1190
1191 2011-05-21  Bruno Haible  <bruno@clisp.org>
1192
1193         relocatable-lib: Move AC_LIBOBJ invocations to module description.
1194         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
1195         macro.
1196         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
1197         * modules/relocatable-lib (configure.ac): ... to here.
1198         * modules/relocatable-prog-wrapper (configure.ac): Invoke
1199         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
1200
1201 2011-05-21  Bruno Haible  <bruno@clisp.org>
1202
1203         relocatable-prog: Move AC_LIBOBJ invocations to module description.
1204         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
1205         here...
1206         * modules/relocatable-prog (configure.ac): ... to here.
1207
1208 2011-05-21  Bruno Haible  <bruno@clisp.org>
1209
1210         regex: Move AC_LIBOBJ invocations to module description.
1211         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
1212         invocations from here...
1213         * modules/regex (configure.ac): ... to here.
1214
1215 2011-05-21  Bruno Haible  <bruno@clisp.org>
1216
1217         realloc-*: Move AC_LIBOBJ invocations to module description.
1218         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
1219         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
1220         AC_LIBOBJ invocations from here...
1221         * modules/realloc-gnu (configure.ac): ... to here.
1222         * modules/realloc-posix (configure.ac): ... and here.
1223
1224 2011-05-21  Bruno Haible  <bruno@clisp.org>
1225
1226         readutmp: Move AC_LIBOBJ invocations to module description.
1227         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
1228         * modules/readutmp (configure.ac): ... to here.
1229
1230 2011-05-21  Bruno Haible  <bruno@clisp.org>
1231
1232         readlinkat: Move AC_LIBOBJ invocations to module description.
1233         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
1234         here...
1235         * modules/readlinkat (configure.ac): ... to here.
1236
1237 2011-05-21  Bruno Haible  <bruno@clisp.org>
1238
1239         readlink: Move AC_LIBOBJ invocations to module description.
1240         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
1241         gl_PREREQ_READLINK invocations from here...
1242         * modules/readlink (configure.ac): ... to here.
1243
1244 2011-05-21  Bruno Haible  <bruno@clisp.org>
1245
1246         readline: Move AC_LIBOBJ invocations to module description.
1247         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
1248         gl_PREREQ_READLINE invocations from here...
1249         * modules/readline (configure.ac): ... to here.
1250
1251 2011-05-21  Bruno Haible  <bruno@clisp.org>
1252
1253         read: Move AC_LIBOBJ invocations to module description.
1254         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
1255         * modules/read (configure.ac): ... to here.
1256
1257 2011-05-21  Bruno Haible  <bruno@clisp.org>
1258
1259         rawmemchr: Move AC_LIBOBJ invocations to module description.
1260         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
1261         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
1262         from here...
1263         * modules/rawmemchr (configure.ac): ... to here.
1264
1265 2011-05-21  Bruno Haible  <bruno@clisp.org>
1266
1267         random_r: Move AC_LIBOBJ invocations to module description.
1268         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
1269         gl_PREREQ_RANDOM_R invocations from here...
1270         * modules/random_r (configure.ac): ... to here.
1271
1272 2011-05-21  Bruno Haible  <bruno@clisp.org>
1273
1274         pwrite: Move AC_LIBOBJ invocations to module description.
1275         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
1276         * modules/pwrite (configure.ac): ... to here.
1277
1278 2011-05-21  Bruno Haible  <bruno@clisp.org>
1279
1280         putenv: Move AC_LIBOBJ invocations to module description.
1281         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
1282         * modules/putenv (configure.ac): ... to here.
1283
1284 2011-05-21  Bruno Haible  <bruno@clisp.org>
1285
1286         login_tty: Move AC_LIBOBJ invocations to module description.
1287         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
1288         * modules/login_tty (configure.ac): ... to here.
1289
1290 2011-05-21  Bruno Haible  <bruno@clisp.org>
1291
1292         openpty: Move AC_LIBOBJ invocations to module description.
1293         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
1294         * modules/openpty (configure.ac): ... to here.
1295
1296 2011-05-21  Bruno Haible  <bruno@clisp.org>
1297
1298         forkpty: Move AC_LIBOBJ invocations to module description.
1299         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
1300         * modules/forkpty (configure.ac): ... to here.
1301
1302 2011-05-21  Bruno Haible  <bruno@clisp.org>
1303
1304         ptsname: Move AC_LIBOBJ invocations to module description.
1305         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
1306         invocations from here...
1307         * modules/ptsname (configure.ac): ... to here.
1308
1309 2011-05-21  Bruno Haible  <bruno@clisp.org>
1310
1311         pread: Move AC_LIBOBJ invocations to module description.
1312         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
1313         * modules/pread (configure.ac): ... to here.
1314
1315 2011-05-21  Bruno Haible  <bruno@clisp.org>
1316
1317         posix_spawn*: Move AC_LIBOBJ invocations to module description.
1318         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
1319         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
1320         * modules/posix_spawn (configure.ac): ... to here.
1321         * modules/posix_spawnp (configure.ac): ... and here.
1322
1323 2011-05-21  Bruno Haible  <bruno@clisp.org>
1324
1325         popen: Move AC_LIBOBJ invocations to module description.
1326         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
1327         invocations from here...
1328         * modules/popen (configure.ac): ... to here.
1329
1330 2011-05-21  Bruno Haible  <bruno@clisp.org>
1331
1332         poll: Move AC_LIBOBJ invocations to module description.
1333         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
1334         invocations from here...
1335         * modules/poll (configure.ac): ... to here.
1336
1337 2011-05-21  Bruno Haible  <bruno@clisp.org>
1338
1339         pipe-posix: Move AC_LIBOBJ invocations to module description.
1340         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
1341         * modules/pipe-posix (configure.ac): ... to here.
1342
1343 2011-05-21  Bruno Haible  <bruno@clisp.org>
1344
1345         openat: Respect rules for use of AC_LIBOBJ.
1346         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
1347         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1348         * modules/openat (configure.ac): ... to here.
1349
1350 2011-05-21  Bruno Haible  <bruno@clisp.org>
1351
1352         obstack-printf*: Move AC_LIBOBJ invocations to module description.
1353         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
1354         invocation from here...
1355         * modules/obstack-printf (configure.ac): ... to here.
1356         * modules/obstack-printf-posix (configure.ac): ... and here.
1357
1358 2011-05-21  Bruno Haible  <bruno@clisp.org>
1359
1360         nl_langinfo: Move AC_LIBOBJ invocations to module description.
1361         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
1362         from here...
1363         * modules/nl_langinfo (configure.ac): ... to here.
1364
1365 2011-05-21  Bruno Haible  <bruno@clisp.org>
1366
1367         nanosleep: Move AC_LIBOBJ invocations to module description.
1368         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
1369         gl_PREREQ_NANOSLEEP invocations from here...
1370         * modules/nanosleep (configure.ac): ... to here.
1371
1372 2011-05-21  Bruno Haible  <bruno@clisp.org>
1373
1374         mountlist: Move AC_LIBOBJ invocations to module description.
1375         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
1376         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
1377         * modules/mountlist (configure.ac): ... to here.
1378
1379 2011-05-21  Bruno Haible  <bruno@clisp.org>
1380
1381         mktime: Respect rules for use of AC_LIBOBJ.
1382         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
1383         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
1384         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
1385         (gl_FUNC_MKTIME_INTERNAL): ... and here...
1386         * modules/mktime (configure.ac): ... to here.
1387         * modules/mktime-internal (configure.ac): ... and here.
1388         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
1389
1390 2011-05-21  Bruno Haible  <bruno@clisp.org>
1391
1392         mkstemps: Move AC_LIBOBJ invocations to module description.
1393         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
1394         here...
1395         * modules/mkstemps (configure.ac): ... to here.
1396
1397 2011-05-21  Bruno Haible  <bruno@clisp.org>
1398
1399         mkstemp: Move AC_LIBOBJ invocations to module description.
1400         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
1401         gl_PREREQ_MKSTEMP invocations from here...
1402         * modules/mkstemp (configure.ac): ... to here.
1403
1404 2011-05-21  Bruno Haible  <bruno@clisp.org>
1405
1406         mkostemps: Move AC_LIBOBJ invocations to module description.
1407         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
1408         here...
1409         * modules/mkostemps (configure.ac): ... to here.
1410
1411 2011-05-21  Bruno Haible  <bruno@clisp.org>
1412
1413         mkostemp: Move AC_LIBOBJ invocations to module description.
1414         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
1415         gl_PREREQ_MKOSTEMP invocations from here...
1416         * modules/mkostemp (configure.ac): ... to here.
1417
1418 2011-05-21  Bruno Haible  <bruno@clisp.org>
1419
1420         mknod: Move AC_LIBOBJ invocations to module description.
1421         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
1422         * modules/mknod (configure.ac): ... to here.
1423
1424 2011-05-21  Bruno Haible  <bruno@clisp.org>
1425
1426         mkfifoat: Move AC_LIBOBJ invocations to module description.
1427         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
1428         here...
1429         * modules/mkfifoat (configure.ac): ... to here.
1430
1431 2011-05-21  Bruno Haible  <bruno@clisp.org>
1432
1433         mkfifo: Respect rules for use of AC_LIBOBJ.
1434         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
1435         here...
1436         * modules/mkfifo (configure.ac): ... to here.
1437
1438 2011-05-21  Bruno Haible  <bruno@clisp.org>
1439
1440         mkdtemp: Move AC_LIBOBJ invocations to module description.
1441         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
1442         invocations from here...
1443         * modules/mkdtemp (configure.ac): ... to here.
1444
1445 2011-05-21  Bruno Haible  <bruno@clisp.org>
1446
1447         mkdir: Move AC_LIBOBJ invocations to module description.
1448         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
1449         * modules/mkdir (configure.ac): ... to here.
1450
1451 2011-05-21  Bruno Haible  <bruno@clisp.org>
1452
1453         memset: Move AC_LIBOBJ invocations to module description.
1454         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
1455         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
1456         here...
1457         * modules/memset (configure.ac): ... to here.
1458
1459 2011-05-21  Bruno Haible  <bruno@clisp.org>
1460
1461         memrchr: Move AC_LIBOBJ invocations to module description.
1462         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
1463         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
1464         here...
1465         * modules/memrchr (configure.ac): ... to here.
1466
1467 2011-05-21  Bruno Haible  <bruno@clisp.org>
1468
1469         mempcpy: Move AC_LIBOBJ invocations to module description.
1470         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
1471         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
1472         here...
1473         * modules/mempcpy (configure.ac): ... to here.
1474
1475 2011-05-21  Bruno Haible  <bruno@clisp.org>
1476
1477         memmove: Move AC_LIBOBJ invocations to module description.
1478         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
1479         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
1480         here...
1481         * modules/memmove (configure.ac): ... to here.
1482
1483 2011-05-21  Bruno Haible  <bruno@clisp.org>
1484
1485         memmem*: Move AC_LIBOBJ invocations to module description.
1486         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
1487         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
1488         here...
1489         (gl_FUNC_MEMMEM): ... and here...
1490         * modules/memmem-simple (configure.ac): ... to here.
1491         * modules/memmem (configure.ac): ... and here.
1492
1493 2011-05-21  Bruno Haible  <bruno@clisp.org>
1494
1495         memcpy: Move AC_LIBOBJ invocations to module description.
1496         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
1497         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
1498         here...
1499         * modules/memcpy (configure.ac): ... to here.
1500
1501 2011-05-21  Bruno Haible  <bruno@clisp.org>
1502
1503         memcmp: Simplify autoconf macro.
1504         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
1505         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
1506         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
1507
1508 2011-05-21  Bruno Haible  <bruno@clisp.org>
1509
1510         memcmp: Move AC_LIBOBJ invocations to module description.
1511         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
1512         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
1513         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
1514         * modules/memcmp (configure.ac): ... to here.
1515         (Depends-on): Update conditions.
1516
1517 2011-05-21  Bruno Haible  <bruno@clisp.org>
1518
1519         memchr: Respect rules for use of AC_LIBOBJ.
1520         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
1521         invocations from here...
1522         * modules/memchr (configure.ac): ... to here.
1523
1524 2011-05-21  Bruno Haible  <bruno@clisp.org>
1525
1526         mbtowc: Move AC_LIBOBJ invocations to module description.
1527         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
1528         invocations from here...
1529         * modules/mbtowc (configure.ac): ... to here.
1530
1531 2011-05-21  Bruno Haible  <bruno@clisp.org>
1532
1533         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
1534         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
1535         gl_PREREQ_MBSRTOWCS invocations from here...
1536         * modules/mbsrtowcs (configure.ac): ... to here.
1537
1538 2011-05-21  Bruno Haible  <bruno@clisp.org>
1539
1540         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
1541         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
1542         gl_PREREQ_MBSNRTOWCS invocations from here...
1543         * modules/mbsnrtowcs (configure.ac): ... to here.
1544
1545 2011-05-21  Bruno Haible  <bruno@clisp.org>
1546
1547         mbsinit: Move AC_LIBOBJ invocations to module description.
1548         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
1549         invocations from here...
1550         * modules/mbsinit (configure.ac): ... to here.
1551
1552 2011-05-21  Bruno Haible  <bruno@clisp.org>
1553
1554         mbrlen: Move AC_LIBOBJ invocations to module description.
1555         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
1556         invocations from here...
1557         * modules/mbrlen (configure.ac): ... to here.
1558
1559 2011-05-21  Bruno Haible  <bruno@clisp.org>
1560
1561         mbrtowc: Respect rules for use of AC_LIBOBJ.
1562         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
1563         invocations from here...
1564         * modules/mbrtowc (configure.ac): ... to here.
1565
1566 2011-05-21  Bruno Haible  <bruno@clisp.org>
1567
1568         malloc-*: Move AC_LIBOBJ invocations to module description.
1569         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
1570         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
1571         AC_LIBOBJ invocations from here...
1572         * modules/malloc-gnu (configure.ac): ... to here.
1573         * modules/malloc-posix (configure.ac): ... and here.
1574
1575 2011-05-21  Bruno Haible  <bruno@clisp.org>
1576
1577         lstat, openat: Respect rules for use of AC_LIBOBJ.
1578         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
1579         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
1580         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
1581         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
1582         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
1583         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
1584         here.
1585         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1586
1587 2011-05-21  Bruno Haible  <bruno@clisp.org>
1588
1589         lseek: Move AC_LIBOBJ invocations to module description.
1590         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
1591         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1592         * modules/lseek (configure.ac): ... to here.
1593
1594 2011-05-21  Bruno Haible  <bruno@clisp.org>
1595
1596         linkat: Move AC_LIBOBJ invocations to module description.
1597         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
1598         here...
1599         * modules/linkat (configure.ac): ... to here.
1600
1601 2011-05-21  Bruno Haible  <bruno@clisp.org>
1602
1603         link: Respect rules for use of AC_LIBOBJ.
1604         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
1605         * modules/link (configure.ac): ... to here.
1606
1607 2011-05-21  Bruno Haible  <bruno@clisp.org>
1608
1609         lchown: Move AC_LIBOBJ invocations to module description.
1610         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1611         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1612         * modules/lchown (configure.ac): ... to here.
1613
1614 2011-05-21  Bruno Haible  <bruno@clisp.org>
1615
1616         iswctype: Move AC_LIBOBJ invocations to module description.
1617         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
1618         here...
1619         * modules/iswctype (configure.ac): ... to here.
1620
1621 2011-05-21  Bruno Haible  <bruno@clisp.org>
1622
1623         iswblank: Move AC_LIBOBJ invocations to module description.
1624         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
1625         here...
1626         * modules/iswblank (configure.ac): ... to here.
1627
1628 2011-05-21  Bruno Haible  <bruno@clisp.org>
1629
1630         atanl: Move AC_LIBOBJ invocations to module description.
1631         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
1632         * modules/atanl (configure.ac): ... to here.
1633
1634 2011-05-21  Bruno Haible  <bruno@clisp.org>
1635
1636         acosl: Move AC_LIBOBJ invocations to module description.
1637         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
1638         * modules/acosl (configure.ac): ... to here.
1639
1640 2011-05-21  Bruno Haible  <bruno@clisp.org>
1641
1642         asinl: Respect rules for use of AC_LIBOBJ.
1643         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
1644         * modules/asinl (configure.ac): ... to here.
1645
1646 2011-05-21  Bruno Haible  <bruno@clisp.org>
1647
1648         tanl: Move AC_LIBOBJ invocations to module description.
1649         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
1650         * modules/tanl (configure.ac): ... to here.
1651
1652 2011-05-21  Bruno Haible  <bruno@clisp.org>
1653
1654         cosl: Move AC_LIBOBJ invocations to module description.
1655         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
1656         * modules/cosl (configure.ac): ... to here.
1657
1658 2011-05-21  Bruno Haible  <bruno@clisp.org>
1659
1660         sinl: Move AC_LIBOBJ invocations to module description.
1661         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
1662         * modules/sinl (configure.ac): ... to here.
1663
1664 2011-05-21  Bruno Haible  <bruno@clisp.org>
1665
1666         logl: Move AC_LIBOBJ invocations to module description.
1667         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
1668         * modules/logl (configure.ac): ... to here.
1669
1670 2011-05-21  Bruno Haible  <bruno@clisp.org>
1671
1672         expl: Move AC_LIBOBJ invocations to module description.
1673         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
1674         * modules/expl (configure.ac): ... to here.
1675
1676 2011-05-21  Bruno Haible  <bruno@clisp.org>
1677
1678         roundl: Move AC_LIBOBJ invocations to module description.
1679         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
1680         * modules/roundl (configure.ac): ... to here.
1681
1682 2011-05-21  Bruno Haible  <bruno@clisp.org>
1683
1684         round: Move AC_LIBOBJ invocations to module description.
1685         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
1686         * modules/round (configure.ac): ... to here.
1687
1688 2011-05-21  Bruno Haible  <bruno@clisp.org>
1689
1690         roundf: Move AC_LIBOBJ invocations to module description.
1691         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
1692         * modules/roundf (configure.ac): ... to here.
1693
1694 2011-05-21  Bruno Haible  <bruno@clisp.org>
1695
1696         truncl: Move AC_LIBOBJ invocations to module description.
1697         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
1698         * modules/truncl (configure.ac): ... to here.
1699
1700 2011-05-21  Bruno Haible  <bruno@clisp.org>
1701
1702         trunc: Move AC_LIBOBJ invocations to module description.
1703         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
1704         * modules/trunc (configure.ac): ... to here.
1705
1706 2011-05-21  Bruno Haible  <bruno@clisp.org>
1707
1708         truncf: Move AC_LIBOBJ invocations to module description.
1709         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
1710         * modules/truncf (configure.ac): ... to here.
1711
1712 2011-05-21  Bruno Haible  <bruno@clisp.org>
1713
1714         ceill: Move AC_LIBOBJ invocations to module description.
1715         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
1716         * modules/ceill (configure.ac): ... to here.
1717
1718 2011-05-21  Bruno Haible  <bruno@clisp.org>
1719
1720         ceil: Move AC_LIBOBJ invocations to module description.
1721         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
1722         * modules/ceil (configure.ac): ... to here.
1723
1724 2011-05-21  Bruno Haible  <bruno@clisp.org>
1725
1726         ceilf: Move AC_LIBOBJ invocations to module description.
1727         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
1728         * modules/ceilf (configure.ac): ... to here.
1729
1730 2011-05-21  Bruno Haible  <bruno@clisp.org>
1731
1732         floorl: Respect rules for use of AC_LIBOBJ.
1733         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
1734         * modules/floorl (configure.ac): ... to here.
1735
1736 2011-05-21  Bruno Haible  <bruno@clisp.org>
1737
1738         floor: Respect rules for use of AC_LIBOBJ.
1739         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
1740         * modules/floor (configure.ac): ... to here.
1741
1742 2011-05-21  Bruno Haible  <bruno@clisp.org>
1743
1744         floorf: Move AC_LIBOBJ invocations to module description.
1745         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
1746         * modules/floorf (configure.ac): ... to here.
1747
1748 2011-05-20  Bruno Haible  <bruno@clisp.org>
1749
1750         sqrtl: Respect rules for use of AC_LIBOBJ.
1751         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
1752         * modules/sqrtl (configure.ac): ... to here.
1753
1754 2011-05-20  Bruno Haible  <bruno@clisp.org>
1755
1756         ldexpl: Respect rules for use of AC_LIBOBJ.
1757         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
1758         * modules/ldexpl (configure.ac): ... to here.
1759
1760 2011-05-20  Bruno Haible  <bruno@clisp.org>
1761
1762         frexpl*: Respect rules for use of AC_LIBOBJ.
1763         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
1764         invocation from here...
1765         * modules/frexpl (configure.ac): ... to here.
1766         * modules/frexpl-nolibm (configure.ac): ... and here.
1767
1768 2011-05-20  Bruno Haible  <bruno@clisp.org>
1769
1770         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
1771         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
1772         invocation from here...
1773         * modules/frexp (configure.ac): ... to here.
1774         * modules/frexp-nolibm (configure.ac): ... and here.
1775
1776 2011-05-20  Bruno Haible  <bruno@clisp.org>
1777
1778         isnan: Respect rules for use of AC_LIBOBJ.
1779         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
1780         invocations here.
1781         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
1782         REPLACE_ISNAN.
1783         * modules/isnand (configure.ac): Likewise.
1784         * modules/isnanl (configure.ac): Likewise.
1785
1786 2011-05-20  Bruno Haible  <bruno@clisp.org>
1787
1788         isnanl*: Respect rules for use of AC_LIBOBJ.
1789         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
1790         invocation from here...
1791         * modules/isnanl (configure.ac): ... to here.
1792         * modules/isnanl-nolibm (configure.ac): ... and here.
1793
1794 2011-05-20  Bruno Haible  <bruno@clisp.org>
1795
1796         isnand*: Move AC_LIBOBJ invocations to module description.
1797         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
1798         invocation from here...
1799         * modules/isnand (configure.ac): ... to here.
1800         * modules/isnand-nolibm (configure.ac): ... and here.
1801
1802 2011-05-20  Bruno Haible  <bruno@clisp.org>
1803
1804         isnanf*: Move AC_LIBOBJ invocations to module description.
1805         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
1806         invocation from here...
1807         * modules/isnanf (configure.ac): ... to here.
1808         * modules/isnanf-nolibm (configure.ac): ... and here.
1809
1810 2011-05-20  Bruno Haible  <bruno@clisp.org>
1811
1812         isnan*: Separate the AC_LIBOBJ invocations.
1813         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
1814         AC_LIBOBJ invocation.
1815         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
1816         here.
1817         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
1818         AC_LIBOBJ invocation.
1819         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
1820         here.
1821         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
1822         AC_LIBOBJ invocation.
1823         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
1824         here.
1825         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
1826
1827 2011-05-08  Bruno Haible  <bruno@clisp.org>
1828
1829         isinf: Move AC_LIBOBJ invocations to module description.
1830         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
1831         * modules/isinf (configure.ac): ... to here.
1832
1833 2011-05-08  Bruno Haible  <bruno@clisp.org>
1834
1835         isfinite: Move AC_LIBOBJ invocations to module description.
1836         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
1837         * modules/isfinite (configure.ac): ... to here.
1838
1839 2011-05-08  Bruno Haible  <bruno@clisp.org>
1840
1841         isblank: Move AC_LIBOBJ invocations to module description.
1842         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
1843         here...
1844         * modules/isblank (configure.ac): ... to here.
1845
1846 2011-05-08  Bruno Haible  <bruno@clisp.org>
1847
1848         isapipe: Move AC_LIBOBJ invocations to module description.
1849         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
1850         gl_PREREQ_ISAPIPE invocations from here...
1851         * modules/isapipe (configure.ac): ... to here.
1852         (Depends-on): Update condition.
1853
1854 2011-05-08  Bruno Haible  <bruno@clisp.org>
1855
1856         ioctl: Move AC_LIBOBJ invocations to module description.
1857         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
1858         invocations from here...
1859         * modules/ioctl (configure.ac): ... to here.
1860         (Depends-on): Update condition.
1861
1862 2011-05-08  Bruno Haible  <bruno@clisp.org>
1863
1864         imaxdiv: Move AC_LIBOBJ invocations to module description.
1865         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
1866         invocations from here...
1867         * modules/imaxdiv (configure.ac): ... to here.
1868
1869 2011-05-08  Bruno Haible  <bruno@clisp.org>
1870
1871         imaxabs: Move AC_LIBOBJ invocations to module description.
1872         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
1873         invocations from here...
1874         * modules/imaxabs (configure.ac): ... to here.
1875
1876 2011-05-08  Bruno Haible  <bruno@clisp.org>
1877
1878         getaddrinfo: Move AC_LIBOBJ invocations to module description.
1879         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
1880         AC_LIBOBJ invocations from here...
1881         * modules/getaddrinfo (configure.ac): ... to here.
1882         (Depends-on): Add conditions.
1883
1884 2011-05-08  Bruno Haible  <bruno@clisp.org>
1885
1886         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1887         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
1888         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1889         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
1890         (gl_PREREQ_INET_PTON): ... from here.
1891         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
1892         gl_PREREQ_INET_PTON here.
1893         (Depends-on): Update condition.
1894
1895 2011-05-08  Bruno Haible  <bruno@clisp.org>
1896
1897         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1898         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
1899         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1900         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
1901         (gl_PREREQ_INET_NTOP): ... from here.
1902         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
1903         gl_PREREQ_INET_NTOP here.
1904         (Depends-on): Update condition.
1905
1906 2011-05-08  Bruno Haible  <bruno@clisp.org>
1907
1908         iconv_open: Move AC_LIBOBJ invocations to module description.
1909         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
1910         AC_LIBOBJ invocations from here...
1911         * modules/iconv_open (configure.ac): ... to here.
1912
1913 2011-05-08  Bruno Haible  <bruno@clisp.org>
1914
1915         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
1916         If module 'iconv_open' is among the main modules and module
1917         'iconv_open-utf' is among the tests dependencies, then
1918         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
1919         return the special iconv_t values. Therefore iconv() and iconv_close()
1920         must support these special iconv_t values, already in lib, not only in
1921         tests.
1922         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
1923         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
1924         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
1925         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
1926         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
1927         (Depends-on): Add the dependencies of iconv_open-utf.
1928         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
1929         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
1930         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
1931
1932 2011-05-08  Bruno Haible  <bruno@clisp.org>
1933
1934         group-member: Move AC_LIBOBJ invocations to module description.
1935         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
1936         gl_PREREQ_GROUP_MEMBER invocations from here...
1937         * modules/group-member (configure.ac): ... to here.
1938
1939 2011-05-08  Bruno Haible  <bruno@clisp.org>
1940
1941         grantpt: Move AC_LIBOBJ invocations to module description.
1942         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
1943         invocations from here...
1944         * modules/grantpt (configure.ac): ... to here.
1945
1946 2011-05-08  Bruno Haible  <bruno@clisp.org>
1947
1948         glob: Move AC_LIBOBJ invocations to module description.
1949         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
1950         from here...
1951         * modules/glob (configure.ac): ... to here.
1952
1953 2011-05-08  Bruno Haible  <bruno@clisp.org>
1954
1955         getusershell: Move AC_LIBOBJ invocations to module description.
1956         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
1957         Move AC_LIBOBJ invocation from here...
1958         * modules/getusershell (configure.ac): ... to here.
1959         (Depends-on): Update condition.
1960
1961 2011-05-08  Bruno Haible  <bruno@clisp.org>
1962
1963         gettimeofday: Move AC_LIBOBJ invocations to module description.
1964         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
1965         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
1966         gl_PREREQ_GETTIMEOFDAY invocations from here...
1967         * modules/gettimeofday (configure.ac): ... to here.
1968
1969 2011-05-08  Bruno Haible  <bruno@clisp.org>
1970
1971         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
1972         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
1973         just gl_FUNC_TZSET.
1974         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
1975         (gl_FUNC_TZSET_CLOBBER): Remove actions.
1976         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
1977         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
1978
1979 2011-05-08  Bruno Haible  <bruno@clisp.org>
1980
1981         getsubopt: Move AC_LIBOBJ invocations to module description.
1982         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
1983         gl_PREREQ_GETSUBOPT invocations from here...
1984         * modules/getsubopt (configure.ac): ... to here.
1985
1986 2011-05-08  Bruno Haible  <bruno@clisp.org>
1987
1988         getpass-gnu: Move AC_LIBOBJ invocations to module description.
1989         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
1990         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
1991         * modules/getpass-gnu (configure.ac): ... to here.
1992
1993 2011-05-08  Bruno Haible  <bruno@clisp.org>
1994
1995         getpass: Move AC_LIBOBJ invocations to module description.
1996         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
1997         gl_PREREQ_GETPASS invocations from here...
1998         * modules/getpass (configure.ac): ... to here.
1999
2000 2011-05-08  Bruno Haible  <bruno@clisp.org>
2001
2002         getpagesize: Move AC_LIBOBJ invocations to module description.
2003         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
2004         from here...
2005         * modules/getpagesize (configure.ac): ... to here.
2006
2007 2011-05-08  Bruno Haible  <bruno@clisp.org>
2008
2009         getopt: Move AC_LIBOBJ invocations to module description.
2010         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
2011         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
2012         invocations from here...
2013         * modules/getopt-gnu (configure.ac): ... to here.
2014         * modules/getopt-posix (configure.ac): ... and here.
2015         (Depends-on): Update condition.
2016
2017 2011-05-08  Bruno Haible  <bruno@clisp.org>
2018
2019         getopt, argp: Respect rules for use of AC_LIBOBJ.
2020         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
2021         (gl_REPLACE_GETOPT_ALWAYS): New macro.
2022         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
2023         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
2024
2025 2011-05-08  Bruno Haible  <bruno@clisp.org>
2026
2027         getlogin_r: Move AC_LIBOBJ invocations to module description.
2028         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
2029         gl_PREREQ_GETLOGIN_R invocations from here...
2030         * modules/getlogin_r (configure.ac): ... to here.
2031
2032 2011-05-08  Bruno Haible  <bruno@clisp.org>
2033
2034         getlogin: Move AC_LIBOBJ invocations to module description.
2035         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
2036         here...
2037         * modules/getlogin (configure.ac): ... to here.
2038
2039 2011-05-08  Bruno Haible  <bruno@clisp.org>
2040
2041         getloadavg: Move AC_LIBOBJ invocations to module description.
2042         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
2043         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
2044         * modules/getloadavg (configure.ac): ... to here.
2045
2046 2011-05-08  Bruno Haible  <bruno@clisp.org>
2047
2048         gethrxtime: Move AC_LIBOBJ invocations to module description.
2049         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
2050         LIB_GETHRXTIME from here...
2051         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
2052         invocations from here...
2053         * modules/gethrxtime (configure.ac): ... to here.
2054
2055 2011-05-08  Bruno Haible  <bruno@clisp.org>
2056
2057         gethostname: Move AC_LIBOBJ invocations to module description.
2058         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
2059         gl_PREREQ_GETHOSTNAME invocations from here...
2060         * modules/gethostname (configure.ac): ... to here.
2061
2062 2011-05-08  Bruno Haible  <bruno@clisp.org>
2063
2064         getgroups: Move AC_LIBOBJ invocations to module description.
2065         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
2066         here...
2067         * modules/getgroups (configure.ac): ... to here.
2068
2069 2011-05-08  Bruno Haible  <bruno@clisp.org>
2070
2071         getdtablesize: Move AC_LIBOBJ invocations to module description.
2072         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
2073         invocation from here...
2074         * modules/getdtablesize (configure.ac): ... to here.
2075
2076 2011-05-08  Bruno Haible  <bruno@clisp.org>
2077
2078         getdomainname: Move AC_LIBOBJ invocations to module description.
2079         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
2080         gl_PREREQ_GETDOMAINNAME invocations from here...
2081         * modules/getdomainname (configure.ac): ... to here.
2082
2083 2011-05-08  Bruno Haible  <bruno@clisp.org>
2084
2085         getline: Move AC_LIBOBJ invocations to module description.
2086         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
2087         invocations from here...
2088         * modules/getline (configure.ac): ... to here.
2089
2090 2011-05-08  Bruno Haible  <bruno@clisp.org>
2091
2092         getline: Simplify.
2093         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
2094         It's already handled through the module dependency.
2095
2096 2011-05-08  Bruno Haible  <bruno@clisp.org>
2097
2098         getdelim: Move AC_LIBOBJ invocations to module description.
2099         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
2100         and gl_PREREQ_GETDELIM invocations from here...
2101         * modules/getdelim (configure.ac): ... to here.
2102         (Depends-on): Fix condition.
2103
2104 2011-05-08  Bruno Haible  <bruno@clisp.org>
2105
2106         getcwd: Move AC_LIBOBJ invocations to module description.
2107         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
2108         invocations from here...
2109         * modules/getcwd (configure.ac): ... to here.
2110
2111 2011-05-08  Bruno Haible  <bruno@clisp.org>
2112
2113         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
2114         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
2115         here...
2116         * modules/getcwd-lgpl (configure.ac): ... to here.
2117
2118 2011-05-07  Bruno Haible  <bruno@clisp.org>
2119
2120         crypto/gc: Move AC_LIBOBJ invocations to module description.
2121         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
2122         * modules/crypto/gc (configure.ac): ... to here.
2123
2124 2011-05-07  Bruno Haible  <bruno@clisp.org>
2125
2126         fwriting: Move AC_LIBOBJ invocations to module description.
2127         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
2128         here...
2129         * modules/fwriting (configure.ac): ... to here.
2130
2131 2011-05-07  Bruno Haible  <bruno@clisp.org>
2132
2133         fwritable: Move AC_LIBOBJ invocations to module description.
2134         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
2135         here...
2136         * modules/fwritable (configure.ac): ... to here.
2137
2138 2011-05-07  Bruno Haible  <bruno@clisp.org>
2139
2140         futimens: Move AC_LIBOBJ invocations to module description.
2141         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
2142         here...
2143         * modules/futimens (configure.ac): ... to here.
2144
2145 2011-05-07  Bruno Haible  <bruno@clisp.org>
2146
2147         ftruncate: Move AC_LIBOBJ invocations to module description.
2148         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
2149         gl_PREREQ_FTRUNCATE invocations from here...
2150         * modules/ftruncate (configure.ac): ... to here.
2151
2152 2011-05-07  Bruno Haible  <bruno@clisp.org>
2153
2154         fsync: Move AC_LIBOBJ invocations to module description.
2155         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
2156         invocations from here...
2157         * modules/fsync (configure.ac): ... to here.
2158
2159 2011-05-07  Bruno Haible  <bruno@clisp.org>
2160
2161         fsusage: Move AC_LIBOBJ invocations to module description.
2162         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
2163         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
2164         * modules/fsusage (configure.ac): ... to here.
2165
2166 2011-05-07  Bruno Haible  <bruno@clisp.org>
2167
2168         freopen: Move AC_LIBOBJ invocations to module description.
2169         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
2170         invocations from here...
2171         * modules/freopen (configure.ac): ... to here.
2172
2173 2011-05-07  Bruno Haible  <bruno@clisp.org>
2174
2175         free: Move AC_LIBOBJ invocations to module description.
2176         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
2177         invocations from here...
2178         * modules/free (configure.ac): ... to here.
2179
2180 2011-05-07  Bruno Haible  <bruno@clisp.org>
2181
2182         freadable: Move AC_LIBOBJ invocations to module description.
2183         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
2184         here...
2185         * modules/freadable (configure.ac): ... to here.
2186
2187 2011-05-07  Bruno Haible  <bruno@clisp.org>
2188
2189         fpurge: Move AC_LIBOBJ invocations to module description.
2190         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
2191         invocations from here...
2192         * modules/fpurge (configure.ac): ... to here.
2193
2194 2011-05-07  Bruno Haible  <bruno@clisp.org>
2195
2196         fpending: Move AC_LIBOBJ invocations to module description.
2197         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
2198         gl_FUNC_FPENDING.
2199         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
2200         invocations from here...
2201         * modules/fpending (configure.ac): ... to here.
2202
2203 2011-05-07  Bruno Haible  <bruno@clisp.org>
2204
2205         fopen: Move AC_LIBOBJ invocations to module description.
2206         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
2207         invocations from here...
2208         * modules/fopen (configure.ac): ... to here.
2209
2210 2011-05-07  Bruno Haible  <bruno@clisp.org>
2211
2212         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
2213         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
2214         gl_FUNC_FNMATCH_POSIX.
2215         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
2216         invocations from here...
2217         * modules/fnmatch (configure.ac): ... to here.
2218         * modules/fnmatch-gnu (configure.ac): ... and here.
2219
2220 2011-05-07  Bruno Haible  <bruno@clisp.org>
2221
2222         flock: Move AC_LIBOBJ invocations to module description.
2223         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
2224         invocations from here...
2225         * modules/flock (configure.ac): ... to here.
2226
2227 2011-05-07  Bruno Haible  <bruno@clisp.org>
2228
2229         fileblocks: Move AC_LIBOBJ invocations to module description.
2230         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
2231         gl_PREREQ_FILEBLOCKS invocations from here...
2232         * modules/fileblocks (configure.ac): ... to here.
2233
2234 2011-05-06  Bruno Haible  <bruno@clisp.org>
2235
2236         fflush: Move AC_LIBOBJ invocations to module description.
2237         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
2238         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
2239         invocations from here...
2240         * modules/fflush (configure.ac): ... to here.
2241
2242 2011-05-06  Bruno Haible  <bruno@clisp.org>
2243
2244         fdopendir: Move AC_LIBOBJ invocations to module description.
2245         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
2246         here...
2247         * modules/fdopendir (configure.ac): ... to here.
2248         (Depends-on): Improve conditions.
2249
2250 2011-05-06  Bruno Haible  <bruno@clisp.org>
2251
2252         _Exit: Move AC_LIBOBJ invocations to module description.
2253         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
2254         invocations from here...
2255         * modules/_Exit (configure.ac): ... to here.
2256
2257 2011-05-21  Bruno Haible  <bruno@clisp.org>
2258
2259         euidaccess: Respect rules for use of AC_LIBOBJ.
2260         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2261         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
2262         from here...
2263         * modules/euidaccess (configure.ac): ... to here.
2264
2265 2011-05-06  Bruno Haible  <bruno@clisp.org>
2266
2267         error: Move AC_LIBOBJ invocations to module description.
2268         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
2269         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
2270         invocations from here...
2271         * modules/error (configure.ac): ... to here.
2272
2273 2011-05-06  Bruno Haible  <bruno@clisp.org>
2274
2275         duplocale: Move AC_LIBOBJ invocations to module description.
2276         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
2277         gl_PREREQ_DUPLOCALE invocations from here...
2278         * modules/duplocale (configure.ac): ... to here.
2279
2280 2011-05-05  Bruno Haible  <bruno@clisp.org>
2281
2282         dirfd: Move AC_LIBOBJ invocations to module description.
2283         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
2284         gl_FUNC_DIRFD.
2285         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
2286         here...
2287         * modules/dirfd (configure.ac): ... to here.
2288         (Depends-on): Fix condition.
2289
2290 2011-05-05  Bruno Haible  <bruno@clisp.org>
2291
2292         chown: Respect rules for use of AC_LIBOBJ.
2293         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
2294         * modules/chown (configure.ac): ... to here.
2295
2296 2011-05-05  Bruno Haible  <bruno@clisp.org>
2297
2298         chdir-long: Move AC_LIBOBJ invocations to module description.
2299         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
2300         gl_PREREQ_CHDIR_LONG invocations from here...
2301         * modules/chdir-long (configure.ac): ... to here.
2302
2303 2011-05-05  Bruno Haible  <bruno@clisp.org>
2304
2305         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
2306         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
2307         from here...
2308         * modules/canonicalize-lgpl (configure.ac): ... to here.
2309
2310 2011-05-05  Bruno Haible  <bruno@clisp.org>
2311
2312         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
2313         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
2314         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
2315         REPLACE_CALLOC.
2316         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
2317         * modules/calloc-gnu (configure.ac): Likewise.
2318
2319 2011-05-05  Bruno Haible  <bruno@clisp.org>
2320
2321         btowc: Move AC_LIBOBJ invocations to module description.
2322         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
2323         invocations from here...
2324         * modules/btowc (configure.ac): ... to here.
2325
2326 2011-05-21  Bruno Haible  <bruno@clisp.org>
2327
2328         atexit: Move AC_LIBOBJ invocations to module description.
2329         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
2330         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
2331         here...
2332         * modules/atexit (configure.ac): ... to here.
2333
2334 2011-05-05  Bruno Haible  <bruno@clisp.org>
2335
2336         atoll: Move AC_LIBOBJ invocations to module description.
2337         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
2338         invocations from here...
2339         * modules/atoll (configure.ac): ... to here.
2340
2341 2011-05-05  Bruno Haible  <bruno@clisp.org>
2342
2343         argz: Move AC_LIBOBJ invocations to module description.
2344         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
2345         * modules/argz (configure.ac): ... to here.
2346
2347 2011-05-05  Bruno Haible  <bruno@clisp.org>
2348
2349         alphasort: Move AC_LIBOBJ invocations to module description.
2350         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
2351         gl_PREREQ_ALPHASORT invocations from here...
2352         * modules/alphasort (configure.ac): ... to here.
2353
2354 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
2355
2356         verify: new macro verify_expr; verify_true deprecated
2357         * NEWS: Mention this.
2358         * doc/verify.texi (Compile-time Assertions): Document this.
2359         * lib/verify.h (verify_true): Deprecate.
2360         (verify_expr): New macro.
2361         * tests/test-verify.c (function): Test verify_expr.
2362
2363 2011-06-14  Jim Meyering  <meyering@redhat.com>
2364
2365         init.sh: give more portable redirection-related advice in a comment
2366         * tests/init.sh (stderr_fileno_): Update the advice in comments.
2367         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
2368         for lots of discussion.  Stefano Lattarini suggested the solution
2369         of putting "9>&2" after the command.  Reported by Bruno Haible.
2370
2371 2011-06-13  Bruno Haible  <bruno@clisp.org>
2372
2373         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
2374         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
2375         'none'.
2376
2377 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
2378
2379         ftoastr: use strtof only if HAVE_STRTOF
2380         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
2381         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
2382         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
2383         * modules/ftoastr (configure.ac): Check for strtof.
2384
2385 2011-06-13  Bruno Haible  <bruno@clisp.org>
2386
2387         gnulib-tool: Addendum to 2011-06-08 commit.
2388         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
2389         and --witness-c-macro have been given, augment AM_CPPFLAGS.
2390
2391 2011-06-13  Bruno Haible  <bruno@clisp.org>
2392
2393         fseeko: Provide a non-inline replacement of fseek().
2394         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
2395         * modules/fseeko (Depends-on): Add fseek.
2396         * modules/fseek (License): Change to LGPLv2+.
2397
2398 2011-06-13  Bruno Haible  <bruno@clisp.org>
2399
2400         ftello: Provide a non-inline replacement of ftell().
2401         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
2402         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
2403         not have ftello() (such as on mingw).
2404         * modules/ftello (Depends-on): Add ftell.
2405         * modules/ftell (License): Change to LGPLv2+.
2406
2407 2011-05-07  Bruno Haible  <bruno@clisp.org>
2408
2409         ftell: Move AC_LIBOBJ invocations to module description.
2410         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
2411         * modules/ftell (configure.ac): ... to here.
2412
2413 2011-05-07  Bruno Haible  <bruno@clisp.org>
2414
2415         ftello: Respect rules for use of AC_LIBOBJ.
2416         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
2417         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
2418         here...
2419         * modules/ftello (configure.ac): ... to here.
2420
2421 2011-05-07  Bruno Haible  <bruno@clisp.org>
2422
2423         fseeko: Simplify.
2424         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
2425         (gl_FUNC_FSEEKO): Inline it here.
2426
2427 2011-05-07  Bruno Haible  <bruno@clisp.org>
2428
2429         fseek: Move AC_LIBOBJ invocations to module description.
2430         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
2431         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2432         * modules/fseek (configure.ac): ... to here.
2433
2434 2011-05-07  Bruno Haible  <bruno@clisp.org>
2435
2436         fseek: Respect rules for use of AC_LIBOBJ.
2437         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
2438         here...
2439         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
2440
2441 2011-05-07  Bruno Haible  <bruno@clisp.org>
2442
2443         fseeko: Respect rules for use of AC_LIBOBJ.
2444         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
2445         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
2446         here...
2447         * modules/fseeko (configure.ac): ... to here.
2448
2449 2011-06-13  Bruno Haible  <bruno@clisp.org>
2450
2451         gnulib-tool: Allow comments in the 'Depends-on' section.
2452         * doc/gnulib.texi (Module description): Mention comment syntax in the
2453         Depends-on section.
2454         * gnulib-tool (func_get_dependencies): Filter out comment lines.
2455
2456 2011-06-13  Bruno Haible  <bruno@clisp.org>
2457
2458         file-set.h: guard __attibute__ use, now that it's not always defined
2459         * lib/file-set.h (record_file): Use __attribute__ only with compiler
2460         versions that support it.  This fixes a coreutils build failure with
2461         the vendor cc on HP-UX 11.31.
2462
2463 2011-06-12  Bruno Haible  <bruno@clisp.org>
2464
2465         acl: Add support for HP-UX >= 11.11 JFS ACLs.
2466         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
2467         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
2468         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
2469         (acl, aclsort): New declarations.
2470         (aclv_nontrivial): New declaration.
2471         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
2472         (file_has_acl): Read also the second kind of HP-UX ACLs.
2473         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
2474         kind of HP-UX ACLs if the first kind fails.
2475         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
2476         second kind of HP-UX ACLs.
2477         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
2478         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
2479         agree.
2480         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
2481         hpuxjfs.
2482         Handle hpuxjfs.
2483         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
2484         hpuxjfs.
2485         Handle hpuxjfs.
2486         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
2487         (func_test_same_acls): Use both lsacl and getacl.
2488         Handle hpuxjfs.
2489         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
2490         (func_test_same_acls): Use both lsacl and getacl.
2491         Handle hpuxjfs.
2492
2493 2011-06-12  Bruno Haible  <bruno@clisp.org>
2494
2495         acl: Complete the 2010-08-10 fix.
2496         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
2497         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
2498         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
2499         explicitly.
2500         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
2501         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
2502
2503 2011-06-12  Bruno Haible  <bruno@clisp.org>
2504
2505         spawn-pipe tests: Comments.
2506         * tests/test-spawn-pipe-child.c (main): Update comment.
2507         Reported by James Youngman <jay@gnu.org>.
2508
2509 2011-06-11  James Youngman  <jay@gnu.org>
2510
2511         New module 'stat-size'.
2512         * modules/stat-size: New module.  Provides macros for accessing
2513         file size information in instances of struct stat.  Depends on the
2514         fileblocks module because it calls st_blocks.
2515         * lib/stat-size.h: New file, adapted from coreutils' system.h.
2516         * doc/gnulib.texi: Include stat-size.texi.
2517         * doc/stat-size.texi: Documentation for this module.
2518         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
2519         * m4/fileblocks.m4: Mention that stat-size depends on the call to
2520         AC_STRUCT_ST_BLOCKS.
2521
2522 2011-06-09  Bruno Haible  <bruno@clisp.org>
2523
2524         thread: Support pthreads-win32.
2525         * lib/glthread/thread.h (gl_thread_self): Define differently on
2526         pthreads-win32.
2527         (gl_null_thread): New declaration.
2528         (gl_thread_self_pointer): New macro.
2529         * lib/glthread/thread.c (gl_null_thread): New constant.
2530         * tests/test-lock.c: Use gl_thread_self_pointer instead of
2531         gl_thread_self.
2532         * tests/test-tls.c: Likewise.
2533         Suggested by Paul Eggert. Reported by Eric Blake.
2534
2535 2011-06-09  Bruno Haible  <bruno@clisp.org>
2536
2537         thread: Fix confusion between NULL and 0.
2538         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
2539         Reported by Paul Eggert.
2540
2541 2011-06-09  Bruno Haible  <bruno@clisp.org>
2542
2543         spawn-pipe tests: Avoid test failure on HP-UX 11.
2544         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
2545         is closed.
2546
2547 2011-06-09  Bruno Haible  <bruno@clisp.org>
2548
2549         acl tests: Fix compilation error on HP-UX 11.
2550         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
2551
2552 2011-06-09  Bruno Haible  <bruno@clisp.org>
2553
2554         rmdir: Avoid test failure on HP-UX 10.20.
2555         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
2556         EEXIST.
2557
2558 2011-06-08  Eric Blake  <eblake@redhat.com>
2559
2560         perror: fix test on mingw
2561         * modules/perror-tests (Depends-on): Add dup2.
2562
2563         strerror_r-posix: fix on MacOS
2564         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
2565         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
2566         logic bug.
2567         * lib/strerror_r.c (strerror_r): Fix the bug.
2568         * lib/strerror.c (strerror): Likewise.
2569         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
2570         problem.
2571         * doc/posix-functions/strerror.texi (strerror): Likewise.
2572         * doc/posix-functions/perror.texi (perror): Likewise.
2573         * tests/test-strerror.c (main): Enhance test.
2574         * tests/test-strerror_r.c (main): Likewise.
2575
2576 2011-06-08  Bruno Haible  <bruno@clisp.org>
2577
2578         gnulib-tool: Better isolation between different gnulib-tool invocations.
2579         * gnulib-tool: New option --witness-c-macro.
2580         (witness_c_macro): New variable.
2581         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
2582         AM_CPPFLAGS define it as a C macro.
2583         (func_emit_tests_Makefile_am): Likewise.
2584         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
2585         read it from there.
2586         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
2587         m4_define, not AC_DEFUN.
2588         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
2589         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
2590         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
2591         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
2592         s|...|...|, to substitute the values of the GNULIB_* module indicator
2593         variables.
2594         * modules/dirent (Makefile.am): Likewise.
2595         * modules/fcntl-h (Makefile.am): Likewise.
2596         * modules/iconv-h (Makefile.am): Likewise.
2597         * modules/langinfo (Makefile.am): Likewise.
2598         * modules/locale (Makefile.am): Likewise.
2599         * modules/math (Makefile.am): Likewise.
2600         * modules/netdb (Makefile.am): Likewise.
2601         * modules/poll-h (Makefile.am): Likewise.
2602         * modules/pty (Makefile.am): Likewise.
2603         * modules/search (Makefile.am): Likewise.
2604         * modules/signal (Makefile.am): Likewise.
2605         * modules/spawn (Makefile.am): Likewise.
2606         * modules/stdio (Makefile.am): Likewise.
2607         * modules/stdlib (Makefile.am): Likewise.
2608         * modules/string (Makefile.am): Likewise.
2609         * modules/sys_ioctl (Makefile.am): Likewise.
2610         * modules/sys_select (Makefile.am): Likewise.
2611         * modules/sys_socket (Makefile.am): Likewise.
2612         * modules/sys_stat (Makefile.am): Likewise.
2613         * modules/sys_times (Makefile.am): Likewise.
2614         * modules/sys_utsname (Makefile.am): Likewise.
2615         * modules/sys_wait (Makefile.am): Likewise.
2616         * modules/termios (Makefile.am): Likewise.
2617         * modules/time (Makefile.am): Likewise.
2618         * modules/unistd (Makefile.am): Likewise.
2619         * modules/wchar (Makefile.am): Likewise.
2620
2621 2011-06-08  Eric Blake  <eblake@redhat.com>
2622
2623         strerror: simplify replacement
2624         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
2625         * modules/strerror (configure.ac): No prereqs needed here...
2626         * modules/strerror-override (configure.ac): ...but this needs it.
2627         (Files): Add file for needed prereq macro.
2628
2629 2011-06-08  Bruno Haible  <bruno@clisp.org>
2630
2631         strerror_r-posix: Tweaks.
2632         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
2633         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
2634         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
2635         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
2636         (gl_FUNC_STRERROR_R): ... to here.
2637         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
2638
2639 2011-06-07  Eric Blake  <eblake@redhat.com>
2640
2641         perror: document fixed bugs
2642         * doc/posix-functions/perror.texi (perror): Document recent
2643         patches.
2644
2645 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
2646
2647         stat-time: get_stat_birthtime failure is better-defined
2648         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
2649         return a timestamp whose tv_sec and tv_nsec values are both -1.
2650         Previously, the spec said only that the tv_nsec value was negative.
2651         This upward-compatible change simplifies GNU tar a bit.
2652
2653 2011-06-07  Eric Blake  <eblake@redhat.com>
2654
2655         strerror_r-posix: work around cygwin 1.7.9
2656         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
2657         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
2658         bug without replacing strerror_r.
2659         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
2660         strerror_r is buggy, but without requiring strerror_r compilation.
2661         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
2662
2663         test-perror: relax test to ignore cygwin bug
2664         * tests/test-perror2.c (main): Relax test on requiring detection
2665         of stream errors, and use unbuffered stream.
2666         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
2667         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
2668         * doc/posix-functions/fputc.texi (fputc): Likewise.
2669         * doc/posix-functions/fputs.texi (fputs): Likewise.
2670         * doc/posix-functions/fputws.texi (fputws): Likewise.
2671         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
2672         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
2673         * doc/posix-functions/getopt.texi (getopt): Likewise.
2674         * doc/posix-functions/perror.texi (perror): Likewise.
2675         * doc/posix-functions/printf.texi (printf): Likewise.
2676         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
2677         * doc/posix-functions/psignal.texi (psignal): Likewise.
2678         * doc/posix-functions/putc.texi (putc): Likewise.
2679         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
2680         Likewise.
2681         * doc/posix-functions/putchar.texi (putchar): Likewise.
2682         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
2683         Likewise.
2684         * doc/posix-functions/puts.texi (puts): Likewise.
2685         * doc/posix-functions/putwc.texi (putwc): Likewise.
2686         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2687         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2688         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2689         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
2690         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2691         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2692         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
2693         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
2694
2695 2011-05-22  Bruno Haible  <bruno@clisp.org>
2696
2697         strerror: Move AC_LIBOBJ invocations to module description.
2698         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
2699         gl_PREREQ_STRERROR invocations from here...
2700         * modules/strerror (configure.ac): ... to here.
2701
2702 2011-05-21  Bruno Haible  <bruno@clisp.org>
2703
2704         perror: Use common idiom.
2705         * modules/perror (configure.ac): Reorder statements.
2706
2707 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2708
2709         tests: fix usage message in 'mktempd_'
2710         * tests/init.sh (mktempd_): In the usage message, use literal
2711         'mktempd_', not '$ME' (which is even undefined), as the name of
2712         the subroutine.
2713
2714 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2715
2716         tests init: new function 'fatal_', for hard errors
2717         Before this patch, the only way offered by tests/init.sh to
2718         properly signal a hard error was the `framework_failure_'
2719         function.  But the error message issued by that function,
2720         as its name would suggest, refers to a set-up failure in the
2721         testsuite, while hard errors can obviously also be due to
2722         other reasons.  The best way to fix this inconsistency is to
2723         introduce a new function with a more general error message.
2724         * tests/init.sh (fatal_): New function.
2725
2726 2011-06-06  Eric Blake  <eblake@redhat.com>
2727
2728         canonicalize-lgpl: use common idiom
2729         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
2730         over newer POSIX -Rf.
2731         Reported by Bruno Haible.
2732
2733         canonicalize-lgpl: work around AIX realpath bug
2734         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
2735         * doc/posix-functions/realpath.texi (realpath): Document it.
2736         Reported by Bruno Haible.
2737
2738         strerror: work around FreeBSD bug
2739         * lib/strerror.c (strerror): Special case 0.
2740         Reported by Bruno Haible.
2741
2742         strerror-override: avoid bloating errno module
2743         * modules/errno (Files, configure.ac): Move replacement strings...
2744         * modules/strerror-override: ...to new module.
2745         * modules/strerror (Depends-on): Add strerror-override.
2746         * modules/strerror_r-posix (Depends-on): Likewise.
2747         * MODULES.html.sh: Document new module.
2748         Reported by Bruno Haible.
2749
2750 2011-06-06  Bruno Haible  <bruno@clisp.org>
2751
2752         spawn-pipe tests: Rename program.
2753         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
2754         * tests/test-spawn-pipe-child.c: Update comment.
2755         * tests/test-spawn-pipe.sh: Update.
2756         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
2757
2758         spawn-pipe tests: Link the child program only against libc.
2759         * tests/test-spawn-pipe-child.c: New file, extracted from
2760         tests/test-spawn-pipe.c.
2761         (main): Expect only one argument.
2762         (is_open): New function, copied from tests/test-pipe.c.
2763         * tests/test-spawn-pipe.c: Don't include <errno.h>.
2764         (child_main): Remove function.
2765         (test_pipe): Pass only one argument to the child program.
2766         (main): Remove child process code. Expect the child program's name as
2767         first argument.
2768         * tests/test-spawn-pipe.sh: Pass the child program's name as first
2769         argument.
2770         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
2771         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
2772         test-spawn-pipe-child against no libraries.
2773
2774 2011-06-06  Bruno Haible  <bruno@clisp.org>
2775
2776         careadlinkat: Avoid mismatch between ssize_t and int.
2777         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
2778         * lib/careadlinkat.c (careadlinkatcwd): Define always.
2779
2780 2011-06-06  Jim Meyering  <meyering@redhat.com>
2781
2782         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
2783         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
2784         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
2785
2786 2011-06-05  Bruno Haible  <bruno@clisp.org>
2787
2788         ansi-c++-opt: Interoperability with libtool.
2789         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
2790         set the variable to "no", not to ":".
2791         * NEWS: Mention the change.
2792
2793 2011-06-05  Bruno Haible  <bruno@clisp.org>
2794
2795         acl: Fix test failure on AIX 7.
2796         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
2797         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
2798
2799 2011-06-05  Bruno Haible  <bruno@clisp.org>
2800
2801         pipe-filter-ii: Fix test failure on AIX and IRIX.
2802         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
2803         with EAGAIN, retry with a smaller buffer size.
2804
2805 2011-06-05  Bruno Haible  <bruno@clisp.org>
2806
2807         localename: Fix link dependencies.
2808         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
2809         * modules/localename-tests (Makefile.am): Link test-localename with
2810         $(LIBTHREAD).
2811
2812 2011-06-05  Bruno Haible  <bruno@clisp.org>
2813
2814         error: Avoid gcc warning.
2815         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
2816
2817 2011-06-05  Bruno Haible  <bruno@clisp.org>
2818
2819         unsetenv: Avoid gcc warning.
2820         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
2821
2822 2011-06-05  Bruno Haible  <bruno@clisp.org>
2823
2824         setenv: Avoid gcc warning.
2825         * lib/setenv.c (setenv): Provide declaration if system lacks it.
2826
2827 2011-06-05  Bruno Haible  <bruno@clisp.org>
2828
2829         sys_select: Ensure memset is declared also on AIX 7.
2830         * lib/sys_select.in.h: Include <string.h> also on AIX.
2831         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
2832         self-contained also on AIX 7.1.
2833
2834 2011-06-04  Jim Meyering  <meyering@redhat.com>
2835
2836         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
2837         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
2838         function name, "error".
2839         (_gl_translatable_diag_func_re): New configurable variable.
2840
2841 2011-06-04  Bruno Haible  <bruno@clisp.org>
2842
2843         getopt: Avoid gcc warning.
2844         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
2845
2846 2011-06-04  Bruno Haible  <bruno@clisp.org>
2847
2848         strerror_r: Fix comments.
2849         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
2850         commit.
2851
2852 2011-06-04  Bruno Haible  <bruno@clisp.org>
2853
2854         perror: Fix compilation error.
2855         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
2856         Undefine fprintf, not sprintf.
2857         * modules/perror (Depends-on): Remove intprops, verify.
2858
2859 2011-06-04  Bruno Haible  <bruno@clisp.org>
2860
2861         setlocale: Enable replacement on Cygwin 1.5.
2862         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
2863         Cygwin 1.5.x.
2864         * doc/posix-functions/setlocale.texi: Mention that the problem with the
2865         LC_CTYPE category also exists on Cygwin 1.5.x.
2866
2867 2011-06-04  Bruno Haible  <bruno@clisp.org>
2868
2869         strerror-override: Don't disable symbol renamings.
2870         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
2871         * lib/strerror-override.c: Include config.h.
2872         (strerror_override): Don't undefine.
2873
2874 2011-06-03  Bruno Haible  <bruno@clisp.org>
2875
2876         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
2877         * lib/localename.h: Update copyright header.
2878         * lib/localename.c: Likewise.
2879         * lib/relocatable.h: Likewise.
2880         * lib/relocatable.c: Likewise.
2881
2882 2011-06-02  Bruno Haible  <bruno@clisp.org>
2883
2884         doc: Fix a module name.
2885         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
2886
2887 2011-06-02  Bruno Haible  <bruno@clisp.org>
2888
2889         pipe2: Remove dependency on 'nonblocking' module.
2890         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
2891         O_NONBLOCK is defined by gnulib.
2892         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
2893         is zero.
2894         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
2895         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
2896         defined by gnulib.
2897         (get_nonblocking_flag): New function.
2898         (main): Test O_NONBLOCK flag only if it is nonzero.
2899         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
2900
2901 2011-06-03  Jim Meyering  <meyering@redhat.com>
2902
2903         maint: three new prohibit-header-without-use rules
2904         Prohibit use of cloexec.h, posixver.h, same.h without use.
2905         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
2906         (sc_prohibit_posixver_without_use): Likewise.
2907         (sc_prohibit_same_without_use): Likewise.
2908
2909 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2910
2911         allocator: 'die' routine is now given requested size
2912         * lib/allocator.h (struct allocator.die): New size arg.
2913         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
2914         If the actual problem is an ssize_t limitation, not a size_t or
2915         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
2916
2917 2011-06-01  Eric Blake  <eblake@redhat.com>
2918
2919         strerror: drop strerror_r dependency
2920         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
2921         * lib/strerror-override.c (strerror_override): ...to new file.
2922         * lib/strerror-override.h: Add prototype.
2923         * lib/strerror-impl.h: Delete.
2924         * lib/strerror.c (strerror): New implementation.
2925         * modules/errno (Files): Add new files.
2926         (configure.ac): Compile new file as appropriate.
2927         * modules/strerror (Files): Drop unused file.
2928         (Depends-on): Drop strerror_r-posix.
2929         * MODULES.html.sh: Document strerror_r-posix.
2930         Requested by Sam Steingold.
2931
2932         perror: call strerror_r directly
2933         * modules/perror (Files): Drop strerror-impl.h.
2934         * lib/perror.c (perror): Use our own stack buffer, rather than
2935         calling a wrapper that uses static storage.
2936         * doc/posix-functions/perror.texi (perror): Document a limitation
2937         of our replacement.
2938
2939         strerror_r: fix includes for FreeBSD
2940         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
2941         since we use abort on some platforms.
2942         Reported by Matthias Bolte.
2943
2944 2011-05-31  Bruno Haible  <bruno@clisp.org>
2945
2946         Fix link errors in tests: openat-die uses gettext-h.
2947         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
2948         against $(LIBINTL).
2949         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
2950         against $(LIBINTL).
2951         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
2952         $(LIBINTL).
2953         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
2954         against $(LIBINTL).
2955         * modules/linkat-tests (Makefile.am): Link test-linkat against
2956         $(LIBINTL).
2957         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
2958         $(LIBINTL).
2959         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
2960         against $(LIBINTL).
2961         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
2962         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
2963         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
2964         $(LIBINTL).
2965         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
2966         $(LIBINTL).
2967         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
2968         $(LIBINTL).
2969         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2970
2971 2011-05-31  Bruno Haible  <bruno@clisp.org>
2972
2973         Fix link errors in tests: wait-process uses gettext-h.
2974         * modules/nonblocking-pipe-tests (Makefile.am): Set
2975         test_nonblocking_pipe_main_LDADD.
2976         * modules/nonblocking-socket-tests (Makefile.am): Link
2977         test-nonblocking-socket-main against $(LIBINTL).
2978         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2979
2980 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2981
2982         assert-h: work around 'verify' incompatibility
2983         * lib/verify.h: Use @...@ directives, not ifdef.
2984         * modules/assert-h (assert.h): Implement the directives.
2985         (assert.h): Substitute the symbol-prefix more consistently.
2986
2987 2011-05-29  Jim Meyering  <meyering@redhat.com>
2988
2989         trim: remove three superfluous assignments
2990         * lib/trim.c (trim2): Remove three superfluous assignments
2991         and correct brace positioning.
2992
2993 2011-05-29  Bruno Haible  <bruno@clisp.org>
2994
2995         wctype-h: Avoid namespace pollution on Solaris 2.6.
2996         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
2997         identifiers.
2998         * doc/posix-headers/wctype.texi: Mention the problem.
2999         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3000
3001 2011-05-28  Jim Meyering  <meyering@redhat.com>
3002
3003         parse-datetime.y: accommodate -Wstrict-overflow
3004         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
3005         placate -Wstrict-overflow.
3006
3007         trim: avoid a warning from -O2 -Wstrict-overflow
3008         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
3009
3010 2011-05-29  Bruno Haible  <bruno@clisp.org>
3011
3012         gnulib-tool: Fix bug in yesterday's commit.
3013         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
3014         twice.
3015
3016 2011-05-29  Bruno Haible  <bruno@clisp.org>
3017
3018         Allow multiple gnulib generated include files to be combined.
3019         * gnulib-tool (func_compute_include_guard_prefix): New function.
3020         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
3021         ${gl_include_guard_prefix} references.
3022         (func_import, func_create_testdir): Invoke
3023         func_compute_include_guard_prefix.
3024         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
3025         * lib/ctype.in.h: Likewise.
3026         * lib/dirent.in.h: Likewise.
3027         * lib/errno.in.h: Likewise.
3028         * lib/fcntl.in.h: Likewise.
3029         * lib/float.in.h: Likewise.
3030         * lib/getopt.in.h: Likewise.
3031         * lib/iconv.in.h: Likewise.
3032         * lib/langinfo.in.h: Likewise.
3033         * lib/locale.in.h: Likewise.
3034         * lib/math.in.h: Likewise.
3035         * lib/netdb.in.h: Likewise.
3036         * lib/netinet_in.in.h: Likewise.
3037         * lib/poll.in.h: Likewise.
3038         * lib/pthread.in.h: Likewise.
3039         * lib/pty.in.h: Likewise.
3040         * lib/sched.in.h: Likewise.
3041         * lib/se-selinux.in.h: Likewise.
3042         * lib/search.in.h: Likewise.
3043         * lib/signal.in.h: Likewise.
3044         * lib/spawn.in.h: Likewise.
3045         * lib/stdarg.in.h: Likewise.
3046         * lib/stddef.in.h: Likewise.
3047         * lib/stdint.in.h: Likewise.
3048         * lib/stdio.in.h: Likewise.
3049         * lib/stdlib.in.h: Likewise.
3050         * lib/string.in.h: Likewise.
3051         * lib/strings.in.h: Likewise.
3052         * lib/sys_file.in.h: Likewise.
3053         * lib/sys_ioctl.in.h: Likewise.
3054         * lib/sys_select.in.h: Likewise.
3055         * lib/sys_socket.in.h: Likewise.
3056         * lib/sys_stat.in.h: Likewise.
3057         * lib/sys_time.in.h: Likewise.
3058         * lib/sys_times.in.h: Likewise.
3059         * lib/sys_uio.in.h: Likewise.
3060         * lib/sys_utsname.in.h: Likewise.
3061         * lib/sys_wait.in.h: Likewise.
3062         * lib/sysexits.in.h: Likewise.
3063         * lib/termios.in.h: Likewise.
3064         * lib/time.in.h: Likewise.
3065         * lib/unistd.in.h: Likewise.
3066         * lib/wchar.in.h: Likewise.
3067         * lib/wctype.in.h: Likewise.
3068         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
3069         * modules/ctype (Makefile.am): Likewise.
3070         * modules/dirent (Makefile.am): Likewise.
3071         * modules/errno (Makefile.am): Likewise.
3072         * modules/fcntl-h (Makefile.am): Likewise.
3073         * modules/float (Makefile.am): Likewise.
3074         * modules/getopt-posix (Makefile.am): Likewise.
3075         * modules/iconv-h (Makefile.am): Likewise.
3076         * modules/langinfo (Makefile.am): Likewise.
3077         * modules/locale (Makefile.am): Likewise.
3078         * modules/math (Makefile.am): Likewise.
3079         * modules/netdb (Makefile.am): Likewise.
3080         * modules/netinet_in (Makefile.am): Likewise.
3081         * modules/poll-h (Makefile.am): Likewise.
3082         * modules/pthread (Makefile.am): Likewise.
3083         * modules/pty (Makefile.am): Likewise.
3084         * modules/sched (Makefile.am): Likewise.
3085         * modules/search (Makefile.am): Likewise.
3086         * modules/selinux-h (Makefile.am): Likewise.
3087         * modules/signal (Makefile.am): Likewise.
3088         * modules/spawn (Makefile.am): Likewise.
3089         * modules/stdarg (Makefile.am): Likewise.
3090         * modules/stddef (Makefile.am): Likewise.
3091         * modules/stdint (Makefile.am): Likewise.
3092         * modules/stdio (Makefile.am): Likewise.
3093         * modules/stdlib (Makefile.am): Likewise.
3094         * modules/string (Makefile.am): Likewise.
3095         * modules/strings (Makefile.am): Likewise.
3096         * modules/sys_file (Makefile.am): Likewise.
3097         * modules/sys_ioctl (Makefile.am): Likewise.
3098         * modules/sys_select (Makefile.am): Likewise.
3099         * modules/sys_socket (Makefile.am): Likewise.
3100         * modules/sys_stat (Makefile.am): Likewise.
3101         * modules/sys_time (Makefile.am): Likewise.
3102         * modules/sys_times (Makefile.am): Likewise.
3103         * modules/sys_uio (Makefile.am): Likewise.
3104         * modules/sys_utsname (Makefile.am): Likewise.
3105         * modules/sys_wait (Makefile.am): Likewise.
3106         * modules/sysexits (Makefile.am): Likewise.
3107         * modules/termios (Makefile.am): Likewise.
3108         * modules/time (Makefile.am): Likewise.
3109         * modules/unistd (Makefile.am): Likewise.
3110         * modules/wchar (Makefile.am): Likewise.
3111         * modules/wctype-h (Makefile.am): Likewise.
3112         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
3113
3114 2011-05-29  Bruno Haible  <bruno@clisp.org>
3115
3116         assert-h: Allow multiple gnulib generated replacements to coexist.
3117         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
3118
3119 2011-05-29  Bruno Haible  <bruno@clisp.org>
3120
3121         argp: Allow coexistence with strerror_r-posix module.
3122         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
3123         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
3124         by gnulib's <string.h> replacement), assume it has the POSIX signature,
3125         not the glibc signature.
3126
3127 2011-05-28  Bruno Haible  <bruno@clisp.org>
3128
3129         gnulib-tool: Alternative structure of testdirs, similar to --import.
3130         * gnulib-tool: New option --single-configure.
3131         (func_usage): Document it.
3132         (single_configure): New variable.
3133         (func_modules_transitive_closure_separately,
3134         func_modules_transitive_closure_separately,
3135         func_determine_use_libtests, func_modules_add_dummy_separately,
3136         func_modules_to_filelist_separately): New functions, extracted from
3137         func_import.
3138         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
3139         (func_import): Use the new functions.
3140         (func_create_testdir): Set final_modules. Handle $single_configure =
3141         true case.
3142
3143 2011-05-28  Bruno Haible  <bruno@clisp.org>
3144
3145         getloadavg: Remove an unreliable safety check.
3146         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
3147         getloadavg.c is in place.
3148         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
3149         Reported by Sam Steingold <sds@gnu.org>.
3150
3151 2011-05-28  Bruno Haible  <bruno@clisp.org>
3152
3153         doc: Cleanup yet another file produced by texinfo.tex.
3154         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
3155
3156 2011-05-28  Bruno Haible  <bruno@clisp.org>
3157
3158         Finish the conditional dependencies mechanism.
3159         * gnulib-tool: New option --no-conditional-dependencies.
3160         (func_usage): Document it. Don't mark --conditional-dependencies as
3161         experimental.
3162         (cond_dependencies): The possible values can now be true, false, empty.
3163         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
3164         (func_import): Store setting in gnulib-cache.m4 and read it from there.
3165         * doc/gnulib-tool.texi (Conditional dependencies): New section.
3166
3167 2011-05-28  Bruno Haible  <bruno@clisp.org>
3168
3169         doc: Use a recent texinfo.tex.
3170         * doc/Makefile (tex_opts): New variable.
3171         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
3172
3173 2011-05-28  Jim Meyering  <meyering@redhat.com>
3174
3175         intprops.h: adjust comment to match code change
3176         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
3177         only once, it *may* have side effects.  Also fix an unrelated typo.
3178         (_GL_INT_SIGNED): Likewise.
3179
3180 2011-05-26  Simon Josefsson  <simon@josefsson.org>
3181
3182         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
3183
3184 2011-05-26  Bruno Haible  <bruno@clisp.org>
3185
3186         mbsrchr: Avoid collision with system function on Interix.
3187         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
3188         Reported by Markus Duft <mduft@gentoo.org>.
3189
3190 2011-05-15  James Youngman  <jay@gnu.org>
3191
3192         getopt: for ambiguous options, enumerate the possibilities.
3193         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
3194         the ambiguous options when an ambiguous prefix is given. This was
3195         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
3196         glibc change was
3197         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
3198
3199 2011-05-25  Eric Blake  <eblake@redhat.com>
3200
3201         getcwd: work around mingw bug
3202         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
3203         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3204         Reported by Matthias Bolte.
3205
3206 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
3207
3208         test-intprops: disable -Wtype-limits diagnostics
3209         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
3210         diagnostics.  Otherwise, the integer overflow macros generate many
3211         diagnostics.  Reported by Jim Meyering in
3212         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
3213
3214         intprops: shorten, to pacify gcc -Woverlength-strings
3215         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
3216         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
3217         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
3218         likely to run afoul of C compiler limits for string constant lengths.
3219         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
3220
3221 2011-05-24  Eric Blake  <eblake@redhat.com>
3222
3223         docs: document recently fixed glibc printf bug
3224         * doc/posix-functions/fprintf.texi (fprintf): Document it.
3225         * doc/posix-functions/printf.texi (printf): Likewise.
3226         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3227         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3228
3229         closein-tests: convert to init.sh
3230         * modules/closein-tests (Files): Add init.sh
3231         * tests/test-closein.sh Use it.
3232
3233         yesno-tests: convert to init.sh
3234         * modules/yesno-tests (Files): Add init.sh.
3235         * tests/test-yesno.sh: Use it.
3236
3237         atexit-tests: ensure reliable exit status
3238         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
3239         Reported by Bruno Haible.
3240
3241 2011-05-24  Bruno Haible  <bruno@clisp.org>
3242
3243         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
3244         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
3245         gl_PREREQ_STRERROR_R invocations from here...
3246         * modules/strerror_r-posix (configure.ac): ... to here.
3247
3248 2011-05-24  Eric Blake  <eblake@redhat.com>
3249
3250         strerror_r: fix missing header
3251         * lib/strerror_r.c: Avoid compiler warning about snprintf.
3252
3253         strerror_r: fix AIX test failures
3254         * lib/strerror_r.c (strerror_r): Convert silent truncation to
3255         ERANGE failure.
3256
3257         strerror_r: fix Solaris test failures
3258         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
3259         failures.
3260         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
3261
3262         strerror_r: enforce POSIX recommendations
3263         * lib/strerror_r.c (safe_copy): New helper method.
3264         (strerror_r): Guarantee a non-empty string.
3265         * tests/test-strerror_r.c (main): Enhance tests to incorporate
3266         recent POSIX rulings and to match our strerror guarantees.
3267         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
3268
3269 2011-05-24  Jim Meyering  <meyering@redhat.com>
3270
3271         test-perror2.c: avoid warning about unused variable
3272         * tests/test-perror2.c (main): Remove declaration of unused "fp".
3273
3274 2011-05-24  Eric Blake  <eblake@redhat.com>
3275
3276         perror: avoid spurious test failure on HP-UX
3277         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
3278
3279         tests: fix logic bug in init.sh
3280         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
3281         shell.
3282
3283 2011-05-24  Jim Meyering  <meyering@redhat.com>
3284
3285         utimensat: do not reference an out-of-scope buffer
3286         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
3287         declared in an inner scope, yet "times" would be dereferenced outside
3288         the scope in which "ts" was valid.
3289         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
3290         of ts[2] "out/up", so that the use of aliased "times" (via
3291         "times = ts;") does not end up referencing an out-of-scope "ts"
3292
3293         opendir-safer.c: don't clobber errno; don't close negative FD
3294         * lib/opendir-safer.c (opendir_safer):
3295         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
3296         file descriptor, and more importantly, don't clobber the
3297         offending errno value with EINVAL.  Before, upon failure
3298         of dup_safer, we would pass the negative file descriptor to
3299         fdopendir, which would clobber errno.
3300
3301 2011-05-23  Bruno Haible  <bruno@clisp.org>
3302
3303         idcache: Fix module description.
3304         * modules/idcache (Include): Set to "idcache.h".
3305
3306 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3307
3308         gnulib-tool: fix portability problem with MacOS sed
3309         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
3310         before the "}".  Problem reported by Leo in
3311         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
3312         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
3313         sed_extract_condition1, sed_extract_condition2.
3314
3315 2011-05-23  Bruno Haible  <bruno@clisp.org>
3316
3317         hash: Simplify autoconf macro.
3318         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
3319
3320 2011-05-23  Bruno Haible  <bruno@clisp.org>
3321
3322         getugroups: Fix module description.
3323         * modules/getugroups (Include): Set to "getugroups.h".
3324
3325 2011-05-23  Bruno Haible  <bruno@clisp.org>
3326
3327         linkat: Simplify autoconf macro.
3328         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
3329
3330 2011-05-23  Bruno Haible  <bruno@clisp.org>
3331             Eric Blake  <eblake@redhat.com>
3332
3333         linkat, renameat: Update dependencies.
3334         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
3335         * modules/linkat (Depends-on): Likewise. Remove also readlink,
3336         symlinkat.
3337
3338 2011-05-23  Jim Meyering  <meyering@redhat.com>
3339
3340         maint.mk: more tight_scope improvements
3341         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
3342         (_gl_TS_headers): Define only in if-0'd block.
3343         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
3344         sometimes we must *not* use it.  Adjust uses accordingly.
3345         (sc_tight_scope): Use much simpler grep-based test to determine
3346         whether we skip this rule.
3347
3348         maint.mk: generalize/improve the tight-scope rule
3349         * top/maint.mk: Emit a warning when the test is skipped.
3350         (_gl_TS_dir): Add $(srcdir)/ prefix.
3351         (_gl_TS_function_match): Simplify, rather than trying
3352         to enumerate common types.  Otherwise, it would fail to match an
3353         "extern unsigned char const *" declaration in idutils.
3354         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
3355         a way to support use of that type of macro.
3356         (_gl_TS_var_match): Simplify regexp.
3357         (_gl_TS_obj_files): New configurable variable.
3358         (_gl_TS_headers): Likewise.
3359
3360 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
3361
3362         verify: fix bug when gnulib <assert.h> is also included
3363         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
3364         is defined, not if _GL_STATIC_ASSERT_H is not defined.
3365         Perhaps there's a better way, but this fixes the immediate problem.
3366         Problem reported by Bruno Haible in
3367         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
3368
3369 2011-05-22  Bruno Haible  <bruno@clisp.org>
3370
3371         xgetcwd: Simplify autoconf macro.
3372         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
3373
3374 2011-05-22  Bruno Haible  <bruno@clisp.org>
3375
3376         New module 'mktime-internal'.
3377         * modules/mktime-internal: New file.
3378         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
3379         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
3380         mktime_internal as a C macro if libc has __mktime_internal.
3381         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
3382         conditions.
3383         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
3384
3385 2011-05-22  Bruno Haible  <bruno@clisp.org>
3386
3387         timegm: Correct mktime replacement statements.
3388         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
3389         defining mktime as a C macro. This completes a 2009-07-28 commit.
3390
3391 2011-05-22  Bruno Haible  <bruno@clisp.org>
3392
3393         timegm: Simplify autoconf macro.
3394         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
3395
3396 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3397
3398         clock-time: change to LGPLv2+.
3399         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
3400         BSD-like but we have no mark for that; this is good enough for now.
3401
3402 2011-05-21  Bruno Haible  <bruno@clisp.org>
3403
3404         strerror_r: Fix comments.
3405         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
3406
3407 2011-05-21  Bruno Haible  <bruno@clisp.org>
3408
3409         relocatable-prog-wrapper: Fix possible link error.
3410         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
3411         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
3412         (gl_FUNC_SETENV): ... to here.
3413         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
3414         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
3415
3416 2011-05-21  Bruno Haible  <bruno@clisp.org>
3417
3418         relocatable-prog-wrapper: Assume strerror() exists.
3419         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
3420         m4/strerror.m4.
3421         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
3422         * lib/relocwrapper.c: Remove mention of strerror module.
3423         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
3424         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
3425         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
3426         C macro.
3427
3428 2011-05-21  Bruno Haible  <bruno@clisp.org>
3429
3430         select: Simplify replacement idiom.
3431         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
3432         Win32 platforms.
3433         * lib/sys_select.in.h (select): Simplify accordingly.
3434         * modules/select (Depends-on): Likewise.
3435
3436 2011-05-21  Bruno Haible  <bruno@clisp.org>
3437
3438         mkdir-p: Simplify autoconf macro.
3439         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
3440         gl_FUNC_LCHOWN.
3441
3442 2011-05-21  Eric Blake  <eblake@redhat.com>
3443
3444         strerror_r: avoid clobbering strerror on cygwin
3445         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
3446         fall back instead to sys_errlist.
3447         * modules/strerror (configure.ac): Add witness.
3448         * tests/test-strerror_r.c (main): Enhance test.
3449         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3450         * tests/test-perror2.c (main): Free memory before exit.
3451
3452 2011-05-21  Bruno Haible  <bruno@clisp.org>
3453
3454         mkdtemp: Use gnulib naming conventions.
3455         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
3456         * modules/mkdtemp (configure.ac): Update.
3457
3458 2011-05-20  Eric Blake  <eblake@redhat.com>
3459
3460         strerror_r: avoid corrupting errno on Solaris
3461         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
3462         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3463
3464         strerror_r: avoid compiler warning
3465         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
3466
3467         strerror_r: simplify AIX code
3468         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
3469
3470         test-perror: avoid spurious failure on FreeBSD
3471         * modules/perror-tests (Depends-on): Add strerror, now that
3472         strerror_r no longer pulls it in.
3473
3474 2011-05-20  Bruno Haible  <bruno@clisp.org>
3475
3476         strerror_r-posix: Remove unused dependencies.
3477         * modules/strerror_r-posix (Depends-on): Remove strerror.
3478         Reported by Eric Blake.
3479
3480 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
3481
3482         intprops: remove assumption about A|B representation
3483         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
3484         is a valid integer if both A and B are.  Although this is true for
3485         all known practical hosts, the C standard doesn't guarantee it,
3486         and the code need not assume it.  Also, this change may work around
3487         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
3488         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
3489
3490 2011-05-20  Eric Blake  <eblake@redhat.com>
3491
3492         perror: work around FreeBSD bug
3493         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
3494         is broken.  Move AC_LIBOBJ...
3495         * modules/perror (configure.ac): Here.
3496         * doc/posix-functions/perror.texi (perror): Document this.
3497         * tests/test-perror2.c (main): Enhance test.
3498
3499         test-perror: check for strerror interactions
3500         * tests/macros.h (STREQ): Add macro.
3501         * modules/perror-tests (Files): Add second test.
3502         * tests/test-perror2.c (main): New file.
3503         * doc/posix-functions/perror.texi (perror): Document glibc bug.
3504
3505         test-perror: rewrite to use init script
3506         * modules/perror-tests (Files): Add init.sh.
3507         * tests/test-perror.sh: Use temporary directory.
3508
3509 2011-05-20  Jim Meyering  <meyering@redhat.com>
3510
3511         maint: replace misused "a" with "an"
3512         * doc/intprops.texi: "a integer"
3513         * doc/regex.texi: "a explanation"
3514         * lib/alignof.h: "a object"
3515         * lib/argmatch.h: "a explanation"
3516         * lib/argp-help.c: "a option" and "a OPTION_DOC"
3517         * lib/stdint.in.h: "a integer"
3518         * lib/userspec.c: "a owner"
3519         * doc/gnulib.texi: Fix "a idea", and reword.
3520
3521 2011-05-19  Jim Meyering  <meyering@redhat.com>
3522
3523         maint: correct misuse of "a" and "an"
3524         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
3525         * lib/argp-help.c: "an docum...": s/an/a/
3526         * lib/argp-parse.c: "An vector": s/An/A/
3527         * lib/execute.c: "an native": s/an/a/
3528         * lib/spawn-pipe.c: Likewise.
3529         * lib/gc.h: "an Gc_rc": s/an/a/
3530         * lib/unigbrk.in.h: "an grapheme": s/an/a/
3531         * lib/fts.c: "an stat.st_dev": s/an/a/
3532
3533 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3534
3535         intprops-tests: work around HP-UX 11.23 cc bug with constants
3536         * tests/test-intprops.c (VERIFY): New macro.
3537         (main): Use it, instead of verify, to work around the compiler bug; see
3538         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3539
3540         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
3541         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
3542         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
3543         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
3544         (_GL_REMAINDER_OVERFLOW): Use it.
3545
3546         intprops-tests: revert unsigned part of previous change
3547         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
3548         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
3549         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
3550         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
3551
3552 2011-05-19  Bruno Haible  <bruno@clisp.org>
3553
3554         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
3555         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
3556         strerror_r() returned without filling the buffer.
3557         Reported by Eric Blake.
3558
3559 2011-05-19  Eric Blake  <eblake@redhat.com>
3560
3561         strerror_r: guarantee unchanged errno
3562         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
3563         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
3564         failure.
3565         * tests/test-strerror_r.c (main): Enhance test.
3566
3567 2011-05-19  Bruno Haible  <bruno@clisp.org>
3568
3569         strerror_r: Reorder #if blocks.
3570         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
3571         for consistency with the previous commit.
3572
3573 2011-05-19  Bruno Haible  <bruno@clisp.org>
3574
3575         perror: Avoid clobbering the strerror buffer when possible.
3576         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
3577         * lib/strerror.c: Include it.
3578         * modules/strerror (Files): Add lib/strerror-impl.h.
3579         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
3580         (my_strerror): New function, defined through lib/strerror-impl.h.
3581         (perror): Use it instead of strerror.
3582         * modules/perror (Files): Add lib/strerror-impl.h.
3583         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
3584
3585 2011-05-19  Eric Blake  <eblake@redhat.com>
3586
3587         strerror_r: fix on newer cygwin
3588         * lib/strerror_r.c (strerror_r): Cygwin now has
3589         __xpg_strerror_r, use it.
3590
3591 2011-05-19  Bruno Haible  <bruno@clisp.org>
3592
3593         strerror_r: Avoid clobbering the strerror buffer when possible.
3594         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
3595         (sys_nerr, sys_errlist): New declarations.
3596         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
3597         HP-UX, native Win32, IRIX, and 32-bit Solaris.
3598         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
3599
3600 2011-05-19  Bruno Haible  <bruno@clisp.org>
3601
3602         strerror_r: Fix test failure on mingw.
3603         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
3604         EXTEND_STRERROR_R.
3605         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
3606         macros from errno.in.h instead.
3607
3608 2011-05-19  Eric Blake  <eblake@redhat.com>
3609
3610         strerror: relax test for Solaris
3611         * tests/test-strerror.c (main): Permit Solaris behavior.
3612         * tests/test-strerror_r.c (main): Likewise.
3613
3614         strerror: enforce POSIX ruling on strerror(0)
3615         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
3616         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3617         * lib/strerror_r.c (rpl_strerror_r): Work around it.
3618         * doc/posix-functions/strerror.texi (strerror): Document it.
3619         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
3620         * tests/test-strerror.c (main): Strengthen test.
3621         * tests/test-strerror_r.c (main): Likewise.
3622
3623 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3624
3625         intprop-tests: port to older and more-pedantic compilers
3626         * modules/intprops-tests (Files): Add tests/macros.h.
3627         * tests/test-intprops.c: Include macros.h.
3628         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
3629         it's no longer documented to expand to an integer constant expression.
3630         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
3631         argument is floating point, as it's no longer documented to expand
3632         to an integer constant expression in that case.
3633         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
3634         compiler bugs reported by Bruno Haible.  See
3635         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3636         (U0, U1): New constants, to work around the same bugs.  Also,
3637         in tests, use e.g., "(unsigned int) 39" rather than "39u".
3638
3639         intprops: work around C compiler bugs
3640         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
3641         bug in Sun C 5.11 2010/08/13 and other compilers; see
3642         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3643
3644         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
3645         * doc/intprops.texi (Integer Type Determination): Fix
3646         documentation for TYPE_IS_INTEGER: it returns an constant
3647         expression, not an integer constant expression.  Fix doc for
3648         TYPE_SIGNED: it returns an integer constant expression only if its
3649         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
3650         hardly worth documented that way....)
3651
3652 2011-05-18  Bruno Haible  <bruno@clisp.org>
3653
3654         strerror_r: Avoid clobbering the strerror buffer when possible.
3655         * lib/strerror_r.c (strerror_r): Merge the three implementations.
3656         Handle gnulib defined errno values here. When strerror() returns NULL
3657         or an empty string, return EINVAL.
3658         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
3659         gnulib defined errno values here.
3660         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
3661
3662 2011-05-18  Eric Blake  <eblake@redhat.com>
3663
3664         fnmatch: avoid compiler warning
3665         * lib/fnmatch_loop.c (FCT): Use correct type.
3666         Reported by Matthias Bolte.
3667
3668 2011-05-13  Jim Meyering  <meyering@redhat.com>
3669
3670         maint.mk: three new prohibit_<HDR>_without_use rules
3671         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
3672         (sc_prohibit_stdio-safer_without_use): Likewise.
3673         (sc_prohibit_xfreopen_without_use): Likewise.
3674
3675 2011-05-17  Jim Meyering  <meyering@redhat.com>
3676
3677         announce-gen: fail if the NEWS delta is empty
3678         If there's nothing noteworthy in NEWS, then either you forgot
3679         or you shouldn't be releasing.
3680         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
3681
3682 2011-05-17  Pádraig Brady <P@draigBrady.com>
3683
3684         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
3685         reserved symbols starting with double underscore from the check.
3686
3687 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
3688
3689         intprops: add doc
3690         * doc/intprops.texi: New file, documenting intprops.
3691         * doc/gnulib.texi (Particular Modules): Include it.
3692
3693         verify: add doc to gnulib manual and fix example
3694         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
3695         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
3696         (Compile-time Assertions): Fix example so it can't overflow.
3697
3698 2011-05-17  Jim Meyering  <meyering@redhat.com>
3699
3700         warnings.m4: don't usurp save_CPPFLAGS variable name
3701         * m4/warnings.m4: Prefix local temporary variable name with gl_.
3702
3703         doc: fix typo
3704         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
3705
3706 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3707             Bruno Haible  <bruno@clisp.org>
3708
3709         doc: Tweak recent change.
3710         * README (Portability guidelines): Tweak new text.
3711         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
3712         Interix 6.1.
3713
3714 2011-05-16  Eric Blake  <eblake@redhat.com>
3715
3716         inttypes: avoid autoconf warning
3717         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
3718         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3719
3720 2011-05-16  Sam Steingold <sds@gnu.org>
3721         and Eric Blake  <eblake@redhat.com>
3722
3723         vc-list-files: accept multiple directory operands
3724         * build-aux/vc-list-files: Iterate over all remaining operands.
3725
3726 2011-05-16  Bruno Haible  <bruno@clisp.org>
3727
3728         Fix confusion regarding deprecated modules.
3729         * modules/calloc (Status, Notice): Mark module as deprecated, not
3730         obsolete.
3731         * modules/fnmatch-posix (Status, Notice): Likewise.
3732         * modules/getdate (Status, Notice): Likewise.
3733         * modules/getopt (Status, Notice): Likewise.
3734         * modules/malloc (Status, Notice): Likewise.
3735         * modules/pipe (Status, Notice): Likewise.
3736         * modules/realloc (Status, Notice): Likewise.
3737         * modules/rename-dest-slash (Status, Notice): Likewise.
3738         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
3739         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
3740         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
3741         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
3742         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
3743
3744 2011-05-16  Bruno Haible  <bruno@clisp.org>
3745
3746         doc: List the target platforms.
3747         * doc/gnulib-intro.texi (Target Platforms): New section.
3748         * doc/gnulib.texi (Introduction): Update menu.
3749         * README (Portability guidelines): Refer to the new section. Update
3750         statement about oldest supported environment. Remove rationale why
3751         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
3752         unportable C89 function.
3753         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
3754         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
3755
3756 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3757
3758         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
3759
3760 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
3761
3762         intprops-tests: new module
3763         * modules/intprops-tests, tests/test-intprops.c: New files.
3764
3765         intprops: add safe, portable integer overflow checking
3766         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
3767         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
3768         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
3769         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
3770         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
3771         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
3772         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
3773         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
3774         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
3775         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
3776         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
3777
3778 2011-05-12  James Youngman  <jay@gnu.org>
3779
3780         Add a test for glibc's Bugzilla bug #12378.
3781         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
3782         doesn't allow the literal matching of a lone "[" (which is
3783         required by POSIX).
3784         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
3785
3786 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
3787
3788         Sync glibc change fixing Bugzilla bug #12378.
3789         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
3790         beginning and fall back to matching as normal character if the
3791         string ends before the matching ']' is found.  This is what POSIX
3792         requires.
3793
3794 2011-05-13  Eric Blake  <eblake@redhat.com>
3795
3796         getcwd-lgpl: relax test for FreeBSD
3797         * doc/posix-functions/getcwd.texi (getcwd): Document portability
3798         issue.
3799         * tests/test-getcwd-lgpl.c (main): Relax test.
3800         Reported by Matthias Bolte.
3801
3802 2011-05-11  Eric Blake  <eblake@redhat.com>
3803
3804         test-fflush: silence compiler warning
3805         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
3806
3807 2011-05-11  Bruno Haible  <bruno@clisp.org>
3808
3809         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
3810         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
3811         * modules/canonicalize (Depends-on): Add 'nocrash'.
3812         * modules/canonicalize-lgpl (Depends-on): Likewise.
3813         * doc/posix-functions/realpath.texi: Update platforms list.
3814         Reported by Ryan Schmidt <ryandesign@macports.org>.
3815
3816 2011-05-11  Bruno Haible  <bruno@clisp.org>
3817
3818         group-member: Declare function in <unistd.h>.
3819         * lib/unistd.in.h (group_member): New declaration.
3820         * lib/group-member.h: Remove file.
3821         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
3822         * tests/test-unistd-c++.cc: Check signature of group_member.
3823         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
3824         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
3825         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
3826         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
3827         HAVE_GROUP_MEMBER.
3828         * modules/group-member (Files): Remove lib/group-member.h.
3829         (Depends-on): Add unistd. Specify conditions.
3830         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3831         (Include): Change to <unistd.h>.
3832         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
3833         HAVE_GROUP_MEMBER.
3834         * NEWS: Mention the change.
3835         * lib/euidaccess.c: Don't include group-member.h.
3836
3837 2011-05-11  Bruno Haible  <bruno@clisp.org>
3838
3839         group-member: Document module.
3840         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
3841         module.
3842
3843 2011-05-11  Bruno Haible  <bruno@clisp.org>
3844
3845         fclose: Fix mistake earlier today.
3846         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
3847
3848 2011-05-11  Eric Blake  <eblake@redhat.com>
3849
3850         fclose: preserve fflush errors
3851         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
3852         Reported by Jim Meyering.
3853
3854         bootstrap: support a prereq of 'rpcgen -' on RHEL5
3855         * build-aux/bootstrap (check_versions): When no specific version
3856         is required, merely check that the app produces an exit status
3857         that indicates its existence.
3858
3859         maint.mk: drop redundant check
3860         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
3861         the same but better.
3862
3863 2011-05-11  Bruno Haible  <bruno@clisp.org>
3864
3865         fclose: Fix possible link error.
3866         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
3867         unregister_shadow_fd. Improve comments.
3868         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
3869         Eric Blake.
3870
3871 2011-05-11  Jim Meyering  <meyering@redhat.com>
3872
3873         maint.mk: improve "can not" detection and generalize rule name
3874         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
3875         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
3876         Use the same technique as in sc_prohibit_doubled_word, so that
3877         we recognize "can not" also when the words are separated by a newline.
3878         Suggested by Eric Blake.
3879         (perl_filename_lineno_text_): Define.  Factored out of...
3880         (prohibit_doubled_word_): ...here.  Use the new definition.
3881         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
3882         (prohibit_undesirable_word_seq_RE_): New overridable variable.
3883         (ignore_undesirable_word_sequence_RE_): New overridable variable.
3884
3885 2011-05-10  Eric Blake  <eblake@redhat.com>
3886
3887         fclose: avoid double close race when possible
3888         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
3889         all but WINDOWS_SOCKETS.
3890
3891 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
3892
3893         openat: correct new comment
3894         * lib/openat-proc.c (openat_proc_name): Correct the comment.
3895
3896 2011-05-10  Jim Meyering  <meyering@redhat.com>
3897
3898         openat: add comments
3899         * lib/openat-proc.c (openat_proc_name): Add comments,
3900         mostly from Eric Blake.
3901
3902 2011-05-09  Eric Blake  <eblake@redhat.com>
3903
3904         openat: reduce syscalls in first probe of /proc
3905         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
3906         be a directory.  Simplify the probe for .. bugs.
3907         * modules/openat (Depends-on): Drop same-inode.
3908         Reported by Bastien ROUCARIES.
3909
3910 2011-05-09  Jim Meyering  <meyering@redhat.com>
3911
3912         maint.mk: change semantics/name of tight_scope variables
3913         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
3914         Rename variables to align with semantics that make them more useful.
3915
3916         maint.mk: tweak new rule's name not to impinge
3917         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
3918         (sc_tight_scope): Use new rule name rather than $@-0.
3919
3920         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
3921         * top/maint.mk (sc_tight_scope): New rule.
3922         (sc_tight_scope-0): New rule, ifdef'd out.
3923         (_gl_TS_dir): Default.
3924         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
3925         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
3926
3927 2011-05-09  Simon Josefsson  <simon@josefsson.org>
3928
3929         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
3930         Haible <bruno@clisp.org>.
3931
3932 2011-05-08  Bruno Haible  <bruno@clisp.org>
3933
3934         Comments.
3935         * m4/isnanf.m4: Add comment.
3936         * m4/isnanl.m4: Likewise.
3937
3938 2011-05-08  Bruno Haible  <bruno@clisp.org>
3939
3940         glob: Remove obsolete macro.
3941         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
3942
3943 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3944
3945         intprops: Sun C 5.11 supports __typeof__
3946         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
3947         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
3948         which is new.
3949         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
3950
3951         intprops: switch to usual gnulib indenting and naming
3952         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
3953         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
3954
3955         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
3956
3957 2011-05-08  Jim Meyering  <meyering@redhat.com>
3958
3959         maint.mk: suppress "Entering/Leaving directory" diag in announcement
3960         * top/maint.mk (release-prep): Use make's --no-print-directory
3961         option when generating the announcement.  This eliminates the
3962         pesky "make[2]: Entering/Leaving directory" diagnostics in the
3963         generated announcement template.
3964
3965 2011-05-08  Bruno Haible  <bruno@clisp.org>
3966
3967         tzset: Fix gettimeofday wrapper on Solaris 2.6.
3968         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
3969         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
3970
3971 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3972
3973         ignore-value, verify: Omit include files from lib_SOURCES.
3974         * modules/ignore-value, modules/verify (Makefile.am):
3975         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
3976         that leads Automake to duplicate use of am__objects_... variables
3977         in Makefile.in.  See
3978         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
3979
3980 2011-05-07  Bruno Haible  <bruno@clisp.org>
3981
3982         fclose: Simplify autoconf macro.
3983         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
3984         defined.
3985
3986 2011-05-07  Bruno Haible  <bruno@clisp.org>
3987
3988         canonicalize-lgpl: Fix autoconf macro ordering bug.
3989         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
3990         gl_STDLIB_H_DEFAULTS.
3991
3992 2011-05-06  Eric Blake  <eblake@redhat.com>
3993
3994         maintainer-makefile: make sc_po_check easier to tune
3995         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
3996         to probe for strings, such as an alternate location for gnulib.
3997
3998         fclose: guarantee behavior on seekable stdin
3999         * modules/fclose (Depends-on): Add fflush.
4000         * doc/posix-functions/fclose.texi (fclose): Document this.
4001         * tests/test-fclose.c (main): Make test for this unconditional.
4002
4003 2011-05-06  Bruno Haible  <bruno@clisp.org>
4004
4005         fflush, fpurge: Relicense under LGPLv2+.
4006         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
4007         * modules/fpurge (License): Likewise.
4008         With permission from Eric Blake and Jim Meyering.
4009         Suggested by Eric Blake.
4010
4011 2011-05-06  Karl Berry  <karl@gnu.org>
4012
4013         * MODULES.html.sh (func_all_modules): remove exit.
4014
4015 2011-05-06  Jim Meyering  <meyering@redhat.com>
4016
4017         maint.mk: use info-gnu@ as the default only for a stable release
4018         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
4019         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
4020         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
4021         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
4022
4023 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
4024
4025         assert-h: new module, which supports C1X-style static_assert
4026         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
4027         * lib/verify.h: Revamp so that this can be copied into assert.h,
4028         while retaining the ability to use it standalone as before.
4029         Rename private identifiers so as not to encroach on the
4030         standard C namespace, since this is now used by assert.h.
4031         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
4032         the old verify_true.
4033         (_GL_VERIFY_TRUE): New macro, with much of the contents of
4034         the old verify_true.  Use _GL_VERIFY_TYPE.
4035         (_GL_VERIFY): New macro, with much of the contents of the old verify.
4036         (static_assert): New macro, if _GL_STATIC_ASSERT_H
4037         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
4038         defined when this file is copied into the replacement assert.h.
4039         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
4040         and _Static_assert is not built in.
4041         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
4042         defined, and use the new macros mentioned above.
4043         * doc/posix-headers/assert.texi: Document this.
4044
4045 2011-05-05  Bruno Haible  <bruno@clisp.org>
4046
4047         fclose, fflush: Respect rules for use of AC_LIBOBJ.
4048         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
4049         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
4050         gl_REPLACE_FCLOSE here.
4051         * modules/fflush (Depends-on): Remove fclose.
4052         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
4053         combination with module 'fclose'.
4054
4055 2011-05-05  Bruno Haible  <bruno@clisp.org>
4056
4057         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
4058         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
4059         gl_FUNC_FFLUSH.
4060         (gl_FUNC_FFLUSH): Use it.
4061         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
4062         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
4063         gl_REPLACE_FSEEKO here.
4064
4065 2011-05-05  Bruno Haible  <bruno@clisp.org>
4066
4067         tzset: Relicense under LGPL.
4068         * modules/tzset (License): Change to LGPL.
4069         No agreement needed; it's a no-op.
4070
4071         strtoimax, strtoumax: Relicense under LGPL.
4072         * modules/strtoimax (License): Change to LGPL.
4073         * modules/strtoumax (License): Likewise.
4074         With permission from Jim Meyering, Paul Eggert:
4075         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
4076         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
4077
4078         getgroups: Relicense under LGPL.
4079         * modules/getgroups (License): Change to LGPL.
4080         With permission from Jim Meyering, Paul Eggert, Eric Blake:
4081         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
4082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
4083         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4084
4085         nanosleep: Relicense under LGPL.
4086         * modules/nanosleep (License): Change to LGPL.
4087         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
4088         Haible:
4089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
4090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
4091         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4092         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
4093
4094         futimens: Relicense under LGPL.
4095         * modules/futimens (License): Change to LGPL.
4096         With permission from Eric Blake:
4097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4098
4099         fflush: Relicense under LGPL.
4100         * modules/fflush (License): Change to LGPL.
4101         With permission from Eric Blake, Bruno Haible, Jim Meyering:
4102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
4104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
4105
4106         tmpfile: Relicense under LGPL.
4107         * modules/tmpfile (License): Change to LGPL.
4108         With permission from Ben Pfaff:
4109         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
4110
4111         isfinite: Relicense under LGPL.
4112         * modules/isfinite (License): Change to LGPL.
4113         With permission from Ben Pfaff, Bruno Haible:
4114         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
4115         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
4116
4117         acosl..tanl: Relicense under LGPL.
4118         * modules/acosl (License): Change to LGPL.
4119         * modules/asinl (License): Likewise.
4120         * modules/atanl (License): Likewise.
4121         * modules/cosl (License): Likewise.
4122         * modules/expl (License): Likewise.
4123         * modules/logl (License): Likewise.
4124         * modules/sinl (License): Likewise.
4125         * modules/sqrtl (License): Likewise.
4126         * modules/tanl (License): Likewise.
4127         Source code originally from glibc and Paolo Bonzini. Agreements:
4128         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
4129         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
4130
4131 2011-05-05  Bruno Haible  <bruno@clisp.org>
4132
4133         signal: Define sighandler_t.
4134         * lib/signal.in.h (sighandler_t): New type.
4135         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
4136         whether sighandler_t is defined.
4137         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
4138         * modules/signal (Depends-on): Add extensions.
4139         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
4140         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
4141         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
4142
4143 2011-05-05  Eric Blake  <eblake@redhat.com>
4144
4145         maint: remove useless REPLACE_*_H macros
4146         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
4147         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4148         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4149         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
4150         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4151         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4152         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
4153         * m4/btowc.m4: Update callers.
4154         * m4/dirfd.m4: Likewise.
4155         * m4/duplocale.m4: Likewise.
4156         * m4/fchdir.m4: Likewise.
4157         * m4/fdopendir.m4: Likewise.
4158         * m4/inet_ntop.m4: Likewise.
4159         * m4/inet_pton.m4: Likewise.
4160         * m4/ioctl.m4: Likewise.
4161         * m4/mbrlen.m4: Likewise.
4162         * m4/mbrtowc.m4: Likewise.
4163         * m4/mbsinit.m4: Likewise.
4164         * m4/mbsnrtowcs.m4: Likewise.
4165         * m4/mbsrtowcs.m4: Likewise.
4166         * m4/poll.m4: Likewise.
4167         * m4/setlocale.m4: Likewise.
4168         * m4/wcrtomb.m4: Likewise.
4169         * m4/wcsnrtombs.m4: Likewise.
4170         * m4/wcsrtombs.m4: Likewise.
4171         * m4/wctob.m4: Likewise.
4172         * m4/wcwidth.m4: Likewise.
4173         * modules/posix_spawn: Likewise.
4174         * modules/posix_spawn_file_actions_addclose: Likewise.
4175         * modules/posix_spawn_file_actions_adddup2: Likewise.
4176         * modules/posix_spawn_file_actions_addopen: Likewise.
4177         * modules/posix_spawn_file_actions_destroy: Likewise.
4178         * modules/posix_spawn_file_actions_init: Likewise.
4179         * modules/posix_spawnattr_destroy: Likewise.
4180         * modules/posix_spawnattr_getflags: Likewise.
4181         * modules/posix_spawnattr_getpgroup: Likewise.
4182         * modules/posix_spawnattr_getschedparam: Likewise.
4183         * modules/posix_spawnattr_getschedpolicy: Likewise.
4184         * modules/posix_spawnattr_getsigdefault: Likewise.
4185         * modules/posix_spawnattr_getsigmask: Likewise.
4186         * modules/posix_spawnattr_init: Likewise.
4187         * modules/posix_spawnattr_setflags: Likewise.
4188         * modules/posix_spawnattr_setpgroup: Likewise.
4189         * modules/posix_spawnattr_setschedparam: Likewise.
4190         * modules/posix_spawnattr_setschedpolicy: Likewise.
4191         * modules/posix_spawnattr_setsigdefault: Likewise.
4192         * modules/posix_spawnattr_setsigmask: Likewise.
4193         * modules/posix_spawnp: Likewise.
4194
4195 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
4196
4197         Add option to do-release-commit-and-tag to specify branch.
4198         * build-aux/do-release-commit-and-tag: Add --branch.
4199
4200 2011-05-03  Bruno Haible  <bruno@clisp.org>
4201
4202         Avoid unnecessary compilation units, through conditional dependencies.
4203         * modules/accept (Depends-on): Add conditions to the dependencies.
4204         * modules/acosl (Depends-on): Likewise.
4205         * modules/argz (Depends-on): Likewise.
4206         * modules/asinl (Depends-on): Likewise.
4207         * modules/atanl (Depends-on): Likewise.
4208         * modules/atoll (Depends-on): Likewise.
4209         * modules/bind (Depends-on): Likewise.
4210         * modules/btowc (Depends-on): Likewise.
4211         * modules/canonicalize-lgpl (Depends-on): Likewise.
4212         * modules/ceil (Depends-on): Likewise.
4213         * modules/ceilf (Depends-on): Likewise.
4214         * modules/ceill (Depends-on): Likewise.
4215         * modules/chdir-long (Depends-on): Likewise.
4216         * modules/chown (Depends-on): Likewise.
4217         * modules/close (Depends-on): Likewise.
4218         * modules/connect (Depends-on): Likewise.
4219         * modules/cosl (Depends-on): Likewise.
4220         * modules/dirfd (Depends-on): Likewise.
4221         * modules/dprintf (Depends-on): Likewise.
4222         * modules/dprintf-posix (Depends-on): Likewise.
4223         * modules/error (Depends-on): Likewise.
4224         * modules/euidaccess (Depends-on): Likewise.
4225         * modules/expl (Depends-on): Likewise.
4226         * modules/faccessat (Depends-on): Likewise.
4227         * modules/fchdir (Depends-on): Likewise.
4228         * modules/fclose (Depends-on): Likewise.
4229         * modules/fcntl (Depends-on): Likewise.
4230         * modules/fdopendir (Depends-on): Likewise.
4231         * modules/fflush (Depends-on): Likewise.
4232         * modules/floor (Depends-on): Likewise.
4233         * modules/floorf (Depends-on): Likewise.
4234         * modules/floorl (Depends-on): Likewise.
4235         * modules/fnmatch (Depends-on): Likewise.
4236         * modules/fopen (Depends-on): Likewise.
4237         * modules/fprintf-posix (Depends-on): Likewise.
4238         * modules/frexp (Depends-on): Likewise.
4239         * modules/frexp-nolibm (Depends-on): Likewise.
4240         * modules/frexpl (Depends-on): Likewise.
4241         * modules/frexpl-nolibm (Depends-on): Likewise.
4242         * modules/fseek (Depends-on): Likewise.
4243         * modules/fsusage (Depends-on): Likewise.
4244         * modules/ftell (Depends-on): Likewise.
4245         * modules/ftello (Depends-on): Likewise.
4246         * modules/futimens (Depends-on): Likewise.
4247         * modules/getcwd (Depends-on): Likewise.
4248         * modules/getcwd-lgpl (Depends-on): Likewise.
4249         * modules/getdelim (Depends-on): Likewise.
4250         * modules/getdomainname (Depends-on): Likewise.
4251         * modules/getgroups (Depends-on): Likewise.
4252         * modules/gethostname (Depends-on): Likewise.
4253         * modules/getline (Depends-on): Likewise.
4254         * modules/getlogin_r (Depends-on): Likewise.
4255         * modules/getopt-posix (Depends-on): Likewise.
4256         * modules/getpeername (Depends-on): Likewise.
4257         * modules/getsockname (Depends-on): Likewise.
4258         * modules/getsockopt (Depends-on): Likewise.
4259         * modules/getsubopt (Depends-on): Likewise.
4260         * modules/getusershell (Depends-on): Likewise.
4261         * modules/glob (Depends-on): Likewise.
4262         * modules/grantpt (Depends-on): Likewise.
4263         * modules/iconv_open (Depends-on): Likewise.
4264         * modules/iconv_open-utf (Depends-on): Likewise.
4265         * modules/inet_ntop (Depends-on): Likewise.
4266         * modules/inet_pton (Depends-on): Likewise.
4267         * modules/ioctl (Depends-on): Likewise.
4268         * modules/isapipe (Depends-on): Likewise.
4269         * modules/isfinite (Depends-on): Likewise.
4270         * modules/isinf (Depends-on): Likewise.
4271         * modules/lchown (Depends-on): Likewise.
4272         * modules/ldexpl (Depends-on): Likewise.
4273         * modules/link (Depends-on): Likewise.
4274         * modules/linkat (Depends-on): Likewise.
4275         * modules/listen (Depends-on): Likewise.
4276         * modules/logl (Depends-on): Likewise.
4277         * modules/lstat (Depends-on): Likewise.
4278         * modules/mbrlen (Depends-on): Likewise.
4279         * modules/mbrtowc (Depends-on): Likewise.
4280         * modules/mbsinit (Depends-on): Likewise.
4281         * modules/mbsnrtowcs (Depends-on): Likewise.
4282         * modules/mbsrtowcs (Depends-on): Likewise.
4283         * modules/mbtowc (Depends-on): Likewise.
4284         * modules/memcmp (Depends-on): Likewise.
4285         * modules/mkdir (Depends-on): Likewise.
4286         * modules/mkdtemp (Depends-on): Likewise.
4287         * modules/mkfifo (Depends-on): Likewise.
4288         * modules/mkfifoat (Depends-on): Likewise.
4289         * modules/mknod (Depends-on): Likewise.
4290         * modules/mkostemp (Depends-on): Likewise.
4291         * modules/mkostemps (Depends-on): Likewise.
4292         * modules/mkstemp (Depends-on): Likewise.
4293         * modules/mkstemps (Depends-on): Likewise.
4294         * modules/mktime (Depends-on): Likewise.
4295         * modules/nanosleep (Depends-on): Likewise.
4296         * modules/open (Depends-on): Likewise.
4297         * modules/openat (Depends-on): Likewise.
4298         * modules/perror (Depends-on): Likewise.
4299         * modules/poll (Depends-on): Likewise.
4300         * modules/popen (Depends-on): Likewise.
4301         * modules/posix_spawn (Depends-on): Likewise.
4302         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
4303         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
4304         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
4305         * modules/posix_spawnp (Depends-on): Likewise.
4306         * modules/pread (Depends-on): Likewise.
4307         * modules/printf-posix (Depends-on): Likewise.
4308         * modules/ptsname (Depends-on): Likewise.
4309         * modules/putenv (Depends-on): Likewise.
4310         * modules/pwrite (Depends-on): Likewise.
4311         * modules/readline (Depends-on): Likewise.
4312         * modules/readlink (Depends-on): Likewise.
4313         * modules/readlinkat (Depends-on): Likewise.
4314         * modules/recv (Depends-on): Likewise.
4315         * modules/recvfrom (Depends-on): Likewise.
4316         * modules/regex (Depends-on): Likewise.
4317         * modules/remove (Depends-on): Likewise.
4318         * modules/rename (Depends-on): Likewise.
4319         * modules/renameat (Depends-on): Likewise.
4320         * modules/rmdir (Depends-on): Likewise.
4321         * modules/round (Depends-on): Likewise.
4322         * modules/roundf (Depends-on): Likewise.
4323         * modules/roundl (Depends-on): Likewise.
4324         * modules/rpmatch (Depends-on): Likewise.
4325         * modules/select (Depends-on): Likewise.
4326         * modules/send (Depends-on): Likewise.
4327         * modules/sendto (Depends-on): Likewise.
4328         * modules/setenv (Depends-on): Likewise.
4329         * modules/setlocale (Depends-on): Likewise.
4330         * modules/setsockopt (Depends-on): Likewise.
4331         * modules/shutdown (Depends-on): Likewise.
4332         * modules/sigaction (Depends-on): Likewise.
4333         * modules/signbit (Depends-on): Likewise.
4334         * modules/sigprocmask (Depends-on): Likewise.
4335         * modules/sinl (Depends-on): Likewise.
4336         * modules/sleep (Depends-on): Likewise.
4337         * modules/snprintf (Depends-on): Likewise.
4338         * modules/snprintf-posix (Depends-on): Likewise.
4339         * modules/socket (Depends-on): Likewise.
4340         * modules/sprintf-posix (Depends-on): Likewise.
4341         * modules/sqrtl (Depends-on): Likewise.
4342         * modules/stat (Depends-on): Likewise.
4343         * modules/strchrnul (Depends-on): Likewise.
4344         * modules/strdup-posix (Depends-on): Likewise.
4345         * modules/strerror (Depends-on): Likewise.
4346         * modules/strerror_r-posix (Depends-on): Likewise.
4347         * modules/strndup (Depends-on): Likewise.
4348         * modules/strnlen (Depends-on): Likewise.
4349         * modules/strptime (Depends-on): Likewise.
4350         * modules/strsep (Depends-on): Likewise.
4351         * modules/strsignal (Depends-on): Likewise.
4352         * modules/strstr-simple (Depends-on): Likewise.
4353         * modules/strtod (Depends-on): Likewise.
4354         * modules/strtoimax (Depends-on): Likewise.
4355         * modules/strtok_r (Depends-on): Likewise.
4356         * modules/strtoumax (Depends-on): Likewise.
4357         * modules/symlink (Depends-on): Likewise.
4358         * modules/symlinkat (Depends-on): Likewise.
4359         * modules/tanl (Depends-on): Likewise.
4360         * modules/tcgetsid (Depends-on): Likewise.
4361         * modules/tmpfile (Depends-on): Likewise.
4362         * modules/trunc (Depends-on): Likewise.
4363         * modules/truncf (Depends-on): Likewise.
4364         * modules/truncl (Depends-on): Likewise.
4365         * modules/uname (Depends-on): Likewise.
4366         * modules/unlink (Depends-on): Likewise.
4367         * modules/unlockpt (Depends-on): Likewise.
4368         * modules/unsetenv (Depends-on): Likewise.
4369         * modules/usleep (Depends-on): Likewise.
4370         * modules/utimensat (Depends-on): Likewise.
4371         * modules/vasprintf (Depends-on): Likewise.
4372         * modules/vdprintf (Depends-on): Likewise.
4373         * modules/vdprintf-posix (Depends-on): Likewise.
4374         * modules/vfprintf-posix (Depends-on): Likewise.
4375         * modules/vprintf-posix (Depends-on): Likewise.
4376         * modules/vsnprintf (Depends-on): Likewise.
4377         * modules/vsnprintf-posix (Depends-on): Likewise.
4378         * modules/vsprintf-posix (Depends-on): Likewise.
4379         * modules/wcrtomb (Depends-on): Likewise.
4380         * modules/wcscasecmp (Depends-on): Likewise.
4381         * modules/wcscspn (Depends-on): Likewise.
4382         * modules/wcsdup (Depends-on): Likewise.
4383         * modules/wcsncasecmp (Depends-on): Likewise.
4384         * modules/wcsnrtombs (Depends-on): Likewise.
4385         * modules/wcspbrk (Depends-on): Likewise.
4386         * modules/wcsrtombs (Depends-on): Likewise.
4387         * modules/wcsspn (Depends-on): Likewise.
4388         * modules/wcsstr (Depends-on): Likewise.
4389         * modules/wcstok (Depends-on): Likewise.
4390         * modules/wcswidth (Depends-on): Likewise.
4391         * modules/wctob (Depends-on): Likewise.
4392         * modules/wctomb (Depends-on): Likewise.
4393         * modules/wctype (Depends-on): Likewise.
4394         * modules/wcwidth (Depends-on): Likewise.
4395         * modules/write (Depends-on): Likewise.
4396
4397 2011-05-03  Bruno Haible  <bruno@clisp.org>
4398
4399         Support for conditional dependencies.
4400         * doc/gnulib.texi (Module description): Document the syntax of
4401         conditional dependencies.
4402         * gnulib-tool: New option --conditional-dependencies.
4403         (func_usage): Document it.
4404         (cond_dependencies): New variable.
4405         (func_get_automake_snippet_conditional,
4406         func_get_automake_snippet_unconditional): New functions, extracted from
4407         func_get_automake_snippet.
4408         (func_get_automake_snippet): Use them.
4409         (sed_first_32_chars): New variable.
4410         (func_module_shellfunc_name): New function.
4411         (func_module_shellvar_name): New function.
4412         (func_module_conditional_name): New function.
4413         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
4414         func_cond_module_condition): New functions.
4415         (func_modules_transitive_closure): Add support for conditional
4416         dependencies.
4417         (func_emit_lib_Makefile_am): For a conditional module, enclose the
4418         conditional automake snippet in an automake conditional.
4419         (func_emit_autoconf_snippets): Emit shell functions that contain the
4420         code for conditional modules.
4421         (func_import, func_create_testdir): Update specification.
4422
4423 2011-05-03  Eric Blake  <eblake@redhat.com>
4424
4425         test-getaddrinfo: report error information
4426         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
4427
4428 2011-05-03  Jim Meyering  <meyering@redhat.com>
4429
4430         bootstrap: avoid build failure when $GZIP is set
4431         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
4432         program name.  If defined at all, it is supposed to list gzip options.
4433         Reported by Alan Curry in http://debbugs.gnu.org/8609
4434
4435 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
4436
4437         readme-release: new module with release instructions
4438         * modules/readme-release: New module.
4439         * top/README-release: New file, from coreutils, grep, diffutils.
4440         * MODULES.html.sh (Support for maintaining and releasing): Add it.
4441
4442 2011-05-02  Eric Blake  <eblake@redhat.com>
4443
4444         fflush: also replace fclose when fixing fflush
4445         * modules/fflush (Depends-on): Add fclose.
4446         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
4447         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
4448         memstreams with no backing fd.
4449         * doc/posix-functions/fclose.texi (fclose): Document the use of
4450         fflush module to fix the bug.
4451         * tests/test-fclose.c (main): Relax test when fclose is used in
4452         isolation.
4453
4454         fclose: add some tests
4455         * modules/fclose-tests: New test module.
4456         * tests/test-fclose.c: New file.
4457         * doc/posix-functions/fclose.texi (fclose): Document the bug.
4458
4459         fclose: reduced dependencies
4460         * modules/fclose (Depends-on): Switch from fflush/fseeko to
4461         simpler lseek.
4462         * lib/fclose.c (rpl_fclose): Likewise.
4463         Reported by Simon Josefsson.
4464
4465         exit: drop remaining clients
4466         * modules/argmatch (Depends-on): Replace exit with stdlib.
4467         * modules/copy-file (Depends-on): Likewise.
4468         * modules/execute (Depends-on): Likewise.
4469         * modules/exitfail (Depends-on): Likewise.
4470         * modules/obstack (Depends-on): Likewise.
4471         * modules/pagealign_alloc (Depends-on): Likewise.
4472         * modules/pipe-filter-gi (Depends-on): Likewise.
4473         * modules/pipe-filter-ii (Depends-on): Likewise.
4474         * modules/savewd (Depends-on): Likewise.
4475         * modules/spawn-pipe (Depends-on): Likewise.
4476         * modules/wait-process (Depends-on): Likewise.
4477         * modules/xsetenv (Depends-on): Likewise.
4478         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
4479         * modules/git-merge-changelog (Depends-on): Likewise.
4480         * modules/long-options (Depends-on): Likewise.
4481         * modules/pt_chown (Depends-on): Likewise.
4482         * modules/sysexits (Depends-on): Likewise.
4483
4484         freading: relax license from LGPLv3+ to LGPLv2+
4485         * modules/freading (License): Relax LGPL version.
4486
4487 2011-05-02  Bruno Haible  <bruno@clisp.org>
4488
4489         fchdir: Remove unused dependencies.
4490         * modules/fchdir (Depends-on): Remove include_next.
4491
4492 2011-05-02  Bruno Haible  <bruno@clisp.org>
4493
4494         gnulib-tool: Refactor.
4495         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
4496         from func_emit_autoconf_snippets.
4497         (func_emit_autoconf_snippets): Use it.
4498
4499 2011-05-02  Simon Josefsson  <simon@josefsson.org>
4500
4501         * NEWS: Document removal of 'exit'.
4502         * modules/exit: Remove file.
4503
4504 2011-05-01  Bruno Haible  <bruno@clisp.org>
4505
4506         Update DEPENDENCIES.
4507         * DEPENDENCIES (gettext): Recommend the newest release.
4508         Reported by Simon Josefsson.
4509
4510 2011-05-01  Bruno Haible  <bruno@clisp.org>
4511
4512         gnulib-tool: Reduce code duplication.
4513         * gnulib-tool (func_emit_autoconf_snippets): New function.
4514         (func_import, func_create_testdir): Use it.
4515
4516 2011-04-30  Eric Blake  <eblake@redhat.com>
4517
4518         fclose: don't fail on non-seekable input stream
4519         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
4520         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
4521         since fflush is allowed to fail in that case.
4522
4523 2011-04-30  Bruno Haible  <bruno@clisp.org>
4524
4525         dup3: cleanup
4526         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
4527
4528 2011-04-30  Bruno Haible  <bruno@clisp.org>
4529
4530         netdb: Make it work in C++ mode.
4531         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
4532         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
4533         module.
4534         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
4535         gl_MODULE_INDICATOR_FOR_TESTS.
4536         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
4537         * modules/netdb-c++-tests: New file.
4538         * tests/test-netdb-c++.cc: New file.
4539
4540 2011-04-30  Bruno Haible  <bruno@clisp.org>
4541
4542         New modules 'vfscanf', 'vscanf'.
4543         * modules/vfscanf: New file.
4544         * modules/vscanf: New file.
4545         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
4546         here.
4547         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
4548         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
4549
4550 2011-04-30  Bruno Haible  <bruno@clisp.org>
4551
4552         passfd: Add comments.
4553         * lib/passfd.c: Add comments about platforms.
4554
4555 2011-04-30  Bruno Haible  <bruno@clisp.org>
4556
4557         sys_uio: Make <sys/uio.h> self-contained.
4558         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
4559         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
4560
4561 2011-04-30  Bruno Haible  <bruno@clisp.org>
4562
4563         sys_socket: Ensure 'struct iovec' definition.
4564         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
4565         <sys/socket.h>.
4566         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
4567
4568 2011-04-30  Bruno Haible  <bruno@clisp.org>
4569
4570         sys_uio: Protect definition of 'struct iovec'.
4571         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
4572         it as a C struct.
4573
4574 2011-04-30  Bruno Haible  <bruno@clisp.org>
4575
4576         manywarnings: fix indentation
4577         * m4/manywarnings.m4: Indent by 2 spaces consistently.
4578
4579 2011-04-30  Pádraig Brady <P@draigBrady.com>
4580
4581         manywarnings: add -Wno-missing-field-initializers if needed.
4582         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
4583         option if it's needed to allow initialization with { 0, }
4584
4585 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
4586
4587         announce-gen: cosmetic improvement
4588         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
4589
4590 2011-04-29  Jim Meyering  <meyering@redhat.com>
4591
4592         vc-list-files: indent with spaces, not TABs
4593         * build-aux/vc-list-files: Convert leading TABs to spaces,
4594         to match the style of most other files in gnulib.
4595
4596         announce-gen: indent with spaces, not TABs
4597         * build-aux/announce-gen: Convert all TABs to spaces, to match
4598         the style of most other files in gnulib.
4599
4600 2011-04-29  Eric Blake  <eblake@redhat.com>
4601
4602         quotearg: avoid uninitialized variable use
4603         * lib/quotearg.c (quoting_options_from_style): Initialize
4604         remaining fields, and ensure that custom styles are only used via
4605         quoting_options rather than quoting_style.
4606
4607 2011-04-29  Jim Meyering  <meyering@redhat.com>
4608
4609         maint.mk: remove unused VC-tag variable
4610         * top/maint.mk (VC-tag): Remove unused variable.
4611
4612 2011-04-29  Bruno Haible  <bruno@clisp.org>
4613
4614         netdb: fix gai_strerror replacements
4615         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
4616         * modules/netdb: Substitute it.
4617
4618 2011-04-29  Jim Meyering  <meyering@redhat.com>
4619
4620         test-getcwd.c: avoid new set-but-not-used warning
4621         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
4622         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
4623         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
4624         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
4625
4626         test-hash.c: avoid a new shadowing warning
4627         * tests/test-hash.c (main): Don't shadow "dup".
4628
4629 2011-04-28  Eric Blake  <eblake@redhat.com>
4630
4631         getaddrinfo: fix gai_strerror signature
4632         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
4633         and work around mingw with UNICODE defined.
4634         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
4635         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
4636         * modules/netdb (Makefile.am): Substitute it.
4637         * lib/netdb.in.h (gai_strerror): Declare replacement.
4638         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
4639         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
4640         the fix.
4641
4642         getsockopt: avoid compiler warning
4643         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
4644         Reported by Matthias Bolte.
4645
4646         tests: drop unused link dependency
4647         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
4648         * modules/dirent-safer-tests (Makefile.am): Likewise.
4649         * modules/fdopendir-tests (Makefile.am): Likewise.
4650         * modules/mkfifoat-tests (Makefile.am): Likewise.
4651         * modules/openat-safer-tests (Makefile.am): Likewise.
4652         * modules/openat-tests (Makefile.am): Likewise.
4653         * modules/readlinkat-tests (Makefile.am): Likewise.
4654         * modules/symlinkat-tests (Makefile.am): Likewise.
4655         * modules/linkat-tests (Makefile.am): Likewise.
4656         (Depends-on): Switch to filenamecat-lgpl.
4657         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
4658         LIBINTL.
4659         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
4660         * tests/test-linkat.c (main): Don't require xalloc.
4661
4662         hash, mgetgroups: drop xalloc dependency
4663         * lib/hash.c (includes): Adjust includes.
4664         * lib/mgetgroups.c (includes): Likewise.
4665         (xgetgroups): Move...
4666         * lib/xgetgroups.c: ...to new file.
4667         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
4668         * modules/xgetgroups: New file, split from...
4669         * modules/mgetgroups: ...here.
4670         (Depends-on): Add xalloc-oversized.
4671         * modules/hash (Depends-on): Likewise.
4672         * modules/hash-tests (Depends-on): Drop xalloc.
4673         (test_hash_LDADD): Drop unused library.
4674         * tests/test-hash.c (main): Break xalloc dependency.
4675         (includes): Drop unused include.
4676
4677         xalloc-oversized: new module
4678         * modules/xalloc-oversized: New module.
4679         * modules/xalloc (Depends-on): Add it.
4680         * lib/xalloc.h (xalloc_oversized): Move...
4681         * lib/xalloc-oversized.h: ...into new file.
4682
4683         utimecmp: drop dependency on xmalloc
4684         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
4685         due to memory pressure.
4686         * modules/utimecmp (Depends-on): Drop xalloc.
4687
4688 2011-04-27  Eric Blake  <eblake@redhat.com>
4689
4690         getcwd: fix mingw bugs
4691         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
4692         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
4693         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
4694
4695 2011-04-27  Bruno Haible  <bruno@clisp.org>
4696
4697         mkstemps: Ensure declaration on MacOS X 10.5.
4698         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
4699         * doc/glibc-functions/mkstemps.texi: Document header file problem on
4700         MacOS X.
4701
4702 2011-04-27  Bruno Haible  <bruno@clisp.org>
4703
4704         mkstemp: More documentation.
4705         * doc/posix-functions/mkstemp.texi: Document header file problem on
4706         MacOS X.
4707
4708 2011-04-27  Bruno Haible  <bruno@clisp.org>
4709
4710         mkstemp: Tweak configure message when cross-compiling.
4711         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
4712         result as a guess.
4713
4714 2011-04-27  Bruno Haible  <bruno@clisp.org>
4715
4716         clean-temp: Clarify what it does.
4717         * lib/clean-temp.h: Add more comments.
4718         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
4719         module.
4720         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
4721         * doc/glibc-functions/mkstemps.texi: Likewise.
4722         * doc/glibc-functions/mkostemps.texi: Likewise.
4723
4724 2011-04-27  Eric Blake  <eblake@redhat.com>
4725
4726         fchdir: avoid extra chdir and fix test
4727         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
4728         getcwd-lgpl.
4729         * lib/fchdir.c (get_name): Any absolute name will do; it does not
4730         have to be canonical.
4731         (canonicalize_file_name): Drop unused macro.
4732         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
4733
4734         filenamecat-lgpl: fix licence
4735         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
4736         when it was first created.
4737
4738         linkat, renameat: add missing dependency
4739         * modules/linkat (Depends-on): Require getcwd-lgpl.
4740         * modules/renameat (Depends-on): Likewise.
4741
4742         tests: reduce dependencies
4743         * tests/test-linkat.c (main): Use lighter-weight getcwd.
4744         * tests/test-renameat.c (main): Likewise.
4745         * modules/linkat-tests (Depends-on): Relax dependency.
4746         * modules/renameat-tests (Depends-on): Likewise.
4747         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
4748         dependency explicit.
4749
4750         save-cwd: reduce default dependency
4751         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
4752         * lib/save-cwd.c: Update comments.
4753         * NEWS: Document the semantic change.
4754
4755         getcwd: enhance tests
4756         * tests/test-getcwd-lgpl.c: New file, taken from...
4757         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
4758         repeat long path stress tests from m4 probe.
4759         * modules/getcwd-lgpl-tests: New module.
4760         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
4761         * m4/getcwd-abort-bug.m4: Update comment.
4762         * m4/getcwd-path-max.m4: Likewise.
4763
4764         getcwd-lgpl: new module
4765         * modules/getcwd-lgpl: New module.
4766         * lib/getcwd-lgpl.c: New file.
4767         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4768         * MODULES.html.sh (lacking POSIX:2008): Likewise.
4769         * modules/getcwd (configure.ac): Set C witness.
4770         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
4771
4772         getcwd: tweak comments
4773         * m4/getcwd-abort-bug.m4: Fix comments.
4774         * m4/getcwd-path-max.m4: Likewise.
4775         * m4/getcwd.m4: Likewise.
4776
4777 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4778         and Eric Blake  <eblake@redhat.com>
4779
4780         mkstemp: replace if system version uses wrong permissions
4781         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
4782         read/write mode bits set in file created by mkstemp.
4783         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
4784
4785 2011-04-27  Eric Blake  <eblake@redhat.com>
4786
4787         passfd: avoid compiler warning
4788         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
4789         Reported by Laine Stump.
4790
4791 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
4792
4793         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
4794         required by the NetBSD (and perhaps other 4.4BSD derived) join.
4795
4796 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4797         and Eric Blake  <eblake@redhat.com>
4798
4799         mkstemp: mention clean-temp module
4800         * lib/mkstemp.c: Add comment.
4801         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
4802
4803 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
4804
4805         inttypes: also provide default values for 32-bit tests
4806         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
4807         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
4808
4809 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4810
4811         strtoumax: remove dependency on strtoimax
4812         This is like the strtoull change of yesterday.
4813         * modules/strtoumax (Files): Add lib/strtoimax.c.
4814         (Depends-on): Remove strtoimax and add verify.
4815
4816         inttypes-incomplete: new module
4817         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
4818         all but the PRI* and SCN* parts of gl_INTTYPES_H.
4819         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
4820         of gl_INTTYPES_H.
4821         (gl_INTTYPES_H): Rewrite in terms of these new macros.
4822         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
4823         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
4824         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
4825         * modules/strtoumax, modules/xstrtol (Depends-on):
4826         Depend on inttypes-incomplete, not inttypes.
4827         * modules/inttypes-incomplete: New module, containing the contents
4828         of the old modules/inttypes module, except that the Files: section
4829         omits m4/inttypes-pri.m4, and the configure.ac section invokes
4830         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
4831         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
4832         (Depends-on): Depend only on inttypes-incomplete.
4833         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
4834
4835         inttypes: omit now-redundant strtoimax and strtoumax work
4836         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
4837         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
4838
4839         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
4840         This supports apps that need pointers to strtoimax and strtoumax,
4841         and ports to HP-UX 11.00 64.bit, which has macros that expand to
4842         nonexistent functions.  See
4843         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
4844         et seq.
4845         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
4846         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
4847         a macro.
4848         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4849
4850 2011-04-25  Simon Josefsson  <simon@josefsson.org>
4851
4852         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
4853
4854 2011-04-25  Bruno Haible  <bruno@clisp.org>
4855
4856         strtol, strtoul: Mark modules as obsolete.
4857         * modules/strtol (Status, Notice): New sections.
4858         * modules/strtoul (Status, Notice): New sections.
4859
4860 2011-04-25  Bruno Haible  <bruno@clisp.org>
4861
4862         strtod: Remove check for strtod, unless supporting old platforms.
4863         * modules/strtod-obsolete: New file.
4864         * m4/strtod-obsolete.m4: New file.
4865         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
4866         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
4867         * modules/strtod (Depends-on): Add strtod-obsolete.
4868         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
4869
4870 2011-04-25  Bruno Haible  <bruno@clisp.org>
4871
4872         strcase: Make module obsolete.
4873         * modules/strcase (Status, Notice): New sections.
4874
4875 2011-04-25  Bruno Haible  <bruno@clisp.org>
4876
4877         dup2: Remove check for dup2, unless supporting old obsolete platforms.
4878         * modules/dup2-obsolete: New file.
4879         * m4/dup2-obsolete.m4: New file.
4880         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
4881         gl_FUNC_DUP2_OBSOLETE is not also defined.
4882         * modules/dup2 (Depends-on): Add dup2-obsolete.
4883         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
4884
4885 2011-04-25  Bruno Haible  <bruno@clisp.org>
4886
4887         strnlen: Avoid memchr related link error on old obsolete platforms.
4888         * modules/memchr-obsolete: New file.
4889         * m4/memchr-obsolete.m4: New file.
4890         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
4891         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
4892         * modules/memchr (Depends-on): Add memchr-obsolete.
4893         * modules/strnlen (Depends-on): Likewise.
4894         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
4895
4896 2011-04-25  Jim Meyering  <meyering@redhat.com>
4897
4898         maint.mk: makefile_at_at_check extend and clean up
4899         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
4900         in addition to */Makefile.am.
4901         Exempt legitimate uses of @VAR@ notation, e.g.,
4902         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
4903         Remove obsolete coreutils-specific comment.
4904         Prompted by discussion here:
4905         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
4906
4907 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
4908
4909         strtoul: remove dependency on strtol
4910         This is so that 'configure' need not check for strtol merely because
4911         the application needs strtoul.
4912         * modules/strtoul (Files): Add lib/strtol.c.
4913         (Depends-on): Remove strtol.
4914
4915         strtoull: remove dependency on strtoul
4916         This is like the strtoll change.
4917         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
4918         (Depends-on): Remove strtoul.
4919
4920         strtoll: remove dependency on strtol
4921         This is so that 'configure' need not check for strtol merely because
4922         the application needs strtoll.
4923         * modules/strtoll (Files): Add lib/strtol.c.
4924         (Depends-on): Remove strtol.
4925
4926 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4927
4928         inttypes: Move some configure check to module 'imaxdiv'.
4929         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
4930         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
4931         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
4932
4933 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4934
4935         inttypes: Move some configure check to module 'imaxabs'.
4936         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
4937         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
4938         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
4939
4940 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4941
4942         inttypes: Remove configure tests that are not needed since 2009-12-31.
4943         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
4944         gl_cv_header_working_inttypes_h.
4945
4946 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4947
4948         * modules/strnlen (Depends-on): Remove memchr.
4949         The strnlen implementation doesn't need the memchr module's fixes; see
4950         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
4951
4952         strtol: remove dependency on wchar
4953         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
4954         * modules/strtol (Depends-on): Remove wchar.
4955
4956 2011-04-21  Eric Blake  <eblake@redhat.com>
4957
4958         passfd: fix test regression on Linux
4959         * modules/passfd-tests (configure.ac): Correct socketpair check.
4960
4961         passfd: speed up configure and drop unused code
4962         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
4963         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
4964         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
4965         Instead of probing at configure for unix_scm_rights_bsd44_way,
4966         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
4967         check to a struct member probe.
4968         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
4969         (sendfd, recvfd): Update preprocessor checks.
4970         * modules/passfd (Files): Reflect rename, and drop unused file.
4971         (Depends-on): Drop unused dependency.
4972
4973         passfd: allow compilation on mingw
4974         * modules/sys_socket (Depends-on): Add sys_uio.
4975         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
4976         iovec and a minimal struct msghdr.
4977         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
4978         * tests/test-sys_socket.c (main): Enhance test.
4979         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
4980         guaranteed to provide what we need.
4981         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
4982         * modules/passfd-tests (Depends-on): Add sys_wait.
4983         * tests/test-passfd.c (main): Skip test on mingw, for now.
4984         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
4985         partial 'struct msghdr' implementation.
4986
4987         sys_uio: new module
4988         * modules/sys_uio: New module.
4989         * modules/sys_uio-tests: Likewise.
4990         * lib/sys_uio.in.h: New file.
4991         * m4/sys_uio_h.m4: Likewise.
4992         * tests/test-sys_uio.c: Likewise.
4993         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
4994         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
4995
4996 2011-04-20  Jim Meyering  <meyering@redhat.com>
4997
4998         useless-if-before-free: avoid false-positive
4999         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
5000         disjunct so that it too requires a terminating ";".  Without that,
5001         this script would identify as useless one statement from gcc that
5002         was not:
5003           if (aligned_ptr)
5004             free (((void **) aligned_ptr) [-1]);
5005
5006 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
5007
5008         doc: update users.txt.
5009         * users.txt: Add barcode.
5010
5011 2011-04-19  Bruno Haible  <bruno@clisp.org>
5012
5013         ioctl: Remove link dependency on native Windows.
5014         * lib/fd-hook.h: Renamed from lib/close-hook.h.
5015         (gl_close_fn, gl_ioctl_fn): New types.
5016         (struct fd_hook): Renamed from struct close_hook. Change type of
5017         private_close_fn field. Add private_ioctl_fn field.
5018         (close_hook_fn): Add parameter for primary close method.
5019         (execute_close_hooks, execute_all_close_hooks): Likewise.
5020         (ioctl_hook_fn): New type.
5021         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
5022         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
5023         argument.
5024         (unregister_fd_hook): Renamed from unregister_close_hook.
5025         * lib/fd-hook.c: Renamed from lib/close-hook.c.
5026         Don't include <unistd.h>.
5027         (close): Remove undef.
5028         (anchor): Update.
5029         (execute_close_hooks): Add argument for primary close method.
5030         (execute_all_close_hooks): Likewise.
5031         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
5032         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
5033         argument. Allow each argument to be NULL.
5034         (unregister_fd_hook): Renamed from unregister_close_hook.
5035         * lib/close.c (rpl_close): Pass 'close' function pointer to
5036         execute_all_close_hooks.
5037         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
5038         (primary_ioctl): New function.
5039         (ioctl): Don't call ioctlsocket here. Instead, call
5040         execute_all_ioctl_hooks.
5041         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
5042         close method.
5043         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
5044         (fd_sockets_hook): Renamed from close_sockets_hook.
5045         (gl_sockets_startup, gl_sockets_cleanup): Update.
5046         * modules/fd-hook: Renamed from modules/close-hook. Update.
5047         * modules/close (Depends-on): Add fd-hook, remove close-hook.
5048         * modules/sockets (Depends-on): Likewise.
5049         * modules/ioctl (Depends-on): Add fd-hook.
5050         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
5051         GNULIB_SOCKET.
5052
5053 2011-04-19  Bruno Haible  <bruno@clisp.org>
5054
5055         Move the support of O_NONBLOCK in open() to the 'open' module.
5056         * modules/nonblocking (Depends-on): Remove 'open'.
5057         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
5058         gl_cv_have_open_O_NONBLOCK.
5059         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
5060         O_NONBLOCK support.
5061         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
5062
5063 2011-04-17  Bruno Haible  <bruno@clisp.org>
5064
5065         pipe2: Simplify code.
5066         * lib/pipe2.c (pipe2): Reduce code duplication.
5067
5068 2011-04-17  Bruno Haible  <bruno@clisp.org>
5069
5070         nonblocking: Add comment.
5071         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
5072
5073 2011-04-17  Bruno Haible  <bruno@clisp.org>
5074
5075         nonblocking: Add tests for sockets.
5076         * tests/test-nonblocking-socket.sh: New file.
5077         * tests/test-nonblocking-socket-main.c: New file.
5078         * tests/test-nonblocking-socket-child.c: New file.
5079         * tests/test-nonblocking-socket.h: New file.
5080         * tests/socket-server.h: New file.
5081         * tests/socket-client.h: New file.
5082         * modules/nonblocking-socket-tests: New file.
5083         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
5084
5085 2011-04-17  Bruno Haible  <bruno@clisp.org>
5086
5087         nonblocking: Add tests for pipes.
5088         * tests/test-nonblocking-pipe.sh: New file.
5089         * tests/test-nonblocking-pipe-main.c: New file.
5090         * tests/test-nonblocking-pipe-child.c: New file.
5091         * tests/test-nonblocking-pipe.h: New file.
5092         * tests/test-nonblocking-writer.h: New file.
5093         * tests/test-nonblocking-reader.h: New file.
5094         * tests/test-nonblocking-misc.h: New file.
5095         * modules/nonblocking-pipe-tests: New file.
5096         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
5097
5098 2011-04-16  Bruno Haible  <bruno@clisp.org>
5099
5100         gettext: Clarify the needed programmer actions.
5101         * modules/gettext (Notice): New field.
5102         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
5103
5104 2011-04-16  Bruno Haible  <bruno@clisp.org>
5105
5106         strchrnul: Tweak last commit.
5107         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
5108         bug.
5109         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
5110         as in _GL_FUNCDECL_SYS.
5111         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
5112         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
5113
5114 2011-04-15  Eric Blake  <eblake@redhat.com>
5115
5116         strchrnul: work around cygwin bug
5117         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
5118         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
5119         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
5120         * modules/string (Makefile.am): Substitute it.
5121         * lib/string.in.h (strchrnul): Use it.
5122
5123 2011-04-15  Bruno Haible  <bruno@clisp.org>
5124
5125         Don't require lib/stdio-write.c when only module 'stdio' is used.
5126         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
5127         invocation.
5128         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
5129
5130 2011-04-14  Bruno Haible  <bruno@clisp.org>
5131
5132         Support non-blocking pipe I/O in read() on native Windows.
5133         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
5134         (read): New declaration.
5135         * lib/read.c: New file.
5136         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
5137         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
5138         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
5139         vscanf): New declarations.
5140         * lib/stdio-read.c: New file.
5141         * m4/read.m4: New file.
5142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
5143         REPLACE_READ.
5144         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
5145         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5146         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
5147         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
5148         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
5149         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5150         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
5151         * modules/read: New file.
5152         * modules/nonblocking (Files): Add lib/stdio-read.c.
5153         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
5154         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
5155         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5156         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
5157         * modules/pread (Depends-on): Add read.
5158         * modules/safe-read (Depends-on): Likewise.
5159         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
5160         gets, scanf, vfscanf, vscanf): Verify signatures.
5161         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
5162         problem with non-blocking pipes.
5163         * doc/posix-functions/fgetc.texi: Likewise.
5164         * doc/posix-functions/fgets.texi: Likewise.
5165         * doc/posix-functions/fread.texi: Likewise.
5166         * doc/posix-functions/fscanf.texi: Likewise.
5167         * doc/posix-functions/getc.texi: Likewise.
5168         * doc/posix-functions/getchar.texi: Likewise.
5169         * doc/posix-functions/gets.texi: Likewise.
5170         * doc/posix-functions/scanf.texi: Likewise.
5171         * doc/posix-functions/vfscanf.texi: Likewise.
5172         * doc/posix-functions/vscanf.texi: Likewise.
5173
5174 2011-04-14  Bruno Haible  <bruno@clisp.org>
5175
5176         Support non-blocking pipe I/O in write() on native Windows.
5177         * lib/write.c (rpl_write): Split a write request that failed merely
5178         because the byte count was larger than the pipe buffer's size.
5179         * doc/posix-functions/write.texi: Mention the problem with large byte
5180         counts.
5181
5182 2011-04-14  Bruno Haible  <bruno@clisp.org>
5183
5184         wchar: Ensure that wchar_t gets defined on uClibc.
5185         * lib/wchar.in.h: On uClibc, include <stddef.h>.
5186         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
5187
5188 2011-04-13  Bruno Haible  <bruno@clisp.org>
5189
5190         safe-write, full-read: Avoid unnecessary compilation units.
5191         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
5192         (Depends-on): Remove safe-read. Add ssize_t.
5193         * modules/full-read (Files): Add lib/full-write.c.
5194         (Depends-on): Add full-write.
5195
5196 2011-04-13  Bruno Haible  <bruno@clisp.org>
5197
5198         Support non-blocking pipe I/O and SIGPIPE in pwrite().
5199         * modules/pwrite (Depends-on): Add 'write'.
5200
5201 2011-04-13  Bruno Haible  <bruno@clisp.org>
5202
5203         Support non-blocking pipe I/O in write() on native Windows.
5204         * lib/unistd.in.h (write): Enable replacement also if
5205         GNULIB_UNISTD_H_NONBLOCKING is 1.
5206         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
5207         (rpl_write): When failing to write on a non-blocking pipe, change
5208         errno from ENOSPC to EAGAIN.
5209         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
5210         putchar, puts, vfprintf, vprintf): Enable replacement also if
5211         GNULIB_STDIO_H_NONBLOCKING is 1.
5212         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
5213         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
5214         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
5215         CALL_WITH_SIGPIPE_EMULATION.
5216         (CALL_WITH_SIGPIPE_EMULATION): Use them.
5217         * m4/nonblocking.m4: New file.
5218         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
5219         for non-blocking I/O support.
5220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5221         GNULIB_UNISTD_H_NONBLOCKING.
5222         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
5223         required for non-blocking I/O support.
5224         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
5225         * modules/nonblocking (Files): Add m4/nonblocking.m4,
5226         lib/stdio-write.c, m4/asm-underscore.m4.
5227         (Depends-on): Add stdio, unistd.
5228         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
5229         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
5230         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
5231         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
5232         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
5233         problem with non-blocking pipes.
5234         * doc/posix-functions/fputc.texi: Likewise.
5235         * doc/posix-functions/fputs.texi: Likewise.
5236         * doc/posix-functions/fwrite.texi: Likewise.
5237         * doc/posix-functions/printf.texi: Likewise.
5238         * doc/posix-functions/putc.texi: Likewise.
5239         * doc/posix-functions/putchar.texi: Likewise.
5240         * doc/posix-functions/puts.texi: Likewise.
5241         * doc/posix-functions/vfprintf.texi: Likewise.
5242         * doc/posix-functions/vprintf.texi: Likewise.
5243         * doc/posix-functions/write.texi: Likewise.
5244
5245 2011-04-10  Jim Meyering  <meyering@redhat.com>
5246
5247         maint.mk: prohibit doubled words
5248         Detect them also when they're separated by a newline.
5249         There are 3 ways to customize it:
5250           - disable the test on a per file basis, as usual with rules using
5251             $(VC_LIST_EXCEPT)
5252           - replace the default doubled-word-selecting regexp (affects all files)
5253           - ignore a particular file-vs-doubled-word match
5254         I nearly used that last one to ignore the "is is" match in
5255         coreutils' NEWS file, since the text was "ls -is is ..."
5256         To do that, I would have added this line to cfg.mk:
5257           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
5258         but it would have ignored any "is is" match in NEWS.
5259         Low probability, but still...
5260         Instead, I changed the text, slightly:
5261           -  ls -is is now consistent with ls -lis in ignoring values returned
5262           +  "ls -is" is now consistent with ls -lis in ignoring values returned
5263         * top/maint.mk (prohibit_double_word_RE_): Provide default.
5264         (prohibit_doubled_word_): Define.
5265         (sc_prohibit_doubled_word): New rule.
5266         (sc_prohibit_the_the): Remove.  Subsumed by the above.
5267
5268 2011-04-10  Jim Meyering  <meyering@redhat.com>
5269
5270         maint: fix doubled-word typo in comment
5271         * m4/gethostname.m4: s/is is/it is/
5272         * m4/getdomainname.m4: Likewise.
5273
5274 2011-04-10  Jim Meyering  <meyering@redhat.com>
5275
5276         maint: remove doubled word: s/it it/it/
5277         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
5278
5279 2011-04-10  Jim Meyering  <meyering@redhat.com>
5280
5281         maint.mk: remove useless semicolon and backslash
5282         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
5283         semicolon and backslash.
5284
5285 2011-04-10  Bruno Haible  <bruno@clisp.org>
5286
5287         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
5288         * modules/stdint-tests (Depends-on): Add wchar.
5289
5290 2011-04-10  Jim Meyering  <meyering@redhat.com>
5291
5292         maint: remove doubled words in comments, e.g., s/a a/a/
5293         * lib/strptime.c (day_of_the_week): s/the the/the/
5294         * tests/test-chown.h (test_chown): s/a a/a/
5295
5296         test-chown.h: correct a cast
5297         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
5298         when the destination is a stat.st_gid.
5299
5300 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
5301
5302         getaddrinfo: Fix test for sa_len member.
5303         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
5304         include <sys/types.h> before <sys/socket.h>.
5305
5306 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5307
5308         maint: change "can not" to "cannot"
5309         * doc/posix-functions/iconv.texi (iconv): This one crossed line
5310         boundaries.
5311
5312 2011-04-09  Jim Meyering  <meyering@redhat.com>
5313
5314         maint: change "a a" to "a"
5315         * tests/test-lchown.h (test_lchown): s/a a/a/
5316
5317         maint.mk: prohibit \<the the\>
5318         * top/maint.mk (sc_prohibit_the_the): New rule.
5319
5320         maint: fix "the the" in comment
5321         * lib/count-one-bits.h: s/the the/the/
5322
5323         maint: change "can not" to "cannot"
5324         But do not change the occurrences in maintain.texi or in
5325         build-aux/po/Makefile.in.in, which I presume comes from gettext.
5326         * doc/gnulib-tool.texi: s/can not/cannot/
5327         * doc/posix-functions/accept.texi (accept): Likewise.
5328         * doc/posix-functions/socket.texi (socket): Likewise.
5329         * lib/mbrtowc.c: Likewise.
5330
5331         maint.mk: prohibit use of "can not"
5332         * top/maint.mk (sc_prohibit_can_not): New rule.
5333         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
5334
5335 2011-04-09  Bruno Haible  <bruno@clisp.org>
5336
5337         careadlinkat: Guard against misuse of careadlinkatcwd.
5338         * lib/careadlinkat.c: Include <stdlib.h>.
5339         (careadlinkatcwd): Check that the fd argument is as expected.
5340
5341 2011-04-09  Bruno Haible  <bruno@clisp.org>
5342
5343         careadlinkat: Use common coding style.
5344         * lib/careadlinkat.c: Move gnulib includes after system includes.
5345
5346 2011-04-09  Bruno Haible  <bruno@clisp.org>
5347
5348         careadlinkat: Clarify specification.
5349         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
5350         (careadlinkatcwd): Add comment.
5351         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
5352
5353 2011-04-09  Bruno Haible  <bruno@clisp.org>
5354
5355         areadlinkat: Avoid link error on many platforms.
5356         * modules/areadlinkat (Depends-on): Add areadlink.
5357
5358 2011-04-09  Bruno Haible  <bruno@clisp.org>
5359
5360         allocator, careadlinkat: Fix double-inclusion guard.
5361         * lib/allocator.h: Fix double-inclusion guard.
5362         * lib/careadlinkat.h: Likewise.
5363
5364 2011-04-09  Bruno Haible  <bruno@clisp.org>
5365
5366         relocatable-prog-wrapper: Update after module 'areadlink' changed.
5367         * lib/relocwrapper.c: Update dependencies hierarchy.
5368         * build-aux/install-reloc: Update list of files to be compiled.
5369         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
5370         lib/allocator.[hc].
5371
5372 2011-04-08  Eric Blake  <eblake@redhat.com>
5373
5374         strftime: silence gnulib-tool warning
5375         * modules/strftime-tests (Depends-on): Drop automatic dependency.
5376
5377 2011-04-08  Bruno Haible  <bruno@clisp.org>
5378
5379         verify: Fix syntax error with GCC 4.6 in C++ mode.
5380         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
5381         (HAVE_STATIC_ASSERT): New macro.
5382         (verify_true, verify): Use 'static_assert' if it is supported and
5383         '_Static_assert' is not supported.
5384
5385 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
5386
5387         allocator: New module.
5388         * modules/allocator, lib/allocator.c: New files.
5389         * lib/allocator.h (stdlib_allocator): New decl.
5390         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
5391         Remove.  Do not include <stdlib.h>.
5392         (careadlinkat): Use stdlib_allocator instead of rolling our own.
5393         * modules/careadlinkat (Files): Remove lib/allocator.h.
5394         (Depends-on): Add allocator.
5395
5396         stdlib: let modules use system malloc, realloc
5397         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
5398         if !_GL_USE_STDLIB_ALLOC.
5399         (malloc, realloc): Limit this change to a smaller scope.
5400
5401         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
5402         (malloc, realloc): Don't #undef; no longer needed.
5403         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5404         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5405         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
5406         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5407         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5408         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5409         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5410         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
5411
5412         careadlinkat: rename members to avoid problem
5413         * lib/allocator.h (struct allocator): Rename members from
5414         malloc/realloc to allocate/reallocate, to avoid problems if malloc
5415         and realloc are #define'd.  Reported by Eric Blake in
5416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
5417         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
5418
5419 2011-04-08  Eric Blake  <eblake@redhat.com>
5420
5421         nonblocking: reduce dependency
5422         * tests/test-nonblocking.c: Only test sockets when in use.
5423         * modules/nonblocking-tests (Depends-on): Drop socket.
5424         (Makefile.am): Link even if sockets are not present.
5425         * modules/pipe2-tests (Makefile.am): Likewise.
5426         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
5427
5428         pipe2: fix O_NONBLOCK support on mingw
5429         * modules/pipe2 (Depends-on): Add nonblocking.
5430         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
5431         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
5432         * tests/test-nonblocking.c (main): Likewise.
5433         * modules/pipe2-tests (Makefile.am): Avoid link failure.
5434
5435         fcntl-h: fix O_ACCMODE on cygwin
5436         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
5437         * lib/fcntl.in.h (O_ACCMODE): Fix it.
5438
5439         pipe-filter: drop O_NONBLOCK workarounds
5440         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
5441         * modules/pipe-filter-ii (Depends-on): Likewise.
5442         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
5443
5444         nonblocking: provide O_NONBLOCK for mingw
5445         * modules/nonblocking (Depends-on): Add open.
5446         (configure.ac): Set new witness macro.
5447         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
5448         * modules/fcntl-h (Makefile.am): Substitute it.
5449         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
5450         nonblocking module is in use.
5451         * lib/nonblocking.c: Adjust portability test.
5452         * lib/open.c (open): Don't let native open see gnulib flag.
5453         * tests/test-fcntl-h.c (main): Enhance test.
5454         * tests/test-open.h (test_open): Likewise.
5455         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
5456
5457         careadlinkat: fix compilation error on mingw
5458         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
5459         within struct allocator.
5460
5461 2011-04-06  Eric Blake  <eblake@redhat.com>
5462
5463         binary-io: relicense under LGPLv2+
5464         * modules/binary-io (License): Relax to LGPLv2+.
5465         Requested for libvirt, and required by pipe2.
5466
5467 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
5468
5469         verify: use _Static_assert if available
5470         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
5471         (verify_true, verify): Use it if available.  This generates better
5472         diagnostics with GCC 4.6.0 and later.
5473
5474 2011-04-05  Bruno Haible  <bruno@clisp.org>
5475
5476         Remove leftover generated .h files after config.status changed.
5477
5478         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
5479         GL_GENERATE_ALLOCA_H.
5480         * modules/alloca-opt (Makefile.am): Remove alloca.h if
5481         GL_GENERATE_ALLOCA_H evaluates to false.
5482
5483         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
5484         GL_GENERATE_ARGZ_H.
5485         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
5486         evaluates to false.
5487
5488         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
5489         GL_GENERATE_BYTESWAP_H.
5490         * modules/byteswap (Makefile.am): Remove byteswap.h if
5491         GL_GENERATE_BYTESWAP_H evaluates to false.
5492
5493         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
5494         GL_GENERATE_ERRNO_H.
5495         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
5496         evaluates to false.
5497
5498         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
5499         GL_GENERATE_FLOAT_H.
5500         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
5501         evaluates to false.
5502
5503         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
5504         GL_GENERATE_FNMATCH_H.
5505         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
5506         GL_GENERATE_FNMATCH_H evaluates to false.
5507
5508         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
5509         GL_GENERATE_GLOB_H.
5510         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
5511         evaluates to false.
5512
5513         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
5514         automake conditional GL_GENERATE_ICONV_H.
5515         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
5516         evaluates to false.
5517
5518         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
5519         GL_GENERATE_NETINET_IN_H.
5520         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
5521         GL_GENERATE_NETINET_IN_H evaluates to false.
5522
5523         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
5524         conditional GL_GENERATE_PTHREAD_H.
5525         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
5526         * modules/pthread (Makefile.am): Remove pthread.h if
5527         GL_GENERATE_PTHREAD_H evaluates to false.
5528
5529         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
5530         GL_GENERATE_SCHED_H.
5531         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
5532         evaluates to false.
5533
5534         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
5535         conditional GL_GENERATE_SELINUX_CONTEXT_H.
5536         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
5537         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
5538
5539         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
5540         GL_GENERATE_STDARG_H.
5541         * modules/stdarg (Makefile.am): Remove stdarg.h if
5542         GL_GENERATE_STDARG_H evaluates to false.
5543
5544         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
5545         GL_GENERATE_STDBOOL_H.
5546         * modules/stdbool (Makefile.am): Remove stdbool.h if
5547         GL_GENERATE_STDBOOL_H evaluates to false.
5548
5549         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
5550         conditional GL_GENERATE_STDDEF_H.
5551         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
5552         * modules/stddef (Makefile.am): Remove stddef.h if
5553         GL_GENERATE_STDDEF_H evaluates to false.
5554
5555         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
5556         GL_GENERATE_STDINT_H.
5557         * modules/stdint (Makefile.am): Remove stdint.h if
5558         GL_GENERATE_STDINT_H evaluates to false.
5559
5560         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
5561         GL_GENERATE_SYSEXITS_H.
5562         * modules/sysexits (Makefile.am): Remove sysexits.h if
5563         GL_GENERATE_SYSEXITS_H evaluates to false.
5564
5565         Reported by Karl Berry and Ralf Wildenhues.
5566
5567 2011-04-05  Bruno Haible  <bruno@clisp.org>
5568
5569         Ensure to rebuild generated .h files when config.status has changed.
5570         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
5571         config.status.
5572         * modules/ctype (Makefile.am): Likewise.
5573         * modules/dirent (Makefile.am): Likewise.
5574         * modules/errno (Makefile.am): Likewise.
5575         * modules/fcntl-h (Makefile.am): Likewise.
5576         * modules/float (Makefile.am): Likewise.
5577         * modules/getopt-posix (Makefile.am): Likewise.
5578         * modules/glob (Makefile.am): Likewise.
5579         * modules/iconv-h (Makefile.am): Likewise.
5580         * modules/inttypes (Makefile.am): Likewise.
5581         * modules/langinfo (Makefile.am): Likewise.
5582         * modules/locale (Makefile.am): Likewise.
5583         * modules/math (Makefile.am): Likewise.
5584         * modules/netdb (Makefile.am): Likewise.
5585         * modules/netinet_in (Makefile.am): Likewise.
5586         * modules/poll-h (Makefile.am): Likewise.
5587         * modules/pthread (Makefile.am): Likewise.
5588         * modules/pty (Makefile.am): Likewise.
5589         * modules/sched (Makefile.am): Likewise.
5590         * modules/search (Makefile.am): Likewise.
5591         * modules/selinux-h (Makefile.am): Likewise.
5592         * modules/signal (Makefile.am): Likewise.
5593         * modules/spawn (Makefile.am): Likewise.
5594         * modules/stdarg (Makefile.am): Likewise.
5595         * modules/stdbool (Makefile.am): Likewise.
5596         * modules/stddef (Makefile.am): Likewise.
5597         * modules/stdint (Makefile.am): Likewise.
5598         * modules/stdio (Makefile.am): Likewise.
5599         * modules/stdlib (Makefile.am): Likewise.
5600         * modules/string (Makefile.am): Likewise.
5601         * modules/strings (Makefile.am): Likewise.
5602         * modules/sys_file (Makefile.am): Likewise.
5603         * modules/sys_ioctl (Makefile.am): Likewise.
5604         * modules/sys_select (Makefile.am): Likewise.
5605         * modules/sys_socket (Makefile.am): Likewise.
5606         * modules/sys_stat (Makefile.am): Likewise.
5607         * modules/sys_time (Makefile.am): Likewise.
5608         * modules/sys_times (Makefile.am): Likewise.
5609         * modules/sys_utsname (Makefile.am): Likewise.
5610         * modules/sys_wait (Makefile.am): Likewise.
5611         * modules/sysexits (Makefile.am): Likewise.
5612         * modules/termios (Makefile.am): Likewise.
5613         * modules/time (Makefile.am): Likewise.
5614         * modules/unistd (Makefile.am): Likewise.
5615         * modules/wchar (Makefile.am): Likewise.
5616         * modules/wctype-h (Makefile.am): Likewise.
5617         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
5618
5619 2011-04-05  Bruno Haible  <bruno@clisp.org>
5620
5621         pipe2: Relicense under LGPLv2+.
5622         * modules/pipe2 (License): Change to LGPLv2+.
5623         Requested by Eric Blake, for libvirt.
5624
5625 2011-04-05  Bruce Korb  <bkorb@gnu.org>
5626
5627         bootstrap: compute gnulib_extra_files after updating build_aux
5628         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
5629         change build_aux or also supply gnulib_extra_files.  Handle correctly.
5630
5631 2011-04-05  Eric Blake  <eblake@redhat.com>
5632
5633         bootstrap: preserve git whitelist item sorting
5634         * build-aux/bootstrap (sort_patterns): New function.
5635         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
5636
5637 2011-04-05  Simon Josefsson  <simon@josefsson.org>
5638
5639         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
5640         sc_space_tab check.
5641
5642 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
5643
5644         areadlink, areadlinkat: rewrite in terms of careadlinkat
5645         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
5646         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
5647         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
5648         (malloc, realloc): Remove #undefs.
5649         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
5650         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
5651         readlink, ssize_t, stdint, unistd.
5652         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
5653         areadlink, stdint.
5654
5655         careadlinkat: new module
5656         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
5657         * modules/careadlinkat: New files, written by me with
5658         a review and feedback from Ben Pfaff in
5659         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
5660
5661 2011-04-01  Bruno Haible  <bruno@clisp.org>
5662
5663         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
5664         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
5665         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
5666         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
5667         Reported by Bruce Korb <bruce.korb@gmail.com>.
5668
5669 2011-04-01  Bruno Haible  <bruno@clisp.org>
5670
5671         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
5672         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
5673         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
5674         * modules/wcpcpy (Depends-on): Add extensions.
5675         * modules/wcpncpy (Depends-on): Likewise.
5676         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
5677         systems.
5678         * doc/posix-functions/wcpncpy.texi: Likewise.
5679         * doc/posix-functions/wcwidth.texi: Likewise.
5680
5681 2011-03-31  Eric Blake  <eblake@redhat.com>
5682
5683         nonblocking: fix mingw test failures
5684         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
5685         non-blocking flag on regular file.
5686         (get_nonblocking_flag): Set errno on invalid fd.
5687         * tests/test-nonblocking.c (main): Avoid test failure on
5688         directories if fchdir is not active.
5689         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
5690
5691 2011-03-31  Bruno Haible  <bruno@clisp.org>
5692
5693         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
5694         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
5695         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
5696         Reported by Simon Josefsson <simon@josefsson.org>.
5697
5698 2011-03-31  Bruno Haible  <bruno@clisp.org>
5699         and Eric Blake  <eblake@redhat.com>
5700
5701         nonblocking: new module
5702         * modules/nonblocking: New module.
5703         * modules/nonblocking-tests: Likewise.
5704         * lib/nonblocking.h: New file.
5705         * lib/nonblocking.c: Likewise.
5706         * tests/test-nonblocking.c: New test.
5707         * lib/ioctl.c (ioctl) [mingw]: Update comment.
5708
5709 2011-03-30  Bruno Haible  <bruno@clisp.org>
5710
5711         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
5712         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
5713         instead of 'printf' format for GCC >= 4.4.
5714         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
5715         (fprintf, printf, vfprintf, vprintf): Declare with
5716         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
5717         the system's vfprintf() function.
5718         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
5719
5720 2011-03-30  Eric Blake  <eblake@redhat.com>
5721
5722         passfd: fix scoping bug
5723         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
5724         before sendmsg/recvmsg.
5725
5726         passfd: standardize coding conventions
5727         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
5728         can be learned at compile time.
5729         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
5730         ifdefs.
5731         (sendfd, recvfd): Follow gnulib code conventions.
5732
5733         passfd: fix incorrect sendmsg arguments
5734         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
5735         incorrect msg_controllen value.
5736         * modules/passfd-tests (Depends-on): Check for alarm.
5737         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
5738         Reported by Bastien ROUCARIES.
5739
5740 2011-03-30  Bruno Haible  <bruno@clisp.org>
5741
5742         c-strcasestr: Relicense under LGPLv2+.
5743         * modules/c-strcasestr (License): Change to LGPLv2+.
5744         Requested by Eric Blake, for libvirt.
5745
5746 2011-03-30  Simon Josefsson  <simon@josefsson.org>
5747
5748         * users.txt: Add libidn2.  Fix libtasn1 link.
5749
5750 2011-03-30  Jim Meyering  <meyering@redhat.com>
5751
5752         tests: readlink* ("",... fails with EINVAL on newer kernels
5753         readlink and readlinkat have typically failed with ENOENT for
5754         the invalid, empty file name,  "".  However, with the advent
5755         of linux-2.6.39, they fail with EINVAL.
5756         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
5757         when operating on the empty file name.
5758         * tests/test-readlink.h (test_readlink): Likewise.
5759
5760 2011-03-29  Bruno Haible  <bruno@clisp.org>
5761
5762         Relicense some modules under LGPLv2+, for libidn2.
5763         * modules/array-mergesort (License): Change to LGPLv2+.
5764         * modules/c-strcaseeq (License): Likewise.
5765         * modules/striconveh (License): Likewise.
5766         * modules/striconveha (License): Likewise.
5767         * modules/uniconv/base (License): Likewise.
5768         * modules/uniconv/u8-conv-from-enc (License): Likewise.
5769         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
5770         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
5771         * modules/unictype/base (License): Likewise.
5772         * modules/unictype/bidiclass-of (License): Likewise.
5773         * modules/unictype/category-M (License): Likewise.
5774         * modules/unictype/category-none (License): Likewise.
5775         * modules/unictype/category-of (License): Likewise.
5776         * modules/unictype/category-test (License): Likewise.
5777         * modules/unictype/category-test-withtable (License): Likewise.
5778         * modules/unictype/combining-class (License): Likewise.
5779         * modules/unictype/joiningtype-of (License): Likewise.
5780         * modules/unictype/scripts (License): Likewise.
5781         * modules/uninorm/base (License): Likewise.
5782         * modules/uninorm/canonical-decomposition (License): Likewise.
5783         * modules/uninorm/composition (License): Likewise.
5784         * modules/uninorm/decompose-internal (License): Likewise.
5785         * modules/uninorm/decomposition-table (License): Likewise.
5786         * modules/uninorm/nfc (License): Likewise.
5787         * modules/uninorm/nfd (License): Likewise.
5788         * modules/uninorm/u32-normalize (License): Likewise.
5789         * modules/unistr/base (License): Likewise.
5790         * modules/unistr/u32-cpy (License): Likewise.
5791         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
5792         * modules/unistr/u32-to-u8 (License): Likewise.
5793         * modules/unistr/u32-uctomb (License): Likewise.
5794         * modules/unistr/u8-check (License): Likewise.
5795         * modules/unistr/u8-mblen (License): Likewise.
5796         * modules/unistr/u8-mbtouc (License): Likewise.
5797         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
5798         * modules/unistr/u8-mbtoucr (License): Likewise.
5799         * modules/unistr/u8-prev (License): Likewise.
5800         * modules/unistr/u8-strlen (License): Likewise.
5801         * modules/unistr/u8-to-u32 (License): Likewise.
5802         * modules/unistr/u8-uctomb (License): Likewise.
5803         * modules/unitypes (License): Likewise.
5804         Requested by Simon Josefsson.
5805
5806 2011-03-29  Simon Josefsson  <simon@josefsson.org>
5807
5808         lib-symbol-visibility: Add a notice.
5809         * modules/lib-symbol-visibility (Notice): New field.
5810
5811 2011-03-29  Bruno Haible  <bruno@clisp.org>
5812
5813         getaddrinfo: Doc fix.
5814         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
5815         section "fixed in Gnulib".
5816
5817 2011-03-28  Simon Josefsson  <simon@josefsson.org>
5818
5819         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
5820         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
5821
5822 2011-03-26  Bruno Haible  <bruno@clisp.org>
5823
5824         unictype/property-byname: Reduce the number of load-time relocations.
5825         * lib/unictype/pr_byname.c: Include <stdlib.h>.
5826         (UC_PROPERTY_INDEX_*): New enumeration values.
5827         (uc_property_byname): Convert an index from the lookup table to an
5828         uc_property_t.
5829         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
5830         values.
5831
5832 2011-03-26  Bruno Haible  <bruno@clisp.org>
5833
5834         unictype/property-byname: Allow omitted word separators and aliases.
5835         * lib/unictype/pr_byname.gperf: Add property names without word
5836         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
5837         for 'space'.
5838
5839 2011-03-26  Bruno Haible  <bruno@clisp.org>
5840
5841         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
5842         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
5843         also hyphens to space.
5844         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
5845         without spaces.
5846         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
5847
5848 2011-03-26  Bruno Haible  <bruno@clisp.org>
5849
5850         unictype/joiningtype-byname: Recognize long names as well.
5851         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
5852         a long name.
5853         * lib/unictype/joiningtype_byname.c: Include <string.h>,
5854         unictype/joiningtype_byname.h.
5855         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
5856         * lib/unictype/joiningtype_byname.gperf: New file.
5857         * modules/unictype/joiningtype-byname (Files): Add
5858         lib/unictype/joiningtype_byname.gperf.
5859         (Depends-on): Add gperf.
5860         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
5861         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
5862         long names.
5863
5864         Tests for module 'unictype/joiningtype-longname'.
5865         * modules/unictype/joiningtype-longname-tests: New file.
5866         * tests/unictype/test-joiningtype_longname.c: New file.
5867
5868         New module 'unictype/joiningtype-longname'.
5869         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
5870         * lib/unictype/joiningtype_longname.c: New file.
5871         * modules/unictype/joiningtype-longname: New file.
5872         * modules/unictype/joiningtype-all (Depends-on): Add
5873         unictype/joiningtype-longname.
5874
5875 2011-03-26  Bruno Haible  <bruno@clisp.org>
5876
5877         unictype/bidiclass-byname: Recognize long names as well.
5878         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
5879         name.
5880         * lib/unictype/bidi_byname.c: Include <string.h>,
5881         unictype/bidi_byname.h.
5882         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
5883         * lib/unictype/bidi_byname.gperf: New file.
5884         * modules/unictype/bidiclass-byname (Files): Add
5885         lib/unictype/bidi_byname.gperf.
5886         (Depends-on): Add gperf.
5887         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
5888         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
5889         long names.
5890
5891         Tests for module 'unictype/bidiclass-longname'.
5892         * modules/unictype/bidiclass-longname-tests: New file.
5893         * tests/unictype/test-bidi_longname.c: New file.
5894
5895         New module 'unictype/bidiclass-longname'.
5896         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
5897         * lib/unictype/bidi_longname.c: New file.
5898         * modules/unictype/bidiclass-longname: New file.
5899         * modules/unictype/bidiclass-all (Depends-on): Add
5900         unictype/bidiclass-longname.
5901
5902 2011-03-26  Bruno Haible  <bruno@clisp.org>
5903
5904         unictype/bidi*: Rename modules.
5905         * modules/unictype/bidiclass-all: Renamed from
5906         modules/unictype/bidicategory-all.
5907         * modules/unictype/bidiclass-name: Renamed from
5908         modules/unictype/bidiclass-name.
5909         (Description): Update.
5910         * modules/unictype/bidiclass-name-tests: Renamed from
5911         modules/unictype/bidicategory-name-tests.
5912         * modules/unictype/bidiclass-byname: Renamed from
5913         modules/unictype/bidicategory-byname.
5914         (Description): Update.
5915         * modules/unictype/bidiclass-byname-tests: Renamed from
5916         modules/unictype/bidicategory-byname-tests.
5917         * modules/unictype/bidiclass-of: Renamed from
5918         modules/unictype/bidicategory-of.
5919         (Description): Update.
5920         * modules/unictype/bidiclass-of-tests: Renamed from
5921         modules/unictype/bidicategory-of-tests.
5922         * modules/unictype/bidiclass-test: Renamed from
5923         modules/unictype/bidicategory-test.
5924         (Description): Update.
5925         * modules/unictype/bidiclass-test-tests: Renamed from
5926         modules/unictype/bidicategory-test-tests.
5927         * modules/unictype/bidicategory-all: New file, a simple redirection.
5928         * modules/unictype/bidicategory-name: Likewise.
5929         * modules/unictype/bidicategory-byname: Likewise.
5930         * modules/unictype/bidicategory-of: Likewise.
5931         * modules/unictype/bidicategory-test: Likewise.
5932         * modules/unictype/property-bidi-* (Dependencies): Update.
5933         * lib/unictype/bidi_*.c: Update comment.
5934
5935 2011-03-26  Bruno Haible  <bruno@clisp.org>
5936
5937         unictype/bidi*: Rename functions, part 2.
5938         * modules/unictype/bidicategory-name (configure.ac): Update required
5939         libunistring version.
5940         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
5941
5942 2011-03-25  Bruno Haible  <bruno@clisp.org>
5943
5944         New module 'unictype/combining-class-all'.
5945         * modules/unictype/combining-class-all: New file.
5946
5947         Tests for module 'unictype/combining-class-byname'.
5948         * modules/unictype/combining-class-byname-tests: New file.
5949         * tests/unictype/test-combiningclass_byname.c: New file.
5950
5951         New module 'unictype/combining-class-byname'.
5952         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
5953         * lib/unictype/combiningclass_byname.c: New file.
5954         * lib/unictype/combiningclass_byname.gperf: New file.
5955         * modules/unictype/combining-class-byname: New file.
5956
5957         Tests for module 'unictype/combining-class-longname'.
5958         * modules/unictype/combining-class-longname-tests: New file.
5959         * tests/unictype/test-combiningclass_longname.c: New file.
5960
5961         New module 'unictype/combining-class-longname'.
5962         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
5963         * lib/unictype/combiningclass_longname.c: New file.
5964         * modules/unictype/combining-class-longname: New file.
5965
5966         Tests for module 'unictype/combining-class-name'.
5967         * modules/unictype/combining-class-name-tests: New file.
5968         * tests/unictype/test-combiningclass_name.c: New file.
5969
5970         New module 'unictype/combining-class-name'.
5971         * lib/unictype.in.h (uc_combining_class_name): New declaration.
5972         * lib/unictype/combiningclass_name.c: New file.
5973         * modules/unictype/combining-class-name: New file.
5974
5975 2011-03-25  Bruno Haible  <bruno@clisp.org>
5976
5977         unictype/combining-class: Rename source files.
5978         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
5979         of unictype/combining.h.
5980         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
5981         Update.
5982         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
5983         * modules/unictype/combining-class (Description): Fix.
5984         (Files, Makefile.am): Update.
5985         * tests/unictype/test-combiningclass.c: Renamed from
5986         tests/unictype/test-combining.c.
5987         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
5988
5989 2011-03-25  Bruno Haible  <bruno@clisp.org>
5990
5991         unictype: Update list of canonical combining classes.
5992         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
5993
5994 2011-03-25  Bruno Haible  <bruno@clisp.org>
5995
5996         unictype/category-byname: Recognize long names as well.
5997         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
5998         a long name.
5999         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
6000         unictype/categ_byname.h.
6001         (UC_CATEGORY_INDEX_*): New enumeration values.
6002         (uc_general_category_byname): Use uc_general_category_lookup and
6003         convert from index to value.
6004         * lib/unictype/categ_byname.gperf: New file.
6005         * modules/unictype/category-byname (Files): Add
6006         lib/unictype/categ_byname.gperf.
6007         (Depends-on): Add gperf.
6008         (Makefile.am): Add rule for generating unictype/categ_byname.h.
6009         * tests/unictype/test-categ_byname.c (main): Test the recognition of
6010         long names.
6011
6012         Tests for module 'unictype/category-longname'.
6013         * modules/unictype/category-longname-tests: New file.
6014         * tests/unictype/test-categ_longname.c: New file.
6015
6016         New module 'unictype/category-longname'.
6017         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
6018         * lib/unictype/categ_longname.c: New file.
6019         * modules/unictype/category-longname: New file.
6020         * modules/unictype/category-all (Depends-on): Add it.
6021
6022 2011-03-25  Bruno Haible  <bruno@clisp.org>
6023
6024         Tests for module 'unictype/category-LC'.
6025         * modules/unictype/category-LC-tests: New file.
6026         * tests/unictype/test-categ_LC.c: New file, automatically generated.
6027
6028         New module 'unictype/category-LC'.
6029         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
6030         (UC_CATEGORY_LC): New declaration.
6031         (UC_CASED_LETTER): New macro.
6032         * lib/gen-uni-tables.c (is_category_LC): New function.
6033         (output_categories): Also handle category LC.
6034         (UC_CATEGORY_MASK_LC): New enumeration value.
6035         (general_category_byname): Also handle category LC.
6036         * lib/unictype/categ_LC.c: New file.
6037         * lib/unictype/categ_LC.h: New file, automatically generated.
6038         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
6039         category LC.
6040         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
6041         * modules/unictype/category-LC: New file.
6042         * modules/unictype/category-byname (Depends-on): Add
6043         unictype/category-LC.
6044         * modules/unictype/category-all (Depends-on): Likewise.
6045
6046 2011-03-25  Eric Blake  <eblake@redhat.com>
6047
6048         xmalloc: revert yesterday's regression
6049         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
6050         realloc's underlying behavior (allowing allocation of zero-size
6051         objects, especially if malloc-gnu is also in use).
6052
6053 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
6054
6055         maint.mk: add missing version to VC-tag
6056         * top/maint.mk: git tag was missing actual tag name; add it.
6057
6058         valgrind: do leak checking, and exit with code 1 on error (not 0)
6059         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
6060         to VALGRIND.
6061
6062 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
6063
6064         posix-modules: say what it does.
6065         * posix-modules: Add a line to the --help output saying what it does.
6066
6067 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
6068
6069         xmalloc: Do not leak if underlying realloc is C99 compatible.
6070         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
6071         This avoids a leak on C99-based systems.  See
6072         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
6073
6074 2011-03-24  Eric Blake  <eblake@redhat.com>
6075
6076         realloc: document portability problem
6077         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
6078         passing 0 size to realloc.
6079
6080 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
6081
6082         doc: update users.txt
6083         * users.txt: Add cvsps, tmpwatch
6084
6085 2011-03-23  Matt Rice  <ratmice@gmail.com>
6086
6087         doc: update users.txt
6088         * users.txt: Add gdb.
6089
6090 2011-03-23  Jim Meyering  <meyering@redhat.com>
6091
6092         doc: update users.txt
6093         Looking through matches up to the following URL (there are still
6094         several more pages), I found several projects that use gnulib:
6095         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
6096         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
6097         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
6098
6099 2011-03-22  Bruno Haible  <bruno@clisp.org>
6100
6101         unictype/bidi*: Rename functions.
6102         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
6103         uc_bidi_class, uc_is_bidi_class): New declarations.
6104         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
6105         uc_bidi_category_byname.
6106         (uc_bidi_category_byname): New function.
6107         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
6108         u_bidi_category_name.
6109         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
6110         (uc_bidi_category_name): New function.
6111         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
6112         uc_bidi_category.
6113         (uc_bidi_category): New function.
6114         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
6115         uc_is_bidi_category. Invoke uc_bidi_class.
6116         (uc_is_bidi_category): New function.
6117         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
6118         instead of uc_bidi_category_byname.
6119         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
6120         instead of uc_bidi_category_name.
6121         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
6122         uc_bidi_category.
6123         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
6124         instead of uc_is_bidi_category.
6125
6126 2011-03-21  Bruno Haible  <bruno@clisp.org>
6127
6128         New module 'unictype/joininggroup-all'.
6129         * modules/unictype/joininggroup-all: New file.
6130
6131         Tests for module 'unictype/joininggroup-of'.
6132         * modules/unictype/joininggroup-of-tests: New file.
6133         * tests/unictype/test-joininggroup_of.c: New file.
6134         * tests/unictype/test-joininggroup_of.h: New file, automatically
6135         generated by gen-uni-tables.
6136
6137         New module 'unictype/joininggroup-of'.
6138         * modules/unictype/joininggroup-of: New file.
6139         * lib/unictype/joininggroup_of.c: New file.
6140         * lib/unictype/joininggroup_of.h: New file, automatically generated by
6141         gen-uni-tables.
6142
6143         Tests for module 'unictype/joininggroup-byname'.
6144         * modules/unictype/joininggroup-byname-tests: New file.
6145         * tests/unictype/test-joininggroup_byname.c: New file.
6146
6147         New module 'unictype/joininggroup-byname'.
6148         * modules/unictype/joininggroup-byname: New file.
6149         * lib/unictype/joininggroup_byname.c: New file.
6150         * lib/unictype/joininggroup_byname.gperf: New file.
6151
6152         Tests for module 'unictype/joininggroup-name'.
6153         * modules/unictype/joininggroup-name-tests: New file.
6154         * tests/unictype/test-joininggroup_name.c: New file.
6155
6156         New module 'unictype/joininggroup-name'.
6157         * modules/unictype/joininggroup-name: New file.
6158         * lib/unictype/joininggroup_name.c: New file.
6159         * lib/unictype/joininggroup_name.h: New file.
6160
6161         New module 'unictype/joiningtype-all'.
6162         * modules/unictype/joiningtype-all: New file.
6163
6164         Tests for module 'unictype/joiningtype-of'.
6165         * modules/unictype/joiningtype-of-tests: New file.
6166         * tests/unictype/test-joiningtype_of.c: New file.
6167         * tests/unictype/test-joiningtype_of.h: New file, automatically
6168         generated by gen-uni-tables.
6169
6170         New module 'unictype/joiningtype-of'.
6171         * modules/unictype/joiningtype-of: New file.
6172         * lib/unictype/joiningtype_of.c: New file.
6173         * lib/unictype/joiningtype_of.h: New file, automatically generated by
6174         gen-uni-tables.
6175
6176         Tests for module 'unictype/joiningtype-byname'.
6177         * modules/unictype/joiningtype-byname-tests: New file.
6178         * tests/unictype/test-joiningtype_byname.c: New file.
6179
6180         New module 'unictype/joiningtype-byname'.
6181         * modules/unictype/joiningtype-byname: New file.
6182         * lib/unictype/joiningtype_byname.c: New file.
6183
6184         Tests for module 'unictype/joiningtype-name'.
6185         * modules/unictype/joiningtype-name-tests: New file.
6186         * tests/unictype/test-joiningtype_name.c: New file.
6187
6188         New module 'unictype/joiningtype-name'.
6189         * modules/unictype/joiningtype-name: New file.
6190         * lib/unictype/joiningtype_name.c: New file.
6191
6192         unictype: Add support for Arabic shaping properties.
6193         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
6194         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
6195         declarations.
6196         (UC_JOINING_GROUP_*): New enumeration values.
6197         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
6198         declarations.
6199         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
6200         (unicode_joining_type): New variable.
6201         (UC_JOINING_GROUP_*): New enumeration values.
6202         (unicode_joining_group): New variable.
6203         (fill_arabicshaping, joining_type_as_c_identifier,
6204         output_joining_type_test, output_joining_type,
6205         joining_group_as_c_identifier, output_joining_group_test,
6206         output_joining_group): New functions.
6207         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
6208         fill_arabicshaping and output_joining_type_test, output_joining_type,
6209         output_joining_group_test, output_joining_group.
6210         Reported by Simon Josefsson.
6211
6212 2011-03-21  Jim Meyering  <meyering@redhat.com>
6213
6214         strftime: fix a bug in yesterday's change
6215         * lib/strftime.c (add): Accommodate width's initial value of -1.
6216         Otherwise, nstrftime would copy uninitialized data into
6217         the result buffer.
6218
6219 2011-03-21  Jim Meyering  <meyering@redhat.com>
6220
6221         tests: add strftime-tests module
6222         * tests/test-strftime.c: New file.
6223         * modules/strftime-tests: New module.
6224
6225 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6226
6227         strftime: don't assume a byte count fits in 'int'
6228         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
6229         found this problem by static analysis, using gcc -Wstrict-overflow
6230         (GCC 4.5.2, x86-64).  This reported an optimization that depended
6231         on an integer overflow having undefined behavior, but it turns out
6232         that the argument is a size, which might not fit in 'int' anyway,
6233
6234 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6235
6236         stdio: don't require ignore_value around fwrite
6237
6238         This patch works around libc bug 11959
6239         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
6240         Without this patch, applications must often write
6241         ignore_value (fwrite (...)) even though the ignore_value is
6242         not helpful here.  It's common to write many objects, using
6243         fwrite/printf/etc., and then use ferror to detect output error.
6244
6245         I considered making this patch optional, but decided against it,
6246         because libc is obviously being inconsistent here: there is no
6247         reason libc should insist that user code must inspect fwrite
6248         return's value without also insisting that it inspect printf's,
6249         putchar's, etc.  If user code wants to have a strict style where
6250         all these functions' values are checked (so that ferror need not
6251         be checked), we could add support for that style in a new gnulib
6252         module, but in the meantime it's better to be consistent and to
6253         support common usage.
6254
6255         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
6256         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
6257         that we are compiling in checking mode, and if not C++, and
6258         if not already wrapping fwrite for some other reason.
6259         (fwrite): #define to rpl_fwrite if the latter is defined.
6260
6261 2011-03-20  Bruno Haible  <bruno@clisp.org>
6262
6263         verror: Fix compilation error introduced on 2011-02-13.
6264         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
6265         instead of __attribute__.
6266         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6267
6268 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6269             Bruno Haible  <bruno@clisp.org>
6270
6271         socklen: do not depend on sys_socket
6272         While trying to modify Emacs to use gnulib's socklen module,
6273         I discovered a circular dependency: socklen depends on sys_socket
6274         and vice versa.  Emacs can use socklen, but it does not need
6275         sys_socket because it has its own substitute for sys/socket.h.
6276         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
6277         gl_TYPE_SOCKLEN_T.
6278         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
6279         gl_PREREQ_SYS_H_SOCKET.
6280         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
6281         gl_PREREQ_SYS_H_SOCKET.
6282         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
6283         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
6284         * modules/socklen (Depends-on): Do not depend on sys_socket.
6285         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
6286
6287 2011-03-20  Jim Meyering  <meyering@redhat.com>
6288
6289         maint.mk: sort file names *after* new transformation
6290         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
6291         prefix would have led to an unwarranted failure in GNU parted.
6292         Sort after that transformation.
6293
6294 2011-03-19  Jim Meyering  <meyering@redhat.com>
6295
6296         maint.mk: fix po-file syntax-check rule
6297         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
6298         Patch by Bruno Haible.
6299
6300 2011-03-19  Bruno Haible  <bruno@clisp.org>
6301
6302         socklen: Update comment.
6303         * m4/socklen.m4: Update comment about platforms.
6304
6305 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6306             Bruno Haible  <bruno@clisp.org>
6307
6308         inet_ntop, inet_pton: Simplify.
6309         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
6310         documented to provide socklen_t and we already depend on sys_socket.
6311         * modules/inet_pton (Depends-on): Likewise.
6312         * lib/arpa_inet.in.h: Adjust comment.
6313
6314 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6315             Bruno Haible  <bruno@clisp.org>
6316
6317         netdb: Simplify.
6318         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
6319         documented to provide socklen_t and we already depend on sys_socket.
6320         * lib/netdb.in.h: Adjust comment.
6321
6322 2011-03-19  Bruno Haible  <bruno@clisp.org>
6323
6324         sys_socket, netdb: Document problem with socklen_t.
6325         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
6326         platforms.
6327         * doc/posix-headers/netdb.texi: Likewise.
6328
6329 2011-03-18  Eric Blake  <eblake@redhat.com>
6330
6331         maint.mk: let po check work in VPATH build
6332         * top/maint.mk (po_file): Allow cfg.mk override.
6333         (sc_po_check): Allow VPATH use.
6334         Reported by Jiri Denemark.
6335
6336 2011-03-16  Jim Meyering  <meyering@redhat.com>
6337
6338         maint.mk: allow fine-grained syntax-check exclusion via Make variables
6339         Before, you would have had to create one .x-sc_ file per rule in order
6340         to exempt offending files.  Now, you may instead use a Make variable --
6341         usually defined in cfg.mk -- whose name identifies the affected rule.
6342         * top/maint.mk (_sc_excl): Define.
6343         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
6344         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
6345
6346 2011-03-13  Bruno Haible  <bruno@clisp.org>
6347
6348         ignore-value tests: Avoid warnings.
6349         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
6350         empty for gcc < 3.4.
6351
6352 2011-03-13  Bruno Haible  <bruno@clisp.org>
6353
6354         passfd: Fix link error on Solaris.
6355         * modules/passfd (Description): Correct.
6356         (Depends-on): Add socketlib.
6357         (Link): New section.
6358         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
6359
6360 2011-03-13  Bruno Haible  <bruno@clisp.org>
6361
6362         passfd: Fix link error on AIX 5.2.
6363         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
6364
6365 2011-03-13  Bruno Haible  <bruno@clisp.org>
6366
6367         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
6368         * lib/sys_socket.in.h: Include <stddef.h>.
6369         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
6370         CMSG_FIRSTHDR. Remove unused variable.
6371
6372 2011-03-13  Bruno Haible  <bruno@clisp.org>
6373
6374         passfd: Fix compilation error on OpenBSD.
6375         * lib/passfd.c: Include <sys/uio.h>.
6376
6377 2011-03-13  Bruno Haible  <bruno@clisp.org>
6378
6379         passfd test: Fix warnings.
6380         * tests/test-passfd.c: Include <sys/wait.h>.
6381         (main): Fix typo.
6382
6383 2011-03-13  Bruno Haible  <bruno@clisp.org>
6384
6385         passfd module, part 4, tweaks.
6386         * tests/test-passfd.c: Reorder includes.
6387         (main): Fix perror and printf calls.
6388
6389 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6390
6391         passfd module, part 4.
6392         * modules/passfd-tests: New file.
6393         * tests/test-passfd.c: New file.
6394
6395 2011-03-13  Jim Meyering  <meyering@redhat.com>
6396
6397         Makefile: rely on GNU make; derive syntax-check rule names
6398         Rather than requiring that each sc_ rule be listed as a dependent
6399         of "check", use features of GNU make to derive the list.
6400         * Makefile (syntax-check-rules): Define.
6401         (check): Depend on the new variable, not the hard-coded list.
6402
6403 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
6404             Bruno Haible  <bruno@clisp.org>
6405
6406         passfd module, part 3.
6407         * lib/passfd.h (recvfd): Add a flags argument.
6408         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
6409         (recvfd): Add a flags argument.
6410         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
6411         exists.
6412         * modules/passfd (Depends-on): Add cloexec.
6413         Suggested by Eric Blake.
6414
6415 2011-03-13  Bruno Haible  <bruno@clisp.org>
6416
6417         passfd module, part 2, tweaks.
6418         * modules/passfd (Files): Reorder.
6419         (Depends-on): Remove errno.
6420         (Include): Remove <sys/socket.h>, <sys/un.h>.
6421         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
6422         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
6423         specification header. Include <sys/socket.h> always. Don't include
6424         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
6425         (sendfd): Clarify that it sets errno when it fails.
6426         (recvfd): Fix specification.
6427
6428 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6429
6430         passfd module, part 2.
6431         * modules/passfd: New file.
6432         * lib/passfd.h: New file.
6433         * lib/passfd.c: New file.
6434
6435 2011-03-12  Bruno Haible  <bruno@clisp.org>
6436
6437         wcswidth, mbswidth: Avoid integer overflow.
6438         * lib/wcswidth.c: Include <limits.h>.
6439         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
6440         * lib/mbswidth.c: Include <limits.h>.
6441         (mbsnwidth): Avoid 'int' overflow.
6442         Reported by Jim Meyering.
6443
6444 2011-03-12  Bruno Haible  <bruno@clisp.org>
6445
6446         futimens, utimensat: Avoid endless recursion on Solaris 10.
6447         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
6448         Solaris.
6449         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
6450         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
6451
6452 2011-03-11  Jim Meyering  <meyering@redhat.com>
6453
6454         maint.mk: relax a regexp to accommodate other formatting styles
6455         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
6456         between "ngettext" and the following "(".
6457
6458 2011-03-11  Pádraig Brady <P@draigBrady.com>
6459
6460         maint.mk: suppress a false positive warning
6461         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
6462         diagnostics are marked with ngettext.
6463
6464 2011-03-10  Eric Blake  <eblake@redhat.com>
6465
6466         wchar: add explicit dependencies, for Tru64
6467         * modules/mbmemcasecoll (Depends-on): Add wchar.
6468         * modules/mbtowc (Depends-on): Likewise.
6469         * modules/vasnprintf (Depends-on): Likewise.
6470         * modules/unistdio/u-printf-args (Depends-on): Likewise.
6471         * modules/wctomb (Depends-on): Likewise.
6472         Reported by Peter O'Gorman.
6473
6474 2011-03-08  Bruno Haible  <bruno@clisp.org>
6475
6476         passfd module, part 1, tweaks.
6477         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
6478         Improve indentation. Improve AC_MSG_CHECKING messages.
6479         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
6480         gl_SOCKET_FAMILIES.
6481
6482 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6483
6484         passfd module, part 1.
6485         * m4/afunix.m4: New file.
6486         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
6487         sockets.
6488
6489 2011-03-08  Bruno Haible  <bruno@clisp.org>
6490
6491         regex-quote: New API.
6492         * lib/regex-quote.h: Include <stdbool.h>.
6493         (struct regex_quote_spec): New type.
6494         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
6495         New declarations.
6496         (regex_quote_length, regex_quote_copy, regex_quote): Take a
6497         'const struct regex_quote_spec *' argument.
6498         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
6499         (pcre_special): New constant.
6500         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
6501         New functions.
6502         (regex_quote_length, regex_quote_copy, regex_quote): Take a
6503         'const struct regex_quote_spec *' argument.
6504         * modules/regex-quote (Depends-on): Add stdbool.
6505         * tests/test-regex-quote.c (check): Update for new API. Add test for
6506         anchored results.
6507         * NEWS: Mention the API change.
6508         Reported by Reuben Thomas and Eric Blake.
6509
6510 2011-03-06  Bruno Haible  <bruno@clisp.org>
6511
6512         regex-quote: Fix creation of POSIX extended regular expressions.
6513         * lib/regex-quote.c (ere_special): Add grouping and alternation
6514         operators.
6515
6516 2011-03-05  Bruno Haible  <bruno@clisp.org>
6517
6518         doc: Improve doc regarding autopoint vs. gnulib.
6519         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
6520         disable autopoint while running autoreconf.
6521         Suggested by Ralf Wildenhues.
6522
6523 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6524
6525         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
6526         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
6527
6528 2011-03-03  Bruce Korb  <bkorb@gnu.org>
6529
6530         parse-duration: remove xalloc.h dependency
6531         * lib/parse-duration.c (parse_period): handle NULL return from
6532         strdup instead of calling xstrdup().
6533         * modules/parse-duration: remove "xalloc" dependency
6534
6535 2011-03-03  Matthew Booth  <mbooth@redhat.com>
6536
6537         bootstrap: honor m4_base when running aclocal
6538         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
6539
6540 2011-03-02  Jim Meyering  <meyering@redhat.com>
6541
6542         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
6543         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
6544         on request from Matt Booth.
6545
6546 2011-03-01  Eric Blake  <eblake@redhat.com>
6547
6548         test-link: work on Hurd
6549         * tests/test-link.h (test_link): Hurd rejects linking directories
6550         with EISDIR instead of the POSIX-mandated EPERM.
6551
6552 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
6553
6554         stdio: simplify by moving files to printf-posix, sigpipe
6555         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
6556         since this symbol is needed only if printf is replaced.
6557         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
6558         Require gl_ASM_SYMBOL_PREFIX.
6559         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
6560         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
6561         (Depends-on): Add 'raise'.
6562         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
6563         * modules/stdio (Files): Remove lib/stdio-write.c,
6564         m4/asm-underscore.m4.
6565         (Depends-on): Remove 'raise'.
6566
6567         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
6568         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
6569         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
6570         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
6571
6572 2011-02-28  Bruno Haible  <bruno@clisp.org>
6573
6574         localcharset: Assume ANSI C behaviour of free().
6575         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
6576         calling free().
6577         Suggested by Simon Josefsson <simon@josefsson.org>.
6578
6579 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
6580             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
6581             Bruno Haible  <bruno@clisp.org>  (tiny change)
6582
6583         On Cygwin, use /proc file system instead of win32 API.
6584         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
6585         Win32 file names.
6586         (DllMain): Simplify by removing Cygwin specific code.
6587         (find_shared_library_fullname): Use Linux specific implementation also
6588         for Cygwin.
6589         (get_shared_library_fullname): Update accordingly.
6590         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
6591         Win32 file names.
6592         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
6593         Cygwin specific code.
6594
6595 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
6596             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
6597
6598         Fix OpenMP flag detection for various Fortran compilers.
6599         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
6600         OpenMP-conditional compilation construct, to force compile
6601         failure with missing OpenMP flag.
6602         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
6603
6604 2011-02-25  Eric Blake  <eblake@redhat.com>
6605
6606         strstr: expand test coverage
6607         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
6608         compilation.
6609         * tests/test-memmem.c (main): Duplicate tests.
6610         * tests/test-strcasestr.c (main): Likewise.
6611         * tests/test-c-strcasestr.c (main): Likewise.
6612
6613 2011-02-25  Jim Meyering  <meyering@redhat.com>
6614
6615         maint.mk: detect missing-NL-at-EOF, too
6616         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
6617         it also detects when a file lacks a newline at EOF.
6618         (require_exactly_one_NL_at_EOF_): Renamed from
6619         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
6620         since people may well have .x-sc_... file names tied to the
6621         existing name.  Suggested by Eric Blake.
6622
6623 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
6624
6625         dirname: move m4/dos.m4 functionality into lib/dosname.h
6626
6627         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
6628         extracts symbols from it, puts them into config.h; but it's much
6629         easier to use the symbols directly.  filename.h already does this,
6630         but it disagrees with dos.m4 in some respects.  This patch
6631         introduces a different include file dosname.h that packages up
6632         dos.m4, and then later we can work on merging filename.h and
6633         dosname.h.  Applications that need only the easy-to-configure
6634         symbols should consider including dosname.h rather than dirname.h.
6635         * NEWS: Mention incompatible changes.
6636         * m4/dos.m4: Remove.
6637         * lib/dosname.h, modules/dosname: New files.
6638         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
6639         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
6640         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
6641         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
6642         Include dosname.h, not dirname.h.
6643         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
6644         Include dosname.h, for definitions of symbols like ISSLASH
6645         that used to be in config.h.
6646         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
6647         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6648         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6649         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6650         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
6651         * modules/rmdir (Files): Likewise.
6652         * modules/stat (Files): Likewise.
6653         * modules/unlink (Files): Likewise.
6654         * modules/dirname-lgpl (Depends-on): Add dosname.
6655         * modules/lstat (Depends-on): Likewise.
6656         * modules/openat (Depends-on): Likewise.
6657         * modules/rmdir (Depends-on): Likewise.
6658         * modules/savewd (Depends-on): Likewise.
6659         * modules/stat (Depends-on): Likewise.
6660         * modules/unlink (Depends-on): Likewise.
6661         * modules/openat (Depends-on): Remove dirname-lgpl.
6662         * modules/savewd (Depends-on): Likewise.
6663         * tests/test-dirname.c: Do not use removed symbols like
6664         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
6665         the remaining symbols, e.g., ISSLASH ('\\').
6666
6667 2011-02-25  Eric Blake  <eblake@redhat.com>
6668
6669         strstr: revert patches that introduced bug and pessimization
6670         * lib/str-two-way.h: Add another reference.
6671         (two_way_short_needle, two_way_long_needle): Revert changes from
6672         2011-02-24; they pessimize search speed.
6673         (critical_factorization): Partially revert changes from
6674         2010-06-22; they violate the requirement that the left half of the
6675         needle be smaller than the period of the needle.
6676
6677 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6678
6679         filenamecat: remove unnecessary dependency on dirname-lgpl
6680         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
6681         is no direct dependency, just an indirect one via filenamecat-lgpl.
6682
6683         remove: remove unnecessary use of m4/dos.m4
6684         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
6685         * modules/remove (FILES): Remove m4/dos.m4.
6686
6687         * lib/openat-proc.c: Don't include dirname.h; not needed.
6688
6689         backupfile: remove unnecessary use of m4/dos.m4
6690         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
6691         of its symbols are used by the backupfile code.  backupfile.c does
6692         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
6693         for the rare case of programs that want all their backup file
6694         names to live within 8+3 limits, and dos.m4 doesn't address that.
6695         * modules/backupfile (Files): Remove m4/dos.m4.
6696
6697 2011-02-24  Jim Meyering  <meyering@redhat.com>
6698
6699         strstr: fix a bug whereby strstr would mistakenly return NULL
6700         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
6701         in period calculation.
6702         (two_way_long_needle): Likewise.
6703         The original problem was reported by Mike Stump in
6704         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
6705         Ralf Wildenhues provided the short needle and haystack.
6706         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
6707         Add a more involved test to trigger the bug in two_way_long_needle.
6708
6709 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
6710
6711         gnulib-tool: remove use of bold display in help screen
6712         * gnulib-tool (func_usage): Do not use bold display anymore in the
6713         help screen.  That was just meant to be a temporary emphasis for a
6714         backward-incompatible change.
6715
6716 2011-02-23  Bruno Haible  <bruno@clisp.org>
6717
6718         Fix misindentation of preprocessor directives.
6719         * lib/argp-namefrob.h: Reindent preprocessor directives.
6720         * lib/getopt_int.h (struct _getopt_data): Likewise.
6721         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
6722         * lib/vasnprintf.c (decode_long_double): Likewise.
6723         * tests/test-argmatch.c: Insert blank lines, for clarity.
6724         * tests/test-exclude.c: Likewise.
6725
6726 2011-02-22  Bruno Haible  <bruno@clisp.org>
6727
6728         ioctl: Fix for MacOS X in 64-bit mode.
6729         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
6730         value.
6731         Suggested by Eric Blake.
6732         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
6733
6734 2011-02-22  Jim Meyering  <meyering@redhat.com>
6735
6736         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
6737         * Makefile (sc_cpp_indent_check): Don't limit the check to files
6738         in lib/.
6739
6740 2011-02-22  Eric Blake  <eblake@redhat.com>
6741
6742         maint: avoid any CDPATH issue
6743         * Makefile (sc_cpp_indent_check): Anchor cd argument.
6744
6745         maint: adjust cpp indentation for my modules, as well
6746         * Makefile (sc_cpp_indent_check): Add my name.
6747         * lib/fbufmode.c: Filter through cppi.
6748         * lib/fpurge.c: Likewise.
6749         * lib/freadable.c: Likewise.
6750         * lib/freading.c: Likewise.
6751         * lib/fwritable.c: Likewise.
6752         * lib/fwriting.c: Likewise.
6753         * lib/sigaction.c: Likewise.
6754
6755 2011-02-22  Jim Meyering  <meyering@redhat.com>
6756
6757         maint: adjust cpp indentation to reflect nesting depth
6758         I.e., in a block of code that begins with an unnested "#if",
6759         put one space between the "#" in column 1 and following token.
6760         For example,
6761         -#include <sys/vfs.h>
6762         +# include <sys/vfs.h>
6763         Do this only in .c files that are part of a module I maintain.
6764         * lib/linkat.c: Filter through cppi.
6765         * lib/nanosleep.c: Likewise.
6766         * lib/openat.c: Likewise.
6767         * lib/openat-die.c: Likewise.
6768         * lib/dup3.c: Likewise.
6769         * lib/fchownat.c: Likewise.
6770         * lib/flock.c: Likewise.
6771         * lib/fsync.c: Likewise.
6772         * lib/fts.c: Likewise.
6773         * lib/getpass.c: Likewise.
6774         * lib/gettimeofday.c: Likewise.
6775         * lib/userspec.c: Likewise.
6776         * Makefile (sc_cpp_indent_check): New rule, to check this.
6777
6778 2011-02-22  Bruno Haible  <bruno@clisp.org>
6779
6780         New module 'wctomb'.
6781         * lib/stdlib.in.h (wctomb): New declaration.
6782         * lib/wctomb.c: New file.
6783         * lib/wctomb-impl.h: New file.
6784         * m4/wctomb.m4: New file.
6785         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
6786         REPLACE_WCTOMB.
6787         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
6788         REPLACE_WCTOMB.
6789         * modules/wctomb: New file.
6790         * tests/test-stdlib-c++.cc: Test signature of wctomb.
6791         * doc/posix-functions/wctomb.texi: Mention the new module.
6792         * modules/wctob (Depends-on): Add wctomb.
6793
6794 2011-02-22  Bruno Haible  <bruno@clisp.org>
6795
6796         New module 'mbtowc'.
6797         * lib/stdlib.in.h (mbtowc): New declaration.
6798         * lib/mbtowc.c: New file.
6799         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
6800         * m4/mbtowc.m4: New file.
6801         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
6802         REPLACE_MBTOWC.
6803         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
6804         REPLACE_MBTOWC.
6805         * modules/mbtowc: New file.
6806         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
6807         * doc/posix-functions/mbtowc.texi: Mention the new module.
6808         * modules/btowc (Depends-on): Add mbtowc.
6809
6810 2011-02-22  Bruno Haible  <bruno@clisp.org>
6811
6812         wcrtomb: Add more tests for native Windows platforms.
6813         * tests/test-wcrtomb-w32-1.sh: New file.
6814         * tests/test-wcrtomb-w32-2.sh: New file.
6815         * tests/test-wcrtomb-w32-3.sh: New file.
6816         * tests/test-wcrtomb-w32-4.sh: New file.
6817         * tests/test-wcrtomb-w32-5.sh: New file.
6818         * tests/test-wcrtomb-w32.c: New file.
6819         * modules/wcrtomb-tests (Files): Add them.
6820         (Makefile.am): Arrange to run these tests.
6821         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
6822         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
6823
6824 2011-02-20  Bruno Haible  <bruno@clisp.org>
6825
6826         wcrtomb: Enhance test.
6827         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
6828
6829 2011-02-20  Bruno Haible  <bruno@clisp.org>
6830
6831         mbrtowc: Tiny optimization.
6832         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
6833
6834 2011-02-20  Jim Meyering  <meyering@redhat.com>
6835
6836         test-exclude.c: remove unmatched #endif
6837         * tests/test-exclude.c: Remove stray #endif, left over from
6838         the change of a week ago.
6839
6840 2011-02-19  Jim Meyering  <meyering@redhat.com>
6841
6842         git-version-gen: skip "-dirty" check when appropriate
6843         * build-aux/git-version-gen: Don't run any git commands when the
6844         version string comes from .tarball-version.  Prior to this, we
6845         would run git update-index --refresh even from a just-unpacked
6846         tarball directory, and that could affect a .git/ directory in a
6847         parent of the build directory.  Reported by Mike Frysinger.
6848
6849 2011-02-19  Bruno Haible  <bruno@clisp.org>
6850
6851         unictype/property-byname: Reduce the size of the 'data' segment.
6852         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
6853
6854 2011-02-19  Bruno Haible  <bruno@clisp.org>
6855
6856         unictype/scripts: Reduce the size of the 'data' segment.
6857         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
6858         '%pic'.
6859         * lib/unictype/scripts_byname.gperf: Regenerated.
6860
6861 2011-02-19  Bruno Haible  <bruno@clisp.org>
6862
6863         stdint: Update documentation.
6864         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
6865
6866 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
6867
6868         stdint: omit redundant check for wchar.h
6869         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
6870         always tests whether wchar.h exists, so remove the now-redundant test.
6871
6872 2011-02-18  Bruno Haible  <bruno@clisp.org>
6873
6874         stdint: Cut dependency to module 'wchar'.
6875         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
6876         include the necessary prerequisites.
6877         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
6878         * modules/stdint (Depends-on): Remove wchar.
6879         (Makefile.am): Substitute HAVE_WCHAR_H.
6880         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
6881
6882 2011-02-18  Eric Blake  <eblake@redhat.com>
6883
6884         longlong: skip, rather than fail, on cross-compilation
6885         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
6886         when cross-compiling; regression from 2011-02-16.
6887
6888 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6889
6890         * NEWS: Mention 2011-02-08 change to stdlib.
6891
6892 2011-02-17  Bruno Haible  <bruno@clisp.org>
6893
6894         getloadavg: Add comments about platforms.
6895         * m4/getloadavg.m4: Add comment.
6896         * lib/getloadavg.c: Likewise.
6897
6898 2011-02-17  Bruno Haible  <bruno@clisp.org>
6899
6900         getloadavg: Fix link error on Solaris 2.6.
6901         * modules/getloadavg (Link): New section.
6902         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
6903         linking test-getloadavg.
6904         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
6905         getloadavg.
6906
6907 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6908
6909         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
6910         It was 'int', but this doesn't match the IRIX 6.5 manual.
6911         Suggested by Bruno Haible in
6912         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
6913
6914 2011-02-17  Bruno Haible  <bruno@clisp.org>
6915
6916         havelib: Fix comments.
6917         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
6918         change.
6919
6920 2011-02-17  Bruno Haible  <bruno@clisp.org>
6921
6922         havelib: Update config.rpath.
6923         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
6924
6925 2011-02-17  Bruno Haible  <bruno@clisp.org>
6926
6927         getloadavg test: Add some plausibility checks.
6928         * tests/test-getloadavg.c (check_avg): Print a warning when the value
6929         is improbable.
6930
6931 2011-02-16  Eric Blake  <eblake@redhat.com>
6932
6933         maintainer-makefile: make syntax-check a no-op from tarballs
6934         * top/maint.mk (no-vc-detected): New rule.
6935         (local-checks-available): Use it to avoid hanging if someone tries
6936         'make syntax-check' from a tarball.  Also append to any non-syntax
6937         checks already defined in cfg.mk.
6938
6939 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6940
6941         longlong: tune, particularly for common case of c99
6942
6943         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
6944         or running anything if c99, or if unsigned long long int does not
6945         work.  In either case, we know the answer without further tests.
6946         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
6947         it at most once, and use its results for both long long int and
6948         unsigned long long int.  This is more likely to be efficient in
6949         the common case where the program wants to check for both long
6950         long int and unsigned long long int.
6951         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
6952         since the answer is already known.
6953
6954 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
6955
6956         getloadavg: set errno
6957         * lib/getloadavg.c: Set errno when returning -1.  If no other
6958         error number looks appropriate, set it to ENOSYS if the getloadavg
6959         looks like it can't possibly ever work, ENOTSUP otherwise.
6960         Suggested by Bruno Haible in
6961         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
6962
6963         getloadavg: trim unused parts and speed up 'configure'
6964         * NEWS: Document this.
6965         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
6966         always compiled if getloadavg is absent.
6967         Move test code to ...
6968         * tests/test-getloadavg.c: New file, containing previous
6969         contents of test from lib/getloadavg.c.  It also contains
6970         suggestions by Bruno Haible in
6971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
6972         * modules/getloadavg-tests: New file.
6973         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
6974         Do tests in the same order as they're needed for getloadavg.c.
6975         Omit setgid-related tests that generate symbols KMEM_GROUP,
6976         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
6977         Do only the tests that are needed to see whether the system has
6978         getloadavg, moving the other tests into ...
6979         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
6980         NLIST_NAME_UNION; nobody should be using it.  Do not define
6981         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
6982         relevant, as the user of this module shouldn't care how getloadavg
6983         is implemented.
6984
6985         getloadavg: omit unused var
6986         * lib/getloadavg.c (getloadavg): Omit unused local variable.
6987
6988 2011-02-15  Jim Meyering  <meyering@redhat.com>
6989
6990         doc: update users.txt
6991         * users.txt: Update iwhd's URL.
6992
6993 2011-02-13  Bruno Haible  <bruno@clisp.org>
6994
6995         Consistent macro naming for macros that use GCC __attribute__.
6996         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
6997         _ATTRIBUTE_NONNULL_.
6998         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
6999         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
7000         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
7001         ATTRIBUTE_DEPRECATED.
7002         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
7003         ATTRIBUTE_NORETURN.
7004         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7005         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7006         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7007         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7008         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
7009         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
7010         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
7011         ATTRIBUTE_SENTINEL.
7012         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
7013         ATTRIBUTE_RETURN_CHECK.
7014         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
7015         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
7016         ATTRIBUTE_NORETURN.
7017         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
7018         Reported by Paul Eggert.
7019
7020 2011-02-13  Bruno Haible  <bruno@clisp.org>
7021
7022         Don't interfere with a program's definition of __attribute__.
7023         * lib/argp.h (__attribute__): Remove definition.
7024         (_GL_ATTRIBUTE_FORMAT): New macro.
7025         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
7026         * lib/argp-fmtstream.h (__attribute__): Remove definition.
7027         (_GL_ATTRIBUTE_FORMAT): New macro.
7028         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
7029         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
7030         GCC 3 or newer.
7031         * lib/error.h (__attribute__): Remove definition.
7032         (_GL_ATTRIBUTE_FORMAT): New macro.
7033         (error, error_at_line): Use it.
7034         * lib/hash.h (__attribute__): Remove definition.
7035         (ATTRIBUTE_WUR): Update definition. Define always.
7036         * lib/openat.h (__attribute__): Remove definition.
7037         (ATTRIBUTE_NORETURN): Update definition. Define always.
7038         * lib/sigpipe-die.h (__attribute__): Remove definition.
7039         (ATTRIBUTE_NORETURN): Update definition. Define always.
7040         * lib/vasnprintf.h (__attribute__): Remove definition.
7041         (_GL_ATTRIBUTE_FORMAT): New macro.
7042         (asnprintf, vasnprintf): Use it.
7043         * lib/xalloc.h (__attribute__): Remove definition.
7044         (ATTRIBUTE_NORETURN): Update definition. Define always.
7045         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
7046         * lib/xmemdup0.h (__attribute__): Remove definition.
7047         (ATTRIBUTE_NORETURN): Update definition. Define always.
7048         * lib/xprintf.h (__attribute__): Remove definition.
7049         (_GL_ATTRIBUTE_FORMAT): New macro.
7050         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
7051         * lib/xstrtol.h (__attribute__): Remove definition.
7052         (ATTRIBUTE_NORETURN): Update definition. Define always.
7053         * lib/xvasprintf.h (__attribute__): Remove definition.
7054         (_GL_ATTRIBUTE_FORMAT): New macro.
7055         (xasprintf, xvasprintf): Use it.
7056         * tests/test-argmatch.c (__attribute__): Remove definition.
7057         (ATTRIBUTE_NORETURN): Update definition. Define always.
7058         * tests/test-exclude.c (__attribute__): Remove definition.
7059         (ATTRIBUTE_NORETURN): Update definition. Define always.
7060         Reported by Paul Eggert.
7061
7062 2011-02-13  Bruno Haible  <bruno@clisp.org>
7063
7064         mbrtowc: Add more tests for native Windows platforms.
7065         * tests/test-mbrtowc-w32-1.sh: New file.
7066         * tests/test-mbrtowc-w32-2.sh: New file.
7067         * tests/test-mbrtowc-w32-3.sh: New file.
7068         * tests/test-mbrtowc-w32-4.sh: New file.
7069         * tests/test-mbrtowc-w32-5.sh: New file.
7070         * tests/test-mbrtowc-w32.c: New file.
7071         * modules/mbrtowc-tests (Files): Add them.
7072         (Makefile.am): Arrange to run these tests.
7073         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
7074         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
7075
7076 2011-02-13  Bruno Haible  <bruno@clisp.org>
7077
7078         mbrtowc: Work around native Windows bug.
7079         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
7080         guess when no suitable locale for testing was found.
7081         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
7082
7083 2011-02-13  Bruno Haible  <bruno@clisp.org>
7084
7085         mbsinit: Work around mingw bug.
7086         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
7087         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
7088         Windows.
7089         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
7090
7091 2011-02-13  Bruno Haible  <bruno@clisp.org>
7092
7093         mbsinit: Don't crash for a NULL argument.
7094         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
7095         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
7096
7097 2011-02-13  Bruno Haible  <bruno@clisp.org>
7098
7099         Don't interfere with a program's definition of __attribute__.
7100         * lib/stdio.in.h (__attribute__): Remove definition.
7101         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
7102         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
7103         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
7104         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
7105         * lib/string.in.h (__attribute__): Remove definition.
7106         Reported by Paul Eggert.
7107
7108 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7109
7110         stdlib: don't get in the way of non-GCC __attribute__
7111         See thread starting at
7112         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
7113         Revert previous stdlib change, installing the following instead:
7114         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
7115         to get in the way of a non-GCC compiler that supports __attribute__.
7116         (_GL_ATTRIBUTE_RETURN): New macro.
7117         (_Exit): Use it instead of __attribute__.
7118
7119 2011-02-12  Bruno Haible  <bruno@clisp.org>
7120
7121         quotearg test: Avoid test failure on mingw.
7122         * tests/test-quotearg.sh: Convert the locale identifier from native
7123         Windows syntax to Unix syntax.
7124
7125 2011-02-12  Bruno Haible  <bruno@clisp.org>
7126
7127         setlocale: Prefer gnulib's override over libintl's override.
7128         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
7129         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
7130         GNULIB_defined_setlocale is set.
7131
7132 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7133
7134         stdlib: support non-GCC __attribute__
7135
7136         Fix a serious and tricky problem encountered when attempting to
7137         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
7138         5.5, but it crashed due to memory corruption on Solaris 10 with
7139         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
7140         bits that are otherwise zero.  This tagging is optional inside
7141         Emacs but is preferred and is used when __attribute__ ((__aligned
7142         (8))) works, as it does with both recent-enough GCC and with Sun C
7143         5.11.  However, Sun C 5.11 is not GCC and does not #define
7144         __GNUC__ and __GNUC_MINOR__.
7145
7146         When I added the getloadavg module to Emacs, it brought in
7147         stdlib.in.h, which contained this fragment:
7148
7149            #ifndef __attribute__
7150            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
7151            #  define __attribute__(Spec)   /* empty */
7152            # endif
7153            #endif
7154
7155         When files that include <stdlib.h> were compiled with Sun C 5.11,
7156         the above code disabled __attribute__ ((__aligned (8))), which
7157         caused variables to not be properly aligned, which eventually led
7158         to the pointer corruption mentioned above.  (This was a bit hard
7159         to diagnose, unfortunately.)
7160
7161         Several "#define __attribute__(X) /* empty */" code snippets need
7162         to be eradicated from Gnulib to work with non-GCC compilers that
7163         support __attribute__.  The Autoconf way to do this is to test for
7164         each kind of attribute that we want support for, and selectively
7165         enable that in source code.
7166
7167         Fix this problem just for stdlib.h, by adding a test for the
7168         __noreturn__ attribute, and change stdlib.in.h to use that test
7169         when needed.  This technique can be easily generalized to the
7170         other *.in.h files and attributes, and a similar technique can be
7171         used for *.h and *.c files.  This patch is enough to solve the
7172         problem for Emacs + getloadavg, and I thought I'd publish it for
7173         feedback before undertaking further, similar fixes in other
7174         modules.
7175
7176         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
7177         because it's not needed for stdlib.h.  It merely substitutes the
7178         value directly into stdlib.h.  We may well need to #define it, or
7179         similar symbols, for other modules, but it's nice to also have an
7180         option to not #define it for applications like Emacs that do not
7181         need it.
7182
7183         * lib/stdlib.in.h (__attribute__): Do not #define.
7184         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
7185         be defined only if the _Exit module is also used.
7186         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
7187         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
7188         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
7189         platforms.
7190         * modules/_Exit (Files): Add m4/attribute.m4.
7191         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
7192         * m4/attribute.m4: New file.
7193
7194 2011-02-12  Bruno Haible  <bruno@clisp.org>
7195
7196         wcsrtombs: Work around bug on native Windows.
7197         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
7198         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
7199         instead of len.
7200         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
7201
7202 2011-02-12  Bruno Haible  <bruno@clisp.org>
7203
7204         mbsrtowcs: Work around bug on native Windows.
7205         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
7206         against mingw bug.
7207         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
7208
7209 2011-02-12  Bruno Haible  <bruno@clisp.org>
7210
7211         Avoid setlocale bugs in tests.
7212         * modules/btowc (Dependencies): Add setlocale.
7213         * modules/c-strcase (Dependencies): Likewise.
7214         * modules/mbmemcasecmp (Dependencies): Likewise.
7215         * modules/mbmemcasecoll (Dependencies): Likewise.
7216         * modules/mbrtowc (Dependencies): Likewise.
7217         * modules/mbscasecmp (Dependencies): Likewise.
7218         * modules/mbscasestr (Dependencies): Likewise.
7219         * modules/mbschr (Dependencies): Likewise.
7220         * modules/mbscspn (Dependencies): Likewise.
7221         * modules/mbsinit (Dependencies): Likewise.
7222         * modules/mbsncasecmp (Dependencies): Likewise.
7223         * modules/mbsnrtowcs (Dependencies): Likewise.
7224         * modules/mbspbrk (Dependencies): Likewise.
7225         * modules/mbspcasecmp (Dependencies): Likewise.
7226         * modules/mbsrchr (Dependencies): Likewise.
7227         * modules/mbsrtowcs (Dependencies): Likewise.
7228         * modules/mbsspn (Dependencies): Likewise.
7229         * modules/mbsstr (Dependencies): Likewise.
7230         * modules/nl_langinfo (Dependencies): Likewise.
7231         * modules/quotearg (Dependencies): Likewise.
7232         * modules/unicase/locale-language (Dependencies): Likewise.
7233         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
7234         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
7235         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
7236         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
7237         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
7238         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
7239         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
7240         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
7241         * modules/vasnprintf-posix (Dependencies): Likewise.
7242         * modules/wcrtomb (Dependencies): Likewise.
7243         * modules/wcsnrtombs (Dependencies): Likewise.
7244         * modules/wcsrtombs (Dependencies): Likewise.
7245
7246 2011-02-12  Bruno Haible  <bruno@clisp.org>
7247
7248         setlocale: Workaround native Windows bug.
7249         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
7250         succeeds but sets LC_CTYPE to "C", report a failure.
7251         * tests/test-setlocale2.sh: New file.
7252         * tests/test-setlocale2.c: New file.
7253         * modules/setlocale-tests (Files): Add the new files.
7254         (Makefile.am): Enable test-setlocale2.sh test.
7255         * doc/posix-functions/setlocale.texi: Mention workaround.
7256
7257 2011-02-11  Bruno Haible  <bruno@clisp.org>
7258
7259         Tests for module 'setlocale'.
7260         * modules/setlocale-tests: New file.
7261         * tests/test-setlocale1.sh: New file.
7262         * tests/test-setlocale1.c: New file.
7263
7264         New module 'setlocale'.
7265         * lib/locale.in.h (setlocale): New declaration.
7266         * lib/setlocale.c: New file, based on
7267         gettext/gettext-runtime/intl/setlocale.c.
7268         * m4/setlocale.m4: New file.
7269         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
7270         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
7271         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
7272         REPLACE_SETLOCALE.
7273         * modules/setlocale: New file.
7274         * tests/test-locale-c++.cc: Test the declaration of setlocale.
7275         * doc/posix-functions/setlocale.texi: Mention the new module.
7276
7277 2011-02-11  Bruno Haible  <bruno@clisp.org>
7278
7279         Prepare for locale dependent tests on mingw.
7280         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
7281         because it has the wrong locale encoding.
7282         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
7283         French_France.1252 instead of "fr".
7284         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
7285         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
7286         because it has the wrong locale encoding.
7287         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
7288         native Windows, try Turkish_Turkey.65001.
7289         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
7290         Chinese_China.54936.
7291
7292         Prepare for locale dependent tests on mingw.
7293         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
7294         differently.
7295         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
7296         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
7297         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7298         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7299
7300 2011-02-11  Eric Blake  <eblake@redhat.com>
7301
7302         strptime: avoid compiler warnings
7303         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
7304         compiler warnings about dead code.
7305         Reported by Daniel P. Berrange.
7306
7307 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
7308
7309         doc: update users.txt
7310         * users.txt: Add rcs.
7311
7312 2011-02-10  John W. Eaton  <jwe@gnu.org>
7313
7314         doc: update users.txt
7315         * users.txt: Add octave.
7316
7317 2011-02-10  Jim Meyering  <meyering@redhat.com>
7318
7319         doc: update users.txt
7320         * users.txt: Add iwhd.
7321
7322 2011-02-09  Bruno Haible  <bruno@clisp.org>
7323
7324         gnulib-tool: Make copyright notice adjustment more robust.
7325         * gnulib-tool (func_import): In sed_transform_main_lib_file,
7326         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
7327         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
7328         License".
7329         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
7330
7331 2011-02-06  Bruno Haible  <bruno@clisp.org>
7332
7333         New module 'towctrans'.
7334         * modules/towctrans: New file.
7335         * lib/wctype.in.h (towctrans): New declaration.
7336         * lib/towctrans.c: New file.
7337         * lib/towctrans-impl.h: New file.
7338         * m4/towctrans.m4: New file.
7339         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
7340         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
7341         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
7342         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
7343         * doc/posix-functions/towctrans.texi: Mention the new module.
7344
7345 2011-02-06  Bruno Haible  <bruno@clisp.org>
7346
7347         New module 'wctrans'.
7348         * modules/wctrans: New file.
7349         * lib/wctype.in.h (wctrans): New declaration.
7350         * lib/wctrans.c: New file.
7351         * lib/wctrans-impl.h: New file.
7352         * m4/wctrans.m4: New file.
7353         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
7354         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
7355         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
7356         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
7357         * doc/posix-functions/wctrans.texi: Mention the new module.
7358
7359 2011-02-06  Bruno Haible  <bruno@clisp.org>
7360
7361         New module 'iswctype'.
7362         * modules/iswctype: New file.
7363         * lib/wctype.in.h (iswctype): New declaration.
7364         * lib/iswctype.c: New file.
7365         * lib/iswctype-impl.h: New file.
7366         * m4/iswctype.m4: New file.
7367         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
7368         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
7369         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
7370         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
7371         * doc/posix-functions/iswctype.texi: Mention the new module and the
7372         HP-UX 11.00 problem.
7373
7374 2011-02-06  Bruno Haible  <bruno@clisp.org>
7375
7376         New module 'wctype'.
7377         * modules/wctype: Change to represent the wctype() substitute.
7378         * lib/wctype.in.h (wctype): New declaration.
7379         * lib/wctype.c: New file.
7380         * lib/wctype-impl.h: New file.
7381         * m4/wctype.m4: New file.
7382         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
7383         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
7384         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
7385         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
7386         * doc/posix-functions/wctype.texi: Mention the new module and the
7387         HP-UX 11.00 problem.
7388
7389 2011-02-06  Bruno Haible  <bruno@clisp.org>
7390
7391         wctype-h: Ensure wctype_t and wctrans_t are defined.
7392         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
7393         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
7394         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
7395         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
7396         HAVE_WCTRANS_T.
7397         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
7398
7399 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7400
7401         flock: fix license typo
7402
7403         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
7404         omitted.
7405
7406 2011-02-08  Bruno Haible  <bruno@clisp.org>
7407
7408         Split large sed scripts, for HP-UX sed.
7409         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
7410         to avoid HP-UX limit of 99 commands, in the near future.
7411         * modules/stdlib (Makefile.am): Likewise.
7412         * modules/unistd (Makefile.am): Likewise.
7413         * modules/wchar (Makefile.am): Likewise.
7414         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7415         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
7416         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
7417
7418 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7419             Bruno Haible  <bruno@clisp.org>
7420
7421         stdlib: improve random_r modularization
7422         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
7423         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
7424         you also need the random_r module to get this material right.
7425         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
7426         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
7427         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
7428
7429 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7430
7431         stdlib: don't depend on stdint
7432         * lib/stdlib.in.h: Don't include <stdint.h> merely because
7433         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
7434         be independent of whether stdint.h is needed.
7435         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
7436         here, instead of ...
7437         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
7438         struct random_data should be using the random_r module, not just
7439         the stdlib module (which wouldn't make sense: what package needs
7440         just struct random_data without also needing random_r?).
7441         * modules/stdlib (Depends-on): Remove stdint.
7442
7443         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
7444         See the thread rooted at
7445         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
7446         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
7447         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
7448         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
7449         __VMS)); previously it was always included (via fcntl--.h).
7450         (getloadavg): Do not use c_strtod.  Instead, approximate it by
7451         hand; this is good enough for load averages.  Also, do not use
7452         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
7453         flags directly if available and don't bother otherwise.  (Packages
7454         that need the extra reliability should use the modules that define
7455         these flags on older platforms that lack them.)
7456         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
7457         fcntl-safer.
7458
7459 2011-02-08  Jim Meyering  <meyering@redhat.com>
7460
7461         di-set.h, ino-map.h: add multiple-inclusion guard
7462         Technically, the guard is required only for ino-map.h, due to its
7463         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
7464         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
7465         * lib/ino-map.h: Likewise.
7466
7467 2011-02-06  Bruno Haible  <bruno@clisp.org>
7468
7469         iswblank: Ensure declaration on glibc systems.
7470         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
7471         * modules/iswblank (Dependencies): Add 'extensions'.
7472         * doc/posix-functions/iswblank.texi: Document the glibc problem.
7473
7474 2011-02-06  Bruno Haible  <bruno@clisp.org>
7475
7476         New module 'iswblank'.
7477         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
7478         * modules/iswblank: New file.
7479         * modules/wctype-h (Files): Remove lib/iswblank.c.
7480         (Makefile.am): Substitute GNULIB_ISWBLANK.
7481         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
7482         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
7483         (gl_WCTYPE_H_DEFAULTS): New macro.
7484         (gl_WCTYPE_H): Require it. Remove iswblank related code.
7485         * modules/iswblank-tests: New file.
7486         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
7487         * tests/test-wctype-h.c (main): Remove iswblank tests.
7488         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
7489         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
7490         of 'wctype-h'.
7491         * NEWS: Mention the change.
7492         * modules/mbchar (Depends-on): Add iswblank.
7493
7494 2011-02-08  Bruno Haible  <bruno@clisp.org>
7495
7496         di-set tests: Refactor.
7497         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
7498         unnecessary includes.
7499         (ASSERT): Remove macro.
7500         (main): Make C90 compliant by avoiding variable declaration after
7501         statement.
7502         * modules/di-set-tests (Files): Add tests/macros.h.
7503
7504 2011-02-08  Bruno Haible  <bruno@clisp.org>
7505
7506         ino-map tests: Refactor.
7507         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
7508         unnecessary includes.
7509         (ASSERT): Remove macro.
7510         (main): Make C90 compliant by avoiding variable declaration after
7511         statement.
7512         * modules/ino-map-tests (Files): Add tests/macros.h.
7513
7514 2011-02-08  Jim Meyering  <meyering@redhat.com>
7515
7516         di-set: add "const" to a cast
7517         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
7518         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
7519
7520 2011-02-06  Bruno Haible  <bruno@clisp.org>
7521
7522         Rename module 'wctype' to 'wctype-h'.
7523         * modules/wctype-h: Renamed from modules/wctype.
7524         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
7525         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
7526         (Files, Depends-on, Makefile.am): Update.
7527         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
7528         (Files, Makefile.am): Update.
7529         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
7530         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
7531         * doc/posix-headers/wctype.texi: Update.
7532         * doc/posix-functions/iswalnum.texi: Update.
7533         * doc/posix-functions/iswalpha.texi: Update.
7534         * doc/posix-functions/iswblank.texi: Update.
7535         * doc/posix-functions/iswcntrl.texi: Update.
7536         * doc/posix-functions/iswdigit.texi: Update.
7537         * doc/posix-functions/iswgraph.texi: Update.
7538         * doc/posix-functions/iswlower.texi: Update.
7539         * doc/posix-functions/iswprint.texi: Update.
7540         * doc/posix-functions/iswpunct.texi: Update.
7541         * doc/posix-functions/iswspace.texi: Update.
7542         * doc/posix-functions/iswupper.texi: Update.
7543         * doc/posix-functions/iswxdigit.texi: Update.
7544         * doc/posix-functions/towlower.texi: Update.
7545         * doc/posix-functions/towupper.texi: Update.
7546         * NEWS: Mention the change.
7547         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
7548         * modules/mbchar (Dependencies): Likewise.
7549         * modules/mbswidth (Dependencies): Likewise.
7550         * modules/quotearg (Dependencies): Likewise.
7551         * modules/regex (Dependencies): Likewise.
7552         * modules/wcscasecmp (Dependencies): Likewise.
7553         * modules/wcsncasecmp (Dependencies): Likewise.
7554         * modules/wcwidth (Dependencies): Likewise.
7555
7556 2011-02-06  Bruno Haible  <bruno@clisp.org>
7557
7558         New module 'wcswidth'.
7559         * modules/wcswidth: New file.
7560         * lib/wchar.in.h (wcswidth): New declaration.
7561         * lib/wcswidth.c: New file.
7562         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
7563         * m4/wcswidth.m4: New file.
7564         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
7565         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
7566         REPLACE_WCSWIDTH.
7567         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
7568         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
7569         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
7570         * doc/posix-functions/wcswidth.texi: Mention the new module.
7571
7572 2011-02-06  Bruno Haible  <bruno@clisp.org>
7573
7574         New module 'wcstok'.
7575         * modules/wcstok: New file.
7576         * lib/wchar.in.h (wcstok): New declaration.
7577         * lib/wcstok.c: New file.
7578         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
7579         * m4/wcstok.m4: New file.
7580         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
7581         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
7582         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
7583         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
7584         * doc/posix-functions/wcstok.texi: Mention the new module.
7585
7586 2011-02-06  Bruno Haible  <bruno@clisp.org>
7587
7588         New module 'wcsstr'.
7589         * modules/wcsstr: New file.
7590         * lib/wchar.in.h (wcsstr): New declaration.
7591         * lib/wcsstr.c: New file.
7592         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
7593         * m4/wcsstr.m4: New file.
7594         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
7595         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
7596         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
7597         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
7598         * doc/posix-functions/wcsstr.texi: Mention the new module.
7599
7600 2011-02-06  Bruno Haible  <bruno@clisp.org>
7601
7602         New module 'wcspbrk'.
7603         * modules/wcspbrk: New file.
7604         * lib/wchar.in.h (wcspbrk): New declaration.
7605         * lib/wcspbrk.c: New file.
7606         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
7607         * m4/wcspbrk.m4: New file.
7608         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
7609         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
7610         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
7611         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
7612         * doc/posix-functions/wcspbrk.texi: Mention the new module.
7613
7614 2011-02-06  Bruno Haible  <bruno@clisp.org>
7615
7616         New module 'wcsspn'.
7617         * modules/wcsspn: New file.
7618         * lib/wchar.in.h (wcsspn): New declaration.
7619         * lib/wcsspn.c: New file.
7620         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
7621         * m4/wcsspn.m4: New file.
7622         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
7623         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
7624         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
7625         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
7626         * doc/posix-functions/wcsspn.texi: Mention the new module.
7627
7628 2011-02-06  Bruno Haible  <bruno@clisp.org>
7629
7630         New module 'wcscspn'.
7631         * modules/wcscspn: New file.
7632         * lib/wchar.in.h (wcscspn): New declaration.
7633         * lib/wcscspn.c: New file.
7634         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
7635         * m4/wcscspn.m4: New file.
7636         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
7637         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
7638         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
7639         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
7640         * doc/posix-functions/wcscspn.texi: Mention the new module.
7641
7642 2011-02-06  Bruno Haible  <bruno@clisp.org>
7643
7644         New module 'wcsrchr'.
7645         * modules/wcsrchr: New file.
7646         * lib/wchar.in.h (wcsrchr): New declaration.
7647         * lib/wcsrchr.c: New file.
7648         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
7649         * m4/wcsrchr.m4: New file.
7650         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
7651         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
7652         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
7653         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
7654         * doc/posix-functions/wcsrchr.texi: Mention the new module.
7655
7656 2011-02-06  Bruno Haible  <bruno@clisp.org>
7657
7658         New module 'wcschr'.
7659         * modules/wcschr: New file.
7660         * lib/wchar.in.h (wcschr): New declaration.
7661         * lib/wcschr.c: New file.
7662         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
7663         * m4/wcschr.m4: New file.
7664         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
7665         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
7666         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
7667         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
7668         * doc/posix-functions/wcschr.texi: Mention the new module.
7669
7670 2011-02-06  Bruno Haible  <bruno@clisp.org>
7671
7672         New module 'wcsdup'.
7673         * modules/wcsdup: New file.
7674         * lib/wchar.in.h (wcsdup): New declaration.
7675         * lib/wcsdup.c: New file.
7676         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
7677         * m4/wcsdup.m4: New file.
7678         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
7679         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
7680         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
7681         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
7682         * doc/posix-functions/wcsdup.texi: Mention the new module.
7683
7684 2011-02-06  Bruno Haible  <bruno@clisp.org>
7685
7686         New module 'wcsxfrm'.
7687         * modules/wcsxfrm: New file.
7688         * lib/wchar.in.h (wcsxfrm): New declaration.
7689         * lib/wcsxfrm.c: New file.
7690         * lib/wcsxfrm-impl.h: New file.
7691         * m4/wcsxfrm.m4: New file.
7692         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
7693         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
7694         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
7695         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
7696         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
7697
7698 2011-02-06  Bruno Haible  <bruno@clisp.org>
7699
7700         New module 'wcscoll'.
7701         * modules/wcscoll: New file.
7702         * lib/wchar.in.h (wcscoll): New declaration.
7703         * lib/wcscoll.c: New file.
7704         * lib/wcscoll-impl.h: New file.
7705         * m4/wcscoll.m4: New file.
7706         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
7707         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
7708         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
7709         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
7710         * doc/posix-functions/wcscoll.texi: Mention the new module.
7711
7712 2011-02-06  Bruno Haible  <bruno@clisp.org>
7713
7714         New module 'wcsncasecmp'.
7715         * modules/wcsncasecmp: New file.
7716         * lib/wchar.in.h (wcsncasecmp): New declaration.
7717         * lib/wcsncasecmp.c: New file.
7718         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
7719         * m4/wcsncasecmp.m4: New file.
7720         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
7721         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
7722         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
7723         HAVE_WCSNCASECMP.
7724         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
7725         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
7726
7727 2011-02-06  Bruno Haible  <bruno@clisp.org>
7728
7729         New module 'wcscasecmp'.
7730         * modules/wcscasecmp: New file.
7731         * lib/wchar.in.h (wcscasecmp): New declaration.
7732         * lib/wcscasecmp.c: New file.
7733         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
7734         * m4/wcscasecmp.m4: New file.
7735         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
7736         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
7737         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
7738         HAVE_WCSCASECMP.
7739         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
7740         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
7741
7742 2011-02-05  Bruno Haible  <bruno@clisp.org>
7743
7744         New module 'wcsncmp'.
7745         * modules/wcsncmp: New file.
7746         * lib/wchar.in.h (wcsncmp): New declaration.
7747         * lib/wcsncmp.c: New file.
7748         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
7749         * m4/wcsncmp.m4: New file.
7750         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
7751         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
7752         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
7753         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
7754         * doc/posix-functions/wcsncmp.texi: Mention the new module.
7755
7756 2011-02-05  Bruno Haible  <bruno@clisp.org>
7757
7758         New module 'wcscmp'.
7759         * modules/wcscmp: New file.
7760         * lib/wchar.in.h (wcscmp): New declaration.
7761         * lib/wcscmp.c: New file.
7762         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
7763         * m4/wcscmp.m4: New file.
7764         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
7765         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
7766         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
7767         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
7768         * doc/posix-functions/wcscmp.texi: Mention the new module.
7769
7770 2011-02-05  Bruno Haible  <bruno@clisp.org>
7771
7772         New module 'wcsncat'.
7773         * modules/wcsncat: New file.
7774         * lib/wchar.in.h (wcsncat): New declaration.
7775         * lib/wcsncat.c: New file.
7776         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
7777         * m4/wcsncat.m4: New file.
7778         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
7779         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
7780         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
7781         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
7782         * doc/posix-functions/wcsncat.texi: Mention the new module.
7783
7784 2011-02-05  Bruno Haible  <bruno@clisp.org>
7785
7786         New module 'wcscat'.
7787         * modules/wcscat: New file.
7788         * lib/wchar.in.h (wcscat): New declaration.
7789         * lib/wcscat.c: New file.
7790         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
7791         * m4/wcscat.m4: New file.
7792         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
7793         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
7794         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
7795         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
7796         * doc/posix-functions/wcscat.texi: Mention the new module.
7797
7798 2011-02-05  Bruno Haible  <bruno@clisp.org>
7799
7800         New module 'wcpncpy'.
7801         * modules/wcpncpy: New file.
7802         * lib/wchar.in.h (wcpncpy): New declaration.
7803         * lib/wcpncpy.c: New file.
7804         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
7805         * m4/wcpncpy.m4: New file.
7806         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
7807         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
7808         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
7809         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
7810         * doc/posix-functions/wcpncpy.texi: Mention the new module.
7811
7812 2011-02-05  Bruno Haible  <bruno@clisp.org>
7813
7814         New module 'wcsncpy'.
7815         * modules/wcsncpy: New file.
7816         * lib/wchar.in.h (wcsncpy): New declaration.
7817         * lib/wcsncpy.c: New file.
7818         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
7819         * m4/wcsncpy.m4: New file.
7820         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
7821         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
7822         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
7823         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
7824         * doc/posix-functions/wcsncpy.texi: Mention the new module.
7825
7826 2011-02-05  Bruno Haible  <bruno@clisp.org>
7827
7828         New module 'wcpcpy'.
7829         * modules/wcpcpy: New file.
7830         * lib/wchar.in.h (wcpcpy): New declaration.
7831         * lib/wcpcpy.c: New file.
7832         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
7833         * m4/wcpcpy.m4: New file.
7834         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
7835         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
7836         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
7837         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
7838         * doc/posix-functions/wcpcpy.texi: Mention the new module.
7839
7840 2011-02-05  Bruno Haible  <bruno@clisp.org>
7841
7842         New module 'wcscpy'.
7843         * modules/wcscpy: New file.
7844         * lib/wchar.in.h (wcscpy): New declaration.
7845         * lib/wcscpy.c: New file.
7846         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
7847         * m4/wcscpy.m4: New file.
7848         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
7849         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
7850         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
7851         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
7852         * doc/posix-functions/wcscpy.texi: Mention the new module.
7853
7854 2011-02-05  Bruno Haible  <bruno@clisp.org>
7855
7856         New module 'wcsnlen'.
7857         * modules/wcsnlen: New file.
7858         * lib/wchar.in.h (wcsnlen): New declaration.
7859         * lib/wcsnlen.c: New file.
7860         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
7861         * m4/wcsnlen.m4: New file.
7862         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
7863         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
7864         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
7865         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
7866         * doc/posix-functions/wcsnlen.texi: Mention the new module.
7867
7868 2011-02-05  Bruno Haible  <bruno@clisp.org>
7869
7870         New module 'wcslen'.
7871         * modules/wcslen: New file.
7872         * lib/wchar.in.h (wcslen): New declaration.
7873         * lib/wcslen.c: New file.
7874         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
7875         * m4/wcslen.m4: New file.
7876         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
7877         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
7878         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
7879         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
7880         * doc/posix-functions/wcslen.texi: Mention the new module.
7881
7882 2011-02-05  Bruno Haible  <bruno@clisp.org>
7883
7884         New module 'wmemset'.
7885         * modules/wmemset: New file.
7886         * lib/wchar.in.h (wmemset): New declaration.
7887         * lib/wmemset.c: New file.
7888         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
7889         * m4/wmemset.m4: New file.
7890         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
7891         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
7892         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
7893         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
7894         * doc/posix-functions/wmemset.texi: Mention the new module.
7895
7896 2011-02-05  Bruno Haible  <bruno@clisp.org>
7897
7898         New module 'wmemmove'.
7899         * modules/wmemmove: New file.
7900         * lib/wchar.in.h (wmemmove): New declaration.
7901         * lib/wmemmove.c: New file.
7902         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
7903         * m4/wmemmove.m4: New file.
7904         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
7905         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
7906         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
7907         HAVE_WMEMMOVE.
7908         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
7909         * doc/posix-functions/wmemmove.texi: Mention the new module.
7910
7911 2011-02-05  Bruno Haible  <bruno@clisp.org>
7912
7913         New module 'wmemcpy'.
7914         * modules/wmemcpy: New file.
7915         * lib/wchar.in.h (wmemcpy): New declaration.
7916         * lib/wmemcpy.c: New file.
7917         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
7918         * m4/wmemcpy.m4: New file.
7919         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
7920         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
7921         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
7922         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
7923         * doc/posix-functions/wmemcpy.texi: Mention the new module.
7924
7925 2011-02-05  Bruno Haible  <bruno@clisp.org>
7926
7927         New module 'wmemcmp'.
7928         * modules/wmemcmp: New file.
7929         * lib/wchar.in.h (wmemcmp): New declaration.
7930         * lib/wmemcmp.c: New file.
7931         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
7932         * m4/wmemcmp.m4: New file.
7933         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
7934         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
7935         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
7936         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
7937         * doc/posix-functions/wmemcmp.texi: Mention the new module.
7938
7939 2011-02-07  Jim Meyering  <meyering@redhat.com>
7940
7941         di-set, ino-map: new modules, from coreutils
7942         * lib/di-set.c: New file.
7943         * lib/di-set.h: Likewise.
7944         * lib/ino-map.c: Likewise.
7945         * lib/ino-map.h: Likewise.
7946         * modules/di-set: Likewise.
7947         * modules/di-set-tests: Likewise.
7948         * modules/ino-map: Likewise.
7949         * modules/ino-map-tests: Likewise.
7950         * tests/test-di-set.c: Likewise.
7951         * tests/test-ino-map.c: Likewise.
7952
7953 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
7954
7955         getloadavg: merge minor changes from Emacs
7956
7957         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
7958         (getloadavg): Use memset, not bzero.
7959
7960         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
7961         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7962         clash (bug#86).
7963
7964 2010-11-14  Bruno Haible  <bruno@clisp.org>
7965
7966         Allow multiple gnulib generated replacements to coexist.
7967         * lib/getopt.in.h (struct option): Avoid identical redefinition.
7968         * lib/inttypes.in.h (imaxdiv_t): Likewise.
7969         * lib/langinfo.in.h (nl_item): Likewise.
7970         * lib/math.in.h (_NaN, NAN): Likewise.
7971         * lib/netdb.in.h (struct addrinfo): Likewise.
7972         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
7973         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
7974         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
7975         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
7976         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
7977         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
7978         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
7979         pthread_mutexattr_init, pthread_mutexattr_settype,
7980         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
7981         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
7982         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
7983         pthread_spin_trylock, pthread_spin_unlock): Likewise.
7984         * lib/sched.in.h (struct sched_param): Likewise.
7985         * lib/se-selinux.in.h (security_class_t, security_context_t,
7986         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
7987         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
7988         lsetfilecon, fsetfilecon, security_check_context,
7989         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
7990         Likewise.
7991         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
7992         Likewise.
7993         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
7994         _gl_function_taking_int_returning_void_t, union sigval,
7995         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
7996         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
7997         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7998         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
7999         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
8000         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
8001         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
8002         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
8003         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
8004         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
8005         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
8006         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
8007         socklen_t, rpl_fd_isset): Likewise.
8008         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
8009         * lib/sys_time.in.h (struct timeval): Likewise.
8010         * lib/sys_times.in.h (struct tms): Likewise.
8011         * lib/sys_utsname.in.h (struct utsname):
8012         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
8013         * lib/unistd.in.h (getpagesize): Likewise.
8014         * lib/wchar.in.h (mbstate_t): Likewise.
8015         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
8016         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
8017         towlower, towupper): Likewise.
8018         Reported by Sam Steingold <sds@gnu.org>.
8019
8020 2011-02-05  Eric Blake  <eblake@redhat.com>
8021
8022         unsetenv: work around Haiku issues
8023         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
8024         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
8025
8026 2010-12-30  Bruce Korb  <bkorb@gnu.org>
8027
8028         libposix: avoid calling error() within libposix
8029         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
8030         is defined.
8031
8032 2011-02-05  Eric Blake  <eblake@redhat.com>
8033
8034         strerror_r-posix: port to cygwin
8035         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
8036         implementation.
8037         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
8038         * tests/test-strerror_r.c (main): Fix test.
8039         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8040         issue.
8041
8042 2011-02-05  Bruno Haible  <bruno@clisp.org>
8043
8044         New module 'wmemchr'.
8045         * modules/wmemchr: New file.
8046         * lib/wchar.in.h (wmemchr): New declaration.
8047         * lib/wmemchr.c: New file.
8048         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
8049         * m4/wmemchr.m4: New file.
8050         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
8051         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
8052         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
8053         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
8054         * doc/posix-functions/wmemchr.texi: Mention the new module.
8055
8056 2011-02-04  Eric Blake  <eblake@redhat.com>
8057
8058         fdopendir: detect FreeBSD bug
8059         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
8060         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
8061
8062 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8063
8064         stdbool: do not define HAVE_STDBOOL_H
8065         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
8066         AC_HEADER_STDBOOL.  All uses changed.  Do not define
8067         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
8068         imported from the latest Autoconf git.  It was motivated by Emacs,
8069         which uses gnulib but does not need HAVE_STDBOOL_H.
8070
8071 2011-02-04  Bruno Haible  <bruno@clisp.org>
8072
8073         wcsnrtombs: Prepare for new module wwcsnrtombs.
8074         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
8075         * lib/wcsnrtombs.c: Include it.
8076         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
8077
8078         wcsrtombs: Prepare for new module wwcsrtombs.
8079         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
8080         * lib/wcsrtombs.c: Include it.
8081         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
8082
8083         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
8084         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
8085         * lib/mbsnrtowcs.c: Include it.
8086         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
8087
8088         mbsrtowcs: Prepare for new module mbsrtowwcs.
8089         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
8090         * lib/mbsrtowcs.c: Include it.
8091         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
8092
8093 2011-02-04  Bruno Haible  <bruno@clisp.org>
8094
8095         vasnprintf: Reduce use of malloc for small format strings.
8096         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
8097         (arguments): Add room for the first 7 arguments.
8098         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
8099         (char_directives, u8_directives, u16_directives, u32_directives): Add
8100         room for the first 7 directives.
8101         * lib/printf-parse.c: Include <string.h>.
8102         (PRINTF_PARSE): Change memory handling code so that it uses the first
8103         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
8104         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
8105         Reported by Pádraig Brady <P@draigbrady.com>.
8106
8107 2011-01-31  Eric Blake  <eblake@redhat.com>
8108
8109         dup2: work around Haiku bug
8110         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
8111         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
8112         * doc/posix-functions/dup2.texi (dup2): Document the bug.
8113         * tests/test-dup2.c (main): Enhance test.
8114
8115 2011-01-31  Simon Josefsson  <simon@josefsson.org>
8116
8117         doc: off_t is not available in eglibc 2.11.2 stdio.h.
8118         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
8119         declared by eglibc 2.11.2.
8120         * lib/stdio.in.h: Likewise.
8121
8122 2011-01-31  Eric Blake  <eblake@redhat.com>
8123
8124         ignore-value: add missing test dependency
8125         * tests/test-ignore-value.c: Revert previous change; stdio.h
8126         provides off_t.
8127         * modules/ignore-value-tests (Depends-on): Add missing dependency.
8128
8129 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
8130
8131         mktime: clarify long_int width checking
8132         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
8133         the top level, to make it clearer that the assumption about
8134         long_int width is being checked.  See
8135         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
8136
8137 2011-01-30  Simon Josefsson  <simon@josefsson.org>
8138
8139         ignore-value: Fix self-test.
8140         * tests/test-ignore-value.c: Include sys/types.h for off_t.
8141
8142 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
8143
8144         TYPE_MAXIMUM: avoid theoretically undefined behavior
8145         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
8146         negative number, which the C Standard says has undefined behavior.
8147         In practice this is not a problem, but might as well do it by the book.
8148         Reported by Rich Felker and Eric Blake; see
8149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
8150         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
8151         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8152         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8153         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
8154         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8155         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
8156
8157         mktime: #undef mktime before #defining it
8158         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
8159
8160         mktime: systematically normalize tm_isdst comparisons
8161         * lib/mktime.c (isdst_differ): New function.
8162         (__mktime_internal): Use it systematically for all isdst comparisons.
8163         This completes the fix for libc BZ #6723, and removes the need for
8164         normalizing tm_isdst.  See
8165         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
8166         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
8167
8168         mktime: fix some integer overflow issues and sidestep the rest
8169
8170         This was prompted by a bug report by Benjamin Lindner for MinGW
8171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
8172         His bug is due to signed integer overflow (0 - INT_MIN), and I
8173         I scanned through mktime.c looking for other integer overflow
8174         problems, fixing all the bugs I found.
8175
8176         Although the C Standard says the resulting code is still not safe
8177         in the presence of integer overflow, in practice it should be good
8178         enough for all real-world two's-complement implementations, except
8179         for debugging environments that deliberately trap on integer
8180         overflow (e.g., gcc -ftrapv).
8181
8182         * lib/mktime.c (WRAPV): New macro.
8183         (SHR): Also check that long_int and time_t shift right in the
8184         usual way, before using the fast-but-unportable method.
8185         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
8186         used.  The code already assumed two's complement, so there's
8187         no need to test for alternatives.  All uses removed.
8188         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
8189         the C standard.  Problem reported by Rich Felker in
8190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
8191         (twos_complement_arithmetic): Also check long_int and time_t.
8192         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
8193         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
8194         (__mktime_internal): Avoid integer overflow with unary subtraction
8195         in two instances where -1 - X is an adequate replacement for -X,
8196         since the calculations are approximate.
8197
8198 2011-01-29  Eric Blake  <eblake@redhat.com>
8199
8200         mktime: avoid infinite loop
8201         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
8202         type; behavior is still undefined but portable to all known targets.
8203         Reported by Rich Felker.
8204
8205 2011-01-29  Simon Josefsson  <simon@josefsson.org>
8206
8207         rename, unlink, same-inode: Relicense.
8208         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
8209         * modules/unlink (License): Likewise.
8210         * modules/same-inode (License): Likewise.
8211
8212 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8213
8214         mktime: avoid problems on NetBSD 5 / i386
8215         * lib/mktime.c (long_int): New type.  This works around a problem
8216         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
8217         but time_t is 64 bits, and where I expect the existing code is
8218         wrong in some cases.
8219         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
8220         (ydhms_diff): Bring back the compile-time check for wide-enough
8221         year and yday.
8222
8223         mktime: fix misspelling in comment
8224         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
8225         This merges all recent glibc changes of importance.
8226
8227 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8228
8229         move-if-change: cope with concurrent mv of identical file.
8230         * build-aux/move-if-change (CMPPROG): Accept environment
8231         variable as an override for `cmp'.
8232         (usage): Document CMPPROG.
8233         Adjust comparison to drop stdout.  Cope with failure of mv if
8234         the target file exists and is identical to the source, for
8235         parallel builds.
8236         Report from H.J. Lu against binutils in PR binutils/12283.
8237
8238 2011-01-28  Bruce Korb  <bkorb@gnu.org>
8239
8240         * users.txt: Mention sharutils.
8241
8242 2011-01-28  Simon Josefsson  <simon@josefsson.org>
8243
8244         * users.txt: Mention OATH Toolkit.
8245
8246 2011-01-27  Bruno Haible  <bruno@clisp.org>
8247
8248         Prepare for supporting FreeBSD 10.
8249         * build-aux/config.libpath: Remove handling of freebsd1*.
8250
8251 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
8252
8253         Prepare for supporting FreeBSD 10.
8254         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
8255         match FreeBSD 10.0.
8256
8257 2011-01-27  Bruno Haible  <bruno@clisp.org>
8258
8259         vma-iter, get-rusage-as: Add OpenBSD support.
8260         * modules/vma-iter (configure.ac): Test for mquery.
8261         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
8262         * lib/vma-iter.c: Include <sys/mman.h>.
8263         (vma_iterate): Add an implementation based on mquery().
8264         * lib/resource-ext.h (get_rusage_as): Update comments.
8265         * lib/get-rusage-as.c: Likewise.
8266         * lib/get-rusage-data.c: Likewise.
8267
8268 2011-01-26  Karl Berry  <karl@gnu.org>
8269
8270         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
8271         variables to make it easier to override the makeinfo program used.
8272
8273 2011-01-26  Eric Blake  <eblake@redhat.com>
8274
8275         fcntl: work around Haiku F_DUPFD bugs
8276         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
8277         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
8278         cloexec bit on duplication.
8279         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
8280
8281 2011-01-26  Bruno Haible  <bruno@clisp.org>
8282
8283         Enable memory leak tests on AIX.
8284         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
8285         * tests/test-fprintf-posix3.c (main): Likewise.
8286
8287 2011-01-26  Bruno Haible  <bruno@clisp.org>
8288
8289         Tests for module 'get-rusage-data'.
8290         * modules/get-rusage-data-tests: New file.
8291         * tests/test-get-rusage-data.c: New file.
8292
8293         New module 'get-rusage-data'.
8294         * lib/resource-ext.h (get_rusage_data): New declaration.
8295         * lib/get-rusage-data.c: New file.
8296         * modules/get-rusage-data: New file.
8297
8298 2011-01-25  Bruno Haible  <bruno@clisp.org>
8299
8300         get-rusage-as: Allow for easier testing.
8301         * lib/resource-ext.h (get_rusage_as): Add comment.
8302         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
8303         (main): New function for interactive testing.
8304
8305 2011-01-25  Bruno Haible  <bruno@clisp.org>
8306
8307         vma-iter: Treat Haiku like BeOS.
8308         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
8309         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
8310
8311 2011-01-25  Eric Blake  <eblake@redhat.com>
8312
8313         c-stack: fix regression on cygwin when libsigsegv is present
8314         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
8315
8316 2011-01-24  Bruno Haible  <bruno@clisp.org>
8317
8318         vma-iter: Avoid empty intervals.
8319         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
8320         on an empty interval.
8321
8322 2011-01-24  Jim Meyering  <meyering@redhat.com>
8323
8324         u64: remove unnecessary #include
8325         * lib/u64.h: Don't include <stddef.h>.  It was not used.
8326
8327 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8328
8329         Allow the user to avoid the HAVE_RAW_DECL_* macros.
8330         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
8331
8332 2011-01-23  Bruno Haible  <bruno@clisp.org>
8333
8334         New module 'vma-iter'.
8335         * lib/vma-iter.h: New file.
8336         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
8337         * modules/vma-iter: New file.
8338         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
8339         for get_rusage_as_via_iterator.
8340         (vma_iterate_callback): New function.
8341         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
8342         * modules/get-rusage-as (Depends-on): Add vma-iter.
8343
8344 2011-01-23  Bruno Haible  <bruno@clisp.org>
8345
8346         uninorm: Tweak includes.
8347         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
8348         Reported by Jim Meyering.
8349
8350 2011-01-23  Bruno Haible  <bruno@clisp.org>
8351
8352         get-rusage-as: Improve on NetBSD.
8353         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
8354         /proc, like on FreeBSD.
8355
8356 2011-01-23  Jim Meyering  <meyering@redhat.com>
8357
8358         xreadlink.h: remove unnecessary #include
8359         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
8360
8361         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
8362         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
8363
8364 2011-01-23  Bruno Haible  <bruno@clisp.org>
8365
8366         get-rusage-as: Fix bug.
8367         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
8368         original limit when aborting the first loop.
8369
8370 2011-01-23  Bruno Haible  <bruno@clisp.org>
8371
8372         wctype: Ensure valid C syntax.
8373         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
8374         unconditionally, instead of gl_NEXT_HEADERS conditionally.
8375
8376 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
8377
8378         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
8379         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
8380         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
8381         as they are needed only for configure's test case.
8382         This removes two unnecessary symbols from config.h.
8383
8384         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
8385         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
8386         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
8387         AC_CHECK_HEADERS_ONCE on a header that we also invoke
8388         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
8389         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
8390         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
8391         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
8392         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8393         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8394         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
8395         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8396         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8397         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8398         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
8399         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8400         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8401         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8402
8403 2011-01-21  Eric Blake  <eblake@redhat.com>
8404
8405         maintainer-makefile: work with older git for submodule check
8406         * top/maint.mk (public-submodule-commit): Rewrite to avoid
8407         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
8408         Reported by Matthias Bolte.
8409
8410         bootstrap: minor portability fixes
8411         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
8412         (usage): Omit leading capital and trailing . on help phrases, per
8413         GNU Coding Standards.
8414         (check_versions, top level): Prefix messages with script name.
8415
8416 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
8417
8418         bootstrap: support --no-git option
8419         * build-aux/bootstrap: Add --no-git option, to be used when
8420         --gnulib-srcdir points to the exact desired checkout.
8421
8422 2011-01-21  Eric Blake  <eblake@redhat.com>
8423
8424         strerror_r-posix: work with glibc 2.13
8425         * lib/strerror_r.c (strerror_r): Fix return type.
8426
8427 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8428             Bruno Haible  <bruno@clisp.org>
8429
8430         uN_strstr: New unit tests.
8431         * modules/unistr/u8-strstr-tests: New file.
8432         * modules/unistr/u16-strstr-tests: New file.
8433         * modules/unistr/u32-strstr-tests: New file.
8434         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
8435         * tests/unistr/test-u8-strstr.c: New file.
8436         * tests/unistr/test-u16-strstr.c: New file.
8437         * tests/unistr/test-u32-strstr.c: New file.
8438
8439 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8440             Bruno Haible  <bruno@clisp.org>
8441
8442         Make uN_strstr functions O(n) worst-case.
8443         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
8444         16-bit and 32-bit unit cases, use the unibyte algorithm from
8445         lib/mbsstr.c.
8446         * lib/unistr/u8-strstr.c: Include <string.h>.
8447         (UNIT_IS_UINT8_T): New macro.
8448         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
8449         (U_STRLEN, U_STRNLEN): New macros.
8450         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
8451         (U_STRLEN, U_STRNLEN): New macros.
8452         * modules/unistr/u8-strstr (Depends-on): Add strstr.
8453         (configure.ac): Update required libunistring version.
8454         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
8455         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
8456         malloca.
8457         (configure.ac): Update required libunistring version.
8458         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
8459         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
8460         malloca.
8461         (configure.ac): Update required libunistring version.
8462
8463 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8464             Bruno Haible  <bruno@clisp.org>
8465
8466         Prepare for faster uN_strstr functions.
8467         * lib/str-kmp.h: Support definable UNITs.
8468         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
8469         needle_len argument.
8470         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
8471         * lib/mbscasestr.c (mbscasestr): Likewise.
8472
8473 2011-01-21  Pádraig Brady <P@draigBrady.com>
8474
8475         malloca-tests: make faster by unsetting MALLOC_PERTURB_
8476         * tests/test-malloca.c (main): Unset the environment variable
8477         to greatly speed up the test.
8478         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
8479         * modules/malloca-tests: Depend on unsetenv.
8480
8481 2011-01-21  Pádraig Brady <P@draigBrady.com>
8482
8483         ignore-value: remove stdint dependency
8484         * lib/ignore-value.h: Remove <stdint.h>
8485         * modules/ignore-value: Remove stdint dependency.
8486
8487 2011-01-21  Jim Meyering  <meyering@redhat.com>
8488
8489         maint.mk: adjust variable name to be consistent with other gl_ vars
8490         * top/maint.mk (gl_public_submodule_commit): Rename the variable
8491         to be lower case.
8492
8493 2011-01-20  Jim Meyering  <meyering@redhat.com>
8494
8495         maint.mk: make "check" depend on public-submodule-commit by default
8496         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
8497
8498 2011-01-20  Bruno Haible  <bruno@clisp.org>
8499
8500         mbfile, mbiter: Complete change from 2008-12-21.
8501         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
8502         * m4/mbiter.m4 (gl_MBITER): Likewise.
8503
8504 2011-01-20  Jim Meyering  <meyering@redhat.com>
8505
8506         init.sh: insert space between each function name and "()"
8507         * tests/init.sh: Make it a little easier to see that a function's
8508         name is "warn_", and not "warn" when looking at the first part of
8509         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
8510
8511 2011-01-20  Jim Meyering  <meyering@redhat.com>
8512
8513         mountlist: clean up code formatting
8514         * lib/mountlist.c (read_file_system_list): Split a long line,
8515         correct bracing style, use NULL in place of "(struct statfs *)0",
8516         don't parenthesize return value, add spaces around "=" and after
8517         ";-in-for-stmt".
8518
8519 2011-01-14  Markus Duft <mduft@gentoo.org>
8520
8521         mountlist: add support for Interix
8522         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
8523         Apply statvfs to all entries of /dev/fs.
8524         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
8525         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
8526
8527 2011-01-20  Jim Meyering  <meyering@redhat.com>
8528
8529         maint.mk: improve the public-submodule-commit rule
8530         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
8531         to suppress printing of its commands... unless V=1.
8532         Add git submodule's --quiet option to suppress printing of e.g.,
8533         "Entering gnulib" output.
8534         "cd" into $(srcdir) before running git submodule.
8535
8536 2011-01-20  Bruno Haible  <bruno@clisp.org>
8537
8538         include_next: Fix bug introduced on 2011-01-18.
8539         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
8540         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
8541         ac_cv_header_... variable if the second argument is not 'check'.
8542         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
8543         gl_NEXT_HEADERS_INTERNAL.
8544
8545 2011-01-20  Bruno Haible  <bruno@clisp.org>
8546
8547         Allow the user to avoid the GNULIB_TEST_* macros.
8548         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
8549         Suggested by Paul Eggert.
8550
8551 2011-01-14  Jim Meyering  <meyering@redhat.com>
8552
8553         bootstrap: avoid failure when there is no .gitmodules file
8554         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
8555         has been assigned to, even when its value is the empty string.
8556         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
8557         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
8558         Reported by John W. Eaton <jwe@gnu.org>.
8559
8560 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
8561
8562         assume <ctype.h>, ..., <time.h> exist
8563         For years gnulib has been assuming the existence of the headers
8564         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
8565         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
8566         them, since they don't appear to be needed.
8567         * README (Portability guidelines): Document this.
8568         * lib/flock.c: Assume <fcntl.h> exists.
8569         * lib/regex_internal.h: Assume <locale.h> exists.
8570         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
8571         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
8572         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
8573         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
8574         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
8575         * m4/regex.m4 (gl_REGEX): Likewise.
8576         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
8577         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
8578         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
8579         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
8580         * tests/test-argp.c: Likewise.
8581         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
8582
8583         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
8584         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
8585         AA_APPLE_UNIVERSAL_BUILD.  See
8586         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
8587         * NEWS: Document this.
8588
8589 2011-01-19  Eric Blake  <eblake@redhat.com>
8590
8591         c-stack: assume stack overflow if SA_SIGINFO unsupported
8592         * lib/c-stack.c (SIGACTION_WORKS): Rename...
8593         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
8594         sigaction will work.
8595         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
8596         behavior match Linux.
8597         * tests/test-c-stack.c (main): Prefer NULL for pointers.
8598
8599         stdbool-tests: accomodate Haiku
8600         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
8601
8602         binary-io: fix O_TEXT on Haiku
8603         * modules/binary-io (Depends-on): Add fcntl-h.
8604         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
8605         than blindly undefining O_TEXT.
8606         Reported by Scott McCreary.
8607
8608 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8609
8610         include_next: do not check for standard headers like stddef.h
8611
8612         I found this problem when modifying Emacs to use gnulib.
8613         I noticed that it added HAVE_STDDEF_H to config.h, even though
8614         gnulib always assumes <stddef.h> exists as per README and this
8615         symbol is unnecessary.
8616         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
8617         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
8618         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
8619         faster for headers like stddef.h that are known to exist.
8620         (gl_CHECK_NEXT_HEADERS): Use it.
8621         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
8622         rather than gl_CHECK_NEXT_HEADERS.
8623         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
8624         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
8625
8626 2011-01-18  Eric Blake  <eblake@redhat.com>
8627
8628         ansi-c++-opt: skip C++ dependency style if C++ is unused
8629         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
8630         tests when we know C++ compilation is not desired.
8631         Reported by Scott McCreary.
8632
8633 2011-01-18  Bruno Haible  <bruno@clisp.org>
8634
8635         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
8636         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
8637         (main): Perform test also when getrlimit and setrlimit don't exist or
8638         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
8639         limiting the address space size using setrlimit, compare the address
8640         space size before and after the the test.
8641         * tests/test-dprintf-posix2.c: Likewise.
8642         * tests/test-fprintf-posix3.sh: Update skip messages.
8643         * tests/test-dprintf-posix2.sh: Likewise.
8644         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
8645         * modules/dprintf-posix-tests (Depends-on): Likewise.
8646         Reported by Bruce Korb <bkorb@gnu.org> and
8647         Gary V. Vaughan <gary@gnu.org>.
8648
8649 2011-01-18  Bruno Haible  <bruno@clisp.org>
8650
8651         get-rusage-as: Improvement for Cygwin.
8652         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
8653         areas that are merely reserved.
8654
8655 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8656
8657         strftime: remove dependencies on multibyte modules
8658
8659         strftime depended on mbrlen, mbsinit, and wchar, but these modules
8660         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
8661         only if __osf__ is defined, and I suspect OSF doesn't need these
8662         other modules.  If my guess is wrong, we'll need to come up with a
8663         variant of strftime that doesn't need the multibyte modules.
8664
8665         I discovered this problem when attempting modify Emacs to use the
8666         strftime module.  With the previous gnulib, this caused Emacs to
8667         need 31 new files, ranging from lib/config.charset to
8668         m4/wint_t.m4.  This was overkill and I expect would be offputting
8669         to the Emacs maintainers.  After this change, only 6 new files are
8670         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
8671         stdbool.m4, and tm_gmtoff.m4.
8672
8673         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
8674         Suggested by Bruno Haible in
8675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
8676         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
8677         and do not check for wchar.h.
8678         * modules/strftime (Files): Remove m4/mbstate_t.m4.
8679         (Depends-on): Remove mbrlen, mbsinit, wchar.
8680
8681 2011-01-18  Bruno Haible  <bruno@clisp.org>
8682
8683         Tests for module 'get-rusage-as'.
8684         * modules/get-rusage-as-tests: New file.
8685         * tests/test-get-rusage-as.c: New file.
8686
8687         New module 'get-rusage-as'.
8688         * modules/get-rusage-as: New file.
8689         * lib/resource-ext.h: New file.
8690         * lib/get-rusage-as.c: New file.
8691
8692 2011-01-17  Eric Blake  <eblake@redhat.com>
8693
8694         sigaction: relax license from LGPLv3+ to LGPLv2+
8695         * modules/sigaction (License): Relax to LGPLv2+.
8696
8697 2011-01-14  Bruno Haible  <bruno@clisp.org>
8698
8699         filemode: Make function declarations usable in C++ mode.
8700         * lib/filemode.h: Enclose function declarations in extern "C" block.
8701         Reported by John W. Eaton <jwe@gnu.org>.
8702
8703 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
8704
8705         save-cwd: no longer include "xgetcwd.h"
8706         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
8707         This avoids a compilation failure in projects that use save-cwd
8708         without also using the xgetcwd module.
8709
8710 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8711
8712         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
8713         This is so that a program like Emacs, which needs only dtoastr,
8714         does not have to bother with distributing and compiling ftoastr
8715         and ldtoastr.
8716         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
8717         * modules/dtoastr, modules/ldtoastr: New files.
8718         * modules/ftoastr: Now works just for 'float'.
8719         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
8720         (Makefile.am): Remove ftoastr.h (not needed and no effect),
8721         dtoastr.c, ldtoastr.c.
8722
8723 2011-01-11  Jim Meyering  <meyering@redhat.com>
8724
8725         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
8726         There is no need to work around the lack of the fchdir function,
8727         since gnulib can now provide a replacement when required.
8728         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
8729         * modules/save-cwd (Depends-on): Add fchdir.
8730
8731 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8732
8733         openat, save-cwd: avoid xmalloc
8734
8735         This removes a direct (but undocumented) dependency of openat on
8736         xalloc, along with an indirect dependency via save-cwd.  It also
8737         removes a dependency of save-cwd on xgetcwd, and thereby
8738         indirectly on xalloc.  This change causes the openat substitute
8739         to fall back on save_cwd when memory is tight, and for save_cwd to
8740         fail instead of dying when memory is tight, but that's good enough.
8741         Problem and initial idea for fix reported by Bastien Roucaries in
8742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
8743
8744         * lib/openat-proc.c: Include stdlib.h (for malloc), not
8745         xalloc.h (for xmalloc).
8746         (openat_proc_name): Use malloc, not xmalloc.
8747         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
8748         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
8749
8750         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
8751         This avoids heap allocation for file names whose lengths are in
8752         the range 512..1023, with the upper bound increasing to at most
8753         4031 depending on the platform's PATH_MAX.  (We do not want
8754         pathmax.h here as it might supply a non-constant PATH_MAX.)
8755         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
8756         Perhaps they should be moved to malloca.h?
8757         (OPENAT_BUFFER_SIZE): Use them.
8758
8759 2011-01-10  Bruno Haible  <bruno@clisp.org>
8760
8761         doc: Update users.txt.
8762         * users.txt: Add recutils.
8763
8764 2011-01-09  Karl Berry  <karl@gnu.org>
8765
8766         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
8767
8768         * doc/configmake.texi: New file.
8769         * doc/gnulib.texi: Include it.
8770         * modules/configmake: Move documentation from here.
8771
8772 2011-01-09  Bruno Haible  <bruno@clisp.org>
8773
8774         Update to Unicode 6.0.0.
8775         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
8776         (get_lbp): Update for Unicode 6.0.0.
8777         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
8778         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
8779         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
8780         U+11001, U+11038..U+11046. Remove U+06DE.
8781         (uc_width): Fix bounds of planes.
8782         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8783         lib/uniwidth/width.c.
8784         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
8785         trailing whitespace removed.
8786         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
8787         without comments, but with the original copyright notice.
8788         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
8789         * lib/unicase/ignorable.h: Likewise.
8790         * lib/unicase/tocasefold.h: Likewise.
8791         * lib/unicase/tolower.h: Likewise.
8792         * lib/unicase/totitle.h: Likewise.
8793         * lib/unicase/toupper.h: Likewise.
8794         * lib/unictype/bidi_of.h: Likewise.
8795         * lib/unictype/blocks.h: Likewise.
8796         * lib/unictype/categ_C.h: Likewise.
8797         * lib/unictype/categ_Cn.h: Likewise.
8798         * lib/unictype/categ_L.h: Likewise.
8799         * lib/unictype/categ_Ll.h: Likewise.
8800         * lib/unictype/categ_Lm.h: Likewise.
8801         * lib/unictype/categ_Lo.h: Likewise.
8802         * lib/unictype/categ_Lu.h: Likewise.
8803         * lib/unictype/categ_M.h: Likewise.
8804         * lib/unictype/categ_Mc.h: Likewise.
8805         * lib/unictype/categ_Me.h: Likewise.
8806         * lib/unictype/categ_Mn.h: Likewise.
8807         * lib/unictype/categ_N.h: Likewise.
8808         * lib/unictype/categ_Nd.h: Likewise.
8809         * lib/unictype/categ_No.h: Likewise.
8810         * lib/unictype/categ_P.h: Likewise.
8811         * lib/unictype/categ_Po.h: Likewise.
8812         * lib/unictype/categ_S.h: Likewise.
8813         * lib/unictype/categ_Sc.h: Likewise.
8814         * lib/unictype/categ_Sk.h: Likewise.
8815         * lib/unictype/categ_Sm.h: Likewise.
8816         * lib/unictype/categ_So.h: Likewise.
8817         * lib/unictype/categ_of.h: Likewise.
8818         * lib/unictype/combining.h: Likewise.
8819         * lib/unictype/ctype_alnum.h: Likewise.
8820         * lib/unictype/ctype_alpha.h: Likewise.
8821         * lib/unictype/ctype_graph.h: Likewise.
8822         * lib/unictype/ctype_lower.h: Likewise.
8823         * lib/unictype/ctype_print.h: Likewise.
8824         * lib/unictype/ctype_punct.h: Likewise.
8825         * lib/unictype/ctype_upper.h: Likewise.
8826         * lib/unictype/decdigit.h: Likewise.
8827         * lib/unictype/digit.h: Likewise.
8828         * lib/unictype/numeric.h: Likewise.
8829         * lib/unictype/pr_alphabetic.h: Likewise.
8830         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8831         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8832         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8833         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8834         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8835         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8836         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8837         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8838         * lib/unictype/pr_case_ignorable.h: Likewise.
8839         * lib/unictype/pr_cased.h: Likewise.
8840         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
8841         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
8842         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
8843         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
8844         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
8845         * lib/unictype/pr_combining.h: Likewise.
8846         * lib/unictype/pr_composite.h: Likewise.
8847         * lib/unictype/pr_currency_symbol.h: Likewise.
8848         * lib/unictype/pr_decimal_digit.h: Likewise.
8849         * lib/unictype/pr_deprecated.h: Likewise.
8850         * lib/unictype/pr_format_control.h: Likewise.
8851         * lib/unictype/pr_grapheme_base.h: Likewise.
8852         * lib/unictype/pr_grapheme_extend.h: Likewise.
8853         * lib/unictype/pr_grapheme_link.h: Likewise.
8854         * lib/unictype/pr_id_continue.h: Likewise.
8855         * lib/unictype/pr_id_start.h: Likewise.
8856         * lib/unictype/pr_ideographic.h: Likewise.
8857         * lib/unictype/pr_lowercase.h: Likewise.
8858         * lib/unictype/pr_math.h: Likewise.
8859         * lib/unictype/pr_numeric.h: Likewise.
8860         * lib/unictype/pr_other_alphabetic.h: Likewise.
8861         * lib/unictype/pr_other_id_continue.h: Likewise.
8862         * lib/unictype/pr_other_math.h: Likewise.
8863         * lib/unictype/pr_punctuation.h: Likewise.
8864         * lib/unictype/pr_sentence_terminal.h: Likewise.
8865         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8866         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8867         * lib/unictype/pr_unified_ideograph.h: Likewise.
8868         * lib/unictype/pr_uppercase.h: Likewise.
8869         * lib/unictype/pr_xid_continue.h: Likewise.
8870         * lib/unictype/pr_xid_start.h: Likewise.
8871         * lib/unictype/scripts.h: Likewise.
8872         * lib/unictype/scripts_byname.gperf: Likewise.
8873         * lib/unictype/sy_java_ident.h: Likewise.
8874         * lib/unigbrk/gbrkprop.h: Likewise.
8875         * lib/unilbrk/lbrkprop1.h: Likewise.
8876         * lib/unilbrk/lbrkprop2.h: Likewise.
8877         * lib/uninorm/decomposition-table2.h: Likewise.
8878         * lib/uniwbrk/wbrkprop.h: Likewise.
8879         * tests/unicase/test-cased.c: Likewise.
8880         * tests/unicase/test-ignorable.c: Likewise.
8881         * tests/unicase/test-uc_tolower.c: Likewise.
8882         * tests/unicase/test-uc_totitle.c: Likewise.
8883         * tests/unicase/test-uc_toupper.c: Likewise.
8884         * tests/unictype/test-categ_C.c: Likewise.
8885         * tests/unictype/test-categ_Cn.c: Likewise.
8886         * tests/unictype/test-categ_L.c: Likewise.
8887         * tests/unictype/test-categ_Ll.c: Likewise.
8888         * tests/unictype/test-categ_Lm.c: Likewise.
8889         * tests/unictype/test-categ_Lo.c: Likewise.
8890         * tests/unictype/test-categ_Lu.c: Likewise.
8891         * tests/unictype/test-categ_M.c: Likewise.
8892         * tests/unictype/test-categ_Mc.c: Likewise.
8893         * tests/unictype/test-categ_Me.c: Likewise.
8894         * tests/unictype/test-categ_Mn.c: Likewise.
8895         * tests/unictype/test-categ_N.c: Likewise.
8896         * tests/unictype/test-categ_Nd.c: Likewise.
8897         * tests/unictype/test-categ_No.c: Likewise.
8898         * tests/unictype/test-categ_P.c: Likewise.
8899         * tests/unictype/test-categ_Po.c: Likewise.
8900         * tests/unictype/test-categ_S.c: Likewise.
8901         * tests/unictype/test-categ_Sc.c: Likewise.
8902         * tests/unictype/test-categ_Sk.c: Likewise.
8903         * tests/unictype/test-categ_Sm.c: Likewise.
8904         * tests/unictype/test-categ_So.c: Likewise.
8905         * tests/unictype/test-ctype_alnum.c: Likewise.
8906         * tests/unictype/test-ctype_alpha.c: Likewise.
8907         * tests/unictype/test-ctype_graph.c: Likewise.
8908         * tests/unictype/test-ctype_lower.c: Likewise.
8909         * tests/unictype/test-ctype_print.c: Likewise.
8910         * tests/unictype/test-ctype_punct.c: Likewise.
8911         * tests/unictype/test-ctype_upper.c: Likewise.
8912         * tests/unictype/test-decdigit.h: Likewise.
8913         * tests/unictype/test-digit.h: Likewise.
8914         * tests/unictype/test-numeric.h: Likewise.
8915         * tests/unictype/test-pr_alphabetic.c: Likewise.
8916         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8917         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8918         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8919         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8920         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8921         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8922         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8923         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8924         * tests/unictype/test-pr_case_ignorable.c: Likewise.
8925         * tests/unictype/test-pr_cased.c: Likewise.
8926         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
8927         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
8928         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
8929         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
8930         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
8931         * tests/unictype/test-pr_combining.c: Likewise.
8932         * tests/unictype/test-pr_composite.c: Likewise.
8933         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8934         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8935         * tests/unictype/test-pr_deprecated.c: Likewise.
8936         * tests/unictype/test-pr_format_control.c: Likewise.
8937         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8938         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8939         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8940         * tests/unictype/test-pr_id_continue.c: Likewise.
8941         * tests/unictype/test-pr_id_start.c: Likewise.
8942         * tests/unictype/test-pr_ideographic.c: Likewise.
8943         * tests/unictype/test-pr_lowercase.c: Likewise.
8944         * tests/unictype/test-pr_math.c: Likewise.
8945         * tests/unictype/test-pr_numeric.c: Likewise.
8946         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8947         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8948         * tests/unictype/test-pr_other_math.c: Likewise.
8949         * tests/unictype/test-pr_punctuation.c: Likewise.
8950         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8951         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8952         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8953         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8954         * tests/unictype/test-pr_uppercase.c: Likewise.
8955         * tests/unictype/test-pr_xid_continue.c: Likewise.
8956         * tests/unictype/test-pr_xid_start.c: Likewise.
8957         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8958         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8959         changes.
8960         * lib/unictype/categ_Cc.h: Likewise.
8961         * lib/unictype/categ_Cf.h: Likewise.
8962         * lib/unictype/categ_Co.h: Likewise.
8963         * lib/unictype/categ_Cs.h: Likewise.
8964         * lib/unictype/categ_Lt.h: Likewise.
8965         * lib/unictype/categ_Nl.h: Likewise.
8966         * lib/unictype/categ_Pc.h: Likewise.
8967         * lib/unictype/categ_Pd.h: Likewise.
8968         * lib/unictype/categ_Pe.h: Likewise.
8969         * lib/unictype/categ_Pf.h: Likewise.
8970         * lib/unictype/categ_Pi.h: Likewise.
8971         * lib/unictype/categ_Ps.h: Likewise.
8972         * lib/unictype/categ_Z.h: Likewise.
8973         * lib/unictype/categ_Zl.h: Likewise.
8974         * lib/unictype/categ_Zp.h: Likewise.
8975         * lib/unictype/categ_Zs.h: Likewise.
8976         * lib/unictype/ctype_blank.h: Likewise.
8977         * lib/unictype/ctype_cntrl.h: Likewise.
8978         * lib/unictype/ctype_digit.h: Likewise.
8979         * lib/unictype/ctype_space.h: Likewise.
8980         * lib/unictype/ctype_xdigit.h: Likewise.
8981         * lib/unictype/mirror.h: Likewise.
8982         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8983         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8984         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8985         * lib/unictype/pr_bidi_control.h: Likewise.
8986         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8987         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8988         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8989         * lib/unictype/pr_bidi_pdf.h: Likewise.
8990         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8991         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8992         * lib/unictype/pr_dash.h: Likewise.
8993         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8994         * lib/unictype/pr_diacritic.h: Likewise.
8995         * lib/unictype/pr_extender.h: Likewise.
8996         * lib/unictype/pr_hex_digit.h: Likewise.
8997         * lib/unictype/pr_hyphen.h: Likewise.
8998         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8999         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9000         * lib/unictype/pr_ignorable_control.h: Likewise.
9001         * lib/unictype/pr_iso_control.h: Likewise.
9002         * lib/unictype/pr_join_control.h: Likewise.
9003         * lib/unictype/pr_left_of_pair.h: Likewise.
9004         * lib/unictype/pr_line_separator.h: Likewise.
9005         * lib/unictype/pr_logical_order_exception.h: Likewise.
9006         * lib/unictype/pr_non_break.h: Likewise.
9007         * lib/unictype/pr_not_a_character.h: Likewise.
9008         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9009         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9010         * lib/unictype/pr_other_id_start.h: Likewise.
9011         * lib/unictype/pr_other_lowercase.h: Likewise.
9012         * lib/unictype/pr_other_uppercase.h: Likewise.
9013         * lib/unictype/pr_paired_punctuation.h: Likewise.
9014         * lib/unictype/pr_paragraph_separator.h: Likewise.
9015         * lib/unictype/pr_pattern_syntax.h: Likewise.
9016         * lib/unictype/pr_pattern_white_space.h: Likewise.
9017         * lib/unictype/pr_private_use.h: Likewise.
9018         * lib/unictype/pr_quotation_mark.h: Likewise.
9019         * lib/unictype/pr_radical.h: Likewise.
9020         * lib/unictype/pr_soft_dotted.h: Likewise.
9021         * lib/unictype/pr_space.h: Likewise.
9022         * lib/unictype/pr_titlecase.h: Likewise.
9023         * lib/unictype/pr_variation_selector.h: Likewise.
9024         * lib/unictype/pr_white_space.h: Likewise.
9025         * lib/unictype/pr_zero_width.h: Likewise.
9026         * lib/unictype/sy_c_ident.h: Likewise.
9027         * lib/unictype/sy_c_whitespace.h: Likewise.
9028         * lib/unictype/sy_java_whitespace.h: Likewise.
9029         * lib/uninorm/composition-table.gperf: Likewise.
9030         * lib/uninorm/decomposition-table1.h: Likewise.
9031         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
9032         LB8.
9033         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9034         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9035         * modules/unictype/*: Bump version number of expected libunistring
9036         version.
9037
9038 2011-01-09  Bruno Haible  <bruno@clisp.org>
9039
9040         Update to Unicode 5.2.0.
9041         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
9042         trailing whitespace removed.
9043
9044 2011-01-09  Bruno Haible  <bruno@clisp.org>
9045
9046         New Unicode character properties, from Unicode 5.2.0.
9047         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
9048         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
9049         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
9050         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
9051         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
9052         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
9053         uc_is_property_cased, uc_is_property_case_ignorable,
9054         uc_is_property_changes_when_lowercased,
9055         uc_is_property_changes_when_uppercased,
9056         uc_is_property_changes_when_titlecased,
9057         uc_is_property_changes_when_casefolded,
9058         uc_is_property_changes_when_casemapped): New declarations.
9059         * lib/unictype/pr_byname.gperf: Add the new properties.
9060         * modules/unictype/property-byname (Depends-on): Depend on the new
9061         properties modules.
9062         * modules/unictype/property-all (Depends-on): Likewise.
9063         * MODULES.html.sh (Unicode string functions): Add
9064         unictype/property-case-ignorable, unictype/property-cased,
9065         unictype/property-changes-when-casefolded,
9066         unictype/property-changes-when-casemapped,
9067         unictype/property-changes-when-lowercased,
9068         unictype/property-changes-when-titlecased,
9069         unictype/property-changes-when-uppercased.
9070
9071         New module 'unictype/property-changes-when-casemapped'.
9072         * modules/unictype/property-changes-when-casemapped: New file.
9073         * lib/unictype/pr_changes_when_casemapped.c: New file.
9074         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
9075         generated by gen-uni-tables.
9076         * modules/unictype/property-changes-when-casemapped-tests: New file.
9077         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
9078         automatically generated by gen-uni-tables.
9079
9080         New module 'unictype/property-changes-when-casefolded'.
9081         * modules/unictype/property-changes-when-casefolded: New file.
9082         * lib/unictype/pr_changes_when_casefolded.c: New file.
9083         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
9084         generated by gen-uni-tables.
9085         * modules/unictype/property-changes-when-casefolded-tests: New file.
9086         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
9087         automatically generated by gen-uni-tables.
9088
9089         New module 'unictype/property-changes-when-titlecased'.
9090         * modules/unictype/property-changes-when-titlecased: New file.
9091         * lib/unictype/pr_changes_when_titlecased.c: New file.
9092         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
9093         generated by gen-uni-tables.
9094         * modules/unictype/property-changes-when-titlecased-tests: New file.
9095         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
9096         automatically generated by gen-uni-tables.
9097
9098         New module 'unictype/property-changes-when-uppercased'.
9099         * modules/unictype/property-changes-when-uppercased: New file.
9100         * lib/unictype/pr_changes_when_uppercased.c: New file.
9101         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
9102         generated by gen-uni-tables.
9103         * modules/unictype/property-changes-when-uppercased-tests: New file.
9104         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
9105         automatically generated by gen-uni-tables.
9106
9107         New module 'unictype/property-changes-when-lowercased'.
9108         * modules/unictype/property-changes-when-lowercased: New file.
9109         * lib/unictype/pr_changes_when_lowercased.c: New file.
9110         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
9111         generated by gen-uni-tables.
9112         * modules/unictype/property-changes-when-lowercased-tests: New file.
9113         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
9114         automatically generated by gen-uni-tables.
9115
9116         New module 'unictype/property-case-ignorable'.
9117         * modules/unictype/property-case-ignorable: New file.
9118         * lib/unictype/pr_case_ignorable.c: New file.
9119         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
9120         by gen-uni-tables.
9121         * modules/unictype/property-case-ignorable-tests: New file.
9122         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
9123         generated by gen-uni-tables.
9124
9125         New module 'unictype/property-cased'.
9126         * modules/unictype/property-cased: New file.
9127         * lib/unictype/pr_cased.c: New file.
9128         * lib/unictype/pr_cased.h: New file, automatically generated by
9129         gen-uni-tables.
9130         * modules/unictype/property-cased-tests: New file.
9131         * tests/unictype/test-pr_cased.c: New file, automatically generated by
9132         gen-uni-tables.
9133
9134 2011-01-09  Bruno Haible  <bruno@clisp.org>
9135
9136         Update to Unicode 5.2.0.
9137         * lib/gen-uni-tables.c (output_predicate, output_category,
9138         output_combclass, output_bidi_category, output_decimal_digit_test,
9139         output_decimal_digit, output_digit_test, output_digit,
9140         output_numeric_test, output_numeric, output_mirror, output_scripts,
9141         output_scripts_byname, output_blocks, output_ident_category): Fix
9142         comment header.
9143         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
9144         get_wbp.
9145         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
9146         items.
9147         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
9148         Changes_When_Lowercased, Changes_When_Uppercased,
9149         Changes_When_Titlecased, Changes_When_Casefolded,
9150         Changes_When_Casemapped.
9151         (is_property_alphabetic, is_property_default_ignorable_code_point):
9152         Update for Unicode 5.2.0.
9153         (is_property_cased, is_property_case_ignorable,
9154         is_property_changes_when_lowercased,
9155         is_property_changes_when_uppercased,
9156         is_property_changes_when_titlecased,
9157         is_property_changes_when_casefolded,
9158         is_property_changes_when_casemapped): New functions.
9159         (output_properties): Output also the properties cased, case_ignorable,
9160         changes_when_lowercased, changes_when_uppercased,
9161         changes_when_titlecased, changes_when_casefolded,
9162         changes_when_casemapped.
9163         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
9164         Unicode TR#11 revision 17 -> 19.
9165         (LBP_CP): New enumeration value.
9166         (LBP_*): Adjust values accordingly.
9167         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
9168         TR#14 revision 22 -> 24.
9169         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
9170         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
9171         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
9172         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
9173         is_WBP_MIDLETTER.
9174         (output_composition_tables): Allow for 24 bits instead of 16 bits in
9175         the code1 and code2 of each composition rule.
9176         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
9177         * lib/unicase/ignorable.h: Likewise.
9178         * lib/unicase/tocasefold.h: Likewise.
9179         * lib/unicase/tolower.h: Likewise.
9180         * lib/unicase/totitle.h: Likewise.
9181         * lib/unicase/toupper.h: Likewise.
9182         * lib/unictype/bidi_of.h: Likewise.
9183         * lib/unictype/blocks.h: Likewise.
9184         * lib/unictype/categ_C.h: Likewise.
9185         * lib/unictype/categ_Cf.h: Likewise.
9186         * lib/unictype/categ_Cn.h: Likewise.
9187         * lib/unictype/categ_L.h: Likewise.
9188         * lib/unictype/categ_Ll.h: Likewise.
9189         * lib/unictype/categ_Lm.h: Likewise.
9190         * lib/unictype/categ_Lo.h: Likewise.
9191         * lib/unictype/categ_Lu.h: Likewise.
9192         * lib/unictype/categ_M.h: Likewise.
9193         * lib/unictype/categ_Mc.h: Likewise.
9194         * lib/unictype/categ_Mn.h: Likewise.
9195         * lib/unictype/categ_N.h: Likewise.
9196         * lib/unictype/categ_Nd.h: Likewise.
9197         * lib/unictype/categ_Nl.h: Likewise.
9198         * lib/unictype/categ_No.h: Likewise.
9199         * lib/unictype/categ_P.h: Likewise.
9200         * lib/unictype/categ_Pd.h: Likewise.
9201         * lib/unictype/categ_Po.h: Likewise.
9202         * lib/unictype/categ_S.h: Likewise.
9203         * lib/unictype/categ_Sc.h: Likewise.
9204         * lib/unictype/categ_So.h: Likewise.
9205         * lib/unictype/categ_of.h: Likewise.
9206         * lib/unictype/combining.h: Likewise.
9207         * lib/unictype/ctype_alnum.h: Likewise.
9208         * lib/unictype/ctype_alpha.h: Likewise.
9209         * lib/unictype/ctype_graph.h: Likewise.
9210         * lib/unictype/ctype_lower.h: Likewise.
9211         * lib/unictype/ctype_print.h: Likewise.
9212         * lib/unictype/ctype_punct.h: Likewise.
9213         * lib/unictype/ctype_upper.h: Likewise.
9214         * lib/unictype/decdigit.h: Likewise.
9215         * lib/unictype/digit.h: Likewise.
9216         * lib/unictype/numeric.h: Likewise.
9217         * lib/unictype/pr_alphabetic.h: Likewise.
9218         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9219         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9220         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9221         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9222         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9223         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9224         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9225         * lib/unictype/pr_combining.h: Likewise.
9226         * lib/unictype/pr_composite.h: Likewise.
9227         * lib/unictype/pr_currency_symbol.h: Likewise.
9228         * lib/unictype/pr_dash.h: Likewise.
9229         * lib/unictype/pr_decimal_digit.h: Likewise.
9230         * lib/unictype/pr_deprecated.h: Likewise.
9231         * lib/unictype/pr_diacritic.h: Likewise.
9232         * lib/unictype/pr_extender.h: Likewise.
9233         * lib/unictype/pr_grapheme_base.h: Likewise.
9234         * lib/unictype/pr_grapheme_extend.h: Likewise.
9235         * lib/unictype/pr_grapheme_link.h: Likewise.
9236         * lib/unictype/pr_id_continue.h: Likewise.
9237         * lib/unictype/pr_id_start.h: Likewise.
9238         * lib/unictype/pr_ideographic.h: Likewise.
9239         * lib/unictype/pr_ignorable_control.h: Likewise.
9240         * lib/unictype/pr_logical_order_exception.h: Likewise.
9241         * lib/unictype/pr_lowercase.h: Likewise.
9242         * lib/unictype/pr_numeric.h: Likewise.
9243         * lib/unictype/pr_other_alphabetic.h: Likewise.
9244         * lib/unictype/pr_punctuation.h: Likewise.
9245         * lib/unictype/pr_sentence_terminal.h: Likewise.
9246         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9247         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9248         * lib/unictype/pr_unified_ideograph.h: Likewise.
9249         * lib/unictype/pr_uppercase.h: Likewise.
9250         * lib/unictype/pr_xid_continue.h: Likewise.
9251         * lib/unictype/pr_xid_start.h: Likewise.
9252         * lib/unictype/pr_zero_width.h: Likewise.
9253         * lib/unictype/scripts.h: Likewise.
9254         * lib/unictype/scripts_byname.gperf: Likewise.
9255         * lib/unictype/sy_java_ident.h: Likewise.
9256         * lib/unigbrk/gbrkprop.h: Likewise.
9257         * lib/unilbrk/lbrkprop1.h: Likewise.
9258         * lib/unilbrk/lbrkprop2.h: Likewise.
9259         * lib/unilbrk/lbrktables.h: Likewise.
9260         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
9261         LBP_CP. Implement rule LB30.
9262         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
9263         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
9264         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
9265         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
9266         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
9267         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
9268         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
9269         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
9270         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
9271         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
9272         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
9273         bits instead of 16 bits in the code1 and code2 of each composition
9274         rule.
9275         (uc_composition): Update for Unicode 5.2.0.
9276         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
9277         * lib/uninorm/decomposition-table2.h: Likewise.
9278         * lib/uniwbrk/wbrkprop.h: Likewise.
9279         * tests/unicase/test-cased.c: Likewise.
9280         * tests/unicase/test-ignorable.c: Likewise.
9281         * tests/unicase/test-uc_tolower.c: Likewise.
9282         * tests/unicase/test-uc_totitle.c: Likewise.
9283         * tests/unicase/test-uc_toupper.c: Likewise.
9284         * tests/unictype/test-categ_C.c: Likewise.
9285         * tests/unictype/test-categ_Cf.c: Likewise.
9286         * tests/unictype/test-categ_Cn.c: Likewise.
9287         * tests/unictype/test-categ_L.c: Likewise.
9288         * tests/unictype/test-categ_Ll.c: Likewise.
9289         * tests/unictype/test-categ_Lm.c: Likewise.
9290         * tests/unictype/test-categ_Lo.c: Likewise.
9291         * tests/unictype/test-categ_Lu.c: Likewise.
9292         * tests/unictype/test-categ_M.c: Likewise.
9293         * tests/unictype/test-categ_Mc.c: Likewise.
9294         * tests/unictype/test-categ_Mn.c: Likewise.
9295         * tests/unictype/test-categ_N.c: Likewise.
9296         * tests/unictype/test-categ_Nd.c: Likewise.
9297         * tests/unictype/test-categ_Nl.c: Likewise.
9298         * tests/unictype/test-categ_No.c: Likewise.
9299         * tests/unictype/test-categ_P.c: Likewise.
9300         * tests/unictype/test-categ_Pd.c: Likewise.
9301         * tests/unictype/test-categ_Po.c: Likewise.
9302         * tests/unictype/test-categ_S.c: Likewise.
9303         * tests/unictype/test-categ_Sc.c: Likewise.
9304         * tests/unictype/test-categ_So.c: Likewise.
9305         * tests/unictype/test-ctype_alnum.c: Likewise.
9306         * tests/unictype/test-ctype_alpha.c: Likewise.
9307         * tests/unictype/test-ctype_graph.c: Likewise.
9308         * tests/unictype/test-ctype_lower.c: Likewise.
9309         * tests/unictype/test-ctype_print.c: Likewise.
9310         * tests/unictype/test-ctype_punct.c: Likewise.
9311         * tests/unictype/test-ctype_upper.c: Likewise.
9312         * tests/unictype/test-decdigit.h: Likewise.
9313         * tests/unictype/test-digit.h: Likewise.
9314         * tests/unictype/test-numeric.h: Likewise.
9315         * tests/unictype/test-pr_alphabetic.c: Likewise.
9316         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9317         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9318         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
9319         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9320         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9321         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9322         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9323         * tests/unictype/test-pr_combining.c: Likewise.
9324         * tests/unictype/test-pr_composite.c: Likewise.
9325         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9326         * tests/unictype/test-pr_dash.c: Likewise.
9327         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9328         * tests/unictype/test-pr_deprecated.c: Likewise.
9329         * tests/unictype/test-pr_diacritic.c: Likewise.
9330         * tests/unictype/test-pr_extender.c: Likewise.
9331         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9332         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9333         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9334         * tests/unictype/test-pr_id_continue.c: Likewise.
9335         * tests/unictype/test-pr_id_start.c: Likewise.
9336         * tests/unictype/test-pr_ideographic.c: Likewise.
9337         * tests/unictype/test-pr_ignorable_control.c: Likewise.
9338         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
9339         * tests/unictype/test-pr_lowercase.c: Likewise.
9340         * tests/unictype/test-pr_numeric.c: Likewise.
9341         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9342         * tests/unictype/test-pr_punctuation.c: Likewise.
9343         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9344         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9345         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9346         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9347         * tests/unictype/test-pr_uppercase.c: Likewise.
9348         * tests/unictype/test-pr_xid_continue.c: Likewise.
9349         * tests/unictype/test-pr_xid_start.c: Likewise.
9350         * tests/unictype/test-pr_zero_width.c: Likewise.
9351         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
9352         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
9353         changed behaviour: line breaking is now disallowed between a letter
9354         or '=' and '('.
9355         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9356         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9357         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
9358         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
9359         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9360         lib/uniwidth/width.c.
9361         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
9362         without comments, but with the original copyright notice.
9363         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
9364         changes.
9365         * lib/unictype/categ_Cc.h: Likewise.
9366         * lib/unictype/categ_Co.h: Likewise.
9367         * lib/unictype/categ_Cs.h: Likewise.
9368         * lib/unictype/categ_Lt.h: Likewise.
9369         * lib/unictype/categ_Me.h: Likewise.
9370         * lib/unictype/categ_Pc.h: Likewise.
9371         * lib/unictype/categ_Pe.h: Likewise.
9372         * lib/unictype/categ_Pf.h: Likewise.
9373         * lib/unictype/categ_Pi.h: Likewise.
9374         * lib/unictype/categ_Ps.h: Likewise.
9375         * lib/unictype/categ_Sk.h: Likewise.
9376         * lib/unictype/categ_Sm.h: Likewise.
9377         * lib/unictype/categ_Z.h: Likewise.
9378         * lib/unictype/categ_Zl.h: Likewise.
9379         * lib/unictype/categ_Zp.h: Likewise.
9380         * lib/unictype/categ_Zs.h: Likewise.
9381         * lib/unictype/ctype_blank.h: Likewise.
9382         * lib/unictype/ctype_cntrl.h: Likewise.
9383         * lib/unictype/ctype_digit.h: Likewise.
9384         * lib/unictype/ctype_space.h: Likewise.
9385         * lib/unictype/ctype_xdigit.h: Likewise.
9386         * lib/unictype/mirror.h: Likewise.
9387         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9388         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9389         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9390         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9391         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9392         * lib/unictype/pr_bidi_control.h: Likewise.
9393         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9394         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9395         * lib/unictype/pr_bidi_pdf.h: Likewise.
9396         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9397         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9398         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9399         * lib/unictype/pr_format_control.h: Likewise.
9400         * lib/unictype/pr_hex_digit.h: Likewise.
9401         * lib/unictype/pr_hyphen.h: Likewise.
9402         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9403         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9404         * lib/unictype/pr_iso_control.h: Likewise.
9405         * lib/unictype/pr_join_control.h: Likewise.
9406         * lib/unictype/pr_left_of_pair.h: Likewise.
9407         * lib/unictype/pr_line_separator.h: Likewise.
9408         * lib/unictype/pr_math.h: Likewise.
9409         * lib/unictype/pr_non_break.h: Likewise.
9410         * lib/unictype/pr_not_a_character.h: Likewise.
9411         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9412         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9413         * lib/unictype/pr_other_id_continue.h: Likewise.
9414         * lib/unictype/pr_other_id_start.h: Likewise.
9415         * lib/unictype/pr_other_lowercase.h: Likewise.
9416         * lib/unictype/pr_other_math.h: Likewise.
9417         * lib/unictype/pr_other_uppercase.h: Likewise.
9418         * lib/unictype/pr_paired_punctuation.h: Likewise.
9419         * lib/unictype/pr_paragraph_separator.h: Likewise.
9420         * lib/unictype/pr_pattern_syntax.h: Likewise.
9421         * lib/unictype/pr_pattern_white_space.h: Likewise.
9422         * lib/unictype/pr_private_use.h: Likewise.
9423         * lib/unictype/pr_quotation_mark.h: Likewise.
9424         * lib/unictype/pr_radical.h: Likewise.
9425         * lib/unictype/pr_soft_dotted.h: Likewise.
9426         * lib/unictype/pr_space.h: Likewise.
9427         * lib/unictype/pr_titlecase.h: Likewise.
9428         * lib/unictype/pr_variation_selector.h: Likewise.
9429         * lib/unictype/pr_white_space.h: Likewise.
9430         * lib/unictype/sy_c_ident.h: Likewise.
9431         * lib/unictype/sy_c_whitespace.h: Likewise.
9432         * lib/unictype/sy_java_whitespace.h: Likewise.
9433         * modules/uni*/*: Bump version number of expected libunistring version.
9434         Reported by Simon Josefsson.
9435
9436 2011-01-09  Karl Heuer  <kwzh@gnu.org>
9437
9438         useless-if-before-free: fix typo in --help and make the internal,
9439         automatic version date update process work once again.
9440         --help output contained a NUL character instead of the
9441         backslash-zero that was intended.  Also, the "must lie within
9442         the first 8 lines" line is on line 9, and hence not getting
9443         automatically updated.
9444         * build-aux/useless-if-before-free: Fix the former by adding a
9445         backslash, and the latter by condensing the three lines of what-it-does
9446         to a single line, leaving one line of slack for the future.
9447
9448 2011-01-09  Bruno Haible  <bruno@clisp.org>
9449
9450         uniwidth/width: Fix width of U+1D173..U+1D17A.
9451         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
9452         symbolic_width, output_width_property_test): New functions.
9453         (main): Invoke output_nonspacing_property, output_width_property_test.
9454         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
9455         U+1D173..U+1D17A.
9456         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
9457         1.
9458         * modules/uniwidth/*: Bump version number of expected libunistring
9459         version.
9460         * modules/unilbrk/*: Likewise.
9461
9462 2011-01-08  Bruno Haible  <bruno@clisp.org>
9463
9464         uninorm tests: Preserve copyright of Unicode data file.
9465         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
9466         Mention modifications.
9467
9468 2011-01-08  Bruno Haible  <bruno@clisp.org>
9469
9470         gen-uni-tables: Prepare for Unicode 5.2.0.
9471         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
9472         (debug_output_lbp, output_lbp): Update.
9473
9474 2011-01-08  Bruno Haible  <bruno@clisp.org>
9475
9476         unilbrk: Clarify gen-uni-tables.c code.
9477         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
9478         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
9479         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
9480
9481 2011-01-07  Bruno Haible  <bruno@clisp.org>
9482
9483         strtod: Restore errno when successfully parsing Infinity or NaN.
9484         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
9485         restore the original errno.
9486
9487 2011-01-07  Bruno Haible  <bruno@clisp.org>
9488
9489         remove test: Avoid failure on HP-UX 11.
9490         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
9491
9492 2011-01-07  Bruno Haible  <bruno@clisp.org>
9493
9494         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
9495         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
9496         error code.
9497
9498 2011-01-07  Pádraig Brady <P@draigBrady.com>
9499
9500         ignore-value: fixup comments, and add Eric Blake
9501         as an author since he rewrote the macros.
9502         * lib/ignore-value.h (ignore_value):  State that
9503         we now support aggregates.  Also specify exactly
9504         when the GCC warn_unused_result feature was added.
9505
9506 2011-01-06  Eric Blake  <eblake@redhat.com>
9507
9508         ignore-value: support aggregate types
9509         * lib/ignore-value.h (ignore_value): Provide separate gcc
9510         definition.
9511         * modules/ignore-value-tests: New test module.
9512         * tests/test-ignore-value.c: New test.
9513
9514         maint.mk: improve sc_prohibit_strcmp regex
9515         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
9516         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
9517         definition of STRNEQ.
9518
9519         signal: work around Haiku issue with SIGBUS
9520         * lib/siglist.h: Add comment.
9521         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
9522         strsignal's favoring of SIGSEGV.
9523         * tests/test-signal.c (main): Avoid test failure.
9524         * doc/posix-headers/signal.texi (signal.h): Document the issue.
9525         Reported by Scott McCreary.
9526
9527         maint.mk: add pre-release check to ensure submodule commits are public
9528         * top/maint.mk (public-submodule-commit): New rule.
9529         (submodule-checks): New variable.
9530         (alpha beta stable): Depend on the variable.
9531
9532 2011-01-05  Pádraig Brady <P@draigBrady.com>
9533         and Jim Meyering  <meyering@redhat.com>
9534
9535         ignore-value: make ignore_value more generic; deprecate ignore_ptr
9536         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
9537         (ATTRIBUTE_DEPRECATED): Define.
9538         (_ignore_case): New function.
9539         (ignore_value): New macro, to replace the old function.
9540         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
9541         * modules/ignore-value (Depends-on): Add stdint.
9542
9543 2011-01-04  Eric Blake  <eblake@redhat.com>
9544
9545         doc: regenerate INSTALL
9546         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
9547         @firstparagraphindent support, now that autoconf dropped it.
9548         (INSTALL_PRELUDE): Reinstate old macro.
9549         * doc/install.texi: Resync from autoconf.
9550         * doc/INSTALL: Reflect recent autoconf update.
9551         * doc/INSTALL.ISO: Likewise.
9552         * doc/INSTALL.UTF-8: Likewise.
9553         Reported by Karl Berry.
9554
9555 2011-01-04  Bruce Korb  <address@hidden>
9556
9557         git-version-gen: avoid a sub-shell
9558         * build-aux/git-version-gen: Redirect stderr in `...` via
9559         "exec 2>...", rather than via an added sub-shell.
9560
9561 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
9562
9563         git-version-gen: use (...) rather than sh -c '...'
9564         * build-aux/git-version-gen: Rather than hard-coding a shell's name
9565         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
9566
9567 2011-01-03  Jim Meyering  <meyering@redhat.com>
9568
9569         git-version-gen: convert leading TABs to spaces
9570         * build-aux/git-version-gen: Expand leading TABs.
9571
9572         git-version-gen: handle failed "git rev-list"
9573         * build-aux/git-version-gen: Rather than leaking a "fatal" error
9574         from git and proceeding as if it had succeeded but printed no SHA1
9575         checksums, suppress the diagnostic and handle the failure.
9576         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
9577
9578         git-version-gen: include command name in one more diagnostic
9579         * build-aux/git-version-gen: When the required .tarball-version file
9580         was missing or unreadable, you might see the diagnostic from "cat",
9581         but no trace of the name of the invoking script.  Now, you still see
9582         the diagnostic from cat, but also get one from "git-version-gen: ".
9583         Inspired by a patch from Bruce Korb.
9584
9585         update-copyright: adjust test to match changed code
9586         * tests/test-update-copyright.sh: Change test's expected output
9587         to match new actual output.
9588
9589 2011-01-02  Bruno Haible  <bruno@clisp.org>
9590
9591         getlogin_r: Avoid test failure on HP-UX 11.
9592         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
9593         ERANGE when the second argument is zero.
9594         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
9595         portability problem.
9596
9597 2011-01-02  Bruce Korb  <bkorb@gnu.org>
9598
9599         * build-aux/update-copyright: doc Simon's changes
9600
9601 2011-01-02  Simon Josefsson  <simon@josefsson.org>
9602
9603         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
9604         environment variable.
9605
9606 2011-01-02  Bruno Haible  <bruno@clisp.org>
9607
9608         unigbrk: Avoid gcc warnings.
9609         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
9610         unused variable.
9611         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
9612         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
9613         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
9614         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
9615         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
9616         Change type of first argument to 'const char *'.
9617         (main): Remove unused variable.
9618         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
9619         type of first argument to 'const char *'.
9620         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
9621         Likewise.
9622         (main): Change type of variable 's'.
9623         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
9624         to 'int'.
9625
9626 2011-01-02  Bruno Haible  <bruno@clisp.org>
9627
9628         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
9629         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
9630         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
9631         bug.
9632         * lib/pwrite.c: Undo 2010-12-31 patch.
9633         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
9634
9635 2011-01-02  Bruno Haible  <bruno@clisp.org>
9636
9637         pread: Fix test whether it works.
9638         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
9639
9640 2011-01-02  Bruno Haible  <bruno@clisp.org>
9641
9642         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
9643         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
9644         ends in "6". Don't require a specific month name. Try also the locale
9645         names found on HP-UX 11 and Solaris 7.
9646
9647 2011-01-02  Bruno Haible  <bruno@clisp.org>
9648
9649         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
9650         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
9651         C linkage.
9652         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
9653
9654 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9655
9656         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
9657         for consistency, since the "cluster" term is not used elsewhere.
9658         * lib/unigbrk.in.h: Update name.
9659         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
9660         * lib/unigbrk/u16-grapheme-next.c: Update name.
9661         * lib/unigbrk/u16-grapheme-prev.c: Update name.
9662         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
9663         * lib/unigbrk/u32-grapheme-next.c: Update name.
9664         * lib/unigbrk/u32-grapheme-prev.c: Update name.
9665         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
9666         * lib/unigbrk/u8-grapheme-next.c: Update name.
9667         * lib/unigbrk/u8-grapheme-prev.c: Update name.
9668         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
9669         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
9670         Suggested by Bruno Haible.
9671
9672 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9673
9674         Remove module 'u8-grapheme-len' as too redundant with
9675         'u8-grapheme-next'.
9676         * modules/unigbrk/u8-grapheme-len: Delete file.
9677         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
9678         * lib/unigbrk.in.h: Remove prototype for deleted function.
9679         * lib/unigbrk/u8-grapheme-len.c: Delete file.
9680         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
9681
9682         Remove module 'u16-grapheme-len' as too redundant with
9683         'u16-grapheme-next'.
9684         * modules/unigbrk/u16-grapheme-len: Delete file.
9685         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
9686         * lib/unigbrk.in.h: Remove prototype for deleted function.
9687         * lib/unigbrk/u16-grapheme-len.c: Delete file.
9688         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
9689
9690         Remove module 'u32-grapheme-len' as too redundant with
9691         'u32-grapheme-next'.
9692         * modules/unigbrk/u32-grapheme-len: Delete file.
9693         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
9694         * lib/unigbrk.in.h: Remove prototype for deleted function.
9695         * lib/unigbrk/u32-grapheme-len.c: Delete file.
9696         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
9697
9698         Suggested by Bruno Haible.
9699
9700 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9701
9702         * unigbrk.in.h: Fix typo: "ben" => "been".
9703         Reported by Bruno Haible.
9704
9705 2011-01-01  Jim Meyering  <meyering@redhat.com>
9706
9707         maint: update almost all copyright ranges to include 2011
9708         Run the new "make update-copyright" rule.
9709
9710 2011-01-01  Jim Meyering  <meyering@redhat.com>
9711
9712         maint: update-copyright: exempt doc/INSTALL*
9713         * Makefile (update-copyright): Also exclude doc/INSTALL*,
9714         since they are generated.  Suggested by Bruno Haible.
9715
9716 2011-01-01  Jim Meyering  <meyering@redhat.com>
9717
9718         maint: refine the update-copyright rule
9719         * Makefile (update-copyright): Also exclude any file that includes
9720         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
9721         code that merely generates the comment.
9722
9723 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9724
9725         New module 'u8-grapheme-len'.
9726         * modules/unigbrk/u8-grapheme-len: New file.
9727         * modules/unigbrk/u8-grapheme-len-tests: New file.
9728         * lib/unigbrk.in.h: Add prototype for new function.
9729         * lib/unigbrk/u8-grapheme-len.c: New file.
9730         * tests/unigbrk/test-u8-grapheme-len.c: New file.
9731
9732         New module 'u16-grapheme-len'.
9733         * modules/unigbrk/u16-grapheme-len: New file.
9734         * modules/unigbrk/u16-grapheme-len-tests: New file.
9735         * lib/unigbrk.in.h: Add prototype for new function.
9736         * lib/unigbrk/u16-grapheme-len.c: New file.
9737         * tests/unigbrk/test-u16-grapheme-len.c: New file.
9738
9739         New module 'u32-grapheme-len'.
9740         * modules/unigbrk/u32-grapheme-len: New file.
9741         * modules/unigbrk/u32-grapheme-len-tests: New file.
9742         * lib/unigbrk.in.h: Add prototype for new function.
9743         * lib/unigbrk/u32-grapheme-len.c: New file.
9744         * tests/unigbrk/test-u32-grapheme-len.c: New file.
9745
9746         New module 'u8-grapheme-next'.
9747         * modules/unigbrk/u8-grapheme-next: New file.
9748         * modules/unigbrk/u8-grapheme-next-tests: New file.
9749         * lib/unigbrk.in.h: Add prototype for new function.
9750         * lib/unigbrk/u8-grapheme-next.c: New file.
9751         * tests/unigbrk/test-u8-grapheme-next.c: New file.
9752
9753         New module 'u16-grapheme-next'.
9754         * modules/unigbrk/u16-grapheme-next: New file.
9755         * modules/unigbrk/u16-grapheme-next-tests: New file.
9756         * lib/unigbrk.in.h: Add prototype for new function.
9757         * lib/unigbrk/u16-grapheme-next.c: New file.
9758         * tests/unigbrk/test-u16-grapheme-next.c: New file.
9759
9760         New module 'u32-grapheme-next'.
9761         * modules/unigbrk/u32-grapheme-next: New file.
9762         * modules/unigbrk/u32-grapheme-next-tests: New file.
9763         * lib/unigbrk.in.h: Add prototype for new function.
9764         * lib/unigbrk/u32-grapheme-next.c: New file.
9765         * tests/unigbrk/test-u32-grapheme-next.c: New file.
9766
9767         New module 'u8-grapheme-prev'.
9768         * modules/unigbrk/u8-grapheme-prev: New file.
9769         * modules/unigbrk/u8-grapheme-prev-tests: New file.
9770         * lib/unigbrk.in.h: Add prototype for new function.
9771         * lib/unigbrk/u8-grapheme-prev.c: New file.
9772         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
9773
9774         New module 'u16-grapheme-prev'.
9775         * modules/unigbrk/u16-grapheme-prev: New file.
9776         * modules/unigbrk/u16-grapheme-prev-tests: New file.
9777         * lib/unigbrk.in.h: Add prototype for new function.
9778         * lib/unigbrk/u16-grapheme-prev.c: New file.
9779         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
9780
9781         New module 'u32-grapheme-prev'.
9782         * modules/unigbrk/u32-grapheme-prev: New file.
9783         * modules/unigbrk/u32-grapheme-prev-tests: New file.
9784         * lib/unigbrk.in.h: Add prototype for new function.
9785         * lib/unigbrk/u32-grapheme-prev.c: New file.
9786         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
9787
9788         New module 'u8-grapheme-breaks'.
9789         * modules/unigbrk/u8-grapheme-breaks: New file.
9790         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
9791         * lib/unigbrk.in.h: Add prototype for new function.
9792         * lib/unigbrk/u8-grapheme-breaks.c: New file.
9793         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
9794
9795         New module 'u16-grapheme-breaks'.
9796         * modules/unigbrk/u16-grapheme-breaks: New file.
9797         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
9798         * lib/unigbrk.in.h: Add prototype for new function.
9799         * lib/unigbrk/u16-grapheme-breaks.c: New file.
9800         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
9801
9802         New module 'u32-grapheme-breaks'.
9803         * modules/unigbrk/u32-grapheme-breaks: New file.
9804         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
9805         * lib/unigbrk.in.h: Add prototype for new function.
9806         * lib/unigbrk/u32-grapheme-breaks.c: New file.
9807         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
9808
9809         New module 'ulc-grapheme-breaks'.
9810         * modules/unigbrk/ulc-grapheme-breaks: New file.
9811         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
9812         * m4/locale-ar.m4: New file.
9813         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
9814         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
9815         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
9816
9817 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9818
9819         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
9820         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
9821         modified how this file was generated before I initially submitted
9822         the module, but failed to regenerate it.  This meant that several
9823         of the level2 entries were wrong.
9824         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
9825         Remove the division-by-2 that is folded into the table now that
9826         gbrkprop.h has been regenerated properly.  Now -1 entries are
9827         handled correctly.
9828
9829         New module 'unigbrk/uc-gbrk-prop-tests'.
9830         * modules/unigbrk/uc-gbrk-prop-tests: New file.
9831         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
9832         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
9833         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
9834
9835 2011-01-01  Bruno Haible  <bruno@clisp.org>
9836
9837         Avoid use of hexadecimal escapes.
9838         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
9839         instead of hexadecimal escapes.
9840
9841 2011-01-01  Jim Meyering  <meyering@redhat.com>
9842
9843         maint: new rule to update copyright year ranges
9844         * Makefile (update-copyright): New rule.
9845
9846         maint: indent with TABs in Makefile
9847         * Makefile: Expand leading sequences of spaces to TABs
9848
9849         version-etc: update the copyright year it reports
9850         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
9851
9852 2010-12-31  Bruno Haible  <bruno@clisp.org>
9853
9854         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
9855         * lib/isfinite.c (zerof, zerod, zerol): New variables.
9856         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
9857         zero.
9858
9859 2010-12-31  Bruno Haible  <bruno@clisp.org>
9860
9861         pwrite: Work around HP-UX 11.11 bug.
9862         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
9863         works and set REPLACE_PWRITE if not.
9864         * lib/pwrite.c (pwrite): Add an implementation that uses the system
9865         function.
9866         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
9867
9868 2010-12-31  Bruno Haible  <bruno@clisp.org>
9869
9870         pread: Work around HP-UX 11 bugs.
9871         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
9872         and set REPLACE_PREAD if not.
9873         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
9874
9875 2010-12-31  Eric Blake  <eblake@redhat.com>
9876
9877         nl_langinfo: fix YESEXPR on Irix 6.5
9878         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
9879         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
9880         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
9881         it.
9882
9883 2010-12-31  Bruno Haible  <bruno@clisp.org>
9884
9885         iconv: Document HP-UX 11 bug.
9886         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
9887
9888 2010-12-31  Bruno Haible  <bruno@clisp.org>
9889
9890         ldexpl: Fix link error on HP-UX 11.
9891         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
9892         LDEXPL_LIBM, using $ISNANL_LIBM.
9893
9894 2010-12-31  Eric Blake  <eblake@redhat.com>
9895
9896         ftello: avoid compilation failure with SunStudio c89
9897         * lib/ftello.c (ftello): Use lseek, not llseek.
9898
9899         tests: avoid failing coreutils tests on cygwin
9900         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
9901         (create_exe_shims_): Return 0 when skipping.
9902
9903 2010-12-31  Bruno Haible  <bruno@clisp.org>
9904
9905         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
9906         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
9907
9908 2010-12-31  Bruno Haible  <bruno@clisp.org>
9909
9910         waitpid: Fix link error in C++ mode.
9911         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
9912
9913 2010-12-31  Bruno Haible  <bruno@clisp.org>
9914
9915         isnan: Use GCC built-ins when possible.
9916         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
9917         __builtin_isnan.
9918         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
9919         (isnan): Define using GCC built-ins for GCC >= 4.0.
9920
9921 2010-12-31  Bruno Haible  <bruno@clisp.org>
9922
9923         isnand: Fix mistake.
9924         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
9925         __builtin_isnand.
9926
9927 2010-12-31  Bruno Haible  <bruno@clisp.org>
9928
9929         open: Avoid C++ error on HP-UX 11.
9930         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
9931
9932 2010-12-31  Bruno Haible  <bruno@clisp.org>
9933
9934         time_r: Add missing declarations on HP-UX 11.
9935         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
9936         instead of HAVE_LOCALTIME_R.
9937         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
9938         HAVE_LOCALTIME_R always.
9939         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
9940         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
9941         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
9942         HAVE_LOCALTIME_R.
9943         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
9944         * doc/posix-functions/localtime_r.texi: Likewise.
9945
9946 2010-12-29  Eric Blake  <eblake@redhat.com>
9947
9948         mountlist: tweak previous commit
9949         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
9950         Reported by Paul Eggert.
9951
9952         mountlist: fix local drive detection on cygwin
9953         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
9954         that works for cygwin.
9955
9956 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9957
9958         ftoastr, snprintf: ftoastr + snprintf module
9959         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
9960         since the snprintf module now should be good enough here.
9961         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
9962         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
9963         and gl_MODULE_INDICATOR([snprintf]), but the former enables
9964         GNULIB_SNPRINTF only for the test directory, and the latter
9965         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
9966         seems to suffice by itself.
9967
9968 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
9969
9970         alloca: one step towards thread-safety
9971         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
9972         need for a static variable.  All callers changed.  This does not
9973         make the alloca replacement thread-safe, but it's one step.
9974
9975         tests: minor indenting change
9976         * tests/init.sh: Sync from coreutils housekeeping patch
9977         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
9978         to keep lines within 80 columns.
9979
9980 2010-12-28  Jim Meyering  <meyering@redhat.com>
9981
9982         regex: don't infloop on persistent failing calloc
9983         * lib/regexec.c (build_trtable): Return failure indication upon
9984         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
9985         In glibc, this was fixed for version 2.13:
9986         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
9987
9988 2010-12-28  Bruno Haible  <bruno@clisp.org>
9989             Paul Eggert <eggert@cs.ucla.edu>
9990
9991         linkat: Make implementation robust against system behaviour variations.
9992         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
9993         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
9994         way, and to -2 if it needs a generic runtime test.
9995         * lib/linkat.c (solaris_optimized_link_immediate,
9996         solaris_optimized_link_follow): New functions.
9997         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
9998         (check_same_link): Use it.
9999
10000 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
10001
10002         New module 'unigbrk/base'.
10003         * modules/unigbrk/base: New file.
10004         * lib/unigbrk.in.h: New file.
10005
10006         New module 'unigbrk/uc-gbrk-prop'.
10007         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
10008         * modules/unigbrk/uc-gbrk-prop: New file.
10009         * lib/unigbrk/gbrkprop.h: New file.
10010         * lib/unigbrk/uc-gbrk-prop.c: New file.
10011
10012         New module 'unigbrk/uc-is-grapheme-break'.
10013         * modules/unigbrk/uc-is-grapheme-break: New file.
10014         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
10015         * lib/unigbrk/uc-is-grapheme-break.c: New file.
10016         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
10017         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
10018         * tests/unigbrk/GraphemeBreakTest.txt: New file.
10019
10020         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
10021
10022 2010-12-27  Bruno Haible  <bruno@clisp.org>
10023
10024         linkat test: Avoid failure on Solaris 11 2010-11.
10025         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
10026
10027 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10028
10029         utimens: work around glibc rounding bug on more platforms
10030         * lib/utimens.c (fdutimens): Work around rounding bug even if
10031         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
10032         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
10033
10034 2010-12-27  Bruno Haible  <bruno@clisp.org>
10035
10036         select tests: Improve comments.
10037         * tests/test-select.c (do_select): Add comments.
10038
10039 2010-12-27  Bruno Haible  <bruno@clisp.org>
10040
10041         select tests: Safer way of handling timeout.
10042         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
10043         at every invocation.
10044
10045 2010-12-27  Bruno Haible  <bruno@clisp.org>
10046
10047         select tests: Use 'bool' where appropriate.
10048         * tests/test-select.c (connect_to_socket): Change argument type to
10049         'bool'.
10050
10051 2010-12-27  Bruno Haible  <bruno@clisp.org>
10052
10053         select tests: Use existing modules.
10054         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
10055         (configure.ac): Don't test for unistd.h.
10056         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
10057         declared in <unistd.h>.
10058
10059 2010-12-27  Bruno Haible  <bruno@clisp.org>
10060
10061         mbrtowc: Work around a Solaris 7 bug.
10062         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
10063         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
10064         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
10065         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
10066         MBRTOWC_NULL_ARG1_BUG.
10067         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
10068         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
10069         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
10070         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
10071
10072 2010-12-27  Jim Meyering  <meyering@redhat.com>
10073
10074         read-file.c: tweak syntax
10075         * lib/read-file.c (fread_file): Remove space after "*" in function
10076         definitions.
10077
10078 2010-12-27  Bruno Haible  <bruno@clisp.org>
10079
10080         times test: Avoid gcc warnings on OSF/1.
10081         * tests/test-times.c (main): Cast printf arguments from clock_t to
10082         'long int'.
10083
10084 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10085
10086         utimens: work around glibc rounding bug on older Linux kernels
10087         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
10088         on Linux with a glibc whose utimes might not work, then work
10089         around a longstanding glibc bug involving rounding rather than
10090         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
10091         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
10092
10093 2010-12-26  Bruno Haible  <bruno@clisp.org>
10094
10095         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
10096         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
10097         _GL_CXXALIAS_SYS.
10098         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10099
10100 2010-12-26  Bruno Haible  <bruno@clisp.org>
10101
10102         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
10103         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
10104         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10105         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
10106         looking for the declaration.
10107         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
10108         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
10109         problem.
10110         * doc/posix-functions/inet_pton.texi: Likewise.
10111
10112 2010-12-26  Bruno Haible  <bruno@clisp.org>
10113
10114         arpa_inet: Use the common idioms with C++ support.
10115         * lib/arpa_inet.in.h: Include c++defs.h.
10116         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
10117         support.
10118         * modules/arpa_inet (Depends-on): Add c++defs.
10119         (Makefile.am): Substitute the contents of c++defs.h.
10120         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
10121         * modules/arpa_inet-c++-tests: New file.
10122         * tests/test-arpa_inet-c++.cc: New file.
10123
10124 2010-12-25  Bruno Haible  <bruno@clisp.org>
10125
10126         Fix more C++ link errors on Solaris 8.
10127         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
10128         $(LIB_EACCESS).
10129         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
10130         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
10131         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
10132         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
10133         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
10134
10135 2010-12-25  Bruno Haible  <bruno@clisp.org>
10136
10137         printf-posix: Fix link error when a non-GCC compiler is used.
10138         * lib/stdio.in.h (printf): When not using GCC, override printf
10139         correctly.
10140         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10141
10142 2010-12-25  Bruno Haible  <bruno@clisp.org>
10143
10144         strerror_r-posix: Update doc.
10145         * doc/posix-functions/strerror_r.texi: Update doc about the return
10146         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
10147
10148 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10149
10150         utimens: simplify the logic of the previous change
10151         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
10152         This should not affect whether the test succeeds or fails.
10153
10154         utimens: configure better on hosts with NFS clock skew
10155         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
10156         uses the clock of the local host.  It might use the clock of the
10157         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
10158         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
10159
10160 2010-12-25  Bruno Haible  <bruno@clisp.org>
10161
10162         ptsname test: Avoid failure on Solaris.
10163         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
10164         open a pseudo-terminal; don't use BSD-style ptys.
10165         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
10166
10167 2010-12-25  Bruno Haible  <bruno@clisp.org>
10168
10169         ptsname: Avoid ERANGE failure on some systems.
10170         * lib/ptsname.c (buffer): Increase size.
10171
10172 2010-12-25  Bruno Haible  <bruno@clisp.org>
10173
10174         rename, renameat: Avoid test failures at NFS mounted locations.
10175         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
10176         so that subsequent mkdir calls succeed.
10177
10178 2010-12-25  Bruno Haible  <bruno@clisp.org>
10179
10180         iswblank: Fix C++ link error on Solaris 8.
10181         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
10182         _GL_FUNCDECL_SYS.
10183
10184 2010-12-25  Bruno Haible  <bruno@clisp.org>
10185
10186         unistd: Fix C++ link error on Solaris 8.
10187         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
10188
10189 2010-12-25  Bruno Haible  <bruno@clisp.org>
10190
10191         readlink doc: Mention an old glibc bug.
10192         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
10193
10194 2010-12-25  Bruno Haible  <bruno@clisp.org>
10195
10196         fcntl-h: Fix for use of C++ on glibc systems.
10197         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
10198         also on glibc systems in C++ mode.
10199         Reported by Gary V. Vaughan <gary@gnu.org>.
10200
10201 2010-12-25  Bruno Haible  <bruno@clisp.org>
10202
10203         roundl-ieee: Make it work on OSF/1 5.1 with cc.
10204         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
10205
10206 2010-12-25  Bruno Haible  <bruno@clisp.org>
10207
10208         truncl-ieee: Make it work on OSF/1 5.1 with cc.
10209         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
10210         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
10211         test whether truncl works according to ISO C 99 with IEC 60559.
10212         * m4/truncl-ieee.m4: New file.
10213         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
10214         m4/signbit.m4.
10215         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
10216
10217 2010-12-25  Bruno Haible  <bruno@clisp.org>
10218
10219         ceill-ieee: Make it work on OSF/1 5.1 with cc.
10220         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
10221         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
10222         test whether ceill works according to ISO C 99 with IEC 60559.
10223         * m4/ceill-ieee.m4: New file.
10224         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
10225         m4/signbit.m4.
10226         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
10227
10228 2010-12-25  Bruno Haible  <bruno@clisp.org>
10229
10230         Ensure all prerequisites of <wchar.h> are included.
10231         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
10232         before <wchar.h>.
10233         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10234         gl_MBRLEN_NUL_RETVAL): Likewise.
10235         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10236         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
10237         AC_FUNC_MBRTOWC): Likewise.
10238         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10239         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
10240         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10241         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
10242         Likewise.
10243         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10244         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
10245         (gl_WCHAR_H): Improve comments.
10246         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
10247
10248 2010-12-25  Bruno Haible  <bruno@clisp.org>
10249
10250         strtok_r: Fix C syntax error in autoconf macro.
10251         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
10252         characters in test program.
10253
10254 2010-12-24  Bruno Haible  <bruno@clisp.org>
10255
10256         ceil, trunc, round: Fix gcc warnings.
10257         * lib/ceil.c (MIN): Undefine before redefining.
10258         * lib/trunc.c (MIN): Likewise.
10259         * lib/round.c (MIN): Likewise.
10260         Include <math.h> first.
10261
10262 2010-12-24  Bruno Haible  <bruno@clisp.org>
10263
10264         select tests: Avoid failures on OSF/1 5.1.
10265         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
10266         failure of closing the last socket; it may fail with ECONNRESET.
10267
10268 2010-12-24  Eric Blake  <eblake@redhat.com>
10269
10270         stdint: avoid HP-UX 10.20 preprocessor bug
10271         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
10272         than #if.
10273         * tests/test-floor2.c (main): Likewise.
10274         Reported by Peter O'Gorman.
10275
10276         pipe: make obsoletion transition easier
10277         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
10278         * modules/pipe (Files): Include revived file.
10279         (Include): Drop reference, to mirror getdate's behavior.
10280
10281 2010-12-24  Bruno Haible  <bruno@clisp.org>
10282
10283         sys_socket: Hide mismatch of declarations on NonStop Kernel.
10284         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
10285         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10286         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10287
10288 2010-12-24  Bruno Haible  <bruno@clisp.org>
10289
10290         gethostname: Ensure declaration on NonStop Kernel.
10291         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
10292         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10293
10294 2010-12-24  Bruno Haible  <bruno@clisp.org>
10295
10296         sys_select: Ensure all necessary types on NonStop Kernel.
10297         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
10298         include <sys/time.h>.
10299         * doc/posix-headers/sys_select.texi: Mention that it's missing on
10300         NonStop Kernel.
10301         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10302
10303 2010-12-24  Bruno Haible  <bruno@clisp.org>
10304
10305         sys_select: Remove unneeded include.
10306         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
10307         have <sys/select.h>.
10308
10309 2010-12-24  Bruno Haible  <bruno@clisp.org>
10310
10311         gethostname: Provide a fallback for HOST_NAME_MAX.
10312         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
10313         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
10314         instead.
10315         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10316
10317 2010-12-24  Bruno Haible  <bruno@clisp.org>
10318
10319         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
10320         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
10321         (SA_RESTART): Likewise.
10322         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10323
10324 2010-12-24  Bruno Haible  <bruno@clisp.org>
10325
10326         signal: Define NSIG.
10327         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
10328         * tests/test-signal.c (nsig): New variable.
10329         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10330
10331 2010-12-24  Bruno Haible  <bruno@clisp.org>
10332
10333         rename, renameat: Avoid test failures on OSF/1 5.1.
10334         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
10335         alternative error codes.
10336         * tests/test-renameat.c (main): Likewise.
10337
10338 2010-12-24  Bruno Haible  <bruno@clisp.org>
10339
10340         *printf: Detect large precisions bug on Solaris 10/SPARC.
10341         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
10342         by Paul Eggert.
10343         * tests/test-snprintf-posix.h (test_function): Add this test code here
10344         too.
10345         * tests/test-sprintf-posix.h (test_function): Likewise.
10346         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10347         * tests/test-vasprintf-posix.c (test_function): Likewise.
10348         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
10349         around by gnulib.
10350         * doc/posix-functions/printf.texi: Likewise.
10351         * doc/posix-functions/snprintf.texi: Likewise.
10352         * doc/posix-functions/sprintf.texi: Likewise.
10353         * doc/posix-functions/vfprintf.texi: Likewise.
10354         * doc/posix-functions/vprintf.texi: Likewise.
10355         * doc/posix-functions/vsnprintf.texi: Likewise.
10356         * doc/posix-functions/vsprintf.texi: Likewise.
10357         * doc/posix-functions/dprintf.texi: Undo last commit.
10358         * doc/posix-functions/vdprintf.texi: Likewise.
10359
10360 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10361
10362         tests: port test-fdutimensat.c to Solaris 8
10363         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
10364         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
10365         On Solaris 8, it fails with errno == ENOSYS, because there is no
10366         futimens (so it can't use the fd), and there is no lutimens (so it
10367         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
10368
10369         vsnprintf: make more consistent with snprintf; doc fixes
10370
10371         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
10372         the byte count return problem was promoted from the snprintf-posix
10373         to the snprintf module.
10374         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10375         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
10376         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
10377         * tests/test-snprintf.c (main): Check the byte count returned.
10378         * tests/test-vsnprintf.c (main): Likewise.
10379
10380 2010-12-23  Eric Blake  <eblake@redhat.com>
10381
10382         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
10383         * modules/sigpipe (License): Relax license.
10384
10385 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10386
10387         doc: document Solaris printf bug with large float precisions
10388         * doc/posix-functions/dprintf.texi (dprintf):
10389         * doc/posix-functions/fprintf.texi (fprintf):
10390         * doc/posix-functions/printf.texi (printf):
10391         * doc/posix-functions/snprintf.texi (snprintf):
10392         * doc/posix-functions/sprintf.texi (sprintf):
10393         * doc/posix-functions/vdprintf.texi (vdprintf):
10394         * doc/posix-functions/vfprintf.texi (vfprintf):
10395         * doc/posix-functions/vprintf.texi (vprintf):
10396         * doc/posix-functions/vsnprintf.texi (vsnprintf):
10397         * doc/posix-functions/vsprintf.texi (vsprintf):
10398         Mention that these functions mishandle large floating point
10399         precisions on Solaris 10.  The same bug is also present in Solaris
10400         8, and I assume earlier.  This causes "cd gnulib-tests; make
10401         check" to fail on Solaris 8 (and I assume, later) when building
10402         the latest coreutils, in test-vasprintf-posix's call to
10403         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
10404         the wide flavors (e.g., wprintf) so this patch just updates the
10405         documentation for the narrow ones.
10406
10407         test-posixtm.c: add two tests
10408         * tests/test-posixtm.c: Add two tests, to highlight the
10409         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
10410         around this bug; this is merely to document it.
10411
10412 2010-12-22  Bruno Haible  <bruno@clisp.org>
10413
10414         getlogin_r: Work around portability problem on OSF/1.
10415         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
10416         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
10417         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
10418         test for a truncated result.
10419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
10420         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
10421         * modules/getlogin_r (Depends-on): Add memchr.
10422         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
10423
10424 2010-12-22  Bruno Haible  <bruno@clisp.org>
10425
10426         ptsname: Avoid test failure on OSF/1 5.1.
10427         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
10428         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
10429         (same_slave): New function.
10430         (main): Use it to compare ptsname's result with the expected file name.
10431
10432 2010-12-22  Bruno Haible  <bruno@clisp.org>
10433
10434         Port extended stdio modules to HP NonStop Kernel.
10435         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
10436         macros.
10437         * lib/fbufmode.c: Update comments.
10438         * lib/fflush.c: Likewise.
10439         * lib/fpurge.c: Likewise.
10440         * lib/freadable.c: Likewise.
10441         * lib/freadahead.c: Likewise.
10442         * lib/freading.c: Likewise.
10443         * lib/freadptr.c: Likewise.
10444         * lib/freadseek.c: Likewise.
10445         * lib/fseeko.c: Likewise.
10446         * lib/fseterr.c: Likewise.
10447         * lib/fwritable.c: Likewise.
10448         * lib/fwriting.c: Likewise.
10449         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10450
10451 2010-12-22  Bruno Haible  <bruno@clisp.org>
10452
10453         ttyname_r: Work around bug on OSF/1 5.1.
10454         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
10455         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
10456         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
10457         present.
10458         * lib/ttyname_r.c (ttyname_r): Update comments.
10459
10460 2010-12-22  Bruno Haible  <bruno@clisp.org>
10461
10462         round: Implement result sign according to IEEE 754.
10463         * lib/round.c (MIN, MINUS_ZERO): New macros.
10464         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
10465         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
10466         * tests/test-round-ieee.c (main): Likewise.
10467         * tests/test-roundl-ieee.c (main): Likewise.
10468
10469         trunc: Implement result sign according to IEEE 754.
10470         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
10471         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
10472         * tests/test-trunc2.c: Include minus-zero.h.
10473         (MINUS_ZERO): New macro.
10474         (trunc_reference): Keep in sync with lib/trunc.c.
10475         * tests/test-truncf2.c: Include minus-zero.h.
10476         (MINUS_ZERO): New macro.
10477         (truncf_reference): Keep in sync with lib/trunc.c.
10478         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
10479         * tests/test-trunc-ieee.c (main): Likewise.
10480         * tests/test-truncl-ieee.c (main): Likewise.
10481
10482         ceil: Implement result sign according to IEEE 754.
10483         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
10484         (FUNC): Return -0.0 for -1 < x < 0.
10485         * tests/test-ceil2.c: Include minus-zero.h.
10486         (MINUS_ZERO): New macro.
10487         (ceil_reference): Keep in sync with lib/ceil.c.
10488         * tests/test-ceilf2.c: Include minus-zero.h.
10489         (MINUS_ZERO): New macro.
10490         (ceilf_reference): Keep in sync with lib/ceil.c.
10491         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
10492         * tests/test-ceil-ieee.c (main): Likewise.
10493         * tests/test-ceill-ieee.c (main): Likewise.
10494
10495         floor: Implement result sign according to IEEE 754.
10496         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
10497         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
10498         * tests/test-floorf2.c (floorf_reference): Likewise.
10499         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
10500         * tests/test-floor-ieee.c (main): Likewise.
10501         * tests/test-floorl-ieee.c (main): Likewise.
10502
10503 2010-12-22  Bruno Haible  <bruno@clisp.org>
10504
10505         getaddrinfo: Update doc.
10506         * doc/posix-functions/gai_strerror.texi: Return type is also different
10507         on AIX and HP-UX.
10508
10509 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10510
10511         getaddrinfo, inet_ntop: Update doc for Solaris.
10512         * doc/posix-functions/gai_strerror.texi: Return type is also an
10513         issue on Solaris 9 and earlier.
10514         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
10515         on Solaris 10 and earlier.
10516
10517 2010-12-21  Bruno Haible  <bruno@clisp.org>
10518
10519         New module 'roundl-ieee'.
10520         * modules/roundl-ieee: New file.
10521         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
10522         test whether roundl works according to ISO C 99 with IEC 60559.
10523         * m4/roundl-ieee.m4: New file.
10524         * modules/roundl-ieee-tests: New file.
10525         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
10526         * tests/test-roundl.c (main): Remove signbit tests.
10527         * modules/roundl-tests (Depends-on): Remove signbit.
10528         * doc/posix-functions/roundl.texi: Mention the new module.
10529
10530 2010-12-21  Bruno Haible  <bruno@clisp.org>
10531
10532         New module 'truncl-ieee'.
10533         * modules/truncl-ieee: New file.
10534         * modules/truncl-ieee-tests: New file.
10535         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
10536         * tests/test-truncl.c (main): Remove signbit tests.
10537         * modules/truncl-tests (Depends-on): Remove signbit.
10538         * doc/posix-functions/truncl.texi: Mention the new module.
10539
10540 2010-12-21  Bruno Haible  <bruno@clisp.org>
10541
10542         New module 'ceill-ieee'.
10543         * modules/ceill-ieee: New file.
10544         * modules/ceill-ieee-tests: New file.
10545         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
10546         * tests/test-ceill.c (main): Remove signbit tests.
10547         * modules/ceill-tests (Depends-on): Remove signbit.
10548         * doc/posix-functions/ceill.texi: Mention the new module.
10549
10550 2010-12-21  Bruno Haible  <bruno@clisp.org>
10551
10552         New module 'floorl-ieee'.
10553         * modules/floorl-ieee: New file.
10554         * modules/floorl-ieee-tests: New file.
10555         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
10556         * tests/test-floorl.c (main): Remove signbit tests.
10557         * modules/floorl-tests (Depends-on): Remove signbit.
10558         * doc/posix-functions/floorl.texi: Mention the new module.
10559
10560 2010-12-21  Bruno Haible  <bruno@clisp.org>
10561
10562         New module 'round-ieee'.
10563         * modules/round-ieee: New file.
10564         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
10565         whether round works according to ISO C 99 with IEC 60559.
10566         * m4/round-ieee.m4: New file.
10567         * modules/round-ieee-tests: New file.
10568         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
10569         * tests/test-round1.c (main): Remove signbit tests.
10570         * modules/round-tests (Depends-on): Remove 'signbit'.
10571         * doc/posix-functions/round.texi: Mention the new module.
10572
10573 2010-12-21  Bruno Haible  <bruno@clisp.org>
10574
10575         New module 'trunc-ieee'.
10576         * modules/trunc-ieee: New file.
10577         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
10578         whether trunc works according to ISO C 99 with IEC 60559.
10579         * m4/trunc-ieee.m4: New file.
10580         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
10581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
10582         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
10583         * modules/trunc-ieee-tests: New file.
10584         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
10585         * tests/test-trunc1.c (main): Remove signbit tests.
10586         * modules/trunc-tests (Depends-on): Remove 'signbit'.
10587         * doc/posix-functions/trunc.texi: Mention the new module.
10588
10589 2010-12-21  Bruno Haible  <bruno@clisp.org>
10590
10591         New module 'ceil-ieee'.
10592         * modules/ceil-ieee: New file.
10593         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
10594         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
10595         ISO C 99 with IEC 60559.
10596         * m4/ceil-ieee.m4: New file.
10597         * modules/ceil (Files): Add lib/ceil.c.
10598         (Depends-on): Add 'float'.
10599         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10600         * lib/math.in.h (ceil): New declaration.
10601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
10602         REPLACE_CEIL.
10603         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
10604         * modules/ceil-ieee-tests: New file.
10605         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
10606         * tests/test-math-c++.cc: Check the signature of 'ceil'.
10607         * doc/posix-functions/ceil.texi: Mention the new module.
10608
10609 2010-12-21  Bruno Haible  <bruno@clisp.org>
10610
10611         New module 'floor-ieee'.
10612         * modules/floor-ieee: New file.
10613         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
10614         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
10615         ISO C 99 with IEC 60559.
10616         * m4/floor-ieee.m4: New file.
10617         * modules/floor (Files): Add lib/floor.c.
10618         (Depends-on): Add 'float'.
10619         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10620         * lib/math.in.h (floor): New declaration.
10621         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
10622         REPLACE_FLOOR.
10623         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
10624         * modules/floor-ieee-tests: New file.
10625         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
10626         * tests/test-math-c++.cc: Check the signature of 'floor'.
10627         * doc/posix-functions/floor.texi: Mention the new module.
10628
10629 2010-12-21  Bruno Haible  <bruno@clisp.org>
10630
10631         New module 'roundf-ieee'.
10632         * modules/roundf-ieee: New file.
10633         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
10634         test whether roundf works according to ISO C 99 with IEC 60559.
10635         * m4/roundf-ieee.m4: New file.
10636         * modules/roundf-ieee-tests: New file.
10637         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
10638         * tests/test-roundf1.c (main): Remove signbit tests.
10639         * modules/roundf-tests (Depends-on): Remove 'signbit'.
10640         * doc/posix-functions/roundf.texi: Mention the new module.
10641
10642 2010-12-21  Bruno Haible  <bruno@clisp.org>
10643
10644         New module 'truncf-ieee'.
10645         * modules/truncf-ieee: New file.
10646         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
10647         test whether truncf works according to ISO C 99 with IEC 60559.
10648         * m4/truncf-ieee.m4: New file.
10649         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
10650         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
10651         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
10652         * modules/truncf-ieee-tests: New file.
10653         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
10654         * tests/test-truncf1.c (main): Remove signbit tests.
10655         * modules/truncf-tests (Depends-on): Remove 'signbit'.
10656         * doc/posix-functions/truncf.texi: Mention the new module.
10657
10658 2010-12-21  Bruno Haible  <bruno@clisp.org>
10659
10660         New module 'ceilf-ieee'.
10661         * modules/ceilf-ieee: New file.
10662         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
10663         test whether ceilf works according to ISO C 99 with IEC 60559.
10664         * m4/ceilf-ieee.m4: New file.
10665         * modules/ceilf-ieee-tests: New file.
10666         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
10667         * tests/test-ceilf1.c (main): Remove signbit tests.
10668         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
10669         * doc/posix-functions/ceilf.texi: Mention the new module.
10670
10671 2010-12-21  Bruno Haible  <bruno@clisp.org>
10672
10673         New module 'floorf-ieee'.
10674         * modules/floorf-ieee: New file.
10675         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
10676         test whether floorf works according to ISO C 99 with IEC 60559.
10677         * m4/floorf-ieee.m4: New file.
10678         * modules/floorf-ieee-tests: New file.
10679         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
10680         * tests/test-floorf1.c (main): Remove signbit tests.
10681         * modules/floorf-tests (Depends-on): Remove 'signbit'.
10682         * doc/posix-functions/floorf.texi: Mention the new module.
10683
10684 2010-12-21  Bruno Haible  <bruno@clisp.org>
10685
10686         Support for minus zero in autoconf macros.
10687         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
10688         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
10689         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
10690         * tests/minus-zero.h: Update comments.
10691
10692 2010-12-21  Bruno Haible  <bruno@clisp.org>
10693
10694         Tests for module 'ceil'.
10695         * modules/ceil-tests: New file.
10696         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
10697         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
10698
10699 2010-12-21  Bruno Haible  <bruno@clisp.org>
10700
10701         Tests for module 'floor'.
10702         * modules/floor-tests: New file.
10703         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
10704         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
10705
10706 2010-12-21  Bruno Haible  <bruno@clisp.org>
10707
10708         math: Fix indentation.
10709         * lib/math.in.h (floorf): Fix indentation.
10710
10711 2010-12-21  Bruno Haible  <bruno@clisp.org>
10712
10713         Fix cross-compilation guesses on Solaris.
10714         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
10715         not match "solaris2.10".
10716         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10717         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
10718         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10719
10720 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
10721
10722         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
10723         This fixes a problem observed with the latest coreutils snapshot
10724         that caused a test to fail on Solaris 8.  src/csplit.c's call
10725         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
10726         earlier, instead of returning the number of bytes that would have
10727         been generated; this causes csplit to incorrectly report memory
10728         exhaustion.
10729         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
10730         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
10731         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
10732         comments to match.
10733         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
10734         Fix typo in matching older versions of Solaris: "solaris2.10"
10735         is matched by the shell pattern "solaris2.[0-9]*".  This matters
10736         only for guessing while cross-compiling.
10737         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
10738
10739 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
10740
10741         ftoastr: fix comment again
10742         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10743         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
10744         Also, simplify example a bit by using flags = 0.
10745
10746 2010-12-20  Bruno Haible  <bruno@clisp.org>
10747
10748         round*, trunc*: Update documentation regarding glibc.
10749         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
10750         * doc/posix-functions/round.texi: Likewise.
10751         * doc/posix-functions/roundl.texi: Likewise.
10752         * doc/posix-functions/truncf.texi: Likewise.
10753         * doc/posix-functions/trunc.texi: Likewise.
10754         * doc/posix-functions/truncl.texi: Likewise.
10755
10756 2010-12-20  Bruno Haible  <bruno@clisp.org>
10757
10758         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
10759         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
10760         * doc/posix-functions/round.texi: Likewise.
10761         * doc/posix-functions/roundl.texi: Likewise.
10762
10763 2010-12-20  Bruno Haible  <bruno@clisp.org>
10764
10765         ttyname_r: Add missing declaration on HP-UX 11.
10766         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
10767         HAVE_TTYNAME_R.
10768         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
10769         declared. Set HAVE_TTYNAME_R always.
10770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10771         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
10772         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
10773         HAVE_TTYNAME_R.
10774         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
10775
10776 2010-12-20  Bruno Haible  <bruno@clisp.org>
10777
10778         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
10779         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
10780         * doc/posix-functions/getlogin_r.texi: Likewise.
10781         * tests/test-getlogin.c: Include <errno.h>.
10782         (main): Avoid test failure on HP-UX 11.11.
10783         * tests/test-getlogin_r.c (main): Likewise.
10784
10785 2010-12-20  Bruno Haible  <bruno@clisp.org>
10786
10787         getlogin_r: Add missing declaration on HP-UX 11.
10788         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
10789         declared also when it exists as a function.
10790         * doc/posix-functions/getlogin_r.texi: Document this workaround.
10791
10792 2010-12-20  Bruno Haible  <bruno@clisp.org>
10793
10794         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
10795         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
10796         through wcrtomb.
10797
10798 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10799
10800         ftoastr: fix comment
10801         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10802         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
10803
10804 2010-12-19  Bruno Haible  <bruno@clisp.org>
10805
10806         isnan: Ensure it is a macro.
10807         * lib/math.in.h (isnan): Define as a macro if not already a macro.
10808         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
10809         Solaris.
10810
10811 2010-12-19  Bruno Haible  <bruno@clisp.org>
10812
10813         ldexpl test: Fix link error on OSF/1 5.1.
10814         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
10815
10816 2010-12-19  Bruno Haible  <bruno@clisp.org>
10817
10818         wctype: Make it work in C++ mode on OSF/1 5.1.
10819         * lib/wctype.in.h (iswblank): Declare but not define here.
10820         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
10821         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
10822         * modules/wctype (Files): Add lib/iswblank.c.
10823
10824 2010-12-19  Bruno Haible  <bruno@clisp.org>
10825
10826         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
10827         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
10828         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
10829
10830 2010-12-19  Bruno Haible  <bruno@clisp.org>
10831
10832         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
10833         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
10834         _POSIX_PII_SOCKET.
10835         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
10836         * doc/posix-functions/recvfrom.texi: Likewise.
10837         * doc/posix-functions/send.texi: Likewise.
10838         * doc/posix-functions/sendto.texi: Likewise.
10839
10840 2010-12-19  Bruno Haible  <bruno@clisp.org>
10841
10842         tcgetsid: Add missing declaration on OSF/1 5.1.
10843         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
10844         HAVE_TCGETSID.
10845         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
10846         Don't set HAVE_TCGETSID.
10847         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
10848         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
10849         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
10850         HAVE_TCGETSID.
10851         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
10852
10853 2010-12-19  Bruno Haible  <bruno@clisp.org>
10854
10855         stdio: Fix problem with popen() declaration on OSF/1 5.1.
10856         * lib/stdio.in.h: During the include_next statement, let recursive
10857         includes of this file include only the system header file.
10858
10859 2010-12-19  Bruno Haible  <bruno@clisp.org>
10860
10861         iconv_open: Fix regression from 2010-12-04.
10862         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
10863         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
10864
10865 2010-12-19  Bruno Haible  <bruno@clisp.org>
10866
10867         stdbool test: Avoid a gcc warning.
10868         * tests/test-stdbool.c (main): Fail if e1 is false.
10869         Reported by Jim Meyering.
10870
10871 2010-12-19  Jim Meyering  <meyering@redhat.com>
10872
10873         setenv: restore to working order
10874         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
10875         mistakenly removed.
10876         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
10877         HAVE_SETENV.
10878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
10879         HAVE_SETENV.
10880
10881 2010-12-19  Bruno Haible  <bruno@clisp.org>
10882
10883         Document some different function declarations on OSF/1 5.1.
10884         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
10885         * doc/posix-functions/inet_ntop.texi: Likewise.
10886         * doc/posix-functions/gethostname.texi: Likewise.
10887         * lib/unistd.in.h (gethostname): Update comment.
10888
10889 2010-12-19  Bruno Haible  <bruno@clisp.org>
10890
10891         doc: Mention vasprintf-posix module.
10892         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
10893         the 'vasprintf-posix' module.
10894         * doc/glibc-functions/vasprintf.texi: Likewise.
10895
10896 2010-12-19  Bruno Haible  <bruno@clisp.org>
10897
10898         unsetenv: Add missing declaration on OSF/1 5.1.
10899         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
10900         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
10901         Don't set HAVE_UNSETENV. In the test program, set _BSD.
10902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
10903         not HAVE_UNSETENV.
10904         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
10905         HAVE_UNSETENV.
10906         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
10907
10908 2010-12-19  Bruno Haible  <bruno@clisp.org>
10909
10910         setenv: Add missing declaration on OSF/1 5.1.
10911         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
10912         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
10913         declared. Don't set HAVE_SETENV.
10914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
10915         not HAVE_SETENV.
10916         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
10917         HAVE_SETENV.
10918         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
10919
10920 2010-12-19  Bruno Haible  <bruno@clisp.org>
10921
10922         nl_langinfo tests: Avoid gcc warning.
10923         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
10924
10925 2010-12-19  Bruno Haible  <bruno@clisp.org>
10926
10927         mknod: Avoid error in C++ mode on OSF/1 with GCC.
10928         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
10929         _GL_CXXALIAS_SYS.
10930
10931 2010-12-19  Bruno Haible  <bruno@clisp.org>
10932
10933         stdbool: Relax test.
10934         * tests/test-stdbool.c (e): Don't require that casts from a variable's
10935         address to 'bool' work in static initializer, for compilers other than
10936         GCC.
10937
10938 2010-12-19  Bruno Haible  <bruno@clisp.org>
10939
10940         ftello: Add missing declaration on OSF/1 5.1.
10941         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
10942         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
10943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
10944         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
10945         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
10946
10947 2010-12-19  Bruno Haible  <bruno@clisp.org>
10948
10949         fseeko: Add missing declaration on OSF/1 5.1.
10950         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
10951         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
10952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
10953         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
10954         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
10955
10956 2010-12-19  Bruno Haible  <bruno@clisp.org>
10957
10958         fchdir: Add missing declaration on OSF/1 5.1.
10959         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
10960         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
10961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
10962         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
10963         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
10964
10965 2010-12-19  Bruno Haible  <bruno@clisp.org>
10966
10967         relocatable-prog-wrapper: Separate from relocatable-prog.
10968         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
10969         uninstall-relocwrapper rule here.
10970         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
10971         Reported by Ian Beckwith <ianb@erislabs.net>.
10972
10973 2010-12-19  Bruno Haible  <bruno@clisp.org>
10974
10975         unistr/u8-mbsnlen: Add missing dependency.
10976         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
10977         Reported by Ian Beckwith <ianb@erislabs.net>.
10978
10979 2010-12-19  Bruno Haible  <bruno@clisp.org>
10980
10981         iconv: Make it possible again to use this module without 'iconv-h'.
10982         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
10983         if it is not defined.
10984         Reported by Ian Beckwith <ianb@erislabs.net>.
10985
10986 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10987
10988         acl: port to Solaris 8 when copying from tmpfs to ufs
10989         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
10990         error number.  Problem observed on Solaris 8 with latest
10991         coreutils, with "mv A B", where A is on a tmpfs file system and B
10992         is on a ufs file system.  This caused coreutils' mv/part-symlink
10993         test to fail.
10994
10995         tests: set fail=0 at start
10996         * tests/init.sh (setup_): Move fail=0 initialization here ...
10997         (mktempd_): ... from here, so that tests can rely on fail being
10998         set to 0 initially.  This fixes a problem in coreutils; see:
10999         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
11000
11001 2010-12-18  Bruno Haible  <bruno@clisp.org>
11002
11003         memmem-simple: Stylistic changes.
11004         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
11005         Fix preprocessor directive indentation.
11006
11007 2010-12-15  Pádraig Brady <P@draigBrady.com>
11008
11009         memmem, memmem-simple: reorganize and expand empty needle check
11010         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
11011         functional checks to memmem-simple so that one has a fully functional
11012         memmem by using just this module.
11013         Restrict the performance only check to the memmem module.
11014         Also expand the empty needle check to ensure the correct
11015         pointer is returned, not just a non NULL pointer.
11016         * doc/glibc-functions/memmem.texi: Rearrange the portability
11017         documentation to correlate with the rearranged checks.
11018         Clarify exactly how the memmem and memmem-simple modules
11019         relate to each other.
11020
11021 2010-12-15  Pádraig Brady <P@draigBrady.com>
11022             Bruno Haible  <bruno@clisp.org>
11023
11024         Improve cross-compilation guesses for uClibc.
11025         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
11026         that uClibc does not have the glibc bug.
11027         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
11028         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
11029
11030 2010-12-14  Eric Blake  <eblake@redhat.com>
11031
11032         configmake: provide fallbacks for oldest supported autotools
11033         * m4/configmake.m4: New file.
11034         * modules/configmake (Files): Ship it.
11035         (configure.ac): Use it to guarantee fallbacks.
11036
11037 2010-12-13  Pádraig Brady <P@draigBrady.com>
11038
11039         read-file: Improve handling of large files
11040         * lib/read-file.c (fread_file): Minimize realloc()s
11041         for regular files, and better manage sizes around SIZE_MAX.
11042
11043 2010-12-13  Eric Blake  <eblake@redhat.com>
11044
11045         cloexec, fcntl: relax license
11046         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
11047         consent from all contributors.
11048         * modules/fcntl (License): Likewise.
11049
11050 2010-12-10  Bruno Haible  <bruno@clisp.org>
11051
11052         Tests for module 'pipe-posix'.
11053         * modules/pipe-posix-tests: New file.
11054         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
11055
11056 2010-12-10  Bruno Haible  <bruno@clisp.org>
11057
11058         pipe-posix: Make it work in C++ mode.
11059         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
11060         (pipe): Use common idiom, not a macro definition.
11061         * lib/pipe.c: New file.
11062         * m4/pipe.m4: New file.
11063         * modules/pipe-posix (Description): Enhance.
11064         (Files): Add lib/pipe.c, m4/pipe.m4.
11065         (configure.ac): Invoke gl_FUNC_PIPE.
11066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
11067         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
11068         * tests/test-unistd-c++.cc: Check the signature of pipe.
11069
11070 2010-12-10  Bruno Haible  <bruno@clisp.org>
11071
11072         Rename module 'pipe' to 'spawn-pipe'.
11073         * modules/spawn-pipe: New file, renamed from modules/pipe.
11074         (Files, configure.ac, Makefile.am): Update.
11075         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
11076         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
11077         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
11078         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
11079         "spawn-pipe.h" instead of "pipe.h".
11080         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
11081         to gl_SPAWN_PIPE.
11082         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
11083         (Files, Makefile.am): Update.
11084         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
11085         Update.
11086         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
11087         Include "spawn-pipe.h" instead of "pipe.h".
11088         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
11089         * lib/javacomp.c: Likewise.
11090         * lib/javaversion.c: Likewise.
11091         * lib/pipe-filter-gi.c: Likewise.
11092         * lib/pipe-filter-ii.c: Likewise.
11093         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
11094         * modules/javacomp (Depends-on): Likewise.
11095         * modules/javaversion (Depends-on): Likewise.
11096         * modules/pipe-filter-gi (Depends-on): Likewise.
11097         * modules/pipe-filter-ii (Depends-on): Likewise.
11098         * MODULES.html.sh (Executing programs): Update.
11099         * NEWS: Mention the change.
11100
11101 2010-12-10  Eric Blake  <eblake@redhat.com>
11102
11103         pipe-posix: new module
11104         * modules/pipe-posix: New file.
11105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
11106         (gl_UNISTD_H): Check for declaration.
11107         * modules/unistd (Makefile.am): Substitute it.
11108         * lib/unistd.in.h (pipe): Provide it for mingw.
11109         * doc/posix-functions/pipe.texi (pipe): Update documentation.
11110         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
11111
11112 2010-12-07  Bruno Haible  <bruno@clisp.org>
11113
11114         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
11115         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
11116         u8_strcmp_gnu.
11117         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
11118
11119 2010-12-06  Bruno Haible  <bruno@clisp.org>
11120
11121         Update internal documentation.
11122         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
11123
11124 2010-12-04  Bruno Haible  <bruno@clisp.org>
11125
11126         Put more information about failed tests into the test return codes.
11127         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
11128         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
11129         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11130         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11131         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
11132         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11133         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11134         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11135         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
11136         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11137         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
11138         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11139         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11140         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11141         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
11142         returns a bit mask.
11143         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
11144         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
11145         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
11146         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
11147         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11148         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11149         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11150         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11151         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11152         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11153         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11154         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11155         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11156         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11157         * m4/link.m4 (gl_FUNC_LINK): Likewise.
11158         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
11159         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
11160         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
11161         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11162         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
11163         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11164         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
11165         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
11166         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11167         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11168         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11169         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
11170         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11171         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11172         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
11173         gl_PRINTF_PRECISION): Likewise.
11174         * m4/regex.m4 (gl_REGEX): Likewise.
11175         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11176         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
11177         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
11178         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11179         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11180         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11181         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11182         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
11183         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
11184         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11185         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
11186         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11187         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11188         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
11189         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11190         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11191         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11192         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11193         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11194         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
11195         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
11196         enumerated value.
11197         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
11198
11199 2010-12-04  Bruno Haible  <bruno@clisp.org>
11200
11201         Update for Solaris 11 2010-11.
11202         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
11203         Express, released in November 2010.
11204
11205 2010-12-04  Bruno Haible  <bruno@clisp.org>
11206
11207         nproc: Relax license.
11208         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
11209         and Paul Eggert.
11210         Requested by Ludovic Courtès <ludo@gnu.org>.
11211
11212 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
11213
11214         utimecmp: fine-grained src to nearby coarse-grained dest
11215
11216         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
11217         and the source is on a file system with higher-resolution time
11218         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
11219         not work, and the time stamps are close together, the algorithm to
11220         determine the exact resolution from the read-back mtime was buggy:
11221         it had a "!=" where it should have had an "==".  This bug has been
11222         in the code ever since it was introduced to gnulib.
11223         Problem reported by Dan Jacobson in
11224         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
11225
11226 2010-11-30  Bruno Haible  <bruno@clisp.org>
11227
11228         strerror_r-posix: Fix autoconf test.
11229         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
11230
11231 2010-11-28  Bruno Haible  <bruno@clisp.org>
11232             Paul Eggert  <eggert@cs.ucla.edu>
11233
11234         Tests for module 'getdomainname'.
11235         * modules/getdomainname-tests: New file.
11236         * tests/test-getdomainname.c: New file, based on
11237         tests/test-gethostname.c.
11238
11239 2010-11-28  Bruno Haible  <bruno@clisp.org>
11240             Paul Eggert  <eggert@cs.ucla.edu>
11241
11242         getdomainname: Use the system function when possible.
11243         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
11244         (getdomainname): Replace if needed. Provide the declaration if it is
11245         missing. Don't use _GL_CXXALIAS_SYS_CAST.
11246         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
11247         (getdomainname): When the system has getdomainname, call the system
11248         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
11249         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
11250         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
11251         found in libnsl. Look for the declaration also in <netdb.h>. Replace
11252         the function if its second argument is of type 'int' or if it is found
11253         in libnsl.
11254         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
11255         <sys/systeminfo.h> and sysinfo().
11256         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
11257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11258         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
11259         HAVE_GETDOMAINNAME.
11260         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
11261         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
11262         * doc/glibc-functions/getdomainname.texi: Document the problems with
11263         the getdomainname declaration.
11264
11265 2010-11-28  Bruno Haible  <bruno@clisp.org>
11266
11267         sys_socket: Ensure ss_family field on AIX.
11268         * lib/sys_socket.in.h (ss_family): New macro definition.
11269         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
11270         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
11271         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11272         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
11273         * modules/sys_socket (Makefile.am): Substitute
11274         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
11275         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
11276
11277 2010-11-27  Bruno Haible  <bruno@clisp.org>
11278
11279         readline: Improve configure output.
11280         * m4/readline.m4 (gl_FUNC_READLINE): Make the
11281         "checking for readline..." result understandable.
11282
11283 2010-11-27  Bruno Haible  <bruno@clisp.org>
11284
11285         *printf-posix: Detect a bug on Solaris 10/x86.
11286         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
11287         for floating-point output.
11288         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
11289         directive.
11290         * tests/test-snprintf-posix.h (test_function): Likewise.
11291         * tests/test-sprintf-posix.h (test_function): Likewise.
11292         * tests/test-vasprintf-posix.c (test_function): Likewise.
11293         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
11294         * doc/posix-functions/printf.texi: Likewise.
11295         * doc/posix-functions/snprintf.texi: Likewise.
11296         * doc/posix-functions/sprintf.texi: Likewise.
11297         * doc/posix-functions/vfprintf.texi: Likewise.
11298         * doc/posix-functions/vprintf.texi: Likewise.
11299         * doc/posix-functions/vsnprintf.texi: Likewise.
11300         * doc/posix-functions/vsprintf.texi: Likewise.
11301         * doc/glibc-functions/obstack_printf.texi: Likewise.
11302         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11303
11304 2010-11-27  Bruno Haible  <bruno@clisp.org>
11305
11306         Fix link error when module libunistring-optional is in use.
11307         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
11308         * modules/striconveha-tests (Makefile.am): Likewise.
11309
11310 2010-11-27  Bruno Haible  <bruno@clisp.org>
11311
11312         regex: Mention link dependencies.
11313         * modules/regex (Link): New section.
11314         * modules/rpmatch (Link): Likewise.
11315         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
11316
11317 2010-11-27  Bruno Haible  <bruno@clisp.org>
11318
11319         ftoastr: Fix compilation error on Solaris.
11320         * lib/ftoastr.c: Include <config.h>.
11321
11322 2010-11-27  Bruno Haible  <bruno@clisp.org>
11323
11324         getloadavg: Update documentation.
11325         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
11326
11327 2010-11-27  Bruno Haible  <bruno@clisp.org>
11328
11329         sys_socket: Fix test whether the functions are declared.
11330         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
11331         not <sys/select.h>.
11332
11333 2010-11-27  Bruno Haible  <bruno@clisp.org>
11334
11335         getpass: Make sure to get system declaration on some platforms.
11336         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
11337         gl_USE_SYSTEM_EXTENSIONS.
11338         * modules/getpass (Depends-on): Add extensions.
11339
11340 2010-11-26  Bruno Haible  <bruno@clisp.org>
11341
11342         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
11343         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
11344         'iconv' module is present.
11345         (ICONV_CONST): New macro.
11346         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
11347         ICONV_CONST.
11348         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
11349         set ICONV_CONST.
11350         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
11351         here.
11352         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
11353         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
11354         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
11355         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
11356         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
11357         present.
11358
11359 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
11360
11361         ftoastr: comment fix
11362         * lib/ftoastr.c: "little" -> "little or no" in comment
11363
11364 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
11365
11366         stdint: port to GCC 4.3 + OSX + Octave
11367         On this platform, stdint.h is buggy and defines int64_t to long
11368         long int.  The replacement defined it to long int, causing
11369         problems with C++ style name mangling.  Instead, trust the system
11370         definition if INT64_MAX is defined, and likewise for the unsigned
11371         variant.   Problem reported by Jarno Rajahalme in
11372         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
11373         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
11374         and don't mess with int64_t and INT64_MAX in this case.
11375         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
11376
11377 2010-11-24  Bruno Haible  <bruno@clisp.org>
11378
11379         doc: Corrections regarding MacOS X 10.4 and 10.5.
11380         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
11381         MacOS X.
11382         Reported by Simon Josefsson.
11383
11384 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
11385
11386         Uninstall ".bin" files installed by relocwrapper.
11387         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
11388         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
11389         unless it is already there.
11390
11391 2010-11-21  Bruno Haible  <bruno@clisp.org>
11392
11393         Update for NetBSD 5.0.
11394         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
11395         NetBSD; the test fails on NetBSD 5.0.
11396         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
11397         about NetBSD.
11398
11399 2010-11-21  Bruno Haible  <bruno@clisp.org>
11400
11401         Update for HP-UX 11.23 and HP-UX 11.31.
11402         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
11403         HP-UX.
11404
11405 2010-11-21  Bruno Haible  <bruno@clisp.org>
11406
11407         Update for MacOS X 10.5.
11408         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
11409         MacOS X; the test fails on MacOS X 10.5.8.
11410         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
11411         about MacOS X.
11412
11413 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
11414
11415         bootstrap: add bootstrap_sync option.
11416         See discussion at
11417         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
11418         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
11419         * build-aux/bootstrap: Accept --bootstrap-sync to update
11420         bootstrap if it is not identical to the local gnulib's
11421         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
11422         enable this by default.  Accept --no-bootstrap-sync to disable
11423         it.
11424
11425 2010-11-20  Bruno Haible  <bruno@clisp.org>
11426
11427         Ensure that <features.h> is included before __GLIBC__ is tested.
11428         * lib/printf-parse.h: Include <features.h>.
11429         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
11430         Reported by Mike Frysinger <vapier@gentoo.org>.
11431
11432         Ensure that <features.h> is included before __GLIBC__ is tested.
11433         * lib/wchar.in.h: Include <features.h>.
11434         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
11435         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
11436         Reported by Mike Frysinger <vapier@gentoo.org>.
11437
11438         Ensure that <features.h> is included before __GLIBC__ is tested.
11439         * lib/arpa_inet.in.h: Include <features.h>.
11440         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
11441         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
11442         Reported by Mike Frysinger <vapier@gentoo.org>.
11443
11444         Ensure that <features.h> is included before __GLIBC__ is tested.
11445         * build-aux/link-warning.h: Include <features.h>.
11446         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
11447         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
11448         Reported by Mike Frysinger <vapier@gentoo.org>.
11449
11450         Ensure that <features.h> is included before __GLIBC__ is tested.
11451         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
11452         Reported by Mike Frysinger <vapier@gentoo.org>.
11453
11454 2010-11-20  Bruno Haible  <bruno@clisp.org>
11455
11456         memmem: Fix autoconf test.
11457         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
11458
11459 2010-11-20  Bruno Haible  <bruno@clisp.org>
11460
11461         Port to uClibc.
11462         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
11463         * lib/fcntl.in.h: Likewise.
11464         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
11465         * lib/mbrtowc.c (mbrtowc): Likewise.
11466         * lib/relocatable.c (find_shared_library_fullname): Likewise.
11467         * lib/strerror_r.c: Likewise.
11468         * lib/unistr/u8-strnlen.c: Likewise.
11469         * lib/vasnprintf.c (decimal_point_char): Likewise.
11470         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11471         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11472         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11473         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
11474         * tests/test-sigaction.c (handler, main): Likewise.
11475         * lib/freading.h: Treat uClibc like a non-glibc platform.
11476         * lib/freading.c: Likewise.
11477         * lib/gettext.h: Likewise.
11478         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
11479         Likewise.
11480         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
11481         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
11482         * lib/propername.c (proper_name_utf8): Likewise.
11483         * lib/spawn.in.h: Likewise.
11484         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
11485         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
11486         mem_cd_iconveh_internal): Likewise.
11487         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
11488         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
11489         strstr, strcasestr): Likewise.
11490         * lib/unicodeio.c (unicode_to_mb): Likewise.
11491         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
11492         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
11493         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
11494         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
11495         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
11496         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
11497         * lib/unistr/u8-stpncpy.c: Likewise.
11498         * lib/vasnprintf.c (VASNPRINTF): Likewise.
11499         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
11500         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11501         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11502         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
11503         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
11504         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
11505         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
11506         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
11507         Likewise.
11508         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11509         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11510         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
11511         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11512         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11513         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11514         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11515         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11516         * tests/test-getopt.h (OPTIND_MIN): Likewise.
11517         * tests/test-striconveha.c (main): Likewise.
11518         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11519         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
11520         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
11521         * doc/posix-functions/getline.texi: Likewise.
11522         Reported by Mike Frysinger <vapier@gentoo.org>.
11523
11524 2010-11-20  Bruno Haible  <bruno@clisp.org>
11525
11526         nproc: Fix condition.
11527         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
11528         HAVE_PTHREAD_AFFINITY_NP.
11529
11530 2010-11-20  Bruno Haible  <bruno@clisp.org>
11531
11532         Fix a comment.
11533         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
11534
11535 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
11536
11537         ftoastr: don't assume snprintf
11538         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
11539         Implement a subset of snprintf here, by using sprintf safely.
11540         * modules/ftoastr (Depends-on): Remove snprintf.
11541
11542 2010-11-19  Jim Meyering  <meyering@redhat.com>
11543
11544         test-rename.h: fix compilation failure
11545         * tests/test-rename.h (test_rename): Add omitted "}".
11546
11547 2010-11-17  Jim Meyering  <meyering@redhat.com>
11548
11549         maint.mk: add a URL discussing the no-@acronym policy
11550         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
11551
11552 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11553
11554         ftoastr: depend on snprintf, improve comments
11555         * lib/ftoastr.c: Also mention Loitsch's draft.
11556         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
11557         needed in the current implementation, but it might simplify
11558         speeding up the code later.
11559         * modules/ftoastr: Depend on snprintf; this improves portability.
11560         Suggested by Bruno Haible in the same email.
11561
11562         ftoastr: port to hosts lacking strtof and strtold
11563         Problem reported by Bruno Haible in
11564         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
11565         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
11566         environment and strtold (and presumably strtof) are not available.
11567         * modules/ftoastr (Files): Add m4/c-strtod.m4.
11568         (configure.ac): Require gl_C99_STRTOLD.
11569
11570 2010-11-18  Bruno Haible  <bruno@clisp.org>
11571
11572         c-strtold: Avoid link error on AIX 7.
11573         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
11574         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
11575         (gl_C_STRTOLD): Test whether strtold_l exists.
11576         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11577
11578 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11579
11580         intprops: new macro INT_BITS_STRLEN_BOUND
11581         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
11582         ftoastr.h.  This exposes an internal of intprops.h that was formerly
11583         not exposed.  Also, it uses a slightly tighter bound than before;
11584         though this makes no practical difference, we might as well be as
11585         tight as we easily can.
11586
11587         ftoastr: new module, for lossless conversion of floats to short strings
11588         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
11589         * modules/ftoastr: New files.
11590
11591 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
11592
11593         bootstrap: port to Solaris sed
11594         * build-aux/bootstrap (get_version): Port to Solaris sed.
11595         See Ralf Wildenhues's note in
11596         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
11597
11598 2010-11-14  Jim Meyering  <meyering@redhat.com>
11599
11600         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
11601         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
11602         and move definition closer to sole use.
11603
11604 2010-11-13  Jim Meyering  <meyering@redhat.com>
11605
11606         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
11607         Now we require at least autoconf-2.59, which means the work-around
11608         is no longer needed.
11609         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
11610         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11611         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11612         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
11613         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11614
11615 2010-11-13  Bruno Haible  <bruno@clisp.org>
11616
11617         rename, renameat: Avoid test failures at NFS mounted locations.
11618         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
11619         functions.
11620         (test_rename): Use assert_nonexistent.
11621         * tests/test-rename.c: Include <dirent.h>.
11622         * tests/test-renameat.c: Likewise.
11623         Reported by Gary V. Vaughan <gary@gnu.org>.
11624
11625         rename, renameat: Document Linux bug with NFS
11626         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
11627         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
11628         * doc/posix-functions/renameat.texi: Likewise.
11629         Suggested by Eric Blake.
11630
11631 2010-11-13  Bruno Haible  <bruno@clisp.org>
11632
11633         rename test: Add comments.
11634         * tests/test-rename.h (test_rename): Add structure and comments.
11635
11636 2010-11-13  Eric Blake  <eblake@redhat.com>
11637
11638         maintainer-makefile: cover a few more files
11639         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
11640         scripts generated within C files, for libvirt.
11641
11642 2010-11-13  Bruno Haible  <bruno@clisp.org>
11643
11644         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
11645         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
11646         character, return the number of bytes that belong together, not always
11647         1.
11648         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
11649         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
11650         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
11651         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
11652         number of bytes of an invalid character.
11653         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
11654         (main): Invoke it.
11655         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
11656         results.
11657         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
11658         malformed byte sequences.
11659         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
11660         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
11661         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
11662         Reported by Ben Pfaff and Paolo Bonzini.
11663
11664 2010-11-13  Bruno Haible  <bruno@clisp.org>
11665
11666         openat: Work around glibc bug with fchownat() and empty file names.
11667         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
11668         (gl_FUNC_FCHOWNAT): Invoke it.
11669         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
11670         * doc/posix-functions/fchownat.texi: Document the glibc bug.
11671         Reported by Gary V. Vaughan <gary@gnu.org>.
11672
11673 2010-11-13  Bruno Haible  <bruno@clisp.org>
11674
11675         openat: Ensure autoconf macro ordering.
11676         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
11677         gl_USE_SYSTEM_EXTENSIONS.
11678         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
11679
11680 2010-11-13  Bruno Haible  <bruno@clisp.org>
11681
11682         Update comments.
11683         * lib/unistr/u8-check.c: Update file name in comments.
11684         * lib/unistr/u8-mblen.c: Likewise.
11685         * lib/unistr/u8-prev.c: Likewise.
11686         * lib/unistr/u8-strmblen.c: Likewise.
11687         * lib/unistr/u8-strmbtouc.c: Likewise.
11688
11689 2010-11-13  Jim Meyering  <meyering@redhat.com>
11690
11691         tests: avoid test failure on Solaris 10 due to lack of PATH export
11692         * tests/test-update-copyright.sh: Don't forget to export PATH.
11693
11694         init.sh: ensure that IFS is defined, just in case...
11695         * tests/init.sh (setup_): Ensure that IFS is defined,
11696         so that saving and restoring it works as expected.  This
11697         appears to be useful at least for an old version of dash
11698         from a long time ago (RH 6).  See here for details:
11699         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
11700
11701         maint.mk: tighten "test a == b" check
11702         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
11703         test to files that contain something like #!/bin/sh.
11704         Without this, coreutils would get two false positives in
11705         the comments of C source files.
11706
11707 2010-11-12  Eric Blake  <eblake@redhat.com>
11708
11709         bootstrap: fix typo in previous attempt
11710         * build-aux/bootstrap (buildreq): Correct the grouping.
11711         Reported by Paul Eggert.
11712
11713         maintainer-makefile: prohibit test x == x
11714         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
11715         Based on a report by Matthias Bolte.
11716
11717         bootstrap: allow FreeBSD gzip
11718         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
11719         which has no '.' and goes to stderr.
11720         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
11721         Reported by Matthias Bolte.
11722
11723         maintainer-makefile: check for i18n setup
11724         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
11725         will likely work.
11726
11727 2010-11-12  Bruno Haible  <bruno@clisp.org>
11728
11729         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
11730         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
11731         * lib/nanosleep.c (nanosleep): Likewise.
11732
11733 2010-11-11  Bruno Haible  <bruno@clisp.org>
11734
11735         fcntl-h: Fix for use of C++ on glibc systems.
11736         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11737         also on glibc systems in C++ mode.
11738         Reported by Gary V. Vaughan <gary@gnu.org>.
11739
11740 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11741
11742         mknod: avoid false failure with dash
11743         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
11744
11745 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
11746
11747         unlink: Fix "is it should" typo in diagnostic.
11748         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
11749         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
11750
11751 2010-11-11  Bruno Haible  <bruno@clisp.org>
11752
11753         Tests for module 'strerror_r-posix'.
11754         * modules/strerror_r-posix-tests: New file.
11755         * tests/test-strerror_r.c: New file.
11756         * tests/test-string-c++.cc: Check the signature of strerror_r.
11757
11758         New module 'strerror_r-posix'.
11759         * lib/string.in.h (strerror_r): New declaration.
11760         * lib/strerror_r.c: New file.
11761         * m4/strerror_r.m4: New file.
11762         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
11763         of strerror_r.
11764         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
11765         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11766         * modules/strerror_r-posix: New file.
11767         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
11768         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11769         * doc/posix-functions/strerror_r.texi: Mention the new module and the
11770         portability problems.
11771
11772 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
11773
11774         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
11775         line is also considered for output. Quoted function name in shell
11776         command, so temporary files for functions like MyClass::operator()
11777         are removed correctly without errors.
11778
11779 2010-11-09  Bruno Haible  <bruno@clisp.org>
11780
11781         * doc/posix-functions/strerror.texi: List more failing platforms.
11782
11783         * doc/posix-functions/strerror.texi: Add a comment.
11784
11785 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
11786
11787         fdopendir: fix bug on MacOS X when low on file descriptors
11788
11789         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
11790         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
11791         All callers changed.
11792         (fdopendir): Invoke save_cwd at the top level, not after using
11793         multiple dup() calls to use up file descriptors.  Then retry
11794         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
11795         less than the maximum number of open file descriptors, because
11796         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
11797         on Mac OS X 10.6.4 for tar 1.24
11798         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
11799         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
11800         and for tar 1.25
11801         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
11802
11803 2010-11-07  Bruno Haible  <bruno@clisp.org>
11804
11805         vasnprintf: Support I flag on glibc systems.
11806         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
11807         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
11808         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
11809         snprintf function.
11810         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
11811         glibc systems.
11812         * tests/test-vasnprintf-posix3.c: New file.
11813         * modules/vasnprintf-posix-tests (Files): Add it.
11814         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
11815
11816 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11817
11818         [html] Fix copy/paste bug: Use unique name for compiler warnings.
11819         * MODULES.html.sh: For compiler warnings, use name
11820         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
11821
11822 2010-11-05  Eric Blake  <eblake@redhat.com>
11823
11824         ceil, floor: avoid spurious failure with icc
11825         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
11826         [denormals-as-zero] when optimizing without -mieee-fp option.
11827         * tests/test-floorf2.c (floorf_reference): Likewise.
11828         * tests/test-ceilf1.c (dummy): New function.
11829         (main): Use it to outsmart icc's optimization.
11830         * tests/test-floorf1.c (dummy, main): Likewise.
11831
11832         tests: require working signbit
11833         * modules/ceilf-tests (Depends-on): Add signbit.
11834         * modules/ceill-tests (Depends-on): Likewise.
11835         * modules/floorf-tests (Depends-on): Likewise.
11836         * modules/floorl-tests (Depends-on): Likewise.
11837         * modules/round-tests (Depends-on): Likewise.
11838         * modules/roundf-tests (Depends-on): Likewise.
11839         * modules/roundl-tests (Depends-on): Likewise.
11840         * modules/trunc-tests (Depends-on): Likewise.
11841         * modules/truncf-tests (Depends-on): Likewise.
11842         * modules/truncl-tests (Depends-on): Likewise.
11843
11844         strtod: work around icc bug
11845         * lib/strtod.c (minus_zero): Define to working value.
11846         (strtod): Use it to avoid icc bug.
11847
11848         copysign: enhance tests
11849         * modules/copysign-tests (Files): Add minus-zero.h.
11850         * tests/test-copysign.c (main): Also test zeros.
11851
11852 2010-11-04  Eric Blake  <eblake@redhat.com>
11853
11854         ceil, floor, round, trunc: enhance tests of -0
11855         * tests/test-ceilf1.c (main): Ensure correct sign of result.
11856         * tests/test-ceill.c (main): Likewise.
11857         * tests/test-floorf1.c (main): Likewise.
11858         * tests/test-floorl.c (main): Likewise.
11859         * tests/test-round1.c (main): Likewise.
11860         * tests/test-roundf1.c (main): Likewise.
11861         * tests/test-roundl.c (main): Likewise.
11862         * tests/test-trunc1.c (main): Likewise.
11863         * tests/test-truncf1.c (main): Likewise.
11864         * tests/test-truncl.c (main): Likewise.
11865
11866 2010-11-04  Eric Blake  <eblake@redhat.com>
11867
11868         frexp, tests: work around ICC bug with -zero
11869         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
11870         works with more compilers.
11871         * tests/minus-zero.h: New file.
11872         * modules/ceilf-tests (Files): Include it.
11873         * modules/ceill-tests (Files): Likewise.
11874         * modules/floorf-tests (Files): Likewise.
11875         * modules/floorl-tests (Files): Likewise.
11876         * modules/frexp-nolibm-tests (Files): Likewise.
11877         * modules/frexp-tests (Files): Likewise.
11878         * modules/frexpl-nolibm-tests (Files): Likewise.
11879         * modules/frexpl-tests (Files): Likewise.
11880         * modules/isnan-tests (Files): Likewise.
11881         * modules/isnand-nolibm-tests (Files): Likewise.
11882         * modules/isnand-tests (Files): Likewise.
11883         * modules/isnanf-nolibm-tests (Files): Likewise.
11884         * modules/isnanf-tests (Files): Likewise.
11885         * modules/isnanl-nolibm-tests (Files): Likewise.
11886         * modules/isnanl-tests (Files): Likewise.
11887         * modules/round-tests (Files): Likewise.
11888         * modules/roundf-tests (Files): Likewise.
11889         * modules/roundl-tests (Files): Likewise.
11890         * modules/ldexpl-tests (Files): Likewise.
11891         * modules/signbit-tests (Files): Likewise.
11892         * modules/snprintf-posix-tests (Files): Likewise.
11893         * modules/sprintf-posix-tests (Files): Likewise.
11894         * modules/strtod-tests (Files): Likewise.
11895         * modules/trunc-tests (Files): Likewise.
11896         * modules/truncf-tests (Files): Likewise.
11897         * modules/truncl-tests (Files): Likewise.
11898         * modules/vsnprintf-posix-tests (Files): Likewise.
11899         * modules/vsprintf-posix-tests (Files): Likewise.
11900         * modules/vasnprintf-posix-tests (Files): Likewise.
11901         * modules/vasprintf-posix-tests (Files): Likewise.
11902         * tests/test-ceilf1.c (main): Use it.
11903         * tests/test-ceill.c (main): Likewise.
11904         * tests/test-floorf1.c (main): Likewise.
11905         * tests/test-floorl.c (main): Likewise.
11906         * tests/test-frexp.c (main): Likewise.
11907         * tests/test-frexpl.c (main): Likewise.
11908         * tests/test-isnan.c (main): Likewise.
11909         * tests/test-isnand.h (main): Likewise.
11910         * tests/test-isnanf.h (main): Likewise.
11911         * tests/test-isnanl.h (main): Likewise.
11912         * tests/test-ldexpl.c (main): Likewise.
11913         * tests/test-round.c (main): Likewise.
11914         * tests/test-roundf.c (main): Likewise.
11915         * tests/test-roundl.c (main): Likewise.
11916         * tests/test-signbit.c (test_signbitf, test_signbitd)
11917         (test_signbitl): Likewise.
11918         * tests/test-snprintf-posix.h (test_function): Likewise.
11919         * tests/test-sprintf-posix.h (test_function): Likewise.
11920         * tests/test-strtod.c (main): Likewise.
11921         * tests/test-trunc1.c (main): Likewise.
11922         * tests/test-truncf1.c (main): Likewise.
11923         * tests/test-truncl.c (main): Likewise.
11924
11925         isnanl: work around icc bug
11926         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
11927
11928 2010-11-03  Eric Blake  <eblake@redhat.com>
11929
11930         tests: fix compiler warnings
11931         * tests/test-getopt.h (test_getopt): Fix condition.
11932         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11933         * tests/test-pipe2.c (main): Likewise.
11934         * tests/test-quotearg-simple.c (main): Avoid icc warning.
11935
11936         utimens: fix broken m4 test
11937         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
11938
11939 2010-10-28  Bruno Haible  <bruno@clisp.org>
11940
11941         posix_spawn*, getdtablesize: Relax license.
11942         * modules/posix_spawn (License): Change to LGPLv2+.
11943         * modules/posix_spawnp (License): Likewise.
11944         * modules/posix_spawn-internal (License): Likewise.
11945         * modules/posix_spawnattr_init (License): Likewise.
11946         * modules/posix_spawnattr_getflags (License): Likewise.
11947         * modules/posix_spawnattr_setflags (License): Likewise.
11948         * modules/posix_spawnattr_getpgroup (License): Likewise.
11949         * modules/posix_spawnattr_setpgroup (License): Likewise.
11950         * modules/posix_spawnattr_getschedparam (License): Likewise.
11951         * modules/posix_spawnattr_setschedparam (License): Likewise.
11952         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
11953         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
11954         * modules/posix_spawnattr_getsigdefault (License): Likewise.
11955         * modules/posix_spawnattr_setsigdefault (License): Likewise.
11956         * modules/posix_spawnattr_getsigmask (License): Likewise.
11957         * modules/posix_spawnattr_setsigmask (License): Likewise.
11958         * modules/posix_spawnattr_destroy (License): Likewise.
11959         * modules/posix_spawn_file_actions_init (License): Likewise.
11960         * modules/posix_spawn_file_actions_addclose (License): Likewise.
11961         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
11962         * modules/posix_spawn_file_actions_addopen (License): Likewise.
11963         * modules/posix_spawn_file_actions_destroy (License): Likewise.
11964         * modules/getdtablesize (License): Likewise.
11965         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
11966
11967 2010-10-26  Bruno Haible  <bruno@clisp.org>
11968
11969         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
11970         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
11971         Cygwin and mingw.
11972         Suggested by Eric Blake.
11973
11974 2010-10-26  Bruno Haible  <bruno@clisp.org>
11975
11976         stdio: Work around compilation error due to renameat() on Solaris 10.
11977         * lib/stdio.in.h: Include <unistd.h> on Solaris.
11978         * lib/renameat.c: Don't include <unistd.h> here.
11979         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
11980         Reported by Paul Eggert and Eric Blake.
11981
11982 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11983
11984         renameat: port to Solaris 10, which declares renameat in unistd.h
11985
11986         * lib/renameat.c: Include unistd.h before stdio.h, because
11987         Solaris 10 declares renameat in unistd.h.  Problem encountered
11988         when building GNU tar 1.24 on Solaris 10.
11989
11990 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11991
11992         fdopendir: fix C89 compilation
11993         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
11994         compilers.
11995
11996 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11997
11998         inttostr: simplify by removing unnecessary redundancy
11999         * lib/anytostr.c: Don't include verify.h.
12000         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
12001         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
12002         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
12003         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
12004         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
12005         Likewise.
12006         * modules/inttostr (Depends-on): Remove 'verify'.
12007
12008 2010-10-23  Bruno Haible  <bruno@clisp.org>
12009
12010         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
12011         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
12012         Reported by Eric Blake.
12013
12014 2010-10-23  Bruno Haible  <bruno@clisp.org>
12015
12016         Tests: Fix LOCALE_JA on MirBSD 10.
12017         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
12018         to an UTF-8 locale.
12019         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
12020         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12021         Reported by Eric Blake.
12022
12023 2010-10-21  Bruno Haible  <bruno@clisp.org>
12024
12025         nl_langinfo test: Avoid test failure on NetBSD 5.
12026         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
12027         Reported by Eric Blake.
12028
12029 2010-10-21  Eric Blake  <eblake@redhat.com>
12030
12031         c-stack: work around libsigsegv 2.8 bug
12032         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
12033         overflow on at least PowerPC64.
12034
12035 2010-10-17  Bruno Haible  <bruno@clisp.org>
12036
12037         userspec: Drop redundant file.
12038         * modules/userspec (Files): Remove lib/inttostr.h.
12039
12040 2010-10-17  Bruno Haible  <bruno@clisp.org>
12041
12042         nl_langinfo tests: Silence some warnings.
12043         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
12044         Reported by Jim Meyering.
12045
12046 2010-10-17  Bruno Haible  <bruno@clisp.org>
12047
12048         Make use of GCC's attribute __alloc_size__.
12049         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
12050         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
12051         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
12052         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
12053         __alloc_size__.
12054         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
12055         Suggested by Jim Meyering.
12056
12057 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
12058
12059         bootstrap: anchor .gitignore entries.
12060         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
12061         with...
12062         (insert_vc_ignore): ... this new function, which prepends `/' to
12063         all .gitignore entries before passing them to
12064         insert_sorted_if_absent.
12065
12066 2010-10-16  Bruno Haible  <bruno@clisp.org>
12067
12068         nextafter: Fix configure check.
12069         * modules/nextafter (configure.ac): Correct expected prototype.
12070
12071 2010-10-16  Bruno Haible  <bruno@clisp.org>
12072
12073         termios: Update documentation.
12074         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
12075
12076 2010-10-16  Bruno Haible  <bruno@clisp.org>
12077
12078         tests: Make them compile with TinyCC.
12079         * tests/test-strstr.c (main): Remove parentheses around array
12080         initializer.
12081
12082 2010-10-15  Eric Blake  <eblake@redhat.com>
12083
12084         ignore-value: make header idempotent
12085         * lib/ignore-value.h: Add double-inclusion guards.
12086         Reported by Stefan Berger.
12087
12088 2010-10-15  Jim Meyering  <meyering@redhat.com>
12089
12090         GNUmakefile: handle "stable" target, not "major"
12091         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
12092         lists in maint.mk and announce-gen.  Without this, "make stable"
12093         would fail to ensure that $(VERSION) is up to date.
12094
12095 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
12096
12097         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
12098         & co.
12099
12100 2010-10-14  Bruno Haible  <bruno@clisp.org>
12101
12102         vasnprintf: Don't set errno to 0.
12103         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
12104         block that sets it to 0.
12105         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
12106
12107 2010-10-14  Bruno Haible  <bruno@clisp.org>
12108
12109         socketlib: Fix.
12110         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
12111         gl_PREREQ_SYS_H_WINSOCK2.
12112         Reported by Ian Beckwith <ianb@erislabs.net>.
12113
12114 2010-10-13  Jim Meyering  <meyering@redhat.com>
12115
12116         test-select-stdin.c: avoid warn_unused_result warnings
12117         * tests/test-select-stdin.c: Include "macros.h".
12118         ASSERT that read and fflush succeed.
12119
12120 2010-10-13  Jim Meyering  <meyering@redhat.com>
12121
12122         git-version-gen: do require git-VC'd files in cwd
12123         * build-aux/git-version-gen: Reject a git version string
12124         if there are no commits associated with the current directory.
12125         This avoids an unlikely false-positive (unrelated dir whose parent
12126         repository also contains a tag matching v*), as pointed out
12127         by Giuseppe Scrivano in
12128         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
12129
12130 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
12131
12132         argv-iter: omit nonconforming declaration
12133         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
12134         enum arg_iter_err declaration, which doesn't conform to C99.
12135         Solaris 10 cc warns about this.
12136
12137 2010-10-13  Eric Blake  <eblake@redhat.com>
12138
12139         termios: fix compilation on mingw
12140         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
12141         (gl_TERMIOS_H): Adjust it on mingw.
12142         * modules/termios (Makefile.am): Substitute new key.
12143         * lib/termios.in.h (includes): Make include_next conditional.
12144         * doc/posix-headers/termios.texi (termios.h): Update
12145         documentation.
12146         Reported by Daniel P. Berrange.
12147
12148 2010-10-13  Jim Meyering  <meyering@redhat.com>
12149
12150         git-version-gen: don't require that .git/ be in the current dir
12151         * build-aux/git-version-gen: Adjust this script so that it works
12152         when run from any working directory beneath the top-level .git/-
12153         containing directory.  Inspired by a patch from Giuseppe Scrivano,
12154         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
12155
12156         test-select: avoid warn_unused_result warnings
12157         * tests/test-select.c: Include "macros.h".
12158         ASSERT that each call to read, write, and pipe succeeds.
12159         While not technically required, also check each "close".
12160         * modules/select-tests (Files): Add tests/macros.h.
12161
12162         test-symlinkat: remove declaration of unused local
12163         * tests/test-symlinkat.c (main): Remove unused local, "buf".
12164
12165         test-inttostr: avoid shadowing warnings
12166         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
12167         and use malloc rather than the stack for the same reason as
12168         mentioned in the comment justifying the other allocation.
12169
12170 2010-10-11  Bruno Haible  <bruno@clisp.org>
12171
12172         stdlib: Allow multiple gnulib generated replacements to coexist.
12173         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
12174         Reported by Sam Steingold <sds@gnu.org>.
12175
12176 2010-10-11  Jim Meyering  <meyering@redhat.com>
12177
12178         fix a documentation typo
12179         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
12180
12181 2010-10-11  Eric Blake  <eblake@redhat.com>
12182
12183         futimens: work around Solaris 11 bug
12184         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
12185         * tests/test-futimens.h (test_futimens): Enhance, rather than
12186         weaken test.
12187         * doc/posix-functions/futimens.texi (futimens): Document the bug.
12188
12189 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
12190
12191         Indentation.
12192         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
12193         higher-level operators more to the left.
12194
12195 2010-10-11  Jim Meyering  <meyering@redhat.com>
12196
12197         test-futimens: avoid unwarranted test failure on Solaris 5.11
12198         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
12199         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
12200         because it tries to dereference the NULL name argument.
12201
12202 2010-10-11  Bruno Haible  <bruno@clisp.org>
12203
12204         Indentation.
12205         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
12206         indentation.
12207
12208 2010-10-11  Jim Meyering  <meyering@redhat.com>
12209
12210         spawn.in.h: make indentation consistent with parentheses
12211         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
12212         Make indentation consistent with parentheses.
12213
12214 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
12215
12216         Fix mismatched parens in previous commit
12217         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
12218         parens.
12219
12220 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12221
12222         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
12223
12224         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
12225         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
12226         * lib/malloca.c: Include "verify.h".
12227         (verify1): Remove, replacing with a verify call.
12228         * lib/relocwrapper.c (verify1): Likewise.
12229         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
12230         Likewise.
12231         * modules/malloca (Depends-on): Add 'verify'.
12232         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
12233         * modules/vasnprintf (Depends-on): Add 'verify'.
12234         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12235         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12236         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12237         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12238         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12239         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12240         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12241
12242         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
12243
12244         Formerly the style was sometimes 2*X - 1, because the C standard
12245         was wrongly thought to disallow ?: in integral constant expressions.
12246         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
12247         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
12248         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
12249         * lib/stdint.in.h (_verify_intmax_size): Likewise.
12250         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
12251         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
12252         verify that time_t cannot be floating.
12253
12254 2010-10-08  Eric Blake  <eblake@redhat.com>
12255
12256         time: enforce recent POSIX ruling that time_t is integral
12257         * lib/time.in.h (__time_t_must_be_integral): Detect any
12258         problematic systems, allowing the rest of gnulib to assume POSIX.
12259
12260 2010-10-08  Jim Meyering  <meyering@redhat.com>
12261
12262         fdopendir: fix a bug on systems lacking openat and /proc support
12263         OpenBSD 4.7 is one such system.  The most noticeable effect was
12264         failure of any application making nontrivial use of fts: rm, du,
12265         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
12266           ./rm: traversal failed: `a': Bad file descriptor
12267         Debugging that, you see that even though FD 6 was closed just
12268         prior to the opendir call in fd_clone_opendir, its resulting
12269         dir->dd_fd was 8, rather than the expected value of 6:
12270
12271         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
12272         93                close (fd);
12273         (gdb) n
12274         94                dir = fd_clone_opendir (dupfd);
12275         (gdb) n
12276         95                saved_errno = errno;
12277         (gdb) p dir->dd_fd
12278         $11 = 8
12279
12280         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
12281         The problem is that on OpenBSD, fd_clone_opendir has to resort
12282         to using the old-style save/restore CWD mechanism, due to its
12283         lack of openat/proc support, and *that* would steal the FD (6)
12284         that opendir was supposed to use.
12285
12286         The fix is to squirrel away the desired FD so that save_cwd uses a
12287         different one, and then free the dest FD right before calling opendir.
12288         That guarantees opendir will use the required file descriptor.
12289
12290         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
12291
12292 2010-10-08  Bruno Haible  <bruno@clisp.org>
12293
12294         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
12295         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
12296
12297 2010-10-08  Bruno Haible  <bruno@clisp.org>
12298
12299         nanosleep: Make replacement POSIX compliant.
12300         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
12301         is out of range.
12302         Reported by Jim Meyering.
12303
12304 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12305
12306         bootstrap: add hook for altering gnulib.mk, for Bison
12307         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
12308         the Bison bootstrapping process can rewrite file names and variables
12309         in this file before later parts of 'bootstrap' use the file.
12310         Bison wants to include lib/gnulib.mk from the top-level makefile,
12311         so it needs the file names in this file to be relative to the top
12312         level, not relative to lib; plus it needs variable names to be
12313         rewritten.
12314         (slurp): Use the new function.
12315
12316         bootstrap: reformat for readability
12317         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
12318
12319 2010-10-08  Eric Blake  <eblake@redhat.com>
12320
12321         docs: update cygwin progress
12322         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
12323         1.7.7.
12324         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
12325         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
12326         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
12327         * doc/posix-functions/carg.texi (carg): Likewise.
12328         * doc/posix-functions/cargf.texi (cargf): Likewise.
12329         * doc/posix-functions/casin.texi (casin): Likewise.
12330         * doc/posix-functions/casinf.texi (casinf): Likewise.
12331         * doc/posix-functions/casinh.texi (casinh): Likewise.
12332         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
12333         * doc/posix-functions/catan.texi (catan): Likewise.
12334         * doc/posix-functions/catanf.texi (catanf): Likewise.
12335         * doc/posix-functions/catanh.texi (catanh): Likewise.
12336         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
12337         * doc/posix-functions/ccos.texi (ccos): Likewise.
12338         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
12339         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
12340         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
12341         * doc/posix-functions/cexp.texi (cexp): Likewise.
12342         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
12343         * doc/posix-functions/cimag.texi (cimag): Likewise.
12344         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
12345         * doc/posix-functions/clog.texi (clog): Likewise.
12346         * doc/posix-functions/clogf.texi (clogf): Likewise.
12347         * doc/posix-functions/conj.texi (conj): Likewise.
12348         * doc/posix-functions/conjf.texi (conjf): Likewise.
12349         * doc/posix-functions/cpow.texi (cpow): Likewise.
12350         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
12351         * doc/posix-functions/cproj.texi (cproj): Likewise.
12352         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
12353         * doc/posix-functions/creal.texi (creal): Likewise.
12354         * doc/posix-functions/crealf.texi (crealf): Likewise.
12355         * doc/posix-functions/csin.texi (csin): Likewise.
12356         * doc/posix-functions/csinf.texi (csinf): Likewise.
12357         * doc/posix-functions/csinh.texi (csinh): Likewise.
12358         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
12359         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
12360         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
12361         * doc/posix-functions/ctan.texi (ctan): Likewise.
12362         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
12363         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
12364         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
12365         * doc/posix-headers/complex.texi (complex.h): Likewise.
12366
12367 2010-10-07  Jim Meyering  <meyering@redhat.com>
12368
12369         parse-datetime: avoid compilation failure on OpenBSD 4.7
12370         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
12371         This works around a compilation failure on OpenBSD 4.7:
12372         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
12373
12374 2010-10-07  Eric Blake  <eblake@redhat.com>
12375
12376         docs: update cygwin progress
12377         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
12378         1.7.6.
12379         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
12380         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
12381         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
12382         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
12383         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
12384         Likewise.
12385         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
12386         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
12387         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
12388         Likewise.
12389         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
12390         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
12391         Likewise.
12392         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
12393         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
12394         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
12395         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
12396         Likewise.
12397         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
12398         Likewise.
12399         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
12400
12401         docs: update parse-datetime history
12402         * doc/parse-datetime.texi (Authors of parse_datetime): Better
12403         documentation of this function's history and alternatives.
12404
12405         cygwin: use more robust version check
12406         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
12407         exclude an eventual cygwin 1.9.1.
12408         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12409         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
12410         (gl_FUNC_STRCASESTR): Likewise.
12411         Reported by Bruno Haible.
12412
12413 2010-10-06  Bruno Haible  <bruno@clisp.org>
12414
12415         string, sys_select: Avoid #including large headers unless necessary.
12416         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
12417         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
12418         OSF/1, BeOS, Haiku.
12419         Reported by Jim Meyering.
12420
12421 2010-10-05  Eric Blake  <eblake@redhat.com>
12422
12423         memmem, strstr, strcasestr: fix bug with long periodic needle
12424         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
12425         periodic needle having false positive.
12426         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
12427         and cygwin 1.7.7.
12428         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
12429         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
12430         (gl_FUNC_STRCASESTR): Likewise.
12431         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12432         * tests/test-memmem.c (main): Expose the bug.
12433         * tests/test-strcasestr.c (main): Likewise.
12434         * tests/test-strstr.c (main): Likewise.
12435         * tests/test-c-strcasestr.c (main): Likewise.
12436         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
12437         * doc/posix-functions/strstr.texi (strstr): Likewise.
12438         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12439         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
12440
12441 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12442
12443         parse-datetime: do some more renaming
12444         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
12445         parse_datetime, not get_date.  Mention the renaming.
12446         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
12447         in comments.
12448         * m4/bison.m4: Likewise.
12449
12450 2010-10-05  Eric Blake  <eblake@redhat.com>
12451
12452         parse-datetime: better name than get_date
12453         * NEWS: Reword the deprecation notice.
12454         * modules/get_date: Rename to modules/parse-datetime.
12455         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
12456         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
12457         * lib/get_date.y: Rename to lib/parse-datetime.y.
12458         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
12459         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
12460         * doc/getdate.texi: Provide fallback wrapper.
12461         * lib/getdate.h: Move guts, and wrap...
12462         * lib/parse-datetime.h: ...new file.
12463         * lib/parse-datetime.y (get_date): Rename...
12464         (parse_datetime): ...to this.
12465         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
12466         (gl_PARSE_DATETIME): ...to this.
12467         * doc/posix-functions/getdate.texi (get_date): Provide fallback
12468         documentation.
12469         * modules/getdate (Files): Provide fallback docs and header.
12470         (Notice, Depends-on): Update references.
12471         * tests/test-parse-datetime.c: Likewise.
12472         * DEPENDENCIES: Likewise.
12473         * MODULES.html.sh (Date and time <time.h>): Likewise.
12474         * doc/parse-datetime.texi (Date input formats)
12475         (Authors of parse_datetime): Likewise.
12476         * modules/parse-datetime (Files, configure.ac, Makefile.am)
12477         (Include): Likewise.
12478         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
12479         * gnulib-tool: Likewise.
12480         * m4/bison.m4 (gl_BISON): Likewise.
12481         Suggested by Bruno Haible.
12482
12483 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12484
12485         more ports to Solaris tr, which needs [] around ranges
12486         * gnulib-tool: Solaris tr needs [] around ranges.
12487         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12488         * tests/test-pipe-filter-gi1.c (main): Likewise.
12489         * tests/test-pipe-filter-ii1.c (main): Likewise.
12490
12491 2010-10-05  Eric Blake  <eblake@redhat.com>
12492
12493         bootstrap: fix Solaris regression
12494         * build-aux/bootstrap (check_versions): Solaris tr still needs []
12495         around ranges.
12496         Reported by Pádraig Brady.
12497
12498         bootstrap: work with pkg-config
12499         * build-aux/bootstrap (check_versions): Also transliterate - in
12500         prerequisite name.
12501         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
12502         prerequisites that were already found, to avoid confusion.
12503         Reported by Justin Clift.
12504
12505         faccessat: remove unused wrappers
12506         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
12507         presence of these wrappers dragged in -lgen on Solaris.
12508         Reported by Clemens Brogi; fix suggested by Paul Eggert.
12509
12510 2010-10-05  Jim Meyering  <meyering@redhat.com>
12511
12512         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
12513         * Makefile (sc_pragma_columns): New syntax-check rule.
12514
12515 2010-10-04  Bruno Haible  <bruno@clisp.org>
12516
12517         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
12518         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
12519         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
12520         Reported by Bruce Korb and Eric Blake.
12521
12522 2010-10-04  Bruno Haible  <bruno@clisp.org>
12523
12524         threadlib: Make option --with-libpth-prefix work.
12525         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
12526         use $LIBPTH, not just -lpth.
12527
12528 2010-10-04  Bruno Haible  <bruno@clisp.org>
12529
12530         Avoid line length limitation from HP NonStop system header files.
12531         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
12532         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
12533         * lib/ctype.in.h: Likewise.
12534         * lib/dirent.in.h: Likewise.
12535         * lib/errno.in.h: Likewise.
12536         * lib/fcntl.in.h: Likewise.
12537         * lib/float.in.h: Likewise.
12538         * lib/getopt.in.h: Likewise.
12539         * lib/iconv.in.h: Likewise.
12540         * lib/inttypes.in.h: Likewise.
12541         * lib/langinfo.in.h: Likewise.
12542         * lib/locale.in.h: Likewise.
12543         * lib/math.in.h: Likewise.
12544         * lib/netdb.in.h: Likewise.
12545         * lib/netinet_in.in.h: Likewise.
12546         * lib/poll.in.h: Likewise.
12547         * lib/pthread.in.h: Likewise.
12548         * lib/pty.in.h: Likewise.
12549         * lib/sched.in.h: Likewise.
12550         * lib/se-selinux.in.h: Likewise.
12551         * lib/search.in.h: Likewise.
12552         * lib/signal.in.h: Likewise.
12553         * lib/spawn.in.h: Likewise.
12554         * lib/stdarg.in.h: Likewise.
12555         * lib/stddef.in.h: Likewise.
12556         * lib/stdint.in.h: Likewise.
12557         * lib/stdio.in.h: Likewise.
12558         * lib/stdlib.in.h: Likewise.
12559         * lib/string.in.h: Likewise.
12560         * lib/strings.in.h: Likewise.
12561         * lib/sys_file.in.h: Likewise.
12562         * lib/sys_ioctl.in.h: Likewise.
12563         * lib/sys_select.in.h: Likewise.
12564         * lib/sys_socket.in.h: Likewise.
12565         * lib/sys_stat.in.h: Likewise.
12566         * lib/sys_time.in.h: Likewise.
12567         * lib/sys_times.in.h: Likewise.
12568         * lib/sys_utsname.in.h: Likewise.
12569         * lib/sys_wait.in.h: Likewise.
12570         * lib/sysexits.in.h: Likewise.
12571         * lib/termios.in.h: Likewise.
12572         * lib/time.in.h: Likewise.
12573         * lib/unistd.in.h: Likewise.
12574         * lib/wchar.in.h: Likewise.
12575         * lib/wctype.in.h: Likewise.
12576         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
12577         * modules/ctype (Makefile.am): Likewise.
12578         * modules/dirent (Makefile.am): Likewise.
12579         * modules/errno (Makefile.am): Likewise.
12580         * modules/fcntl-h (Makefile.am): Likewise.
12581         * modules/float (Makefile.am): Likewise.
12582         * modules/getopt-posix (Makefile.am): Likewise.
12583         * modules/iconv-h (Makefile.am): Likewise.
12584         * modules/inttypes (Makefile.am): Likewise.
12585         * modules/langinfo (Makefile.am): Likewise.
12586         * modules/locale (Makefile.am): Likewise.
12587         * modules/math (Makefile.am): Likewise.
12588         * modules/netdb (Makefile.am): Likewise.
12589         * modules/netinet_in (Makefile.am): Likewise.
12590         * modules/poll-h (Makefile.am): Likewise.
12591         * modules/pthread (Makefile.am): Likewise.
12592         * modules/pty (Makefile.am): Likewise.
12593         * modules/sched (Makefile.am): Likewise.
12594         * modules/search (Makefile.am): Likewise.
12595         * modules/selinux-h (Makefile.am): Likewise.
12596         * modules/signal (Makefile.am): Likewise.
12597         * modules/spawn (Makefile.am): Likewise.
12598         * modules/stdarg (Makefile.am): Likewise.
12599         * modules/stddef (Makefile.am): Likewise.
12600         * modules/stdint (Makefile.am): Likewise.
12601         * modules/stdio (Makefile.am): Likewise.
12602         * modules/stdlib (Makefile.am): Likewise.
12603         * modules/string (Makefile.am): Likewise.
12604         * modules/strings (Makefile.am): Likewise.
12605         * modules/sys_file (Makefile.am): Likewise.
12606         * modules/sys_ioctl (Makefile.am): Likewise.
12607         * modules/sys_select (Makefile.am): Likewise.
12608         * modules/sys_socket (Makefile.am): Likewise.
12609         * modules/sys_stat (Makefile.am): Likewise.
12610         * modules/sys_time (Makefile.am): Likewise.
12611         * modules/sys_times (Makefile.am): Likewise.
12612         * modules/sys_utsname (Makefile.am): Likewise.
12613         * modules/sys_wait (Makefile.am): Likewise.
12614         * modules/sysexits (Makefile.am): Likewise.
12615         * modules/termios (Makefile.am): Likewise.
12616         * modules/time (Makefile.am): Likewise.
12617         * modules/unistd (Makefile.am): Likewise.
12618         * modules/wchar (Makefile.am): Likewise.
12619         * modules/wctype (Makefile.am): Likewise.
12620
12621 2010-10-04  Bruno Haible  <bruno@clisp.org>
12622
12623         read-file tests: Avoid a test failure on NonStop Kernel.
12624         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
12625         a regular file.
12626         Reported by Joachim Schmitz <schmitz@hp.com>.
12627
12628 2010-10-03  Bruno Haible  <bruno@clisp.org>
12629
12630         gnulib-tool: Fixes for --create-testdir with --libtool.
12631         * gnulib-tool (func_get_automake_snippet): Don't augment
12632         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
12633         an executable.
12634         (func_create_testdir): Handle module 'alloca' like func_import.
12635         Reported by Bruce Korb <bruce.korb@gmail.com>.
12636
12637 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
12638
12639         Avoid some lines longer than 80 characters.
12640         * lib/stdint.in.h: Break long comment lines.
12641         * lib/math.in.h: Likewise.
12642         (_GL_NUM_UINT_WORDS): New macro, for readability.
12643         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
12644         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
12645         * lib/stdlib.in.h: Likewise.
12646         * lib/spawn.in.h: Likewise.
12647         * lib/sys_socket.in.h: Update an URL.
12648         * lib/sys_stat.in.h: Break long line.
12649
12650 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
12651
12652         Improve pmccabe2html.
12653         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
12654         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
12655         when the sources change. Remove the line in the HTML about "Used
12656         ranges" (which implied that there might be other unused ranges),
12657         rename "Resume" to "Summary" (easier to understand for more users).
12658         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
12659         styles, and some unnecessary blank lines.
12660
12661 2010-10-03  Bruno Haible  <bruno@clisp.org>
12662             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12663
12664         acl: Add support for ACLs on NonStop Kernel.
12665         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
12666         Check whether the function aclsort() exists.
12667         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
12668         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
12669         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12670         (acl_nontrivial [HAVE_ACLSORT]: New function.
12671         (file_has_acl): Implement for NonStop Kernel.
12672         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12673         (qset_acl): Implement for NonStop Kernel.
12674         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
12675         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12676         (main): Implement for NonStop Kernel.
12677         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
12678         Kernel. Handle this flavor.
12679         * tests/test-set-mode-acl.sh: Likewise.
12680         * tests/test-copy-acl.sh: Likewise.
12681         * tests/test-copy-file.sh: Likewise.
12682
12683 2010-10-03  Bruno Haible  <bruno@clisp.org>
12684
12685         Info about ACLs on NonStop Kernel.
12686         * doc/acl-resources.txt: Add info about NonStop Kernel.
12687         References by Joachim Schmitz <schmitz@hp.com>.
12688
12689 2010-10-02  Bruno Haible  <bruno@clisp.org>
12690
12691         Define missing EDQUOT on NonStop Kernel.
12692         * lib/errno.in.h (EDQUOT): Assign a value if missing.
12693         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
12694         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
12695         missing.
12696         * doc/posix-headers/errno.texi: Mention the NSK bug.
12697         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
12698         Reported by Joachim Schmitz <schmitz@hp.com>.
12699
12700 2010-10-02  Bruno Haible  <bruno@clisp.org>
12701
12702         Update doc for POSIX:2008.
12703         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
12704         Update URL of POSIX specification.
12705
12706 2010-10-02  Bruno Haible  <bruno@clisp.org>
12707
12708         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
12709         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
12710         from gnulib, not from Automake.
12711
12712 2010-10-02  Bruno Haible  <bruno@clisp.org>
12713
12714         New module 'system-posix'.
12715         * modules/system-posix: New file.
12716         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
12717         module is present.
12718         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12719         GNULIB_SYSTEM_POSIX.
12720         * modules/stdlib (Depends-on): Remove sys_wait.
12721         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
12722         * doc/posix-functions/system.texi: Mention the new module.
12723         * doc/posix-headers/stdlib.texi: Likewise.
12724         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
12725         define test_sys_wait_macros to a no-op.
12726         Reported by Sam Steingold <sds@gnu.org>.
12727
12728 2010-09-30  Bruno Haible  <bruno@clisp.org>
12729
12730         More renaming from 'getdate' to 'get_date'.
12731         * doc/get_date.texi: Renamed from doc/getdate.texi.
12732         * modules/get_date (Files): Update.
12733         * MODULES.html.sh (Date and time <time.h>): Update.
12734         * DEPENDENCIES: Update.
12735         * gnulib-tool: Update comment.
12736         * m4/bison.m4 (gl_BISON): Likewise.
12737         * m4/get_date.m4 (gl_GET_DATE): Likewise.
12738
12739 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
12740
12741         bootstrap: support ACLOCAL_FLAGS during aclocal
12742         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
12743         can add additional -I dir for third-party .m4 files.
12744
12745 2010-09-30  Eric Blake  <eblake@redhat.com>
12746
12747         bootstrap: use glibtoolize on MacOS
12748         * build-aux/bootstrap (check_versions): Convert libtool into
12749         libtoolize.
12750         (tool search): Move libtool check earlier, and look for
12751         glibtoolize for MacOS.
12752         (gnulib_tool_options): Auto-add --libtool when appropriate.
12753         Reported by Justin Clift.
12754
12755         poll: fix typo that broke test on MacOS
12756         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
12757         Reported by Justin Clift.
12758
12759         getdate: rename to get_date
12760         Note: getdate.h is not renamed, to minimize client impact.
12761         * modules/getdate: Mark obsolete.  Move old contents...
12762         * modules/get_date: ...to new module name.
12763         * modules/getdate-tests: Move...
12764         * modules/get_date-tests: ...here.
12765         * m4/getdate.m4: Move...
12766         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
12767         * lib/getdate.y: Move...
12768         * lib/get_date.y: ...here.
12769         * tests/test-getdate.c: Move...
12770         * tests/test-get_date.c: ...here.
12771         * doc/posix-functions/getdate.texi (getdate): Update name.
12772         * NEWS: Mention the change.
12773
12774 2010-09-29  Bruno Haible  <bruno@clisp.org>
12775
12776         Separate the module 'waitpid' from the module 'sys_wait'.
12777         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
12778         present.
12779         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
12780         gl_MODULE_INDICATOR_FOR_TESTS.
12781         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
12782         * modules/sys_wait (Depends-on): Remove waitpid.
12783         (Makefile.am): Substitute GNULIB_WAITPID.
12784         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
12785         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
12786         signature only if the 'waitpid' module is present.
12787         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
12788         * NEWS: Mention the change.
12789         * modules/grantpt (Depends-on): Add waitpid.
12790         * modules/wait-process (Depends-on): Likewise.
12791
12792 2010-09-29  Bruno Haible  <bruno@clisp.org>
12793
12794         More tests for module 'sys_wait'.
12795         * modules/sys_wait-c++-tests: New file.
12796         * tests/test-sys_wait-c++.cc: New file.
12797         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
12798         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12799
12800 2010-09-29  Bruno Haible  <bruno@clisp.org>
12801
12802         New module 'waitpid'.
12803         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
12804         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
12805         Don't include <process.h>.
12806         (waitpid): Declare only, using modern idiom.
12807         * m4/waitpid.m4: New file.
12808         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
12809         * modules/waitpid: New file.
12810         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
12811         (Makefile.am): Update.
12812         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12813
12814 2010-09-28  Bruno Haible  <bruno@clisp.org>
12815
12816         poll: Assume ANSI C.
12817         * lib/poll.c (poll): Use an ANSI C declaration.
12818
12819 2010-09-28  Bruno Haible  <bruno@clisp.org>
12820
12821         poll-h: Create poll.h on all platforms.
12822         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
12823         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
12824         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
12825         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
12826         (gl_REPLACE_POLL_H): Don't set POLL_H.
12827         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
12828         * modules/poll-h (Depends-on): Add include_next.
12829         (Makefile.am): Create poll.h unconditionally. Substitute also
12830         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
12831
12832 2010-09-28  Bruno Haible  <bruno@clisp.org>
12833
12834         Tests for module 'poll-h'.
12835         * modules/poll-h-c++-tests: New file.
12836         * tests/test-poll-h-c++.cc: New file.
12837
12838         Tests for module 'poll-h'.
12839         * modules/poll-h-tests: New file.
12840         * tests/test-poll-h.c: New file.
12841
12842 2010-09-28  Bruno Haible  <bruno@clisp.org>
12843
12844         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
12845         * modules/poll-h (Depends-on): Add 'extensions'.
12846
12847 2010-09-28  Bruno Haible  <bruno@clisp.org>
12848
12849         New module 'poll-h'.
12850         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
12851         (poll): Use modern idiom.
12852         * modules/poll-h: New file.
12853         * modules/poll (Files): Remove lib/poll.in.h.
12854         (Depends-on): Add poll-h.
12855         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
12856         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
12857         * m4/poll_h.m4: New file.
12858         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
12859         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
12860         and invoke gl_REPLACE_POLL_H.
12861         * lib/poll.c: Use common idiom.
12862         * tests/test-poll.c: Likewise.
12863         * doc/posix-headers/poll.texi: Mention the poll-h module.
12864         Suggested by Eric Blake.
12865
12866 2010-09-26  Bruno Haible  <bruno@clisp.org>
12867
12868         sys_wait: Implement WSTOPSIG.
12869         * lib/sys_wait.in.h (WSTOPSIG): New macro.
12870         Reported by Simon Josefsson.
12871
12872 2010-09-26  Simon Josefsson  <simon@josefsson.org>
12873
12874         stdlib, sys_wait: Avoid compilation error on mingw.
12875         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
12876
12877 2010-09-26  Bruno Haible  <bruno@clisp.org>
12878
12879         stdlib tests: Avoid code duplication.
12880         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
12881         * modules/sys_wait-tests (Files): Likewise.
12882         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
12883         * tests/test-stdlib.c: Include test-sys_wait.h.
12884         (main): Invoke test_sys_wait_macros.
12885         * tests/test-sys_wait.c: Include test-sys_wait.h.
12886         (main): Invoke test_sys_wait_macros.
12887
12888 2010-09-25  Simon Josefsson  <simon@josefsson.org>
12889
12890         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
12891         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
12892         sure Windows sockets are working before calling getaddrinfo.
12893         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
12894         * doc/gnulib.texi (Windows sockets): Fix typo.
12895
12896 2010-09-25  Bruno Haible  <bruno@clisp.org>
12897
12898         Tests for module 'regex-quote'.
12899         * modules/regex-quote-tests: New file.
12900         * tests/test-regex-quote.c: New file.
12901
12902         New module 'regex-quote'.
12903         * lib/regex-quote.h: New file.
12904         * lib/regex-quote.c: New file.
12905         * modules/regex-quote: New file.
12906         Suggested by Reuben Thomas <rrt@sc3d.org>.
12907
12908 2010-09-24  Bruno Haible  <bruno@clisp.org>
12909
12910         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
12911         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
12912
12913 2010-09-23  Bruno Haible  <bruno@clisp.org>
12914
12915         setenv: Relax license.
12916         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
12917         Blake.
12918         Requested by Eric Blake.
12919
12920 2010-09-22  Bruno Haible  <bruno@clisp.org>
12921
12922         termios: Relax license.
12923         * modules/termios (License): Change to LGPLv2+.
12924         Requested by Eric Blake.
12925
12926 2010-09-22  Bruno Haible  <bruno@clisp.org>
12927
12928         threadlib: Allow the package to change the default to 'no'.
12929         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
12930         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
12931         Reported by Paul Eggert.
12932
12933 2010-09-22  Pádraig Brady  <P@draigbrady.com>
12934             Bruno Haible  <bruno@clisp.org>
12935
12936         Fix endless loop in mbmemcasecoll.
12937         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
12938         byte.
12939         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
12940
12941 2010-09-22  Bruno Haible  <bruno@clisp.org>
12942
12943         Tests for module 'memcoll'.
12944         * modules/memcoll-tests: New file.
12945         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
12946
12947         memcoll, xmemcoll: Clarify size vs. length.
12948         * modules/memcoll.c (memcoll0): Clarify specification.
12949         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
12950         passed to collate_error.
12951
12952 2010-09-22  Bruno Haible  <bruno@clisp.org>
12953
12954         Tests for module 'memcasecmp'.
12955         * modules/memcasecmp-tests: New file.
12956         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
12957
12958 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12959
12960         * lib/pthread.in.h: Add split double-inclusion guard, and include
12961         system <pthread.h> if there is one.  Use @@-style as in other
12962         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
12963         pthread.h doesn't.
12964         (pthread_mutexattr_destroy, pthread_mutexattr_init):
12965         (pthread_mutexattr_settype, pthread_mutex_trylock):
12966         New static inline functions, if there's no system <pthread.h>.
12967         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
12968         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
12969         Approximate with mutexes if the system lacks spinlocks, as in
12970         MacOS.
12971         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
12972         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
12973         @@-style.  Check for spinlocks separately.
12974         (gl_PTHREAD_DEFAULTS): New macro.
12975         * modules/pthread: Redo to use a more typical style for in.h files.
12976
12977 2010-09-21  Eric Blake  <eblake@redhat.com>
12978
12979         net_if: enhance tests
12980         * tests/test-net_if.c (main): Move signature checks earlier.
12981         Print failures to stderr.
12982         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
12983         Document the bug that we do not yet fix.
12984
12985 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12986
12987         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
12988         about gnulib, not GSS.
12989
12990 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12991
12992         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
12993         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
12994         for Emacs.
12995         * build-aux/pmccabe2html: Make Makefile.am example code more
12996         cut-and-paste friendly.
12997
12998 2010-09-21  Simon Josefsson  <simon@josefsson.org>
12999
13000         * tests/test-net_if.c: New file.
13001         * modules/net_if-tests: New file.
13002
13003 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
13004
13005         pthread: add pthread_spin_destroy
13006         * lib/pthread.in.h (pthread_spin_destroy): New function.
13007
13008 2010-09-19  Bruno Haible  <bruno@clisp.org>
13009
13010         gnulib-tool: Fix --help output.
13011         * gnulib-tool (func_usage): Fix help message.
13012         Reported by Reuben Thomas <rrt@sc3d.org>.
13013
13014 2010-09-18  Jim Meyering  <meyering@redhat.com>
13015
13016         maint.mk: avoid unexpanded \n in two diagnostics
13017         * top/maint.mk (sc_prohibit_always_true_header_tests):
13018         Don't use a literal \n in a halt=... assignment.  It would not be
13019         expanded, and the two \n bytes would appear in the diagnostic output
13020         rather than the desired newline.  Use halt=$$(printf ... instead.
13021         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
13022
13023 2010-09-18  Bruno Haible  <bruno@clisp.org>
13024
13025         netinet_in: Doc tweak.
13026         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
13027         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13028
13029 2010-09-18  Jim Meyering  <meyering@redhat.com>
13030
13031         init.sh: correct an outdated comment
13032         * tests/init.sh (create_exe_shims_):  s/function/alias/
13033
13034         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
13035         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
13036         a file named "*.exe" is removed between the glob expansion and the
13037         processing of that oddly named file.
13038
13039 2010-09-17  Eric Blake  <eblake@redhat.com>
13040
13041         mirbsd: add some more support
13042         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
13043         in BSD family.
13044         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
13045         devices as OpenBSD.
13046         * m4/host-os.m4 (mirbsd): Add MirBSD.
13047
13048         tests: fix unportable assumption on sys/wait.h
13049         * tests/test-sys_wait.c (main): Relax test.
13050         * tests/test-stdlib.c (main): Likewise.
13051
13052         init.sh: accomodate directory with no .exes
13053         * tests/init.sh: Accomodate directory containing only scripts.
13054
13055         tests: avoid compiler warning
13056         * tests/test-stdlib.c (main): Use the variable.
13057
13058         fdutimens, fdutimensat: update signature, again
13059         * lib/utimens.h (gl_futimens): Delete, and move signature...
13060         (fdutimens): ...here.
13061         (fdutimensat): Rearrange signature.
13062         (lutimensat): Rename variable for clarity.
13063         * lib/fdutimensat.c (fdutimensat): Update signature.
13064         * lib/utimens.c (fdutimens): Likewise.
13065         (gl_futimens): Delete.
13066         (utimens, lutimens): Update callers.
13067         * lib/futimens.c (futimens): Likewise.
13068         * tests/test-fdutimensat.c: Likewise.
13069         * tests/test-utimens.c: Likewise.
13070         * tests/test-futimens.h: Update comment.
13071         * NEWS: Mention this.
13072         Suggested by Paul Eggert.
13073
13074 2010-09-17  Bruno Haible  <bruno@clisp.org>
13075
13076         Take over the maintenance of some older macros from Autoconf.
13077         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
13078         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
13079         GNU Autoconf.
13080         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
13081         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
13082
13083 2010-09-17  Eric Blake  <eblake@redhat.com>
13084
13085         fdutimensat: drop atflag validation
13086         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
13087         with valid fd, to close a race scenario where futimens is
13088         unsupported and FILE was replaced by a symlink.
13089         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
13090         accordingly.
13091         Suggested by Paul Eggert.
13092
13093 2010-09-16  Bruno Haible  <bruno@clisp.org>
13094
13095         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
13096         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
13097
13098 2010-09-16  Bruno Haible  <bruno@clisp.org>
13099
13100         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
13101         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
13102         login_tty exists.
13103         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13104
13105 2010-09-16  Bruno Haible  <bruno@clisp.org>
13106
13107         login_tty: Make the replacement code work on BSD systems.
13108         * lib/login_tty.c: Include <sys/ioctl.h>.
13109         (login_tty): Use ioctl TIOCSCTTY when available.
13110         * modules/login_tty (Depends-on): Add sys_ioctl.
13111         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13112
13113 2010-09-16  Bruno Haible  <bruno@clisp.org>
13114
13115         login_tty: Stricter unit test.
13116         * modules/login_tty-tests (Depends-on): Add tcgetsid.
13117         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
13118         and tcgetsid() after login_tty.
13119         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13120
13121 2010-09-16  Bruno Haible  <bruno@clisp.org>
13122
13123         New module 'tcgetsid'.
13124         * lib/tcgetsid.c: New file.
13125         * m4/tcgetsid.m4: New file.
13126         * modules/tcgetsid: New file.
13127         * modules/termios (Depends-on): Add c++defs, warn-on-use.
13128         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
13129         GNULIB_TCGETSID, HAVE_TCGETSID.
13130         * lib/termios.in.h: Include <sys/types.h>.
13131         (tcgetsid): New declaration.
13132         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
13133         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
13134         * doc/posix-functions/tcgetsid.texi: Mention the new module.
13135         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
13136
13137 2010-09-16  Bruno Haible  <bruno@clisp.org>
13138
13139         Tests for module 'termios'.
13140         * modules/termios-c++-tests: New file.
13141         * modules/termios-tests: New file.
13142         * tests/test-termios-c++.cc: New file.
13143         * tests/test-termios.c: New file.
13144
13145         New module 'termios'.
13146         * modules/termios: New file.
13147         * lib/termios.in.h: New file.
13148         * m4/termios_h.m4: New file.
13149         * doc/posix-headers/termios.texi: Mention the new module.
13150
13151 2010-09-16  Eric Blake  <eblake@redhat.com>
13152
13153         fdutimensat: add an atflag parameter
13154         * lib/fdutimensat.c (fdutimensat): Add new parameter.
13155         * lib/utimens.h (fdutimensat): Update prototype.
13156         * tests/test-fdutimensat.c: Adjust test to match.
13157         * NEWS: Document the change.
13158         Suggested by Paul Eggert.
13159
13160 2010-09-16  Bruno Haible  <bruno@clisp.org>
13161
13162         Fix typos in comments.
13163         * lib/striconveh.h: Fix typo in comment.
13164         * lib/login_tty.c (login_tty): Likewise.
13165
13166 2010-09-15  Bruno Haible  <bruno@clisp.org>
13167
13168         stdlib: clarify MirBSD WEXITSTATUS bug
13169         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
13170         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
13171
13172 2010-09-15  Eric Blake  <eblake@redhat.com>
13173
13174         stdlib: work around MirBSD WEXITSTATUS bug
13175         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
13176         * modules/stdlib (Depends-on): Add sys_wait.
13177         * tests/test-sys_wait.c (main): Enhance test.
13178         * tests/test-stdlib.c (main): Likewise.
13179         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
13180
13181         docs: mention MacOS issue with WEXITSTATUS(constant)
13182         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
13183         issue.
13184         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
13185
13186         strnlen: add tests
13187         * modules/strnlen-tests: New file.
13188         * tests/test-strnlen.c: Likewise.
13189
13190 2010-09-14  Bruno Haible  <bruno@clisp.org>
13191
13192         unistr/base: Avoid link errors when module 'libunistring' is also used.
13193         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
13194         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
13195         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
13196         Declare also when HAVE_LIBUNISTRING is set.
13197         Reported by Pádraig Brady <P@draigbrady.com>.
13198
13199 2010-09-14  Eric Blake  <eblake@redhat.com>
13200
13201         test-rawmemchr: make more robust
13202         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
13203         (Depends-on, configure.ac): Add needed prerequisites to use it.
13204         * modules/memchr-tests (Files, Depends-on, configure.ac):
13205         Likewise, to avoid implicit reliance on memchr module prereqs.
13206         * tests/test-memchr.c (main): Ensure proper masking.
13207         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
13208         reads.
13209
13210         memchr: detect glibc Alpha bug
13211         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
13212         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
13213         Alpha.
13214         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
13215         * tests/test-memchr.c (main): Enhance test.
13216         Reported by Nelson H. F. Beebe.
13217
13218 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13219
13220         fts, getcwd, glob: audit for dirfd returning -1
13221         * lib/fts.c (opendir): Remove #define; no longer used.
13222         (opendirat): New arg PDIR_FD.  All callers changed.
13223         (fts_build, _opendir2): Use new opendirat to avoid the need for
13224         dirfd, or for checking whether dirfd returns a negative value.
13225         Don't use opendir; always use openat followed by fdopendir.
13226         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
13227         it.
13228         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
13229         returns -1 here.
13230         * modules/fts (Depends-on): Remove dirfd.
13231         * modules/getcwd (Depends-on): Likewise.
13232
13233 2010-09-13  Eric Blake  <eblake@redhat.com>
13234
13235         float: fix broken MirBSD header
13236         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
13237         * doc/posix-headers/float.texi (float.h): Document it.
13238
13239 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13240
13241         fts: use O_NOFOLLOW to avoid race condition when opening a directory
13242         * lib/fts.c (opendirat): New arg extra_flags.
13243         (__opendir2): Use it to avoid following symlinks when opening
13244         a directory, if symlinks are not supposed to be followed.  See
13245         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
13246
13247         fdopendir: preserve argument fd before returning
13248         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
13249         (fdopendir_with_dup, fd_clone_opendir): New static functions.
13250         (fdopendir): Use them, arranging for FD to be open to the same
13251         directory that it was when it started.  (It might be temporarily
13252         closed while fdopendir is running, so this not thread- or
13253         signal-safe.)  Be careful to do the right thing even when file
13254         descriptors are scarce and dup fails with errno == EMFILE.  See
13255         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
13256
13257 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
13258
13259         regex: Pass the system regex if its only problem is 32-bit regoff_t.
13260         * NEWS: Document change.
13261         * m4/regex.m4: Disable test for regoff_t size.
13262
13263 2010-09-13  Jim Meyering  <meyering@redhat.com>
13264
13265         fts: don't operate on an invalid file descriptor after failed dup
13266         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
13267         negative file descriptor.
13268
13269 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
13270
13271         savedir: add streamsavedir, deprecate fdsavedir
13272         * NEWS: Mention deprecation of fdsavedir.
13273         * lib/savedir.c (streamsavedir): New extern function, whose name
13274         ends in "savedir" to be consistent with the others.  This differs
13275         from savedirstream in that it doesn't close its argument.  The
13276         next version of GNU tar will use this instead of fdsavedir, to
13277         avoid some race conditions and conserve file descriptors.
13278         (savedirstream): Reimplement as a wrapper around streamsavedir.
13279         (fdsavedir): Add a comment deprecating this function.  As far as
13280         I know, only GNU tar used it, and GNU tar doesn't need it any more.
13281         * lib/savedir.h (streamsavedir): New decl.
13282         (fdsavedir): Add a comment deprecating this.
13283
13284 2010-09-10  Bruno Haible  <bruno@clisp.org>
13285
13286         langinfo: Fix last commit.
13287         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
13288         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
13289         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13290
13291 2010-09-10  Bruno Haible  <bruno@clisp.org>
13292
13293         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
13294         * lib/progreloc.c (O_EXEC): Define fallback.
13295
13296 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
13297
13298         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
13299         * NEWS: Document recent changes to fcntl-h.
13300         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
13301         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
13302         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
13303         Similarly for O_SEARCH; this last was already true, but not documented.
13304         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
13305         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
13306         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
13307         Likewise.
13308         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
13309         is zero, not whether it is defined.
13310         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
13311         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
13312         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
13313
13314 2010-09-10  Bruno Haible  <bruno@clisp.org>
13315
13316         langinfo, nl_langinfo: Fix for IRIX 5.3.
13317         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
13318         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
13319         HAVE_LANGINFO_YESEXPR.
13320         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
13321         HAVE_LANGINFO_YESEXPR.
13322         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
13323         HAVE_LANGINFO_T_FMT_AMPM is 0.
13324         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
13325         HAVE_LANGINFO_YESEXPR is 0.
13326         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
13327         NOEXPR.
13328         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
13329         * doc/posix-functions/nl_langinfo.texi: Likewise.
13330         Reported by Eric Blake.
13331
13332 2010-09-10  Bruno Haible  <bruno@clisp.org>
13333
13334         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
13335         * doc/glibc-functions/login_tty.texi: Mention the include file problem
13336         on FreeBSD 8.0 and OpenBSD 4.6.
13337         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
13338         * m4/pty_h.m4 (gl_PTY_H): Likewise.
13339         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
13340         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
13341         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
13342         ac_includes_default.
13343         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13344
13345 2010-09-09  Eric Blake  <eblake@redhat.com>
13346
13347         strsignal: work around NetBSD bug
13348         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
13349         * lib/string.in.h (includes): Likewise.
13350         * doc/posix-functions/strsignal.texi (strsignal): Document the
13351         bug.
13352         Reported by Nelson H. F. Beebe.
13353
13354         gnulib-tool: work with NetBSD /bin/sh
13355         * gnulib-tool (func_cache_var, func_cache_lookup_module)
13356         (func_get_description, func_get_comment, func_get_status)
13357         (func_get_notice, func_get_applicability, func_get_filelist)
13358         (func_get_dependencies, func_get_autoconf_early_snippet)
13359         (func_get_autoconf_snippet, func_get_automake_snippet)
13360         (func_get_include_directive, func_get_link_directive)
13361         (func_get_license, func_get_maintainer, func_import): Avoid
13362         shell syntax errors from parsing syntax extensions.
13363
13364 2010-09-09  Bruno Haible  <bruno@clisp.org>
13365
13366         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
13367         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
13368         a reliable way to determine whether the 'alias' command works.
13369
13370 2010-09-08  Jim Meyering  <meyering@redhat.com>
13371
13372         init.sh: penalize a set-x-impaired shell; don't disqualify it
13373         * tests/init.sh: Too many shells corrupt application stderr when
13374         you set -x, so we can't afford to disqualify them, since at least
13375         on Irix-6.5, that would disqualify all bourne shells.
13376         Instead, use a two-pass approach.
13377         On the first pass, try to find a shell that meets the stricter
13378         condition that set -x does not corrupt stderr.
13379         If no shell meets the stricter condition, retest each candidate
13380         shell, but without that extra condition.  Finally, when
13381         VERBOSE=yes is requested and set -x might cause trouble, simply
13382         issue a warning and refrain from enabling debug output.
13383
13384 2010-09-08  Eric Blake  <eblake@redhat.com>
13385
13386         unsetenv: fix OpenBSD bug
13387         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
13388         * doc/posix-functions/unsetenv.texi (unsetenv): Update
13389         documentation.
13390         Reported by Jim Meyering.
13391
13392         strtod: work around IRIX 6.5 bug
13393         * lib/strtod.c (strtod): Reparse number on shorter string if
13394         exponent parse was invalid.
13395         * tests/test-strtod.c (main): Add check for "0x1p 2".
13396         Reported by Tom G. Christensen.
13397
13398         getopt: optimize previous patch
13399         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
13400         empty variable.  Speed up awk script.
13401         Reported by Paolo Bonzini.
13402
13403 2010-09-08  Jim Meyering  <meyering@redhat.com>
13404
13405         test.sh: disqualify shells for which set -x corrupts stderr
13406         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
13407         and OpenBSD 4.7.  They make it so with "set -x", environment settings
13408         appear in stderr output.  For example, this command:
13409             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
13410         prints "P=1" on those two systems:
13411
13412 2010-09-08  Bruno Haible  <bruno@clisp.org>
13413
13414         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
13415         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
13416         commands, because some shells ignore redirections when there is an
13417         error in the command lookup.
13418         Reported by Eric Blake.
13419
13420 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
13421
13422         * lib/regex.h: Fix a mention of `regex_compile' (should be
13423         `re_compile_pattern').
13424         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
13425         (re_set_registers): Correct name of parameter in comment.
13426
13427         * doc/regex.texi: Add documentation for missing syntax flags.
13428         Remove commented-out documentation of defunct syntax option
13429         RE_NO_EMPTY_ALTS.
13430         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
13431         Add documentation of re_set_registers.
13432         Document trick to re-use a pattern buffer by setting fastmap manually.
13433         Update documentation of struct re_pattern_buffer per public members.
13434         Uncomment documentation of equivalence class operators and
13435         collating symbol operators, since they are now implemented,
13436         Explain leftmost-longest matching in relation to alternatives.
13437         Tidy documentation of substring matching.
13438         Remove POSIX documentation, which is done better in
13439         glibc, and refer the reader there. Keep BSD API documentation, as
13440         that is not readily available elsewhere.
13441
13442 2010-09-07  Eric Blake  <eblake@redhat.com>
13443
13444         getopt: handle POSIXLY_CORRECT set but not exported
13445         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
13446         export state of POSIXLY_CORRECT, due to bash set -o posix.
13447         Reported by Dustin J. Mitchell.
13448
13449 2010-09-05  Bruno Haible  <bruno@clisp.org>
13450
13451         gnulib-tool: Highlight the changed options.
13452         * gnulib-tool (func_usage): Display the --import, --add-import,
13453         --remove-import explanations in bold font.
13454
13455 2010-09-06  Karl Berry  <karl@gnu.org>
13456
13457         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
13458
13459 2010-09-05  Bruno Haible  <bruno@clisp.org>
13460
13461         uniwidth/width: Update comment.
13462         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
13463         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
13464
13465 2010-09-05  Bruno Haible  <bruno@clisp.org>
13466
13467         isinf, isnan: Relax license.
13468         * modules/isinf (License): Change from GPL to LGPL, with consent from
13469         Ben Pfaff.
13470         * modules/isnan (License): Likewise.
13471         Requested by Ludovic Courtès.
13472
13473 2010-09-04  Bruno Haible  <bruno@clisp.org>
13474
13475         gnulib-tool: Help migration from --import to --add-import or --update.
13476         * gnulib-tool: Emit a verbose error message when --import is used
13477         without any module name.
13478
13479 2010-09-04  Bruno Haible  <bruno@clisp.org>
13480
13481         Update doc about gnulib-tool.
13482         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
13483         'gnulib-tool --update' in more detail.
13484         Reported by Eric Blake.
13485
13486 2010-09-04  Bruno Haible  <bruno@clisp.org>
13487
13488         gnulib-tool: Change --import. New options --add/remove-import.
13489         * gnulib-tool: New options --add-import, --remove-import.
13490         (func_usage): Document them.
13491         (have_associative): Define always.
13492         (func_import): In import mode, don't merge the specified settings with
13493         the cached settings. Implement remove-import mode.
13494         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
13495         Explain when to use them versus --import.
13496         (Simple update): Use --add-import instead of --import.
13497         * NEWS: Mention the change.
13498
13499 2010-09-04  Bruno Haible  <bruno@clisp.org>
13500
13501         * doc/gnulib-tool.texi (Initial import): Update paragraph about
13502         separate gnulib.mk.
13503
13504 2010-09-04  Bruno Haible  <bruno@clisp.org>
13505
13506         gnulib-tool: Don't talk about CVS any more.
13507         * gnulib-tool (func_usage, func_import): Write "version control"
13508         instead of CVS.
13509
13510 2010-09-04  Jim Meyering  <meyering@redhat.com>
13511
13512         maint.mk: avoid obscure sc_copyright_check failure in coreutils
13513         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
13514         false positives (whose names may be ill-chosen) when searching
13515         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
13516         would cause a false-positive.
13517
13518         avoid coreutils "make distcheck" failure
13519         Coreutils tests with an absolute build directory name that contains
13520         a space.  Not quoting this directory name caused a failure.
13521         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
13522         * tests/test-vc-list-files-cvs.sh: Likewise.
13523
13524 2010-09-04  Bruno Haible  <bruno@clisp.org>
13525
13526         gnulib-tool: Avoid error when run in a package without Makefile.am.
13527         * gnulib-tool: When collecting the m4dirs in a package that does not
13528         have a Makefile.am, eliminate those directories that contain no
13529         gnulib-cache.m4. Fix expression that counts these directories.
13530
13531 2010-09-04  Bruno Haible  <bruno@clisp.org>
13532
13533         update-copyright test: Improve output when perl is missing or too old.
13534         * tests/test-update-copyright.sh: Move test of Perl version down after
13535         the test whether Perl exists. Provide an explanation relating Perl's
13536         error message to Automake's SKIP: message.
13537
13538 2010-09-04  Bruno Haible  <bruno@clisp.org>
13539
13540         Don't augment PATH in TESTS_ENVIRONMENT.
13541         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
13542         set abs_aux_dir instead of augmenting PATH.
13543         * modules/vc-list-files-tests (Makefile.am): Likewise.
13544         * tests/test-update-copyright.sh: Augment PATH here.
13545         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
13546         path_prepend_.
13547         * tests/test-vc-list-files-git.sh: Likewise.
13548
13549 2010-09-04  Jim Meyering  <meyering@redhat.com>
13550
13551         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
13552         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
13553
13554 2010-09-04  Bruno Haible  <bruno@clisp.org>
13555
13556         strdup: Fix compilation error in C++ mode.
13557         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
13558         the macro.
13559
13560 2010-09-04  Bruno Haible  <bruno@clisp.org>
13561
13562         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
13563         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
13564         macro into a function.
13565         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13566
13567 2010-09-04  Bruno Haible  <bruno@clisp.org>
13568
13569         Set PATH_SEPARATOR the same way autoconf does.
13570         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
13571         the value of PATH_SEPARATOR the same way autoconf-generated configure
13572         scripts do.
13573         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
13574         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
13575
13576 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13577
13578         Set PATH_SEPARATOR the same way autoconf does.
13579         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
13580         the same way autoconf-generated configure scripts do.
13581         * posix-modules: Likewise.
13582
13583 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13584
13585         hash: fix safe_hasher const typo
13586         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
13587         const; otherwise, there is a type error later.
13588
13589 2010-09-02  Jim Meyering  <meyering@redhat.com>
13590
13591         test-update-copyright.sh: require perl 5.8.0
13592         * tests/test-update-copyright.sh: Require 5.8.0,
13593         which Tom G. Christensen has confirmed is adequate,
13594         while 5.6.1 is not.
13595
13596 2010-09-02  Eric Blake  <eblake@redhat.com>
13597
13598         tests: init.sh improvements for re-exec'ing with zsh
13599         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
13600         -vx through shell re-exec.
13601         Reported by Tom G. Christensen.
13602
13603         wctype: fix typo in previous commit
13604         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
13605         Reported by Ludovic Courtès.
13606
13607 2010-09-02  Jim Meyering  <meyering@redhat.com>
13608
13609         test-update-copyright.sh: skip test if Perl is too old
13610         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
13611         Reported by Tom G. Christensen.
13612
13613 2010-09-02  Bruno Haible  <bruno@clisp.org>
13614
13615         wctype: Avoid compilation error on IRIX 6.5.30.
13616         * lib/wctype.in.h (iswblank): Declare with a replacement if
13617         REPLACE_ISWBLANK is set.
13618         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
13619         declared. Set REPLACE_ISWBLANK.
13620         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
13621         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
13622         * doc/posix-headers/wctype.texi: Likewise.
13623         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13624
13625 2010-09-01  Bruno Haible  <bruno@clisp.org>
13626
13627         New module 'socketlib'.
13628         * modules/socketlib: New file.
13629         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
13630         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
13631         * modules/sockets (Depends-on): Add socketlib.
13632         Suggested by Sam Steingold <sds@gnu.org>.
13633
13634 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13635
13636         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
13637
13638         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
13639         when one needs search access to a directory but not read access.
13640         On systems where it is available, it works in some cases where
13641         O_RDONLY does not, namely on directories that are searchable but
13642         not readable, and which need only to be searchable.  If O_SEARCH
13643         is not available, fall back to the traditional method of using
13644         O_RDONLY.
13645
13646         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
13647         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
13648         when opening a directory that needs only to be searchable.
13649         * lib/chdir-safer.c (chdir_no_follow): Likewise.
13650         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
13651         * lib/openat-proc.c (openat_proc_name): Likewise.
13652         * lib/openat.c (openat_needs_fchdir): Likewise.
13653         * lib/save-cwd.c (save_cwd): Likewise.
13654         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
13655
13656 2010-08-28  Bruno Haible  <bruno@clisp.org>
13657
13658         New module 'host-cpu-c-abi'.
13659         * modules/host-cpu-c-abi: New file.
13660         * m4/host-cpu-c-abi.m4: New file, based on part of
13661         clisp/src/m4/general.m4.
13662         Requested by Sam Steingold <sds@gnu.org>.
13663
13664 2010-08-31  Eric Blake  <eblake@redhat.com>
13665         and Jim Meyering  <meyering@redhat.com>
13666
13667         hash: factor, and guard against misbehaving hasher function
13668         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
13669         of table->hasher's return value.  Also protect against a hash value
13670         so large that adding it to table->bucket results in a NULL pointer.
13671         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
13672         Use it in place of open-coded check-and-abort.
13673
13674 2010-08-30  Bruno Haible  <bruno@clisp.org>
13675
13676         hash: silence spurious clang warning
13677         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
13678         Reported by Eric Blake.
13679
13680 2010-08-30  Eric Blake  <eblake@redhat.com>
13681
13682         strstr, memmem, strcasestr: avoid leaked shell message
13683         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
13684         FreeBSD.
13685         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13686         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13687
13688         tests: silence clang warning
13689         * tests/test-malloca.c (do_allocation): Avoid dead store.
13690
13691 2010-08-29  Bruno Haible  <bruno@clisp.org>
13692
13693         gettext: Fix recent mistake.
13694         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
13695
13696 2010-08-29  Bruno Haible  <bruno@clisp.org>
13697
13698         selinux-h: Offer a --without-selinux option.
13699         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
13700         --without-selinux was specified, skip all tests and define
13701         HAVE_SELINUX_SELINUX_H to 0.
13702         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
13703         set LIB_SELINUX to empty.
13704         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
13705         gl_LIBSELINUX. If --without-selinux was specified, replace
13706         selinux/context.h.
13707         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
13708
13709 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13710             Bruno Haible  <bruno@clisp.org>
13711
13712         Make the module 'realloc-gnu' work again on AIX and OSF/1.
13713         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
13714         of HAVE_REALLOC.
13715         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
13716         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
13717         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
13718         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13719
13720 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13721             Bruno Haible  <bruno@clisp.org>
13722
13723         Make the module 'calloc-gnu' work again on AIX and OSF/1.
13724         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
13725         HAVE_CALLOC.
13726         * lib/xmalloc.c: Update accordingly.
13727         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
13728         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
13729         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
13730
13731 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13732             Bruno Haible  <bruno@clisp.org>
13733
13734         Make the module 'malloc-gnu' work again on AIX and OSF/1.
13735         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
13736         HAVE_MALLOC.
13737         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
13738         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
13739         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13740
13741 2010-08-29  Bruno Haible  <bruno@clisp.org>
13742
13743         Update modules list.
13744         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
13745         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
13746         (String handling <string.h>): Add astrxfrm.
13747         (File system functions): Add readlinkat.
13748
13749 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13750
13751         Tests for module 'realloc-gnu'.
13752         * modules/realloc-gnu-tests: New file.
13753         * tests/test-realloc-gnu.c: New file.
13754
13755         Tests for module 'calloc-gnu'.
13756         * modules/calloc-gnu-tests: New file.
13757         * tests/test-calloc-gnu.c: New file.
13758
13759         Tests for module 'malloc-gnu'.
13760         * modules/malloc-gnu-tests: New file.
13761         * tests/test-malloc-gnu.c: New file.
13762
13763 2010-08-28  Bruno Haible  <bruno@clisp.org>
13764
13765         Rename module 'realloc' -> 'realloc-gnu'.
13766         * modules/realloc-gnu: New file, copied from modules/realloc.
13767         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
13768         obsolete.
13769         * modules/mgetgroups (Depends-on): Update.
13770         * doc/posix-functions/realloc.texi: Update.
13771         * NEWS: Mention the change.
13772
13773         Rename module 'calloc' -> 'calloc-gnu'.
13774         * modules/calloc-gnu: New file, copied from modules/calloc.
13775         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
13776         obsolete.
13777         * doc/posix-functions/calloc.texi: Update.
13778         * NEWS: Mention the change.
13779
13780         Rename module 'malloc' -> 'malloc-gnu'.
13781         * modules/malloc-gnu: New file, copied from modules/malloc.
13782         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
13783         obsolete.
13784         * modules/argp (Depends-on): Update.
13785         * modules/regex (Depends-on): Update.
13786         * doc/posix-functions/malloc.texi: Update.
13787         * NEWS: Mention the change.
13788
13789 2010-08-28  Eric Blake  <eblake@redhat.com>
13790
13791         pread, pwrite: add missing dependency
13792         * modules/pread (Depends-on): Add extensions.
13793         * modules/pwrite (Depends-on): Likewise.
13794
13795 2010-08-28  Bruno Haible  <bruno@clisp.org>
13796
13797         unistr/u*-strchr: Fix tests dependencies.
13798         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
13799         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
13800         Reported by Ian Beckwith <ianb@erislabs.net>.
13801
13802 2010-08-28  Bruno Haible  <bruno@clisp.org>
13803
13804         read-file: Don't occupy too much unused memory.
13805         * lib/read-file.c (fread_file): Shrink the buffer at the end.
13806
13807 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
13808             Eric Blake  <eblake@redhat.com>
13809             Bruno Haible  <bruno@clisp.org>
13810
13811         read-file: Avoid memory reallocations with regular files.
13812         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
13813         (fread_file): With regular files, use the remaining length as the
13814         initial buffer size.  Check against overflow.
13815         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
13816         sys_stat.
13817
13818 2010-08-28  Bruno Haible  <bruno@clisp.org>
13819
13820         ftello: Relax license.
13821         * modules/ftello (License): Relax to LGPLv2+.
13822         Reported by Eric Blake.
13823
13824 2010-08-28  Bruno Haible  <bruno@clisp.org>
13825
13826         Avoid relocwrapper link errors due to gnulib replacement functions.
13827         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
13828         function.
13829         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13830
13831 2010-08-28  Bruno Haible  <bruno@clisp.org>
13832
13833         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
13834         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
13835         defined.
13836         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
13837         Suggested by Eric Blake.
13838
13839 2010-08-28  Bruno Haible  <bruno@clisp.org>
13840
13841         sys_socket, netdb: Ensure socklen_t gets defined.
13842         * modules/sys_socket (Depends-on): Add socklen.
13843         * modules/netdb (Depends-on): Likewise.
13844         * modules/getaddrinfo (Depends-on): Remove socklen.
13845         * modules/getsockopt (Depends-on): Likewise.
13846         * modules/setsockopt (Depends-on): Likewise.
13847         * tests/test-sys_socket.c: Check that socklen_t is defined.
13848         * tests/test-netdb.c: Likewise.
13849         * m4/socklen.m4: Update comments.
13850         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13851
13852 2010-08-27  Eric Blake  <eblake@redhat.com>
13853
13854         login_tty: add missing dependency
13855         * modules/login_tty (Depends-on): Add pty.
13856
13857 2010-08-26  Eric Blake  <eblake@redhat.com>
13858
13859         lib-symbol-versions: fix m4 quoting
13860         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
13861         format for AC_LINK_IFELSE.
13862
13863         glob: fix compile test
13864         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
13865
13866         btowc: fix missing file
13867         * modules/btowc (Files): Also ship locale-fr.m4.
13868
13869         lseek: fix link test
13870         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
13871         AC_LINK_IFELSE.
13872
13873         include_next: silence autoconf 2.68 warning
13874         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
13875         AC_COMPILE_IFELSE as special.
13876         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
13877         autoconf < 2.68.
13878
13879         acl: fix compilation test
13880         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
13881         AC_COMPILE_IFELSE.
13882
13883 2010-08-26  Bruno Haible  <bruno@clisp.org>
13884
13885         Modernize AC_TRY_RUN invocations.
13886         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
13887         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13888         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
13889         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
13890         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
13891         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13892         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13893         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13894         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13895         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13896         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13897         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13898         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13899         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13900         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13901         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13902         gl_MBRLEN_NUL_RETVAL): Likewise.
13903         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13904         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13905         Likewise.
13906         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13907         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13908         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13909         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13910         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
13911         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
13912         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
13913         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13914         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
13915         Likewise.
13916         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
13917         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
13918         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13919         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13920         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13921         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13922         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13923         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
13924         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13925         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13926
13927 2010-08-26  Bruno Haible  <bruno@clisp.org>
13928
13929         Modernize AC_TRY_LINK invocations.
13930         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
13931         AC_TRY_LINK.
13932         * m4/argp.m4 (gl_ARGP): Likewise.
13933         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13934         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13935         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
13936         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13937         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13938         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
13939         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13940         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13941         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13942         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13943         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13944         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
13945         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
13946         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13947         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
13948         * m4/hostent.m4 (gl_HOSTENT): Likewise.
13949         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13950         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
13951         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
13952         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
13953         Likewise.
13954         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
13955         Likewise.
13956         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
13957         Likewise.
13958         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
13959         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
13960         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
13961         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13962         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13963         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13964         * m4/servent.m4 (gl_SERVENT): Likewise.
13965         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13966         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13967         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13968         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13969         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13970         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13971         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13972         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13973         * modules/tsearch-tests (configure.ac): Likewise.
13974
13975 2010-08-26  Bruno Haible  <bruno@clisp.org>
13976
13977         Modernize AC_TRY_COMPILE invocations.
13978         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
13979         AC_TRY_COMPILE.
13980         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
13981         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
13982         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
13983         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
13984         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
13985         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
13986         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13987         * m4/lock.m4 (gl_LOCK): Likewise.
13988         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
13989         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13990         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
13991         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13992         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
13993         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
13994         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13995         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
13996         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
13997         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
13998         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
13999         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14000         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
14001         extraneous semicolon.
14002
14003 2010-08-26  Jim Meyering  <meyering@redhat.com>
14004
14005         stat-time: relax license LGPL
14006         * modules/stat-time (License): Change from GPL to LGPL,
14007         with consent from all contributors, for use in libguile.
14008         Requested by Ludovic Courtès.
14009
14010 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
14011
14012         poll: return immediately on POLLHUP.
14013         * lib/poll.c (poll): Always set timeout before wait_timeout is
14014         computed.
14015
14016 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14017
14018         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
14019         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
14020         rmdir ("dir/.//"), unlinkat.
14021
14022 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
14023
14024         stdbool: avoid spurious failure with modern xlc
14025         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
14026
14027 2010-08-24  Bruno Haible  <bruno@clisp.org>
14028
14029         getloadavg: simplify code
14030         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
14031         gl_have_func. Update comments.
14032
14033 2010-08-24  Eric Blake  <eblake@redhat.com>
14034
14035         getloadavg: don't define SVR4 on cygwin
14036         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
14037         only define SVR4 when -lkvm is required.
14038         Reported by Yaakov Selkowitz.
14039
14040 2010-08-24  Bruno Haible  <bruno@clisp.org>
14041
14042         priv-set: fix comment
14043         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
14044
14045 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
14046
14047         priv-set: fix comments
14048         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
14049         to match code, as suggested by David Bartley in:
14050         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
14051
14052 2010-08-23  Eric Blake  <eblake@redhat.com>
14053
14054         stdbool: avoid rejecting clang
14055         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
14056         * tests/test-stdbool.c: Enable more tests if using the system
14057         <stdbool.h> instead of the gnulib replacement.
14058         (main): Move xlc bug test to a runtime test for all compilers.
14059         Reported by Anders Kaseorg.
14060
14061         argz: fix shell quoting issue
14062         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
14063         Reported by Charles Wilson.
14064
14065 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
14066             Erik Faye-Lund <kusmabite@gmail.com>
14067
14068         poll, select: handle ERROR_BROKEN_PIPE.
14069         * lib/poll.c (win32_compute_revents): Return POLLHUP when
14070         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
14071         * lib/select.c (win32_compute_revents): Do not mark a pipe
14072         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
14073
14074 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
14075
14076         fts: allow compilation with C++
14077         * lib/fts_.h: Specify extern "C" linkage with C++.
14078
14079 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14080
14081         Fix gnulib-tool sed script de-commentation for AIX sed.
14082         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
14083         sed.
14084
14085 2010-08-17  Eric Blake  <eblake@redhat.com>
14086
14087         test-stddef: test for (some) offsetof bugs
14088         * tests/test-stddef.c: Enhance test to ensure correct type of
14089         offsetof.
14090         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
14091         that we are not fixing at this time.
14092
14093 2010-08-15  Bruno Haible  <bruno@clisp.org>
14094
14095         stpncpy: Allow stpncpy to be defined as a macro.
14096         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
14097         if it's already correctly declared.
14098         * lib/string.in.h (stpncpy): Undefine before redefining.
14099         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
14100
14101 2010-08-14  Bruno Haible  <bruno@clisp.org>
14102
14103         Rename module 'memxfrm' to 'amemxfrm'.
14104         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
14105         (amemxfrm): Renamed from memxfrm.
14106         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
14107         (amemxfrm): Renamed from memxfrm.
14108         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
14109         * NEWS: Mention the change.
14110         * MODULES.html.sh (String handling <string.h>): Update.
14111         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
14112         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
14113         * lib/unicase/u16-casexfrm.c: Likewise.
14114         * lib/unicase/u32-casexfrm.c: Likewise.
14115         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
14116         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
14117         * lib/uninorm/u16-normxfrm.c: Likewise.
14118         * lib/uninorm/u32-normxfrm.c: Likewise.
14119         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
14120         memxfrm.
14121         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
14122         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
14123         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
14124         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
14125         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
14126         Suggested by Paul Eggert.
14127
14128 2010-08-14  Bruno Haible  <bruno@clisp.org>
14129
14130         Tests for module 'astrxfrm'.
14131         * modules/astrxfrm-tests: New file.
14132         * tests/test-astrxfrm.c: New file.
14133
14134         New module 'astrxfrm'.
14135         * lib/astrxfrm.h: New file.
14136         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
14137         * modules/astrxfrm: New file.
14138
14139 2010-08-14  Reuben Thomas <rrt@sc3d.org>
14140
14141         regex: Tweak doc.
14142         * doc/regex.texi (Overview): Don't mention regex.c.
14143         (GNU Regular Expression Compiling): Likewise.
14144         (Match-end-of-line Operator): Mention 'not_eol'.
14145
14146 2010-08-14  Brian Gough  <bjg@gnu.org>
14147             Bruno Haible  <bruno@clisp.org>
14148
14149         git-merge-changelog: add doc relating to use with bzr and hg.
14150         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
14151
14152 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
14153
14154         pthread: fix pthread.h creation for srcdir != builddir
14155         * modules/pthread (Makefile.am): Fix the rule to work also in a
14156         non-srcdir build.
14157
14158 2010-08-13  Karl Berry  <karl@gnu.org>
14159
14160         * doc/regex.texi (Predefined Syntaxes): @smallexample.
14161         * doc/posix-*/*: force line break before @url of POSIX
14162         specifications.
14163         Suggested by Werner Lemberg.
14164
14165 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14166
14167         strtod: fix const diagnostic
14168         * lib/strtod.c (strtod): Don't assign const char * to char *,
14169         as this elicits a warning from GCC when warnings are enabled.
14170
14171 2010-08-10  Pádraig Brady <P@draigbrady.com>
14172         and Eric Blake  <eblake@redhat.com>
14173
14174         copy-acl: ignore ENOTSUP on HP-UX
14175         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
14176         so that it is available for HP-UX.
14177         * lib/copy-acl.c (qcopy_acl): Use it.
14178         Reported by Patrick M. Callahan.
14179
14180 2010-08-10  Eric Blake  <eblake@redhat.com>
14181
14182         open, chown: relax license
14183         * modules/open (License): Change to LGPLv2+, with consent by all
14184         authors, for use in augeas.
14185         * modules/chown (License): Likewise.
14186         * modules/lchown (Likewise): Likewise.
14187         Requested by Adam Stokes.
14188
14189 2010-08-09  Karl Berry  <karl@gnu.org>
14190
14191         * build-aux/ar-lib: new file, import from Automake.
14192         * config/srclist.txt: autocheck for updates.
14193
14194 2010-08-09  Eric Blake  <eblake@redhat.com>
14195
14196         readlinkat: adjust client modules
14197         * modules/areadlinkat (Depends-on): Use readlinkat, not
14198         symlinkat.
14199         * modules/areadlinkat-with-size (Depends-on): Likewise.
14200
14201         mknod: be more vocal about danger of running tests as root
14202         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
14203         root, since that is just asking for problems.
14204         Suggested by Bruno Haible, based on a report by Rainer Tammer.
14205
14206         readlinkat: split into its own module
14207         * modules/symlinkat: Split readlinkat...
14208         * modules/readlinkat: ...into separate module.
14209         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
14210         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
14211         * lib/symlinkat.c (readlinkat): Move...
14212         * lib/readlinkat.c: ...into new file.
14213         * modules/symlinkat-tests: Split readlinkat test...
14214         * modules/readlinkat-tests: ...into separate module.
14215         * tests/test-symlinkat.c: Split...
14216         * tests/test-readlinkat.c: ...into new file.
14217         * NEWS: Document the split.
14218         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14219         * lib/unistd.in.h (readlinkat): Likewise.
14220         Suggested by Bruno Haible.
14221
14222 2010-08-08  Bruno Haible  <bruno@clisp.org>
14223
14224         memxfrm: Speed up.
14225         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
14226         that usually only one call to strxfrm is necessary for each string
14227         part.
14228         Reported by Paul Eggert <eggert@cs.ucla.edu>.
14229
14230 2010-08-07  Karl Berry  <karl@gnu.org>
14231
14232         * doc/posix-headers/limits.texi,
14233         * doc/posix-functions/malloc.texi,
14234         * doc/posix-functions/strsignal.texi: missing @item.
14235         * doc/ld-version-script.texi: spurious leading i.
14236         * doc/regex.texi (Interval Operators): no commas inside @var.
14237
14238 2010-08-01  Bruno Haible  <bruno@clisp.org>
14239
14240         Integrate the regex documentation.
14241         * doc/gnulib.texi: Define 'cn' index.
14242         (Regular expressions): New a chapter that includes regex.texi and
14243         regexprops-generic.texi.
14244         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
14245         syntax.
14246
14247         Whitespace cleanup.
14248         * doc/regex.texi: Remove trailing spaces.
14249
14250         Add regex documentation.
14251         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
14252         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
14253         Written by Kathy A. Hargreaves and Karl Berry.
14254
14255 2010-08-01  Bruno Haible  <bruno@clisp.org>
14256
14257         link: Update documentation.
14258         * doc/posix-functions/link.texi: Update regarding Solaris.
14259
14260 2010-07-31  Bruno Haible  <bruno@clisp.org>
14261
14262         Update modules list.
14263         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
14264         (String handling <string.h>): Add memcmp2, memxfrm.
14265         (Container data structures): Add xlist, xsublist, xoset.
14266         (Core language properties): Add alignof, unused-parameter.
14267         (Process control, Numeric conversion functions <stdlib.h>): Renamed
14268         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
14269         (Unibyte characters <ctype.h>): New section.
14270         (String handling <string.h>): New section.
14271         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
14272         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
14273         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
14274         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
14275         tan, tanh, tanl, y0, y1, yn.
14276         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
14277         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
14278         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
14279         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
14280         unlockpt, vdprintf, vdprintf-posix.
14281         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
14282         (File system functions): Add concat-filename, sys_file, sys_ioctl,
14283         xconcat-filename.
14284         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
14285         getdtablesize, pipe2, pipe2-safer.
14286         (Security): New section.
14287         (Networking functions): Add accept4.
14288         (Signal handling): Add sigpipe.
14289         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
14290         mbmemcasecoll.
14291         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
14292         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
14293         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
14294         pipe-filter-ii.
14295         (Misc): Add argp-version-etc, login_tty, parse-duration.
14296
14297 2010-07-31  Bruno Haible  <bruno@clisp.org>
14298
14299         Improve doc in MODULES.html.
14300         * modules/linkat (Description): Add the word "function".
14301         * modules/mkfifo (Description): Likewise.
14302         * modules/mknod (Description): Likewise.
14303         * modules/remove (Description): Likewise.
14304         * modules/renameat (Description): Likewise.
14305         * modules/stat (Description): Likewise.
14306         * modules/symlink (Description): Likewise.
14307         * modules/unlink (Description): Likewise.
14308
14309 2010-07-31  Bruno Haible  <bruno@clisp.org>
14310
14311         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
14312         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
14313         option --enable/disable-c++ instead of --enable/disable-cxx.
14314         * NEWS: Mention the change.
14315
14316 2010-07-31  Bruno Haible  <bruno@clisp.org>
14317
14318         readlink, areadlink: Relax test a bit.
14319         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
14320         alternative to ENOTDIR.
14321         * tests/test-areadlink.h (test_areadlink): Likewise.
14322         Reported by Rainer Tammer.
14323
14324 2010-07-31  Bruno Haible  <bruno@clisp.org>
14325
14326         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
14327         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
14328         character, perform the search using U_STRCHR.
14329         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
14330         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
14331         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
14332         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
14333         Suggested by Paolo Bonzini.
14334
14335 2010-07-31  Bruno Haible  <bruno@clisp.org>
14336
14337         unistr/u*-strstr: Fix dependencies.
14338         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
14339         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
14340         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
14341
14342 2010-07-31  Bruno Haible  <bruno@clisp.org>
14343
14344         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
14345         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
14346         the beginning of the loop.
14347         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
14348         cases in 'switch' statement.
14349
14350         unistr/u8-strchr: Fix several bugs.
14351         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
14352         the string. When not found, return NULL, not a pointer near the end.
14353
14354         More tests for unistr/u8-strchr.
14355         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
14356         that the function does not read past the first occurrence of the byte
14357         being searched.
14358         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
14359         * tests/unistr/test-u16-strchr.c (main): New function.
14360         * tests/unistr/test-u32-strchr.c (main): New function.
14361
14362 2010-07-31  Bruno Haible  <bruno@clisp.org>
14363
14364         posix-modules: Ignore backup files of documentation files.
14365         * posix-modules: grep only through files named *.texi.
14366
14367 2010-07-31  Bruno Haible  <bruno@clisp.org>
14368
14369         symlinkat: Fix documentation.
14370         * doc/posix-functions/readlinkat.texi: Fix module name.
14371
14372 2010-07-31  Bruno Haible  <bruno@clisp.org>
14373
14374         fchownat: Replace also when chown has the trailing slash bug.
14375         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
14376         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
14377         introduced on 2010-04-10.
14378         Reported by Rainer Tammer.
14379
14380 2010-07-31  Bruno Haible  <bruno@clisp.org>
14381
14382         linkat: Work around AIX 7.1 bug.
14383         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
14384         whether linkat handles trailing slash correctly. If not, replace linkat
14385         and define LINKAT_TRAILING_SLASH_BUG.
14386         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
14387         check whether (fd1,file1) points to a directory if file1 or file2 ends
14388         in a slash. Code taken from lib/link.c.
14389         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
14390         Reported by Rainer Tammer.
14391
14392 2010-07-31  Bruno Haible  <bruno@clisp.org>
14393
14394         Correctly determine whether pow is available in libc on AIX 7 with xlc.
14395         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
14396         This disables an xlc optimization that was causing wrong test results.
14397         Reported by Rainer Tammer.
14398
14399 2010-07-31  Bruno Haible  <bruno@clisp.org>
14400
14401         iconv: Work around AIX 6.1..7.1 bug.
14402         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
14403         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
14404         cross-compiling, guess no on all versions of AIX.
14405         Reported by Rainer Tammer.
14406
14407 2010-07-31  Bruno Haible  <bruno@clisp.org>
14408
14409         readlink: Relax test a bit.
14410         * tests/test-readlink.h (test_readlink): Allow different errno value
14411         when readlink is called with a file name that ends in / and refers to
14412         a file.
14413         Suggested by Eric Blake.
14414         Reported by Rainer Tammer.
14415
14416 2010-07-31  Bruno Haible  <bruno@clisp.org>
14417
14418         copysign: Does not require -lm on glibc systems.
14419         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
14420         gl_COMMON_DOUBLE_MATHFUNC.
14421         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
14422
14423 2010-07-31  Bruno Haible  <bruno@clisp.org>
14424
14425         duplocale: Work around AIX 7.1 bug.
14426         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
14427         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
14428         * lib/duplocale.c (rpl_duplocale): Update comment.
14429         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
14430         Reported by Rainer Tammer.
14431
14432 2010-07-30  Bruno Haible  <bruno@clisp.org>
14433
14434         dirfd: Avoid link error on AIX 7.1.
14435         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
14436         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
14437         exist, set REPLACE_DIRFD.
14438         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
14439         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
14440         * doc/posix-functions/dirfd.texi: Update.
14441         Reported by Rainer Tammer.
14442
14443 2010-07-30  Eric Blake  <eblake@redhat.com>
14444
14445         strtod: next round of AIX fixes
14446         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
14447         exponent.
14448         * tests/test-strtod.c (main): Enhance tests.
14449         * doc/posix-functions/strtod.texi (strtod): Document next bug.
14450         Reported by Rainer Tammer.
14451
14452         futimens: fix configure check
14453         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
14454         Reported by Bruno Haible.
14455
14456 2010-07-30  Bruno Haible  <bruno@clisp.org>
14457
14458         getline: Update regarding AIX.
14459         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
14460         Reported by Rainer Tammer.
14461
14462 2010-07-30  Bruno Haible  <bruno@clisp.org>
14463
14464         wcwidth: Drop replacement on AIX 7.
14465         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
14466         AIX 7.
14467         Reported by Rainer Tammer.
14468
14469 2010-07-30  Bruno Haible  <bruno@clisp.org>
14470
14471         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
14472         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
14473         a 'char *'.
14474         Reported by Rainer Tammer.
14475
14476 2010-07-30  Bruno Haible  <bruno@clisp.org>
14477
14478         unlink: Update regarding AIX.
14479         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
14480         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
14481         Reported by Rainer Tammer.
14482
14483 2010-07-30  Bruno Haible  <bruno@clisp.org>
14484
14485         symlink: Update regarding AIX.
14486         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
14487         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
14488         Reported by Rainer Tammer.
14489
14490 2010-07-30  Bruno Haible  <bruno@clisp.org>
14491
14492         strndup: Update regarding AIX.
14493         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
14494         AIX 7.
14495         Reported by Rainer Tammer.
14496
14497 2010-07-30  Bruno Haible  <bruno@clisp.org>
14498
14499         stat: Update regarding AIX.
14500         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
14501         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
14502         Reported by Rainer Tammer.
14503
14504 2010-07-30  Bruno Haible  <bruno@clisp.org>
14505
14506         truncl: Fix autoconf test.
14507         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
14508         whether truncl works.
14509         Reported by Rainer Tammer.
14510
14511 2010-07-30  Bruno Haible  <bruno@clisp.org>
14512
14513         round: Update regarding AIX.
14514         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
14515         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
14516         Reported by Rainer Tammer.
14517
14518 2010-07-30  Bruno Haible  <bruno@clisp.org>
14519
14520         rename: Update regarding AIX.
14521         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
14522         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
14523         Reported by Rainer Tammer.
14524
14525 2010-07-30  Bruno Haible  <bruno@clisp.org>
14526
14527         printf.m4: Update regarding AIX.
14528         * m4/printf.m4: Update comments regarding AIX.
14529         Reported by Rainer Tammer.
14530
14531 2010-07-30  Bruno Haible  <bruno@clisp.org>
14532
14533         iconv: Update regarding AIX.
14534         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
14535         AIX 7.
14536         Reported by Rainer Tammer.
14537
14538 2010-07-30  Bruno Haible  <bruno@clisp.org>
14539
14540         getopt: Update regarding AIX.
14541         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
14542         no on AIX.
14543         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
14544         Reported by Rainer Tammer.
14545
14546 2010-07-30  Bruno Haible  <bruno@clisp.org>
14547
14548         ldexpl; Update regarding AIX.
14549         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
14550         on AIX 7.
14551         Reported by Rainer Tammer.
14552
14553 2010-07-30  Bruno Haible  <bruno@clisp.org>
14554
14555         frexpl: Update regarding AIX.
14556         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
14557         on AIX 7.
14558         Reported by Rainer Tammer.
14559
14560 2010-07-30  Bruno Haible  <bruno@clisp.org>
14561
14562         open, fopen: Update regarding AIX.
14563         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
14564         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
14565         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
14566         * doc/posix-functions/fopen.texi: Likewise.
14567         Reported by Rainer Tammer.
14568
14569 2010-07-30  Bruno Haible  <bruno@clisp.org>
14570
14571         chown: Update doc regarding AIX.
14572         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
14573         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
14574         Reported by Rainer Tammer.
14575
14576 2010-07-30  Eric Blake  <eblake@redhat.com>
14577
14578         strtod: fix bug in replacement function on AIX
14579         * lib/strtod.c (strtod): Special case broken "0x" parse in
14580         underlying strtod.
14581         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
14582         * doc/posix-functions/strtod.texi (strtod): Likewise.
14583         Reported by Rainer Tammer.
14584
14585 2010-07-30  Bruno Haible  <bruno@clisp.org>
14586
14587         mbrlen: Fix cross-compilation guess for AIX.
14588         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
14589         guess. Leftover from 2008-12-22.
14590
14591 2010-07-30  Bruno Haible  <bruno@clisp.org>
14592
14593         mbrtowc: Fix cross-compilation guess for AIX.
14594         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
14595         guess. Leftover from 2008-12-21.
14596
14597 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
14598
14599         init.sh: work around trap limitation of some shells
14600         * tests/init.sh (setup_): Move exit trap outside of shell function.
14601
14602 2010-07-29  Eric Blake  <eblake@redhat.com>
14603
14604         strtod: aid debugging
14605         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
14606         understanding why strtod is rejected.
14607
14608 2010-07-28  Bruno Haible  <bruno@clisp.org>
14609
14610         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
14611         * lib/unistr/u8-chr.c: Include <string.h>.
14612         * tests/unistr/test-u8-chr.c: Likewise.
14613         * tests/unistr/test-u16-chr.c: Likewise.
14614         * tests/unistr/test-u32-chr.c: Likewise.
14615         * tests/unistr/test-u8-strchr.c: Likewise.
14616         * tests/unistr/test-u16-strchr.c: Likewise.
14617         * tests/unistr/test-u32-strchr.c: Likewise.
14618         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
14619         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
14620         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
14621         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
14622
14623 2010-07-28  Bruno Haible  <bruno@clisp.org>
14624
14625         Use spaces for indentation, not tabs.
14626         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14627
14628 2010-07-27  Bruno Haible  <bruno@clisp.org>
14629
14630         mbspcasecmp: Fix function specification.
14631         * lib/string.in.h (mbspcasecmp): Fix specification comment.
14632         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
14633         Reported by Eric Blake <eblake@redhat.com>.
14634
14635 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
14636
14637         timespec: use cast and not conditional, as truncation isn't possible
14638         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
14639         instead of a conditional.  Comment about the situation in more detail.
14640         This undoes most of the 2009-10-29 patch.
14641
14642 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
14643
14644         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
14645         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
14646         * lib/unistr/u8-strchr.c: Likewise.
14647         * modules/unistr/u8-chr: Depend on memchr.
14648
14649         unistr/u*-strchr: add tests
14650         * modules/unistr/u8-strchr-tests: New file.
14651         * modules/unistr/u16-strchr-tests: New file.
14652         * modules/unistr/u32-strchr-tests: New file.
14653         * tests/unistr/test-strchr.h: New file.
14654         * tests/unistr/test-u8-strchr.c: New file.
14655         * tests/unistr/test-u16-strchr.c: New file.
14656         * tests/unistr/test-u32-strchr.c: New file.
14657
14658         unistr/u*-chr: test multibyte sequences more
14659         * tests/unistr/test-chr.h: Do complete testing of the characters in the
14660         test vector.
14661         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
14662         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
14663         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
14664
14665         unistr/u*-chr: test multibyte sequences
14666         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
14667
14668         unistr/u*-chr: prepare for multibyte tests
14669         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
14670         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
14671         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
14672         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
14673         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
14674         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
14675
14676 2010-07-18  Bruno Haible  <bruno@clisp.org>
14677
14678         unistr/u8-strchr: Optimize non-ASCII argument case.
14679         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
14680         because the first byte often matches anyway.
14681         Reported by Pádraig Brady <P@draigbrady.com>.
14682
14683 2010-07-15  Karl Berry  <karl@gnu.org>
14684
14685         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
14686
14687 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
14688
14689         getcwd: on Solaris, work better if ancestors are inaccessible
14690         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
14691         buffer and size, try again with a large buffer.  This works better
14692         on Solaris, since its getcwd succeeds even if the path to the root
14693         is inaccessible, and this is helpful in common cases such as .zfs
14694         hidden directories.  Problem reported by J Chapman Flack in
14695         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
14696         Use system getcwd if it's declared, not merely if it's partly
14697         working; use the partly-working test only to avoid needless effort
14698         if the system getcwd fails.
14699         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
14700         comment that was already obsolete and is now even more obsolete.
14701         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
14702         now might call strdup.
14703
14704 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
14705
14706         pthread: Add enough so that coreutils/src/sort.c compiles.
14707         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
14708         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
14709         gnulib. Include <sched.h> and <time.h>, as per POSIX.
14710         Include <sys/types.h>, in case it defines pthread_t.
14711         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
14712         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
14713         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
14714         (pthread_rwlockattr_t, pthread_spinlock_t):
14715         New typedefs, if HAVE_PTHREAD_T is not defined.
14716         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
14717         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
14718         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
14719         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
14720         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
14721         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
14722         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
14723         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
14724         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
14725         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
14726         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
14727         New macros.
14728         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
14729         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
14730         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
14731         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
14732         (pthread_spin_unlock): New dummy functions.
14733         (pthread_create): Return EAGAIN; don't set errno.
14734         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
14735         require AC_C_INLINE.
14736         * modules/pthread (Depends-on): Add sched, time.
14737         (pthread.h): Use AM_V_GEN.
14738
14739 2010-07-13  Bruno Haible  <bruno@clisp.org>
14740
14741         striconveh: Don't malloc memory if the result buffer is sufficient.
14742         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
14743         buffer if its size is sufficient.
14744         Reported by Ludovic Courtès <ludo@gnu.org>.
14745
14746 2010-07-13  Bruno Haible  <bruno@clisp.org>
14747
14748         strtod: Add safety check.
14749         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
14750
14751 2010-07-12  Bruno Haible  <bruno@clisp.org>
14752
14753         Unify tests that set gl_cv_func_ldexpl_no_libm.
14754         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
14755         gl_FUNC_LDEXPL.
14756         (gl_FUNC_LDEXPL): Invoke it.
14757         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14758
14759 2010-07-12  Bruno Haible  <bruno@clisp.org>
14760
14761         Unify tests that set gl_cv_func_ldexp_no_libm.
14762         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
14763         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
14764         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
14765         (configure.ac): Simply invoke gl_FUNC_LDEXP.
14766         * modules/strtod (Files): Add m4/ldexp.m4.
14767
14768 2010-07-12  Bruno Haible  <bruno@clisp.org>
14769
14770         Unify tests that set gl_cv_func_frexpl_no_libm.
14771         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
14772         gl_FUNC_FREXPL_NO_LIBM.
14773         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
14774         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14775
14776 2010-07-12  Bruno Haible  <bruno@clisp.org>
14777
14778         Unify tests that set gl_cv_func_frexp_no_libm.
14779         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
14780         gl_FUNC_FREXP_NO_LIBM.
14781         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
14782         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14783
14784 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14785
14786         memcoll: clarify sizes versus lengths, document better, and tweak perf
14787         * lib/memcoll.c (strcoll_loop, memcoll0):
14788         Improve quality of descriptive comments.  Name variables
14789         consistently as to whether they are lengths (which do not include
14790         terminating null) versus sizes (which do).
14791         * lib/xmemcoll.c (xmemcoll0): Likewise.
14792         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
14793         returned when s1size == 0; this is easier to compile and saves
14794         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
14795
14796 2010-07-12  Bruno Haible  <bruno@clisp.org>
14797
14798         Tests for module '_Exit'.
14799         * modules/_Exit-tests: New file.
14800         * tests/test-_Exit.sh: New file.
14801         * tests/test-_Exit.c: New file.
14802
14803         New module '_Exit'.
14804         * lib/stdlib.in.h (__attribute__): New macro.
14805         (_Exit): New declaration.
14806         * lib/_Exit.c: New file.
14807         * m4/_Exit.m4: New file.
14808         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
14809         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
14810         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
14811         * modules/_Exit: New file.
14812         * tests/test-stdlib-c++.cc (_Exit): Check signature.
14813         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
14814
14815 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14816
14817         strtod: make it more-accurate typically, and don't require libm
14818         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
14819         Include limits.h.  Don't include string.h.
14820         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
14821         (locale_isspace): New function, so that no casts are needed to
14822         check whether *s is a space.
14823         (ldexp): Provide an unused dummy if not available.
14824         (scale_radix_exp, parse_number, underlying_strtod): New functions.
14825         (strtod): Use them.  This implementation prefers to use the
14826         underlying strtod if available, falling back on our own code
14827         only to fix known bugs.  This is more likely to produce an
14828         accurate result.  Also, it avoids the use of libm functions.
14829         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
14830         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
14831         was absent, but it caused a test failure with coreutils.
14832         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
14833         with libm.
14834         * modules/strtod (Makefile.am, Link): libm is no longer needed.
14835         * modules/strtod-tests (Makefile.am): Likewise.
14836
14837 2010-07-11  Pádraig Brady  <P@draigBrady.com>
14838             Bruno Haible  <bruno@clisp.org>
14839
14840         unistr/u8-strchr: Optimize ASCII argument case.
14841         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
14842
14843 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14844
14845         (x)memcoll: minor tweaks
14846         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
14847         is after the type that it qualifies.
14848         (memcoll0): Likewise.
14849         * lib/memcoll.h (memcoll0): Likewise.
14850         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
14851         * lib/xmemcoll.h (xmemcoll0): Likewise.
14852         * lib/memcoll.c (memcoll0): Correct the comment.  This function
14853         differs from memcoll in that the NUL byte is part of the argument.
14854         Omit the abort-checks, as performance is a real issue here.  Plus,
14855         the checks were wrong anyway (an off-by-one error).  Omit local
14856         variable 'diff', as it's a bit clearer that way.
14857         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
14858         no longer needed.
14859
14860 2010-07-08  Chen Guo <chenguo4@yahoo.com>
14861
14862         (x)memcoll: speedup when input is known to be NUL delimited
14863         * lib/memcoll.c: Include stdlib.
14864         (memcoll0): New function.
14865         (strcoll_loop): New function, refactored for use in both memcoll
14866         and memcoll0.
14867         * lib/memcoll.h (memcoll0): Add prototype.
14868         * lib/xmemcoll.c (xmemcoll0): New function.
14869         (collate_error): New function, refactored for use in both xmemcoll
14870         and xmemcoll0.
14871         * lib/xmemcoll.h (xmemcoll0): Add prototype.
14872         * m4/memcoll.m4: add inline invocation.
14873
14874 2010-07-06  Pádraig Brady  <P@draigBrady.com>
14875
14876         * build-aux/bootstrap: Remove any local translations
14877         from the translation project synchronization directory,
14878         so that local only translations are not distributed.
14879
14880 2010-07-04  Bruno Haible  <bruno@clisp.org>
14881
14882         fsusage: Clarify which code applies to which platforms.
14883         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
14884         platform.
14885         * lib/fsusage.c (get_fs_usage): Likewise.
14886
14887 2010-07-04  Bruno Haible  <bruno@clisp.org>
14888
14889         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
14890         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
14891         Reported by Martin Lambers <marlam@marlam.de>.
14892
14893 2010-07-04  Jim Meyering  <meyering@redhat.com>
14894
14895         hash: once again explicitly disallow insertion of NULL
14896         * lib/hash.c (hash_insert0): Reinstate just-removed test:
14897         inserting a NULL pointer cannot work with these functions.
14898         Add a comment with details.
14899         This reverts part of the 2010-07-01 commit, 5bef1a35
14900         "hash: extend module to deal with non-pointer keys".
14901
14902 2010-07-01  Bruno Haible  <bruno@clisp.org>
14903
14904         stdbool: Update doc.
14905         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
14906         Info from Christian Weisgerber <naddy@mips.inka.de>.
14907
14908 2010-07-01  Jim Meyering  <meyering@redhat.com>
14909
14910         hash: extend module to deal with non-pointer keys
14911         * lib/hash.c (hash_insert0): New interface, much like hash_insert
14912         but that allows insertion of non-pointer entries.
14913         Do not disallow an ENTRY value of NULL.
14914         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
14915         * lib/hash.h (hash_insert0): Declare.
14916
14917 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14918
14919         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
14920         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
14921         not present (i.e. with autoconf 2.59 and when using gettextize, not
14922         gnulib), require AC_GNU_SOURCE instead.
14923
14924 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
14925
14926         idpriv-drop: Fix tests.
14927         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
14928         not to the test-idpriv-droptemp program.
14929
14930 2010-06-29  Bruno Haible  <bruno@clisp.org>
14931
14932         string: Fix syntax error with g++ 2.96.
14933         * lib/string.in.h (__pure__): Remove definition.
14934         (_GL_ATTRIBUTE_PURE): New macro.
14935         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
14936         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
14937         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14938
14939 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
14940
14941         unitypes: Fix bug introduced on 2010-05-18.
14942         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
14943
14944 2010-06-22  Eric Blake  <eblake@redhat.com>
14945
14946         memmem: slight optimization
14947         * lib/str-two-way.h (critical_factorization): Update comments.
14948         Reduce work during factorization phase.
14949         Reported by Carlos Bueno <carlos@bueno.org>.
14950
14951 2010-06-21  Bruno Haible  <bruno@clisp.org>
14952
14953         Fix HAVE_CALLOC_POSIX misnomer.
14954         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
14955         !HAVE_CALLOC_POSIX.
14956         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
14957         HAVE_CALLOC_POSIX.
14958         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
14959         instead of HAVE_CALLOC_POSIX.
14960         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
14961         HAVE_CALLOC_POSIX.
14962
14963         Use modern idiom for calloc() replacement.
14964         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
14965         AC_FUNC_CALLOC.
14966         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
14967         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
14968         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14969         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
14970         (gl_REPLACE_CALLOC): New macro.
14971
14972 2010-06-21  Bruno Haible  <bruno@clisp.org>
14973
14974         Fix HAVE_REALLOC_POSIX misnomer.
14975         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
14976         !HAVE_REALLOC_POSIX.
14977         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
14978         HAVE_REALLOC_POSIX.
14979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
14980         instead of HAVE_REALLOC_POSIX.
14981         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
14982         HAVE_REALLOC_POSIX.
14983
14984         Use modern idiom for realloc() replacement.
14985         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
14986         AC_FUNC_REALLOC.
14987         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
14988         Autoconf's AC_FUNC_REALLOC.
14989         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14990         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
14991         (gl_REPLACE_REALLOC): New macro.
14992         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14993
14994 2010-06-21  Bruno Haible  <bruno@clisp.org>
14995
14996         Fix HAVE_MALLOC_POSIX misnomer.
14997         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
14998         !HAVE_MALLOC_POSIX.
14999         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
15000         HAVE_MALLOC_POSIX.
15001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
15002         instead of HAVE_MALLOC_POSIX.
15003         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
15004         HAVE_MALLOC_POSIX.
15005
15006         Use modern idiom for malloc() replacement.
15007         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
15008         AC_FUNC_MALLOC.
15009         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
15010         Autoconf's AC_FUNC_MALLOC.
15011         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15012         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
15013         (gl_REPLACE_MALLOC): New macro.
15014         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
15015
15016 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
15017
15018         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
15019         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
15020         This macro takes 3 arguments, not 4.
15021
15022 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
15023
15024         ipv6: fix detection under mingw
15025         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
15026         in6_addr.
15027
15028 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
15029
15030         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
15031         that strtod() works when cross-compiling to a glibc version known
15032         to work.
15033
15034 2010-06-15  Bruno Haible  <bruno@clisp.org>
15035
15036         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
15037
15038 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
15039
15040         select: Correct timeout.
15041         * lib/select.c (rpl_select): Compute wait_timeout correctly.
15042
15043 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15044
15045         git-version-gen: init shell var to avoid env var influence
15046         * build-aux/git-version-gen (v): Init shell var to empty.
15047
15048 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
15049
15050         priv-set: Don't assume that priv.h exists merely because getppriv does.
15051         See Jan Andersen's bug report about AIX 5L in
15052         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
15053         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
15054         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
15055         * lib/priv-set.h: Likewise.
15056         * tests/test-priv-set.c: Likewise.
15057
15058 2010-06-13  Bruno Haible  <bruno@clisp.org>
15059
15060         relocatable: Make it easier to test whether to install wrappers.
15061         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
15062         RELOCATABLE_VIA_WRAPPER.
15063
15064 2010-06-13  Bruno Haible  <bruno@clisp.org>
15065
15066         gnulib-tool: Display specified modules and dependencies differently.
15067         * gnulib-tool (func_show_module_list): New function.
15068         (func_import, func_create_testdir): Invoke it.
15069         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
15070
15071 2010-06-13  Bruno Haible  <bruno@clisp.org>
15072
15073         gnulib-tool: Align code of func_import and func_create_testdir.
15074         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
15075         specified_modules.
15076
15077 2010-06-12  Jim Meyering  <meyering@redhat.com>
15078
15079         test-inttostr: avoid spurious failure on Solaris 9
15080         * tests/test-inttostr.c (main): Skip the test when snprintf fails
15081         to accept "%ju".  Reported by Bruno Haible.
15082
15083 2010-06-11  Jim Meyering  <meyering@redhat.com>
15084
15085         test-sys_socket: mark variables as used more readably
15086         * tests/test-sys_socket.c (main): Mark otherwise unused variables
15087         as "used" explicitly via (void) statement casts.  This is more
15088         readable than using them in an artificial return expression.
15089         Suggestion from Bruno Haible.
15090
15091 2010-06-11  Bruno Haible  <bruno@clisp.org>
15092
15093         Avoid some more warnings from "gcc -Wwrite-strings".
15094         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
15095         to 'const char *'.
15096         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
15097         * tests/test-c-strcasestr.c (main): Likewise.
15098         * tests/test-mbscasestr1.c (main): Likewise.
15099         * tests/test-mbscasestr2.c (main): Likewise.
15100         * tests/test-memmem.c (main): Likewise.
15101         * tests/test-strstr.c (main): Likewise.
15102         * tests/test-strcasestr.c (main): Likewise.
15103
15104 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15105
15106         init.sh: change framework_failure_ to fail with status 99, not 1
15107         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
15108         automake's parallel-tests rule that this is an unexpected failure,
15109         even if the test is listed in XFAIL_TESTS.
15110
15111 2010-06-11  Jim Meyering  <meyering@redhat.com>
15112
15113         test-inttostr: avoid warnings about 4-6KB literal strings
15114         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
15115         Include "macros.h", for its definition of ASSERT.
15116         (CK): s/assert/ASSERT/
15117         * modules/inttostr-tests (Files): Add macros.h.
15118
15119         init.sh: don't use $ME_ or skip_ before they are defined
15120         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
15121         their first uses.  Also hoist their companions: warn_, fail_,
15122         framework_failure_, $stderr_fileno.  Prompted by a patch from
15123         Stefano Lattarini.
15124
15125         test-sys_socket: avoid set-but-not-used warnings from gcc
15126         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
15127         avoid warning about set-but-not-used variables.
15128
15129         test-xvasprintf: avoid 'const' discard warnings
15130         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
15131         "const" when assigning from literal strings.
15132         (test_xasprintf): Add "void" in function argument list to placate
15133         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
15134
15135         tests: avoid compilation warnings in argmatch and exclude tests...
15136         in packages that define ARGMATCH_DIE_DECL, like coreutils.
15137         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
15138         Since it always exits, declare with the "noreturn" attribute.
15139         * tests/test-argmatch.c: Likewise.
15140
15141         tests: avoid 'const' discard warnings in mbsstr tests
15142         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
15143         * tests/test-mbsstr2.c (main): Likewise.
15144
15145         test-verify: avoid warning from gcc's -Wmissing-declarations
15146         * tests/test-verify.c (function): Declare to be static.
15147
15148         test-inttostr.c: include <string.h> for use of strcmp
15149         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
15150
15151         test-linkat: avoid failed assertion on "other" architectures
15152         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
15153         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
15154         sparc: https://bugs.launchpad.net/bugs/591968
15155
15156 2010-06-11  Jim Meyering  <meyering@redhat.com>
15157
15158         printf.m4: avoid autoconf's "Expanded Before Required" warning
15159         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
15160         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
15161         autoconf warning.
15162
15163 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
15164
15165         Replacement header templates are now named with ".in", not "_".
15166         * doc/gnulib-intro.texi: Correct.
15167
15168 2010-06-10  Jim Meyering  <meyering@redhat.com>
15169
15170         inttostr-tests: depend on snprintf, not snprintf-posix
15171         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
15172         snprintf-posix, to avoid this aclocal failure:
15173           missing file gnulib-tests/vasnprintf.c
15174           configure.ac:45: error: expected source file, required through \
15175           AC_LIBSOURCES, not found
15176
15177 2010-06-10  Jim Meyering  <meyering@redhat.com>
15178
15179         inttostr: add a new function, inttostr, and tests
15180         The namesake function was not available.  The existence of the
15181         template file, inttostr.c makes its addition nontrivial.
15182         * lib/anytostr.c: Rename from inttostr.c.
15183         (anytostr): Rename from inttostr.
15184         * lib/inttostr.c: New file.
15185         * modules/inttostr (Files): Add anytostr.c.
15186         (Makefile.am): Set lib_SOURCES instead of ...
15187         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
15188         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
15189         * lib/offtostr.c: Likewise.
15190         * lib/uinttostr.c: Likewise.
15191         * lib/umaxtostr.c: Likewise.
15192         * modules/inttostr-tests: New file.
15193         * tests/test-inttostr.c: New file.  Test these functions.
15194
15195 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
15196             Bruno Haible  <bruno@clisp.org>
15197
15198         Add "Extending Gnulib" chapter to manual.
15199         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
15200         chapter.
15201         (Extending Gnulib): New chapter.
15202         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
15203         chapter.
15204
15205 2010-06-09  Bruno Haible  <bruno@clisp.org>
15206
15207         Avoid relocwrapper link errors due to gnulib replacement functions.
15208         * lib/areadlink.c: Use the system's malloc, realloc functions.
15209         (areadlink): Set errno to ENOMEM explicitly.
15210         * modules/areadlink (Depends-on): Remove malloc-posix.
15211         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15212
15213 2010-06-09  Bruno Haible  <bruno@clisp.org>
15214
15215         Avoid relocwrapper link errors due to gnulib replacement functions.
15216         * lib/canonicalize-lgpl.c: Use the system's malloc function.
15217         * lib/malloca.c: Likewise.
15218         * lib/relocatable.c: Likewise.
15219         * lib/progreloc.c: Use the system's malloc, sprintf functions.
15220         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
15221         * lib/setenv.c: Use the system's malloc, realloc functions.
15222         * lib/strerror.c: Use the system's sprintf function.
15223         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15224
15225 2010-06-04  Bruno Haible  <bruno@clisp.org>
15226
15227         Prefer documented low-level autoconf macro names.
15228         * m4/lib-link.m4: Use m4_translit instead of translit.
15229         * m4/environ.m4: Likewise.
15230         * m4/mathfunc.m4: Likewise.
15231         * m4/onceonly.m4: Likewise.
15232         * m4/stdint.m4: Likewise.
15233         Suggested by Eric Blake.
15234
15235 2010-06-04  Martin Lambers  <marlam@marlam.de>
15236             Bruno Haible  <bruno@clisp.org>
15237
15238         havelib: Allow library names with '+' characters.
15239         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15240         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
15241
15242 2010-06-09  Bruno Haible  <bruno@clisp.org>
15243
15244         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
15245         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
15246         realloc failed.
15247
15248 2010-06-08  Peter Simons  <simons@cryp.to>
15249
15250         maint.mk: make the news-check rule more configurable
15251         * top/maint.mk (news-check-lines-spec): New variable.
15252         (news-check): Use "sed -n 1,10p" in place of "head".
15253
15254 2010-06-07  Jim Meyering  <meyering@redhat.com>
15255
15256         do-release-commit-and-tag: fix typo in --help
15257         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
15258
15259         regex: avoid new dead-code warning with gcc-4.6.0
15260         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
15261         if-block containing a while-loop.  It's been unused for at least
15262         5 years.
15263
15264 2010-06-05  Bruno Haible  <bruno@clisp.org>
15265
15266         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
15267         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
15268
15269 2010-06-04  Bruno Haible  <bruno@clisp.org>
15270
15271         Update to GNU gettext 0.18.1.
15272         * modules/gettext (configure.ac): Require gettext infrastructure from
15273         version 0.18.1.
15274
15275 2010-06-03  Bruno Haible  <bruno@clisp.org>
15276
15277         Don't use AC_LIBOBJ with file names in subdirectories.
15278         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
15279         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
15280         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
15281         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
15282         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
15283         gl_LIBUNISTRING_LIBSOURCE.
15284         (Makefile.am): Augment lib_SOURCES here, conditionally.
15285         * NEWS: Drop requirement for Automake option 'subdir-objects'.
15286
15287 2010-06-03  Bruno Haible  <bruno@clisp.org>
15288
15289         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
15290         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
15291         expansion does not end with a newline.
15292         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
15293         unnecessary newline.
15294
15295 2010-06-03  Bruno Haible  <bruno@clisp.org>
15296
15297         Reduce dependencies.
15298         * tests/test-quotearg.h: New file, extracted from
15299         tests/test-quotearg.c.
15300         * tests/test-quotearg-simple.c: New file, extracted from
15301         tests/test-quotearg.c.
15302         * tests/test-quotearg.c: Don't include <ctype.h>.
15303         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
15304         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
15305         use_quote_double_quotes, use_quotearg_colon): Moved to
15306         tests/test-quotearg.h.
15307         (results_g, flag_results, custom_quotes, custom_results): Moved
15308         to tests/test-quotearg-simple.c.
15309         (main): Moved the part that does not depend on gettext to
15310         tests/test-quotearg-simple.c. Return 77 if the test cannot be
15311         performed.
15312         * modules/quotearg-simple: New file.
15313         * modules/quotearg-simple-tests: New file.
15314         * modules/quotearg (Depends-on): Add quotearg-simple.
15315         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
15316         (Files): Add tests/test-quotearg.h.
15317         Reported by Paolo Bonzini.
15318
15319 2010-06-03  Bruno Haible  <bruno@clisp.org>
15320
15321         Reduce dependencies.
15322         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
15323
15324 2010-06-03  Bruno Haible  <bruno@clisp.org>
15325
15326         time: Undefine more broken macros.
15327         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
15328         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
15329         Reported by Eric Blake.
15330
15331 2010-06-03  Bruno Haible  <bruno@clisp.org>
15332
15333         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
15334         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
15335         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
15336         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
15337         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
15338         Reported by Ludovic Courtès <ludo@gnu.org>.
15339
15340 2010-06-02  Eric Blake  <eblake@redhat.com>
15341
15342         time: work with mingw + pthreads-win32 library
15343         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
15344         if timespec is defined only in pthread.h.
15345         * modules/time (Makefile.am): Substitute it.
15346         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
15347         <pthread.h>, when needed.
15348         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
15349         from the library.
15350
15351 2010-05-31  Bruno Haible  <bruno@clisp.org>
15352
15353         Avoid expanding two macros in the wrong order.
15354         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
15355         gl_LIBUNISTRING if it is defined.
15356         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
15357         autoconf >= 2.64.
15358         Reported by Ludovic Courtès <ludo@gnu.org>.
15359
15360 2010-05-27  Jim Meyering  <meyering@redhat.com>
15361
15362         maint.mk: also prohibit "#undef" of always-defined symbols
15363         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
15364         Allow more than one space before the symbol name.
15365         (sc_prohibit_always-defined_macros): Use grep's -E, now that
15366         the regexp uses alternation.
15367
15368 2010-05-26  Eric Blake  <eblake@redhat.com>
15369
15370         maint.mk: avoid echo -e
15371         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
15372         Convert all uses of echo -* to printf.
15373         Reported by Matthias Bolte.
15374
15375 2010-05-25  Bruno Haible  <bruno@clisp.org>
15376
15377         Update to GNU gettext 0.18, part 2.
15378         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
15379         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
15380
15381 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15382
15383         Add missing include in test-pwrite.c.
15384         * tests/test-pwrite.c: Include string.h, for strcmp.
15385
15386 2010-05-24  Bruno Haible  <bruno@clisp.org>
15387
15388         * NEWS: Mention requirement for Automake option 'subdir-objects'.
15389
15390 2010-05-24  Bruno Haible  <bruno@clisp.org>
15391
15392         Don't use conversion with transliteration in u{8,16,32}_strcoll.
15393         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
15394         iconveh_error argument.
15395         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
15396         U_STRCONV_TO_LOCALE.
15397         * lib/unistr/u16-strcoll.c: Likewise.
15398         * lib/unistr/u32-strcoll.c: Likewise.
15399         * modules/unistr/u8-strcoll (Depends-on): Add
15400         uniconv/u8-strconv-to-enc, localcharset. Remove
15401         uniconv/u8-strconv-to-locale.
15402         (configure.ac): Bump version number.
15403         * modules/unistr/u16-strcoll (Depends-on): Add
15404         uniconv/u16-strconv-to-enc, localcharset. Remove
15405         uniconv/u16-strconv-to-locale.
15406         (configure.ac): Bump version number.
15407         * modules/unistr/u32-strcoll (Depends-on): Add
15408         uniconv/u32-strconv-to-enc, localcharset. Remove
15409         uniconv/u32-strconv-to-locale.
15410         (configure.ac): Bump version number.
15411
15412 2010-05-24  Bruno Haible  <bruno@clisp.org>
15413
15414         Avoid a test failure on NetBSD 5.0.
15415         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
15416         an iconv() bug.
15417
15418 2010-05-24  Bruno Haible  <bruno@clisp.org>
15419
15420         Adjust #include directive style.
15421         * modules/regex (Includes): Recommend to write <regex.h>.
15422
15423 2010-05-24  Bruno Haible  <bruno@clisp.org>
15424
15425         regex: Don't require alloca.
15426         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
15427         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
15428         only inside if (0).
15429
15430 2010-05-23  Jim Meyering  <meyering@redhat.com>
15431
15432         test-renameat.c: include <sys/stat.h>
15433         * tests/test-renameat.c: Include <sys/stat.h>; required for
15434         definition of S_IS* macros.
15435
15436 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
15437
15438         Update maintainer documentation for 'relocatable-prog' module.
15439         * doc/relocatable-maint.texi: Update.
15440         Comments by Bruno Haible.
15441
15442 2010-05-23  Bruno Haible  <bruno@clisp.org>
15443
15444         git-merge-changelog: Enable --split-merged-entry by default.
15445         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
15446         (usage): Don't mention this option any more.
15447         Reported by Ralf Wildenhues.
15448
15449 2010-05-23  Jim Meyering  <meyering@redhat.com>
15450
15451         test-pwrite: do not leave behind a test file named "out"
15452         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
15453         The trivial-looking use of init.sh is really necessary.
15454         It ensures that the temporary file, "out", is created in
15455         a temporary directory, and removed upon termination.
15456         * tests/test-pwrite.sh: Re-add file.
15457         * modules/pwrite-tests: Reference it.
15458
15459 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15460
15461         Fix output redirection buglet in init.sh.
15462         * tests/init.sh: Fix redirection of stderr.
15463
15464 2010-05-20  Simon Josefsson  <simon@josefsson.org>
15465
15466         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
15467
15468 2010-05-17  Simon Josefsson  <simon@josefsson.org>
15469
15470         * modules/valgrind-tests: New file.
15471         * m4/valgrind-tests.m4: New file.
15472         * doc/valgrind-tests.texi: New file.
15473         * doc/gnulib.texi (Running self-tests under valgrind): New
15474         section.
15475
15476 2010-05-19  Bruno Haible  <bruno@clisp.org>
15477
15478         Clean up dead code in recent commit.
15479         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
15480         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
15481         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
15482         Suggested by Paolo Bonzini.
15483
15484 2010-05-19  Bruno Haible  <bruno@clisp.org>
15485
15486         Avoid valgrind error reports from libunistring.
15487         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
15488         * modules/libunistring (Files): Add it.
15489         * modules/libunistring-optional (Files): Likewise.
15490
15491 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
15492             Bruno Haible  <bruno@clisp.org>
15493
15494         New module 'libunistring-optional'.
15495         * modules/libunistring-optional: New file.
15496         * m4/libunistring-base.m4: New file.
15497         * m4/libunistring-optional.m4: New file.
15498         * lib/unicase.in.h: Renamed from lib/unicase.h.
15499         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
15500         * lib/unictype.in.h: Renamed from lib/unictype.h.
15501         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
15502         * lib/uniname.in.h: Renamed from lib/uniname.h.
15503         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
15504         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
15505         * lib/unistr.in.h: Renamed from lib/unistr.h.
15506         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
15507         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
15508         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
15509         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
15510         gl_LIBUNISTRING. If the library was found, determine the installed
15511         version and set LIBUNISTRING_VERSION.
15512         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
15513         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
15514         handle a configuration option --with-included-libunistring.
15515         * modules/libunistring (Files): Add m4/absolute-header.m4.
15516         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
15517         Add m4/libunistring-base.m4.
15518         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15519         (Makefile.am): Build unicase.h from unicase.in.h.
15520         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
15521         Add m4/libunistring-base.m4.
15522         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15523         (Makefile.am): Build uniconv.h from uniconv.in.h.
15524         * modules/unictype/base (Files): Use unictype.in.h instead of
15525         unictype.h. Add m4/libunistring-base.m4.
15526         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15527         (Makefile.am): Build unictype.h from unictype.in.h.
15528         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
15529         Add m4/libunistring-base.m4.
15530         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15531         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
15532         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
15533         Add m4/libunistring-base.m4.
15534         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15535         (Makefile.am): Build uniname.h from uniname.in.h.
15536         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
15537         Add m4/libunistring-base.m4.
15538         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15539         (Makefile.am): Build uninorm.h from uninorm.in.h.
15540         * modules/unistdio/base (Files): Use unistdio.in.h instead of
15541         unistdio.h. Add m4/libunistring-base.m4.
15542         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15543         (Makefile.am): Build unistdio.h from unistdio.in.h.
15544         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
15545         Add m4/libunistring-base.m4.
15546         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15547         (Makefile.am): Build unistr.h from unistr.in.h.
15548         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
15549         Add m4/libunistring-base.m4.
15550         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15551         (Makefile.am): Build unitypes.h from unitypes.in.h.
15552         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
15553         Add m4/libunistring-base.m4.
15554         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15555         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
15556         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
15557         uniwidth.h. Add m4/libunistring-base.m4.
15558         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15559         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
15560         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
15561         instead of augmenting lib_SOURCES.
15562         * modules/unicase/empty-suffix-context: Likewise.
15563         * modules/unicase/locale-language: Likewise.
15564         * modules/unicase/tolower: Likewise.
15565         * modules/unicase/totitle: Likewise.
15566         * modules/unicase/toupper: Likewise.
15567         * modules/unicase/u8-casecmp: Likewise.
15568         * modules/unicase/u8-casecoll: Likewise.
15569         * modules/unicase/u8-casefold: Likewise.
15570         * modules/unicase/u8-casexfrm: Likewise.
15571         * modules/unicase/u8-ct-casefold: Likewise.
15572         * modules/unicase/u8-ct-tolower: Likewise.
15573         * modules/unicase/u8-ct-totitle: Likewise.
15574         * modules/unicase/u8-ct-toupper: Likewise.
15575         * modules/unicase/u8-is-cased: Likewise.
15576         * modules/unicase/u8-is-casefolded: Likewise.
15577         * modules/unicase/u8-is-lowercase: Likewise.
15578         * modules/unicase/u8-is-titlecase: Likewise.
15579         * modules/unicase/u8-is-uppercase: Likewise.
15580         * modules/unicase/u8-prefix-context: Likewise.
15581         * modules/unicase/u8-suffix-context: Likewise.
15582         * modules/unicase/u8-tolower: Likewise.
15583         * modules/unicase/u8-totitle: Likewise.
15584         * modules/unicase/u8-toupper: Likewise.
15585         * modules/unicase/u16-casecmp: Likewise.
15586         * modules/unicase/u16-casecoll: Likewise.
15587         * modules/unicase/u16-casefold: Likewise.
15588         * modules/unicase/u16-casexfrm: Likewise.
15589         * modules/unicase/u16-ct-casefold: Likewise.
15590         * modules/unicase/u16-ct-tolower: Likewise.
15591         * modules/unicase/u16-ct-totitle: Likewise.
15592         * modules/unicase/u16-ct-toupper: Likewise.
15593         * modules/unicase/u16-is-cased: Likewise.
15594         * modules/unicase/u16-is-casefolded: Likewise.
15595         * modules/unicase/u16-is-lowercase: Likewise.
15596         * modules/unicase/u16-is-titlecase: Likewise.
15597         * modules/unicase/u16-is-uppercase: Likewise.
15598         * modules/unicase/u16-prefix-context: Likewise.
15599         * modules/unicase/u16-suffix-context: Likewise.
15600         * modules/unicase/u16-tolower: Likewise.
15601         * modules/unicase/u16-totitle: Likewise.
15602         * modules/unicase/u16-toupper: Likewise.
15603         * modules/unicase/u32-casecmp: Likewise.
15604         * modules/unicase/u32-casecoll: Likewise.
15605         * modules/unicase/u32-casefold: Likewise.
15606         * modules/unicase/u32-casexfrm: Likewise.
15607         * modules/unicase/u32-ct-casefold: Likewise.
15608         * modules/unicase/u32-ct-tolower: Likewise.
15609         * modules/unicase/u32-ct-totitle: Likewise.
15610         * modules/unicase/u32-ct-toupper: Likewise.
15611         * modules/unicase/u32-is-cased: Likewise.
15612         * modules/unicase/u32-is-casefolded: Likewise.
15613         * modules/unicase/u32-is-lowercase: Likewise.
15614         * modules/unicase/u32-is-titlecase: Likewise.
15615         * modules/unicase/u32-is-uppercase: Likewise.
15616         * modules/unicase/u32-prefix-context: Likewise.
15617         * modules/unicase/u32-suffix-context: Likewise.
15618         * modules/unicase/u32-tolower: Likewise.
15619         * modules/unicase/u32-totitle: Likewise.
15620         * modules/unicase/u32-toupper: Likewise.
15621         * modules/unicase/ulc-casecmp: Likewise.
15622         * modules/unicase/ulc-casecoll: Likewise.
15623         * modules/unicase/ulc-casexfrm: Likewise.
15624         * modules/uniconv/u8-conv-from-enc: Likewise.
15625         * modules/uniconv/u8-conv-to-enc: Likewise.
15626         * modules/uniconv/u8-strconv-from-enc: Likewise.
15627         * modules/uniconv/u8-strconv-from-locale: Likewise.
15628         * modules/uniconv/u8-strconv-to-enc: Likewise.
15629         * modules/uniconv/u8-strconv-to-locale: Likewise.
15630         * modules/uniconv/u16-conv-from-enc: Likewise.
15631         * modules/uniconv/u16-conv-to-enc: Likewise.
15632         * modules/uniconv/u16-strconv-from-enc: Likewise.
15633         * modules/uniconv/u16-strconv-from-locale: Likewise.
15634         * modules/uniconv/u16-strconv-to-enc: Likewise.
15635         * modules/uniconv/u16-strconv-to-locale: Likewise.
15636         * modules/uniconv/u32-conv-from-enc: Likewise.
15637         * modules/uniconv/u32-conv-to-enc: Likewise.
15638         * modules/uniconv/u32-strconv-from-enc: Likewise.
15639         * modules/uniconv/u32-strconv-from-locale: Likewise.
15640         * modules/uniconv/u32-strconv-to-enc: Likewise.
15641         * modules/uniconv/u32-strconv-to-locale: Likewise.
15642         * modules/unictype/bidicategory-byname: Likewise.
15643         * modules/unictype/bidicategory-name: Likewise.
15644         * modules/unictype/bidicategory-of: Likewise.
15645         * modules/unictype/bidicategory-test: Likewise.
15646         * modules/unictype/block-list: Likewise.
15647         * modules/unictype/block-test: Likewise.
15648         * modules/unictype/category-C: Likewise.
15649         * modules/unictype/category-Cc: Likewise.
15650         * modules/unictype/category-Cf: Likewise.
15651         * modules/unictype/category-Cn: Likewise.
15652         * modules/unictype/category-Co: Likewise.
15653         * modules/unictype/category-Cs: Likewise.
15654         * modules/unictype/category-L: Likewise.
15655         * modules/unictype/category-Ll: Likewise.
15656         * modules/unictype/category-Lm: Likewise.
15657         * modules/unictype/category-Lo: Likewise.
15658         * modules/unictype/category-Lt: Likewise.
15659         * modules/unictype/category-Lu: Likewise.
15660         * modules/unictype/category-M: Likewise.
15661         * modules/unictype/category-Mc: Likewise.
15662         * modules/unictype/category-Me: Likewise.
15663         * modules/unictype/category-Mn: Likewise.
15664         * modules/unictype/category-N: Likewise.
15665         * modules/unictype/category-Nd: Likewise.
15666         * modules/unictype/category-Nl: Likewise.
15667         * modules/unictype/category-No: Likewise.
15668         * modules/unictype/category-P: Likewise.
15669         * modules/unictype/category-Pc: Likewise.
15670         * modules/unictype/category-Pd: Likewise.
15671         * modules/unictype/category-Pe: Likewise.
15672         * modules/unictype/category-Pf: Likewise.
15673         * modules/unictype/category-Pi: Likewise.
15674         * modules/unictype/category-Po: Likewise.
15675         * modules/unictype/category-Ps: Likewise.
15676         * modules/unictype/category-S: Likewise.
15677         * modules/unictype/category-Sc: Likewise.
15678         * modules/unictype/category-Sk: Likewise.
15679         * modules/unictype/category-Sm: Likewise.
15680         * modules/unictype/category-So: Likewise.
15681         * modules/unictype/category-Z: Likewise.
15682         * modules/unictype/category-Zl: Likewise.
15683         * modules/unictype/category-Zp: Likewise.
15684         * modules/unictype/category-Zs: Likewise.
15685         * modules/unictype/category-and: Likewise.
15686         * modules/unictype/category-and-not: Likewise.
15687         * modules/unictype/category-byname: Likewise.
15688         * modules/unictype/category-name: Likewise.
15689         * modules/unictype/category-none: Likewise.
15690         * modules/unictype/category-of: Likewise.
15691         * modules/unictype/category-or: Likewise.
15692         * modules/unictype/category-test: Likewise.
15693         * modules/unictype/combining-class: Likewise.
15694         * modules/unictype/ctype-alnum: Likewise.
15695         * modules/unictype/ctype-alpha: Likewise.
15696         * modules/unictype/ctype-blank: Likewise.
15697         * modules/unictype/ctype-cntrl: Likewise.
15698         * modules/unictype/ctype-digit: Likewise.
15699         * modules/unictype/ctype-graph: Likewise.
15700         * modules/unictype/ctype-lower: Likewise.
15701         * modules/unictype/ctype-print: Likewise.
15702         * modules/unictype/ctype-punct: Likewise.
15703         * modules/unictype/ctype-space: Likewise.
15704         * modules/unictype/ctype-upper: Likewise.
15705         * modules/unictype/ctype-xdigit: Likewise.
15706         * modules/unictype/decimal-digit: Likewise.
15707         * modules/unictype/digit: Likewise.
15708         * modules/unictype/mirror: Likewise.
15709         * modules/unictype/numeric: Likewise.
15710         * modules/unictype/property-alphabetic: Likewise.
15711         * modules/unictype/property-ascii-hex-digit: Likewise.
15712         * modules/unictype/property-bidi-arabic-digit: Likewise.
15713         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
15714         * modules/unictype/property-bidi-block-separator: Likewise.
15715         * modules/unictype/property-bidi-boundary-neutral: Likewise.
15716         * modules/unictype/property-bidi-common-separator: Likewise.
15717         * modules/unictype/property-bidi-control: Likewise.
15718         * modules/unictype/property-bidi-embedding-or-override: Likewise.
15719         * modules/unictype/property-bidi-eur-num-separator: Likewise.
15720         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
15721         * modules/unictype/property-bidi-european-digit: Likewise.
15722         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
15723         * modules/unictype/property-bidi-left-to-right: Likewise.
15724         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
15725         * modules/unictype/property-bidi-other-neutral: Likewise.
15726         * modules/unictype/property-bidi-pdf: Likewise.
15727         * modules/unictype/property-bidi-segment-separator: Likewise.
15728         * modules/unictype/property-bidi-whitespace: Likewise.
15729         * modules/unictype/property-byname: Likewise.
15730         * modules/unictype/property-combining: Likewise.
15731         * modules/unictype/property-composite: Likewise.
15732         * modules/unictype/property-currency-symbol: Likewise.
15733         * modules/unictype/property-dash: Likewise.
15734         * modules/unictype/property-decimal-digit: Likewise.
15735         * modules/unictype/property-default-ignorable-code-point: Likewise.
15736         * modules/unictype/property-deprecated: Likewise.
15737         * modules/unictype/property-diacritic: Likewise.
15738         * modules/unictype/property-extender: Likewise.
15739         * modules/unictype/property-format-control: Likewise.
15740         * modules/unictype/property-grapheme-base: Likewise.
15741         * modules/unictype/property-grapheme-extend: Likewise.
15742         * modules/unictype/property-grapheme-link: Likewise.
15743         * modules/unictype/property-hex-digit: Likewise.
15744         * modules/unictype/property-hyphen: Likewise.
15745         * modules/unictype/property-id-continue: Likewise.
15746         * modules/unictype/property-id-start: Likewise.
15747         * modules/unictype/property-ideographic: Likewise.
15748         * modules/unictype/property-ids-binary-operator: Likewise.
15749         * modules/unictype/property-ids-trinary-operator: Likewise.
15750         * modules/unictype/property-ignorable-control: Likewise.
15751         * modules/unictype/property-iso-control: Likewise.
15752         * modules/unictype/property-join-control: Likewise.
15753         * modules/unictype/property-left-of-pair: Likewise.
15754         * modules/unictype/property-line-separator: Likewise.
15755         * modules/unictype/property-logical-order-exception: Likewise.
15756         * modules/unictype/property-lowercase: Likewise.
15757         * modules/unictype/property-math: Likewise.
15758         * modules/unictype/property-non-break: Likewise.
15759         * modules/unictype/property-not-a-character: Likewise.
15760         * modules/unictype/property-numeric: Likewise.
15761         * modules/unictype/property-other-alphabetic: Likewise.
15762         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
15763         * modules/unictype/property-other-grapheme-extend: Likewise.
15764         * modules/unictype/property-other-id-continue: Likewise.
15765         * modules/unictype/property-other-id-start: Likewise.
15766         * modules/unictype/property-other-lowercase: Likewise.
15767         * modules/unictype/property-other-math: Likewise.
15768         * modules/unictype/property-other-uppercase: Likewise.
15769         * modules/unictype/property-paired-punctuation: Likewise.
15770         * modules/unictype/property-paragraph-separator: Likewise.
15771         * modules/unictype/property-pattern-syntax: Likewise.
15772         * modules/unictype/property-pattern-white-space: Likewise.
15773         * modules/unictype/property-private-use: Likewise.
15774         * modules/unictype/property-punctuation: Likewise.
15775         * modules/unictype/property-quotation-mark: Likewise.
15776         * modules/unictype/property-radical: Likewise.
15777         * modules/unictype/property-sentence-terminal: Likewise.
15778         * modules/unictype/property-soft-dotted: Likewise.
15779         * modules/unictype/property-space: Likewise.
15780         * modules/unictype/property-terminal-punctuation: Likewise.
15781         * modules/unictype/property-test: Likewise.
15782         * modules/unictype/property-titlecase: Likewise.
15783         * modules/unictype/property-unassigned-code-value: Likewise.
15784         * modules/unictype/property-unified-ideograph: Likewise.
15785         * modules/unictype/property-uppercase: Likewise.
15786         * modules/unictype/property-variation-selector: Likewise.
15787         * modules/unictype/property-white-space: Likewise.
15788         * modules/unictype/property-xid-continue: Likewise.
15789         * modules/unictype/property-xid-start: Likewise.
15790         * modules/unictype/property-zero-width: Likewise.
15791         * modules/unictype/scripts: Likewise.
15792         * modules/unictype/syntax-c-ident: Likewise.
15793         * modules/unictype/syntax-c-whitespace: Likewise.
15794         * modules/unictype/syntax-java-ident: Likewise.
15795         * modules/unictype/syntax-java-whitespace: Likewise.
15796         * modules/unilbrk/u8-possible-linebreaks: Likewise.
15797         * modules/unilbrk/u8-width-linebreaks: Likewise.
15798         * modules/unilbrk/u16-possible-linebreaks: Likewise.
15799         * modules/unilbrk/u16-width-linebreaks: Likewise.
15800         * modules/unilbrk/u32-possible-linebreaks: Likewise.
15801         * modules/unilbrk/u32-width-linebreaks: Likewise.
15802         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
15803         * modules/unilbrk/ulc-width-linebreaks: Likewise.
15804         * modules/uniname/uniname: Likewise.
15805         * modules/uninorm/canonical-decomposition: Likewise.
15806         * modules/uninorm/composition: Likewise.
15807         * modules/uninorm/decomposing-form: Likewise.
15808         * modules/uninorm/decomposition: Likewise.
15809         * modules/uninorm/filter: Likewise.
15810         * modules/uninorm/nfc: Likewise.
15811         * modules/uninorm/nfd: Likewise.
15812         * modules/uninorm/nfkc: Likewise.
15813         * modules/uninorm/nfkd: Likewise.
15814         * modules/uninorm/u8-normalize: Likewise.
15815         * modules/uninorm/u8-normcmp: Likewise.
15816         * modules/uninorm/u8-normcoll: Likewise.
15817         * modules/uninorm/u8-normxfrm: Likewise.
15818         * modules/uninorm/u16-normalize: Likewise.
15819         * modules/uninorm/u16-normcmp: Likewise.
15820         * modules/uninorm/u16-normcoll: Likewise.
15821         * modules/uninorm/u16-normxfrm: Likewise.
15822         * modules/uninorm/u32-normalize: Likewise.
15823         * modules/uninorm/u32-normcmp: Likewise.
15824         * modules/uninorm/u32-normcoll: Likewise.
15825         * modules/uninorm/u32-normxfrm: Likewise.
15826         * modules/unistdio/u8-asnprintf: Likewise.
15827         * modules/unistdio/u8-asprintf: Likewise.
15828         * modules/unistdio/u8-snprintf: Likewise.
15829         * modules/unistdio/u8-sprintf: Likewise.
15830         * modules/unistdio/u8-u8-asnprintf: Likewise.
15831         * modules/unistdio/u8-u8-asprintf: Likewise.
15832         * modules/unistdio/u8-u8-snprintf: Likewise.
15833         * modules/unistdio/u8-u8-sprintf: Likewise.
15834         * modules/unistdio/u8-u8-vasnprintf: Likewise.
15835         * modules/unistdio/u8-u8-vasprintf: Likewise.
15836         * modules/unistdio/u8-u8-vsnprintf: Likewise.
15837         * modules/unistdio/u8-u8-vsprintf: Likewise.
15838         * modules/unistdio/u8-vasnprintf: Likewise.
15839         * modules/unistdio/u8-vasprintf: Likewise.
15840         * modules/unistdio/u8-vsnprintf: Likewise.
15841         * modules/unistdio/u8-vsprintf: Likewise.
15842         * modules/unistdio/u16-asnprintf: Likewise.
15843         * modules/unistdio/u16-asprintf: Likewise.
15844         * modules/unistdio/u16-snprintf: Likewise.
15845         * modules/unistdio/u16-sprintf: Likewise.
15846         * modules/unistdio/u16-u16-asnprintf: Likewise.
15847         * modules/unistdio/u16-u16-asprintf: Likewise.
15848         * modules/unistdio/u16-u16-snprintf: Likewise.
15849         * modules/unistdio/u16-u16-sprintf: Likewise.
15850         * modules/unistdio/u16-u16-vasnprintf: Likewise.
15851         * modules/unistdio/u16-u16-vasprintf: Likewise.
15852         * modules/unistdio/u16-u16-vsnprintf: Likewise.
15853         * modules/unistdio/u16-u16-vsprintf: Likewise.
15854         * modules/unistdio/u16-vasnprintf: Likewise.
15855         * modules/unistdio/u16-vasprintf: Likewise.
15856         * modules/unistdio/u16-vsnprintf: Likewise.
15857         * modules/unistdio/u16-vsprintf: Likewise.
15858         * modules/unistdio/u32-asnprintf: Likewise.
15859         * modules/unistdio/u32-asprintf: Likewise.
15860         * modules/unistdio/u32-snprintf: Likewise.
15861         * modules/unistdio/u32-sprintf: Likewise.
15862         * modules/unistdio/u32-u32-asnprintf: Likewise.
15863         * modules/unistdio/u32-u32-asprintf: Likewise.
15864         * modules/unistdio/u32-u32-snprintf: Likewise.
15865         * modules/unistdio/u32-u32-sprintf: Likewise.
15866         * modules/unistdio/u32-u32-vasnprintf: Likewise.
15867         * modules/unistdio/u32-u32-vasprintf: Likewise.
15868         * modules/unistdio/u32-u32-vsnprintf: Likewise.
15869         * modules/unistdio/u32-u32-vsprintf: Likewise.
15870         * modules/unistdio/u32-vasnprintf: Likewise.
15871         * modules/unistdio/u32-vasprintf: Likewise.
15872         * modules/unistdio/u32-vsnprintf: Likewise.
15873         * modules/unistdio/u32-vsprintf: Likewise.
15874         * modules/unistdio/ulc-asnprintf: Likewise.
15875         * modules/unistdio/ulc-asprintf: Likewise.
15876         * modules/unistdio/ulc-fprintf: Likewise.
15877         * modules/unistdio/ulc-snprintf: Likewise.
15878         * modules/unistdio/ulc-sprintf: Likewise.
15879         * modules/unistdio/ulc-vasnprintf: Likewise.
15880         * modules/unistdio/ulc-vasprintf: Likewise.
15881         * modules/unistdio/ulc-vfprintf: Likewise.
15882         * modules/unistdio/ulc-vsnprintf: Likewise.
15883         * modules/unistdio/ulc-vsprintf: Likewise.
15884         * modules/unistr/u8-check: Likewise.
15885         * modules/unistr/u8-chr: Likewise.
15886         * modules/unistr/u8-cmp: Likewise.
15887         * modules/unistr/u8-cmp2: Likewise.
15888         * modules/unistr/u8-cpy: Likewise.
15889         * modules/unistr/u8-cpy-alloc: Likewise.
15890         * modules/unistr/u8-endswith: Likewise.
15891         * modules/unistr/u8-mblen: Likewise.
15892         * modules/unistr/u8-mbsnlen: Likewise.
15893         * modules/unistr/u8-mbtouc: Likewise.
15894         * modules/unistr/u8-mbtouc-unsafe: Likewise.
15895         * modules/unistr/u8-mbtoucr: Likewise.
15896         * modules/unistr/u8-move: Likewise.
15897         * modules/unistr/u8-next: Likewise.
15898         * modules/unistr/u8-prev: Likewise.
15899         * modules/unistr/u8-set: Likewise.
15900         * modules/unistr/u8-startswith: Likewise.
15901         * modules/unistr/u8-stpcpy: Likewise.
15902         * modules/unistr/u8-stpncpy: Likewise.
15903         * modules/unistr/u8-strcat: Likewise.
15904         * modules/unistr/u8-strchr: Likewise.
15905         * modules/unistr/u8-strcmp: Likewise.
15906         * modules/unistr/u8-strcoll: Likewise.
15907         * modules/unistr/u8-strcpy: Likewise.
15908         * modules/unistr/u8-strcspn: Likewise.
15909         * modules/unistr/u8-strdup: Likewise.
15910         * modules/unistr/u8-strlen: Likewise.
15911         * modules/unistr/u8-strmblen: Likewise.
15912         * modules/unistr/u8-strmbtouc: Likewise.
15913         * modules/unistr/u8-strncat: Likewise.
15914         * modules/unistr/u8-strncmp: Likewise.
15915         * modules/unistr/u8-strncpy: Likewise.
15916         * modules/unistr/u8-strnlen: Likewise.
15917         * modules/unistr/u8-strpbrk: Likewise.
15918         * modules/unistr/u8-strrchr: Likewise.
15919         * modules/unistr/u8-strspn: Likewise.
15920         * modules/unistr/u8-strstr: Likewise.
15921         * modules/unistr/u8-strtok: Likewise.
15922         * modules/unistr/u8-to-u16: Likewise.
15923         * modules/unistr/u8-to-u32: Likewise.
15924         * modules/unistr/u8-uctomb: Likewise.
15925         * modules/unistr/u16-check: Likewise.
15926         * modules/unistr/u16-chr: Likewise.
15927         * modules/unistr/u16-cmp: Likewise.
15928         * modules/unistr/u16-cmp2: Likewise.
15929         * modules/unistr/u16-cpy: Likewise.
15930         * modules/unistr/u16-cpy-alloc: Likewise.
15931         * modules/unistr/u16-endswith: Likewise.
15932         * modules/unistr/u16-mblen: Likewise.
15933         * modules/unistr/u16-mbsnlen: Likewise.
15934         * modules/unistr/u16-mbtouc: Likewise.
15935         * modules/unistr/u16-mbtouc-unsafe: Likewise.
15936         * modules/unistr/u16-mbtoucr: Likewise.
15937         * modules/unistr/u16-move: Likewise.
15938         * modules/unistr/u16-next: Likewise.
15939         * modules/unistr/u16-prev: Likewise.
15940         * modules/unistr/u16-set: Likewise.
15941         * modules/unistr/u16-startswith: Likewise.
15942         * modules/unistr/u16-stpcpy: Likewise.
15943         * modules/unistr/u16-stpncpy: Likewise.
15944         * modules/unistr/u16-strcat: Likewise.
15945         * modules/unistr/u16-strchr: Likewise.
15946         * modules/unistr/u16-strcmp: Likewise.
15947         * modules/unistr/u16-strcoll: Likewise.
15948         * modules/unistr/u16-strcpy: Likewise.
15949         * modules/unistr/u16-strcspn: Likewise.
15950         * modules/unistr/u16-strdup: Likewise.
15951         * modules/unistr/u16-strlen: Likewise.
15952         * modules/unistr/u16-strmblen: Likewise.
15953         * modules/unistr/u16-strmbtouc: Likewise.
15954         * modules/unistr/u16-strncat: Likewise.
15955         * modules/unistr/u16-strncmp: Likewise.
15956         * modules/unistr/u16-strncpy: Likewise.
15957         * modules/unistr/u16-strnlen: Likewise.
15958         * modules/unistr/u16-strpbrk: Likewise.
15959         * modules/unistr/u16-strrchr: Likewise.
15960         * modules/unistr/u16-strspn: Likewise.
15961         * modules/unistr/u16-strstr: Likewise.
15962         * modules/unistr/u16-strtok: Likewise.
15963         * modules/unistr/u16-to-u32: Likewise.
15964         * modules/unistr/u16-to-u8: Likewise.
15965         * modules/unistr/u16-uctomb: Likewise.
15966         * modules/unistr/u32-check: Likewise.
15967         * modules/unistr/u32-chr: Likewise.
15968         * modules/unistr/u32-cmp: Likewise.
15969         * modules/unistr/u32-cmp2: Likewise.
15970         * modules/unistr/u32-cpy: Likewise.
15971         * modules/unistr/u32-cpy-alloc: Likewise.
15972         * modules/unistr/u32-endswith: Likewise.
15973         * modules/unistr/u32-mblen: Likewise.
15974         * modules/unistr/u32-mbsnlen: Likewise.
15975         * modules/unistr/u32-mbtouc: Likewise.
15976         * modules/unistr/u32-mbtouc-unsafe: Likewise.
15977         * modules/unistr/u32-mbtoucr: Likewise.
15978         * modules/unistr/u32-move: Likewise.
15979         * modules/unistr/u32-next: Likewise.
15980         * modules/unistr/u32-prev: Likewise.
15981         * modules/unistr/u32-set: Likewise.
15982         * modules/unistr/u32-startswith: Likewise.
15983         * modules/unistr/u32-stpcpy: Likewise.
15984         * modules/unistr/u32-stpncpy: Likewise.
15985         * modules/unistr/u32-strcat: Likewise.
15986         * modules/unistr/u32-strchr: Likewise.
15987         * modules/unistr/u32-strcmp: Likewise.
15988         * modules/unistr/u32-strcoll: Likewise.
15989         * modules/unistr/u32-strcpy: Likewise.
15990         * modules/unistr/u32-strcspn: Likewise.
15991         * modules/unistr/u32-strdup: Likewise.
15992         * modules/unistr/u32-strlen: Likewise.
15993         * modules/unistr/u32-strmblen: Likewise.
15994         * modules/unistr/u32-strmbtouc: Likewise.
15995         * modules/unistr/u32-strncat: Likewise.
15996         * modules/unistr/u32-strncmp: Likewise.
15997         * modules/unistr/u32-strncpy: Likewise.
15998         * modules/unistr/u32-strnlen: Likewise.
15999         * modules/unistr/u32-strpbrk: Likewise.
16000         * modules/unistr/u32-strrchr: Likewise.
16001         * modules/unistr/u32-strspn: Likewise.
16002         * modules/unistr/u32-strstr: Likewise.
16003         * modules/unistr/u32-strtok: Likewise.
16004         * modules/unistr/u32-to-u16: Likewise.
16005         * modules/unistr/u32-to-u8: Likewise.
16006         * modules/unistr/u32-uctomb: Likewise.
16007         * modules/uniwbrk/u8-wordbreaks: Likewise.
16008         * modules/uniwbrk/u16-wordbreaks: Likewise.
16009         * modules/uniwbrk/u32-wordbreaks: Likewise.
16010         * modules/uniwbrk/ulc-wordbreaks: Likewise.
16011         * modules/uniwbrk/wordbreak-property: Likewise.
16012         * modules/uniwidth/u8-strwidth: Likewise.
16013         * modules/uniwidth/u8-width: Likewise.
16014         * modules/uniwidth/u16-strwidth: Likewise.
16015         * modules/uniwidth/u16-width: Likewise.
16016         * modules/uniwidth/u32-strwidth: Likewise.
16017         * modules/uniwidth/u32-width: Likewise.
16018         * modules/uniwidth/width: Likewise.
16019         * modules/unicase/cased-tests (Makefile.am): Link all test programs
16020         with $(LIBUNISTRING).
16021         * modules/unicase/ignorable-tests: Likewise.
16022         * modules/unicase/locale-language-tests: Likewise.
16023         * modules/unicase/tolower-tests: Likewise.
16024         * modules/unicase/totitle-tests: Likewise.
16025         * modules/unicase/toupper-tests: Likewise.
16026         * modules/unicase/u8-casecmp-tests: Likewise.
16027         * modules/unicase/u8-casecoll-tests: Likewise.
16028         * modules/unicase/u8-casefold-tests: Likewise.
16029         * modules/unicase/u8-is-cased-tests: Likewise.
16030         * modules/unicase/u8-is-casefolded-tests: Likewise.
16031         * modules/unicase/u8-is-lowercase-tests: Likewise.
16032         * modules/unicase/u8-is-titlecase-tests: Likewise.
16033         * modules/unicase/u8-is-uppercase-tests: Likewise.
16034         * modules/unicase/u8-tolower-tests: Likewise.
16035         * modules/unicase/u8-totitle-tests: Likewise.
16036         * modules/unicase/u8-toupper-tests: Likewise.
16037         * modules/unicase/u16-casecmp-tests: Likewise.
16038         * modules/unicase/u16-casecoll-tests: Likewise.
16039         * modules/unicase/u16-casefold-tests: Likewise.
16040         * modules/unicase/u16-is-cased-tests: Likewise.
16041         * modules/unicase/u16-is-casefolded-tests: Likewise.
16042         * modules/unicase/u16-is-lowercase-tests: Likewise.
16043         * modules/unicase/u16-is-titlecase-tests: Likewise.
16044         * modules/unicase/u16-is-uppercase-tests: Likewise.
16045         * modules/unicase/u16-tolower-tests: Likewise.
16046         * modules/unicase/u16-totitle-tests: Likewise.
16047         * modules/unicase/u16-toupper-tests: Likewise.
16048         * modules/unicase/u32-casecmp-tests: Likewise.
16049         * modules/unicase/u32-casecoll-tests: Likewise.
16050         * modules/unicase/u32-casefold-tests: Likewise.
16051         * modules/unicase/u32-is-cased-tests: Likewise.
16052         * modules/unicase/u32-is-casefolded-tests: Likewise.
16053         * modules/unicase/u32-is-lowercase-tests: Likewise.
16054         * modules/unicase/u32-is-titlecase-tests: Likewise.
16055         * modules/unicase/u32-is-uppercase-tests: Likewise.
16056         * modules/unicase/u32-tolower-tests: Likewise.
16057         * modules/unicase/u32-totitle-tests: Likewise.
16058         * modules/unicase/u32-toupper-tests: Likewise.
16059         * modules/unicase/ulc-casecmp-tests: Likewise.
16060         * modules/unicase/ulc-casecoll-tests: Likewise.
16061         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
16062         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
16063         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
16064         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
16065         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
16066         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
16067         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
16068         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
16069         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
16070         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
16071         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
16072         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
16073         * modules/unictype/bidicategory-byname-tests: Likewise.
16074         * modules/unictype/bidicategory-name-tests: Likewise.
16075         * modules/unictype/bidicategory-of-tests: Likewise.
16076         * modules/unictype/bidicategory-test-tests: Likewise.
16077         * modules/unictype/block-list-tests: Likewise.
16078         * modules/unictype/block-of-tests: Likewise.
16079         * modules/unictype/block-test-tests: Likewise.
16080         * modules/unictype/category-C-tests: Likewise.
16081         * modules/unictype/category-Cc-tests: Likewise.
16082         * modules/unictype/category-Cf-tests: Likewise.
16083         * modules/unictype/category-Cn-tests: Likewise.
16084         * modules/unictype/category-Co-tests: Likewise.
16085         * modules/unictype/category-Cs-tests: Likewise.
16086         * modules/unictype/category-L-tests: Likewise.
16087         * modules/unictype/category-Ll-tests: Likewise.
16088         * modules/unictype/category-Lm-tests: Likewise.
16089         * modules/unictype/category-Lo-tests: Likewise.
16090         * modules/unictype/category-Lt-tests: Likewise.
16091         * modules/unictype/category-Lu-tests: Likewise.
16092         * modules/unictype/category-M-tests: Likewise.
16093         * modules/unictype/category-Mc-tests: Likewise.
16094         * modules/unictype/category-Me-tests: Likewise.
16095         * modules/unictype/category-Mn-tests: Likewise.
16096         * modules/unictype/category-N-tests: Likewise.
16097         * modules/unictype/category-Nd-tests: Likewise.
16098         * modules/unictype/category-Nl-tests: Likewise.
16099         * modules/unictype/category-No-tests: Likewise.
16100         * modules/unictype/category-P-tests: Likewise.
16101         * modules/unictype/category-Pc-tests: Likewise.
16102         * modules/unictype/category-Pd-tests: Likewise.
16103         * modules/unictype/category-Pe-tests: Likewise.
16104         * modules/unictype/category-Pf-tests: Likewise.
16105         * modules/unictype/category-Pi-tests: Likewise.
16106         * modules/unictype/category-Po-tests: Likewise.
16107         * modules/unictype/category-Ps-tests: Likewise.
16108         * modules/unictype/category-S-tests: Likewise.
16109         * modules/unictype/category-Sc-tests: Likewise.
16110         * modules/unictype/category-Sk-tests: Likewise.
16111         * modules/unictype/category-Sm-tests: Likewise.
16112         * modules/unictype/category-So-tests: Likewise.
16113         * modules/unictype/category-Z-tests: Likewise.
16114         * modules/unictype/category-Zl-tests: Likewise.
16115         * modules/unictype/category-Zp-tests: Likewise.
16116         * modules/unictype/category-Zs-tests: Likewise.
16117         * modules/unictype/category-and-not-tests: Likewise.
16118         * modules/unictype/category-and-tests: Likewise.
16119         * modules/unictype/category-byname-tests: Likewise.
16120         * modules/unictype/category-name-tests: Likewise.
16121         * modules/unictype/category-none-tests: Likewise.
16122         * modules/unictype/category-of-tests: Likewise.
16123         * modules/unictype/category-or-tests: Likewise.
16124         * modules/unictype/category-test-withtable-tests: Likewise.
16125         * modules/unictype/combining-class-tests: Likewise.
16126         * modules/unictype/ctype-alnum-tests: Likewise.
16127         * modules/unictype/ctype-alpha-tests: Likewise.
16128         * modules/unictype/ctype-blank-tests: Likewise.
16129         * modules/unictype/ctype-cntrl-tests: Likewise.
16130         * modules/unictype/ctype-digit-tests: Likewise.
16131         * modules/unictype/ctype-graph-tests: Likewise.
16132         * modules/unictype/ctype-lower-tests: Likewise.
16133         * modules/unictype/ctype-print-tests: Likewise.
16134         * modules/unictype/ctype-punct-tests: Likewise.
16135         * modules/unictype/ctype-space-tests: Likewise.
16136         * modules/unictype/ctype-upper-tests: Likewise.
16137         * modules/unictype/ctype-xdigit-tests: Likewise.
16138         * modules/unictype/decimal-digit-tests: Likewise.
16139         * modules/unictype/digit-tests: Likewise.
16140         * modules/unictype/mirror-tests: Likewise.
16141         * modules/unictype/numeric-tests: Likewise.
16142         * modules/unictype/property-alphabetic-tests: Likewise.
16143         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
16144         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
16145         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
16146         * modules/unictype/property-bidi-block-separator-tests: Likewise.
16147         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
16148         * modules/unictype/property-bidi-common-separator-tests: Likewise.
16149         * modules/unictype/property-bidi-control-tests: Likewise.
16150         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
16151         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
16152         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
16153         * modules/unictype/property-bidi-european-digit-tests: Likewise.
16154         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
16155         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
16156         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
16157         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
16158         * modules/unictype/property-bidi-pdf-tests: Likewise.
16159         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
16160         * modules/unictype/property-bidi-whitespace-tests: Likewise.
16161         * modules/unictype/property-byname-tests: Likewise.
16162         * modules/unictype/property-combining-tests: Likewise.
16163         * modules/unictype/property-composite-tests: Likewise.
16164         * modules/unictype/property-currency-symbol-tests: Likewise.
16165         * modules/unictype/property-dash-tests: Likewise.
16166         * modules/unictype/property-decimal-digit-tests: Likewise.
16167         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
16168         * modules/unictype/property-deprecated-tests: Likewise.
16169         * modules/unictype/property-diacritic-tests: Likewise.
16170         * modules/unictype/property-extender-tests: Likewise.
16171         * modules/unictype/property-format-control-tests: Likewise.
16172         * modules/unictype/property-grapheme-base-tests: Likewise.
16173         * modules/unictype/property-grapheme-extend-tests: Likewise.
16174         * modules/unictype/property-grapheme-link-tests: Likewise.
16175         * modules/unictype/property-hex-digit-tests: Likewise.
16176         * modules/unictype/property-hyphen-tests: Likewise.
16177         * modules/unictype/property-id-continue-tests: Likewise.
16178         * modules/unictype/property-id-start-tests: Likewise.
16179         * modules/unictype/property-ideographic-tests: Likewise.
16180         * modules/unictype/property-ids-binary-operator-tests: Likewise.
16181         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
16182         * modules/unictype/property-ignorable-control-tests: Likewise.
16183         * modules/unictype/property-iso-control-tests: Likewise.
16184         * modules/unictype/property-join-control-tests: Likewise.
16185         * modules/unictype/property-left-of-pair-tests: Likewise.
16186         * modules/unictype/property-line-separator-tests: Likewise.
16187         * modules/unictype/property-logical-order-exception-tests: Likewise.
16188         * modules/unictype/property-lowercase-tests: Likewise.
16189         * modules/unictype/property-math-tests: Likewise.
16190         * modules/unictype/property-non-break-tests: Likewise.
16191         * modules/unictype/property-not-a-character-tests: Likewise.
16192         * modules/unictype/property-numeric-tests: Likewise.
16193         * modules/unictype/property-other-alphabetic-tests: Likewise.
16194         * modules/unictype/property-other-default-ignorable-code-point-tests:
16195         Likewise.
16196         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
16197         * modules/unictype/property-other-id-continue-tests: Likewise.
16198         * modules/unictype/property-other-id-start-tests: Likewise.
16199         * modules/unictype/property-other-lowercase-tests: Likewise.
16200         * modules/unictype/property-other-math-tests: Likewise.
16201         * modules/unictype/property-other-uppercase-tests: Likewise.
16202         * modules/unictype/property-paired-punctuation-tests: Likewise.
16203         * modules/unictype/property-paragraph-separator-tests: Likewise.
16204         * modules/unictype/property-pattern-syntax-tests: Likewise.
16205         * modules/unictype/property-pattern-white-space-tests: Likewise.
16206         * modules/unictype/property-private-use-tests: Likewise.
16207         * modules/unictype/property-punctuation-tests: Likewise.
16208         * modules/unictype/property-quotation-mark-tests: Likewise.
16209         * modules/unictype/property-radical-tests: Likewise.
16210         * modules/unictype/property-sentence-terminal-tests: Likewise.
16211         * modules/unictype/property-soft-dotted-tests: Likewise.
16212         * modules/unictype/property-space-tests: Likewise.
16213         * modules/unictype/property-terminal-punctuation-tests: Likewise.
16214         * modules/unictype/property-test-tests: Likewise.
16215         * modules/unictype/property-titlecase-tests: Likewise.
16216         * modules/unictype/property-unassigned-code-value-tests: Likewise.
16217         * modules/unictype/property-unified-ideograph-tests: Likewise.
16218         * modules/unictype/property-uppercase-tests: Likewise.
16219         * modules/unictype/property-variation-selector-tests: Likewise.
16220         * modules/unictype/property-white-space-tests: Likewise.
16221         * modules/unictype/property-xid-continue-tests: Likewise.
16222         * modules/unictype/property-xid-start-tests: Likewise.
16223         * modules/unictype/property-zero-width-tests: Likewise.
16224         * modules/unictype/scripts-tests: Likewise.
16225         * modules/unictype/syntax-c-ident-tests: Likewise.
16226         * modules/unictype/syntax-c-whitespace-tests: Likewise.
16227         * modules/unictype/syntax-java-ident-tests: Likewise.
16228         * modules/unictype/syntax-java-whitespace-tests: Likewise.
16229         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
16230         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
16231         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
16232         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
16233         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
16234         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
16235         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
16236         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
16237         * modules/uniname/uniname-tests: Likewise.
16238         * modules/uninorm/canonical-decomposition-tests: Likewise.
16239         * modules/uninorm/compat-decomposition-tests: Likewise.
16240         * modules/uninorm/composition-tests: Likewise.
16241         * modules/uninorm/decomposing-form-tests: Likewise.
16242         * modules/uninorm/decomposition-tests: Likewise.
16243         * modules/uninorm/filter-tests: Likewise.
16244         * modules/uninorm/nfc-tests: Likewise.
16245         * modules/uninorm/nfd-tests: Likewise.
16246         * modules/uninorm/nfkc-tests: Likewise.
16247         * modules/uninorm/nfkd-tests: Likewise.
16248         * modules/uninorm/u8-normcmp-tests: Likewise.
16249         * modules/uninorm/u8-normcoll-tests: Likewise.
16250         * modules/uninorm/u16-normcmp-tests: Likewise.
16251         * modules/uninorm/u16-normcoll-tests: Likewise.
16252         * modules/uninorm/u32-normcmp-tests: Likewise.
16253         * modules/uninorm/u32-normcoll-tests: Likewise.
16254         * modules/unistdio/u8-asnprintf-tests: Likewise.
16255         * modules/unistdio/u8-vasnprintf-tests: Likewise.
16256         * modules/unistdio/u8-vasprintf-tests: Likewise.
16257         * modules/unistdio/u8-vsnprintf-tests: Likewise.
16258         * modules/unistdio/u8-vsprintf-tests: Likewise.
16259         * modules/unistdio/u16-asnprintf-tests: Likewise.
16260         * modules/unistdio/u16-vasnprintf-tests: Likewise.
16261         * modules/unistdio/u16-vasprintf-tests: Likewise.
16262         * modules/unistdio/u16-vsnprintf-tests: Likewise.
16263         * modules/unistdio/u16-vsprintf-tests: Likewise.
16264         * modules/unistdio/u32-asnprintf-tests: Likewise.
16265         * modules/unistdio/u32-vasnprintf-tests: Likewise.
16266         * modules/unistdio/u32-vasprintf-tests: Likewise.
16267         * modules/unistdio/u32-vsnprintf-tests: Likewise.
16268         * modules/unistdio/u32-vsprintf-tests: Likewise.
16269         * modules/unistdio/ulc-asnprintf-tests: Likewise.
16270         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
16271         * modules/unistdio/ulc-vasprintf-tests: Likewise.
16272         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
16273         * modules/unistdio/ulc-vsprintf-tests: Likewise.
16274         * modules/unistr/u8-check-tests: Likewise.
16275         * modules/unistr/u8-chr-tests: Likewise.
16276         * modules/unistr/u8-cmp-tests: Likewise.
16277         * modules/unistr/u8-cmp2-tests: Likewise.
16278         * modules/unistr/u8-cpy-alloc-tests: Likewise.
16279         * modules/unistr/u8-cpy-tests: Likewise.
16280         * modules/unistr/u8-mblen-tests: Likewise.
16281         * modules/unistr/u8-mbsnlen-tests: Likewise.
16282         * modules/unistr/u8-mbtouc-tests: Likewise.
16283         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
16284         * modules/unistr/u8-mbtoucr-tests: Likewise.
16285         * modules/unistr/u8-move-tests: Likewise.
16286         * modules/unistr/u8-next-tests: Likewise.
16287         * modules/unistr/u8-prev-tests: Likewise.
16288         * modules/unistr/u8-set-tests: Likewise.
16289         * modules/unistr/u8-stpcpy-tests: Likewise.
16290         * modules/unistr/u8-stpncpy-tests: Likewise.
16291         * modules/unistr/u8-strcat-tests: Likewise.
16292         * modules/unistr/u8-strcmp-tests: Likewise.
16293         * modules/unistr/u8-strcoll-tests: Likewise.
16294         * modules/unistr/u8-strcpy-tests: Likewise.
16295         * modules/unistr/u8-strdup-tests: Likewise.
16296         * modules/unistr/u8-strlen-tests: Likewise.
16297         * modules/unistr/u8-strmblen-tests: Likewise.
16298         * modules/unistr/u8-strmbtouc-tests: Likewise.
16299         * modules/unistr/u8-strncat-tests: Likewise.
16300         * modules/unistr/u8-strncmp-tests: Likewise.
16301         * modules/unistr/u8-strncpy-tests: Likewise.
16302         * modules/unistr/u8-strnlen-tests: Likewise.
16303         * modules/unistr/u8-to-u16-tests: Likewise.
16304         * modules/unistr/u8-to-u32-tests: Likewise.
16305         * modules/unistr/u8-uctomb-tests: Likewise.
16306         * modules/unistr/u16-check-tests: Likewise.
16307         * modules/unistr/u16-chr-tests: Likewise.
16308         * modules/unistr/u16-cmp-tests: Likewise.
16309         * modules/unistr/u16-cmp2-tests: Likewise.
16310         * modules/unistr/u16-cpy-alloc-tests: Likewise.
16311         * modules/unistr/u16-cpy-tests: Likewise.
16312         * modules/unistr/u16-mblen-tests: Likewise.
16313         * modules/unistr/u16-mbsnlen-tests: Likewise.
16314         * modules/unistr/u16-mbtouc-tests: Likewise.
16315         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
16316         * modules/unistr/u16-mbtoucr-tests: Likewise.
16317         * modules/unistr/u16-move-tests: Likewise.
16318         * modules/unistr/u16-next-tests: Likewise.
16319         * modules/unistr/u16-prev-tests: Likewise.
16320         * modules/unistr/u16-set-tests: Likewise.
16321         * modules/unistr/u16-stpcpy-tests: Likewise.
16322         * modules/unistr/u16-stpncpy-tests: Likewise.
16323         * modules/unistr/u16-strcat-tests: Likewise.
16324         * modules/unistr/u16-strcmp-tests: Likewise.
16325         * modules/unistr/u16-strcoll-tests: Likewise.
16326         * modules/unistr/u16-strcpy-tests: Likewise.
16327         * modules/unistr/u16-strdup-tests: Likewise.
16328         * modules/unistr/u16-strlen-tests: Likewise.
16329         * modules/unistr/u16-strmblen-tests: Likewise.
16330         * modules/unistr/u16-strmbtouc-tests: Likewise.
16331         * modules/unistr/u16-strncat-tests: Likewise.
16332         * modules/unistr/u16-strncmp-tests: Likewise.
16333         * modules/unistr/u16-strncpy-tests: Likewise.
16334         * modules/unistr/u16-strnlen-tests: Likewise.
16335         * modules/unistr/u16-to-u32-tests: Likewise.
16336         * modules/unistr/u16-to-u8-tests: Likewise.
16337         * modules/unistr/u16-uctomb-tests: Likewise.
16338         * modules/unistr/u32-check-tests: Likewise.
16339         * modules/unistr/u32-chr-tests: Likewise.
16340         * modules/unistr/u32-cmp-tests: Likewise.
16341         * modules/unistr/u32-cmp2-tests: Likewise.
16342         * modules/unistr/u32-cpy-alloc-tests: Likewise.
16343         * modules/unistr/u32-cpy-tests: Likewise.
16344         * modules/unistr/u32-mblen-tests: Likewise.
16345         * modules/unistr/u32-mbsnlen-tests: Likewise.
16346         * modules/unistr/u32-mbtouc-tests: Likewise.
16347         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
16348         * modules/unistr/u32-mbtoucr-tests: Likewise.
16349         * modules/unistr/u32-move-tests: Likewise.
16350         * modules/unistr/u32-next-tests: Likewise.
16351         * modules/unistr/u32-prev-tests: Likewise.
16352         * modules/unistr/u32-set-tests: Likewise.
16353         * modules/unistr/u32-stpcpy-tests: Likewise.
16354         * modules/unistr/u32-stpncpy-tests: Likewise.
16355         * modules/unistr/u32-strcat-tests: Likewise.
16356         * modules/unistr/u32-strcmp-tests: Likewise.
16357         * modules/unistr/u32-strcoll-tests: Likewise.
16358         * modules/unistr/u32-strcpy-tests: Likewise.
16359         * modules/unistr/u32-strdup-tests: Likewise.
16360         * modules/unistr/u32-strlen-tests: Likewise.
16361         * modules/unistr/u32-strmblen-tests: Likewise.
16362         * modules/unistr/u32-strmbtouc-tests: Likewise.
16363         * modules/unistr/u32-strncat-tests: Likewise.
16364         * modules/unistr/u32-strncmp-tests: Likewise.
16365         * modules/unistr/u32-strncpy-tests: Likewise.
16366         * modules/unistr/u32-strnlen-tests: Likewise.
16367         * modules/unistr/u32-to-u16-tests: Likewise.
16368         * modules/unistr/u32-to-u8-tests: Likewise.
16369         * modules/unistr/u32-uctomb-tests: Likewise.
16370         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
16371         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
16372         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
16373         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
16374         * modules/uniwidth/u8-strwidth-tests: Likewise.
16375         * modules/uniwidth/u8-width-tests: Likewise.
16376         * modules/uniwidth/u16-strwidth-tests: Likewise.
16377         * modules/uniwidth/u16-width-tests: Likewise.
16378         * modules/uniwidth/u32-strwidth-tests: Likewise.
16379         * modules/uniwidth/u32-width-tests: Likewise.
16380         * modules/uniwidth/width-tests: Likewise.
16381
16382 2010-05-18  Richard Jones  <rjones@redhat.com>
16383
16384         doc: users.txt: list hivex
16385         * users.txt: Add hivex.
16386
16387 2010-05-18  Richard Jones  <rjones@redhat.com>
16388
16389         doc: users.txt: list febootstrap
16390         * users.txt: Add febootstrap.
16391
16392 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
16393
16394         bootstrap: fix an error when gnulib is not used as a git submodule
16395         * build-aux/bootstrap (gnulib_path): If its length is zero then
16396         assign "gnulib" to it.
16397         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
16398
16399 2010-05-16  Bruno Haible  <bruno@clisp.org>
16400
16401         Avoid autoconf warnings about AM_ICONV.
16402         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
16403         2.64.
16404
16405 2010-05-16  Bruno Haible  <bruno@clisp.org>
16406
16407         absolute-header: Make the macro usable in more situations.
16408         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
16409         from gl_ABSOLUTE_HEADER.
16410         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
16411
16412 2010-05-16  James Youngman  <jay@gnu.org>
16413
16414         doc: update users.txt
16415         * users.txt: Add CSSC.
16416
16417 2010-05-16  Jim Meyering  <meyering@redhat.com>
16418
16419         init.sh: fix an error in the previous change; add more comments
16420         * tests/init.sh: Compare exit code in loop against 9, not 2.
16421         Patch by Bruno Haible.
16422         Make the two tests more similar by adding an empty "then" clause.
16423         Add comments.
16424
16425         init.sh: avoid unnecessary shell re-exec
16426         * tests/init.sh: Improve the re-exec-required check to first test the
16427         current shell.  If it passes the test, do not search for a shell that
16428         does pass, and do not re-exec.  This test is particularly contorted to
16429         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
16430         of $(...) evokes a syntax error and causes immediate shell exit with
16431         status 2.  Bruno Haible reported that the re-exec made it impossible
16432         to single-step through any init.sh-using script.
16433
16434 2010-05-16  Bruno Haible  <bruno@clisp.org>
16435
16436         Fix collision between gnulib's and libintl's printf replacements.
16437         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
16438         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
16439         (printf): When using GNU C, map the __printf__ function to rpl_printf
16440         via __asm__. When not using GNU C, define rpl_printf instead of
16441         __printf__.
16442         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
16443         commit.
16444         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
16445         commit.
16446         * m4/asm-underscore.m4: New file.
16447         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
16448         * modules/stdio (Files): Add m4/asm-underscore.m4.
16449         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
16450         Reported by Ben Pfaff.
16451
16452 2010-05-16  Bruno Haible  <bruno@clisp.org>
16453
16454         verify: Avoid skipping the test on openSUSE 11.0.
16455         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
16456
16457 2010-05-13  Bruno Haible  <bruno@clisp.org>
16458
16459         Avoid useless warnings from G++.
16460         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
16461         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
16462         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16463
16464 2010-05-11  Jim Meyering  <meyering@redhat.com>
16465
16466         maint.mk: tweak preceding change
16467         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
16468         regexps tighter by anchoring at EOL, and make the new group "shy"
16469         for slightly decreased overhead.
16470
16471 2010-05-11  Eric Blake  <eblake@redhat.com>
16472
16473         maint.mk: gnulib doesn't guarantee NSIG
16474         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
16475
16476 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
16477
16478         test-pwrite.c: Remove unused variable declaration.
16479         * tests/test-pwrite.c (main): Remove read_buf declaration.
16480
16481         Remove useless test-pwrite.sh file.
16482         * tests/test-pwrite.sh: Delete file.
16483         * modules/pwrite-tests: Remove references.
16484         Reported by Bruno Haible.
16485
16486 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
16487
16488         init.sh: fix a typo
16489         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
16490
16491 2010-05-10  Jim Meyering  <meyering@redhat.com>
16492
16493         maint.mk: avoid using a temporary file in the always-defined-macros check
16494         * top/maint.mk (.re-defmac): Remove rule.
16495         (gl_trap_): Remove definition.
16496         (sc_prohibit_always-defined_macros): Rewrite not to create and
16497         depend on a temporary file.  Instead, depend on GNU grep's ability
16498         to read a list of regular expressions from stdin when given "-f -".
16499
16500 2010-05-09  Bruno Haible  <bruno@clisp.org>
16501
16502         Update to GNU gettext 0.18, part 1.
16503         * m4/gettext.m4: Update to GNU gettext 0.18.
16504         * m4/intl.m4: Likewise.
16505         * m4/po.m4: Likewise.
16506         * modules/gettext (Files): Add m4/fcntl-o.m4.
16507         (configure.ac): Require gettext infrastructure from version 0.18.
16508
16509 2010-05-09  Jim Meyering  <meyering@redhat.com>
16510
16511         init.sh: enable MALLOC_PERTURB_
16512         * tests/init.sh: Enable glibc's malloc-perturbing option.
16513
16514         maint.mk: improve sc_cross_check_PATH_usage_in_tests
16515         With my recent change in init.sh from the two-line form:
16516             -#   : ${srcdir=.}
16517             -#   . "$srcdir/init.sh"; path_prepend_ .
16518             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
16519         I noticed that using the one-line form would cause this test
16520         to fail with a false-positive, or to stop working altogether,
16521         depending on whether help-version changed or all the tests did.
16522         * top/maint.mk (_hv_regex): Remove this definition.
16523         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
16524         (_hv_regex_strong): Use a stronger regex to check for conformance.
16525         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
16526         Give a separate diagnostic for lack of conforming use.
16527
16528         maint.mk: prohibit definition of symbols defined by gnulib
16529         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
16530         definition of symbols defined by gnulib.
16531
16532 2010-05-09  Bruno Haible  <bruno@clisp.org>
16533
16534         acl: Avoid test failure on Cygwin-hosted mingw.
16535         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
16536
16537 2010-05-09  Bruno Haible  <bruno@clisp.org>
16538
16539         error: Use system's fcntl function.
16540         * lib/error.c (fcntl): Undefine.
16541
16542 2010-05-09  Jim Meyering  <meyering@redhat.com>
16543
16544         verify: adjust formatting to be more consistent
16545         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
16546         argument-list '('s, and after one comma.
16547
16548 2010-05-09  Bruno Haible  <bruno@clisp.org>
16549
16550         error: More reliable output on mingw.
16551         * lib/error.c: Include <windows.h>.
16552         (is_open): New function.
16553         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
16554         defined.
16555
16556 2010-05-09  Bruno Haible  <bruno@clisp.org>
16557
16558         vasnprintf: Fix syntax errors in libintl build on mingw.
16559         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
16560         pad_ourselves and prec_ourselves after use.
16561
16562 2010-05-08  Bruno Haible  <bruno@clisp.org>
16563
16564         * lib/config.charset: Update comments for Cygwin 1.7.
16565         * lib/localcharset.c: Likewise.
16566
16567 2010-05-07  Jim Meyering  <meyering@redhat.com>
16568
16569         init.sh: improve comments
16570         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
16571         . "${srcdir=.}/init.sh"; path_prepend_ .
16572         Add a note about path_prepend_ and the alternative of using
16573         TESTS_ENVIRONMENT.
16574
16575 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
16576
16577         exclude: Unescape hashed patterns in wildcard mode.
16578         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
16579         to the hash list.
16580         * tests/test-exclude8.sh: New test case.
16581         * modules/exclude-tests: Add new test.
16582
16583 2010-05-05  Eric Blake  <eblake@redhat.com>
16584
16585         verify: automate tests
16586         * modules/verify-tests: New module.
16587         * tests/test-verify.sh: New file.
16588         * tests/test-verify.c: Guard each negative test with a unique id.
16589         Also avoid warning about unused left hand of comma expressions.
16590
16591 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16592
16593         Further improvements to verify.h, suggested by Eric Blake.
16594         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
16595         the GL_* versions, to avoid collision with OpenGL.
16596         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
16597         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
16598         than testing merely whether it's defined.
16599
16600         Modify verify.h to pacify gcc -Wredundant_decls.
16601         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
16602         These use the prefix "GL_" since they're likely to be useful elsewhere.
16603         We may need to break them out into a different .h file.
16604         (__COUNTER__): Define to 0 if the compiler doesn't support it.
16605         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
16606         of verify_function__.
16607
16608 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16609
16610         Tests for module pwrite.
16611         * modules/pwrite-tests: New file.
16612         * tests/test-pwrite.sh: New file.
16613         * tests/test-pwrite.c: New file.
16614
16615         New module pwrite.
16616         * lib/unistd.in.h (pwrite): New declaration.
16617         * lib/pwrite.c: New file, from glibc with modifications.
16618         * m4/pwrite.m4: New file.
16619         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
16620         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
16621         REPLACE_PWRITE.
16622         * modules/pwrite: New file.
16623         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
16624         REPLACE_PWRITE.
16625         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
16626         * doc/posix-functions/pwrite.texi: Mention the new module.
16627
16628 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16629
16630         pread: Update documentation.
16631         * doc/posix-functions/pread.texi: Mention the 'pread' module.
16632
16633 2010-05-04  Eric Blake  <eblake@redhat.com>
16634
16635         docs: update cygwin progress
16636         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
16637         this bug.
16638         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
16639         Added in cygwin 1.7.2.
16640         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
16641         Likewise.
16642         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
16643         Likewise.
16644         * doc/glibc-functions/dup3.texi (dup3): Likewise.
16645         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16646         * doc/glibc-functions/accept4.texi (accept4): Likewise.
16647         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
16648         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
16649         Mention nproc module.
16650         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
16651         bug in cygwin 1.7.5 addition.
16652         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
16653         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
16654         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
16655         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
16656         1.7.5.
16657         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
16658         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
16659         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
16660         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
16661         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
16662         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
16663         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
16664         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
16665         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
16666         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
16667         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
16668         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
16669         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
16670         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
16671         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
16672         Likewise.
16673         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
16674         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
16675         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
16676         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
16677         Likewise.
16678         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
16679         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
16680         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
16681         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
16682         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
16683         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
16684         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
16685         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
16686         Likewise.
16687         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
16688         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
16689         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
16690         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
16691         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
16692         Likewise.
16693         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
16694         Likewise.
16695         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
16696         Likewise.
16697         * doc/glibc-functions/xdrrec_endofrecord.texi
16698         (xdrrec_endofrecord): Likewise.
16699         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
16700         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
16701         Likewise.
16702         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
16703         Likewise.
16704
16705 2010-05-04  Jim Meyering  <meyering@redhat.com>
16706
16707         gendocs.sh: make its "-s FILE" option more useful
16708         * build-aux/gendocs.sh: When honoring the -s FILE option, update
16709         $PACKAGE to reflect the probably-different basename of "FILE".
16710
16711 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
16712
16713         bootstrap: don't ignore download_po_files failure
16714         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
16715         failure.
16716
16717 2010-05-03  Jim Meyering  <meyering@redhat.com>
16718
16719         maint.mk: allow to pass options to gendocs.sh
16720         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
16721         (gendocs_options_): New overridable variable.
16722
16723         gnu-web-doc-update: don't ignore configure or build failure
16724         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
16725
16726         announce-gen: backslash-escape '@'s in --help output
16727         * build-aux/announce-gen: Fix syntax errors.
16728
16729         maint.mk, announce-gen: allow project-specific announcement mail headers
16730         * top/maint.mk (translation_project_): Define default.
16731         (announcement_Cc_, announcement_mail_headers_): Likewise.
16732         (announcement): Invoke announce-gen with new --mail-headers option.
16733         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
16734
16735         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
16736         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
16737         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
16738         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
16739         line in the "err2" output file when running "make check" in verbose
16740         mode (i.e., with set -x enabled).
16741
16742 2010-05-03  Bruno Haible  <bruno@clisp.org>
16743
16744         wctob: Fix for weird platforms.
16745         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
16746         argument value.
16747
16748 2010-05-03  Jim Meyering  <meyering@redhat.com>
16749
16750         maint.mk: prohibit unwarranted use of <strings.h>
16751         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
16752         strings.h in a file that does not also use strcasecmp, strncasecmp,
16753         ffs or ffsll.
16754
16755         maint.mk: remove obsolete comments
16756         * top/maint.mk: Remove stale, commented-out rules.
16757
16758 2010-05-02  Bruno Haible  <bruno@clisp.org>
16759
16760         wcwidth: Declare also when it's aliased.
16761         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
16762         macro.
16763
16764 2010-05-02  Bruno Haible  <bruno@clisp.org>
16765
16766         Fix regression from 2010-04-25.
16767         * gnulib-tool (func_modules_transitive_closure): Check the status of
16768         all modules, not only of the tests that are of the form foo-tests where
16769         foo is a module.
16770
16771 2010-05-02  Bruno Haible  <bruno@clisp.org>
16772
16773         wctob: Work around nasty Cygwin 1.7.2 bug.
16774         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
16775         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
16776
16777 2010-05-01  Bruno Haible  <bruno@clisp.org>
16778
16779         fpurge: Sharper test.
16780         * tests/test-fpurge.c (main): Add one more ftell check.
16781         * modules/fpurge-tests (Depends-on): Add ftell.
16782         Suggested by Eric Blake.
16783
16784 2010-05-01  Bruno Haible  <bruno@clisp.org>
16785
16786         ftello: Another test.
16787         * tests/test-ftello3.c: New file.
16788         * modules/ftello-tests (Files): Add it.
16789         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16790         MOSTLYCLEANFILES.
16791
16792         ftell: Another test.
16793         * tests/test-ftell3.c: New file.
16794         * modules/ftell-tests (Files): Add it.
16795         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16796         MOSTLYCLEANFILES.
16797
16798 2010-05-01  Bruno Haible  <bruno@clisp.org>
16799
16800         ftell, ftello: Work around Solaris bug.
16801         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
16802         * lib/ftello.c: Include stdio-impl.h.
16803         (ftello): On Solaris, when _IOWRT is set, compute the result without
16804         looking at _IOREAD.
16805         * modules/ftello (Files): Add lib/stdio-impl.h.
16806         * doc/posix-functions/ftell.texi: Mention Solaris bug.
16807         * doc/posix-functions/ftello.texi: Likewise.
16808         Reported by Eric Blake.
16809
16810 2010-05-01  Bruno Haible  <bruno@clisp.org>
16811
16812         freading: Adapt to special meaning of _IOREAD flag on Solaris.
16813         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
16814         the _IOWRT flag is also set.
16815
16816 2010-05-01  Bruno Haible  <bruno@clisp.org>
16817
16818         Fix doc about a HP-UX stdio bug.
16819         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
16820         * doc/posix-functions/ftello.texi: Likewise.
16821
16822 2010-05-01  Bruno Haible  <bruno@clisp.org>
16823
16824         lseek test: Fix failure on Solaris.
16825         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
16826         output.
16827
16828 2010-04-30  Jim Meyering  <meyering@redhat.com>
16829
16830         bootstrap: don't ignore failure to generate po*/Makevars
16831         * build-aux/bootstrap (with_gettext): Don't ignore failure
16832         to create po/Makevars or runtime-po/Makevars.
16833
16834 2010-04-29  Eric Blake  <eblake@redhat.com>
16835
16836         headers: relax license to LGPLv2+
16837         * modules/fcntl-h (License): Relax license.
16838         * modules/getopt-posix (License): Likewise.
16839         * modules/locale (License): Likewise.
16840         * modules/math (License): Likewise.
16841         * modules/pty (License): Likewise.
16842         * modules/sched (License): Likewise.
16843         * modules/search (License): Likewise.
16844         * modules/spawn (License): Likewise.
16845         * modules/stdarg (License): Likewise.
16846         * modules/sysexits (License): Likewise.
16847
16848 2010-04-29  Jim Meyering  <meyering@redhat.com>
16849
16850         inttypes: relax license to LGPLv2+
16851         * modules/inttypes (License): Relax license.
16852
16853 2010-04-29  Simon Josefsson  <simon@josefsson.org>
16854
16855         * top/maint.mk (indent): Run twice to produce idempotent results.
16856
16857 2010-04-28  Bruno Haible  <bruno@clisp.org>
16858
16859         getdate: Generate getdate.c in the source directory.
16860         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
16861         MOSTLYCLEANFILES.
16862         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
16863
16864 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
16865
16866         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
16867         is not declared as a const *; avoid warnings in that case.
16868
16869 2010-04-28  Eric Blake  <eblake@redhat.com>
16870
16871         canonicalize-lgpl: avoid compiler warning
16872         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
16873         declaration' / 'extraneous semicolon' warning with some compilers.
16874         Reported by Andreas Gruenbacher.
16875
16876 2010-04-28  Jim Meyering  <meyering@redhat.com>
16877
16878         init.sh: ensure a more reliable exit status when exiting via trap
16879         * tests/init.sh (setup_): Don't rely on $? in signal handler.
16880         Inspired by patches from Dmitry V. Levin.
16881         Also trap on signal 3 (SIGQUIT).
16882
16883 2010-04-27  Bruno Haible  <bruno@clisp.org>
16884
16885         Update doc about utimes().
16886         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
16887         'utimens' module.
16888         Reported by Andreas Gruenbacher <agruen@suse.de>.
16889
16890 2010-04-27  Eric Blake  <eblake@redhat.com>
16891
16892         full-read, full-write: relax license
16893         * modules/full-read (License): Drop to LGPLv2+.
16894         * modules/full-write (License): Likewise.
16895         * modules/safe-read (License): Likewise.
16896         * modules/safe-write (License): Likewise.
16897
16898         pthread: mention library for linking
16899         * modules/pthread (Link): Mention $(LIB_PTHREAD).
16900
16901 2010-04-27  Jim Meyering  <meyering@redhat.com>
16902
16903         maint.mk: fix a bug introduced in last change
16904         * top/maint.mk (gl_assured_headers_): Now that all names are on
16905         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
16906         is not anchored to end of word, it should be adequate.
16907
16908         maint.mk: avoid side-effect in latest syntax-check
16909         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
16910         to run commands via $(shell...), and hence to incur cost only when
16911         the new rule is actually run.
16912
16913         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
16914         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
16915         and use that to create a regexp used to detect all #if HAVE_..._H uses.
16916         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
16917         (gl_assured_headers_, az_, AZ_): Define.
16918         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
16919
16920 2010-04-26  Jim Meyering  <jim@meyering.net>
16921             Bruno Haible  <bruno@clisp.org>
16922
16923         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
16924         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
16925         Prompted by an exchange with Gilles Espinasse.
16926
16927 2010-04-26  Jim Meyering  <meyering@redhat.com>
16928
16929         git-version-gen: aesthetic tweak
16930         * build-aux/git-version-gen: Use "$nl" rather than a literal,
16931         so that the command remains on a single line.
16932
16933 2010-04-26  Eric Blake  <eblake@redhat.com>
16934
16935         git-version-gen: allow use on EBCDIC hosts
16936         * build-aux/git-version-gen (dirty): Use literal rather than tying
16937         ourselves to ascii.
16938         Reported by Steve Goetze.
16939
16940 2010-04-25  Bruno Haible  <bruno@clisp.org>
16941
16942         netdb: Add support for GNULIB_POSIXCHECK.
16943         * lib/netdb.in.h: Include warn-on-use.h.
16944         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
16945         functions are used when GNULIB_POSIXCHECK is defined and the
16946         getaddrinfo module is not in use.
16947         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
16948         freeaddrinfo, gai_strerror, getnameinfo are declared.
16949         * modules/netdb (Depends-on): Add warn-on-use.
16950         (Makefile.am): Include warn-on-use.h in netdb.h.
16951
16952 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
16953
16954         build: avoid "make check" failure without .git/ directory
16955         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
16956         there is no .git/ directory.
16957
16958 2010-04-25  Bruno Haible  <bruno@clisp.org>
16959
16960         ptsname: Fix misuse of ttyname_r.
16961         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
16962         of errno.
16963
16964 2010-04-25  Bruno Haible  <bruno@clisp.org>
16965
16966         ttyname_r: Make it work on Solaris 10.
16967         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
16968         if the system function has the POSIX declaration. Test whether the
16969         function fails if the buffer is less than 128 bytes large.
16970         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
16971         system's ttyname_r function. Provide a reasonably large buffer.
16972         * modules/ttyname_r (Depends-on): Add extensions.
16973         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
16974
16975 2010-04-25  Bruno Haible  <bruno@clisp.org>
16976
16977         Use the 'extensions' module for some more functions on Solaris.
16978         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
16979         module.
16980         * doc/posix-functions/ctime_r.texi: Likewise.
16981         * doc/posix-functions/getgrgid_r.texi: Likewise.
16982         * doc/posix-functions/getgrnam_r.texi: Likewise.
16983         * doc/posix-functions/getpwnam_r.texi: Likewise.
16984         * doc/posix-functions/getpwuid_r.texi: Likewise.
16985         * doc/posix-functions/readdir_r.texi: Likewise.
16986         * doc/posix-functions/sigwait.texi: Likewise.
16987         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
16988         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
16989
16990 2010-04-25  Bruno Haible  <bruno@clisp.org>
16991
16992         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
16993         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
16994         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
16995         * lib/ttyname_r.c: Include <limits.h>.
16996         (ttyname_r): Define using the system's ttyname_r function, if it exists
16997         and not on Solaris.
16998         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
16999         set.
17000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
17001         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
17002         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
17003         Reported by Simon Josefsson.
17004
17005 2010-04-25  Bruno Haible  <bruno@clisp.org>
17006
17007         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
17008         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
17009         * doc/posix-functions/ctime_r.texi: Likewise.
17010         * doc/posix-functions/getgrgid_r.texi: Likewise.
17011         * doc/posix-functions/getgrnam_r.texi: Likewise.
17012         * doc/posix-functions/getlogin_r.texi: Likewise.
17013         * doc/posix-functions/getpwnam_r.texi: Likewise.
17014         * doc/posix-functions/getpwuid_r.texi: Likewise.
17015         * doc/posix-functions/readdir_r.texi: Likewise.
17016         * doc/posix-functions/sigwait.texi: Likewise.
17017         * doc/posix-functions/ttyname_r.texi: Likewise.
17018         Reported by Simon Josefsson.
17019
17020 2010-04-25  Bruno Haible  <bruno@clisp.org>
17021
17022         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
17023         * gnulib-tool (func_usage): Document that --with-*-tests options apply
17024         also to --create-testdir.
17025         (func_acceptable): Don't consider the status of *-tests modules here.
17026         (func_modules_transitive_closure): Consider it here, before including a
17027         test module.
17028         (func_import, func_create_testdir): Set inc_all_direct_tests,
17029         inc_all_indirect_tests.
17030         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
17031         --create-testdir and --create-megatestdir.
17032
17033 2010-04-25  Bruno Haible  <bruno@clisp.org>
17034
17035         gnulib-tool: Add --without-*-tests options.
17036         * gnulib-tool (func_usage): Document the --without-*-tests options.
17037         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
17038         excl_unportable_tests): New variables.
17039         Fail if they are specified with --import or --update.
17040         (func_acceptable): Respect the excl_*_tests variables.
17041         (func_import): Set the excl_*_tests variables to empty.
17042
17043 2010-04-25  Simon Josefsson  <simon@josefsson.org>
17044             Bruno Haible  <bruno@clisp.org>
17045
17046         Work around a MacOS X 10.4 bug with openpty.
17047         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
17048         * tests/test-openpty.c (main): Close the master side explicitly.
17049
17050 2010-04-25  Bruno Haible  <bruno@clisp.org>
17051
17052         strnlen: Fix a C++ test error on MacOS X and Solaris.
17053         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
17054         the function is not declared.
17055         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
17056         Simon Josefsson.
17057
17058 2010-04-24  Bruno Haible  <bruno@clisp.org>
17059
17060         Avoid a gcc warning.
17061         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
17062         of correct type for %08lx directive.
17063         Reported by Eric Blake.
17064
17065 2010-04-24  Bruno Haible  <bruno@clisp.org>
17066
17067         vasnprintf: Correct errno value in case of out-of-memory.
17068         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
17069         or sprintf. Use the errno value from SNPRINTF or sprintf.
17070         Reported by Ian Beckwith <ianb@erislabs.net>.
17071
17072 2010-04-24  Bruno Haible  <bruno@clisp.org>
17073
17074         ansi-c++-opt: Find correct compiler when cross-compiling.
17075         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
17076         AC_CHECK_PROGS.
17077         Reported by Simon Josefsson.
17078
17079 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
17080
17081         vc-list-files: Add support for subversion
17082         * build-aux/vc-list-files: Use "svn list" to generate the list of
17083         files controlled by subversion.
17084
17085 2010-04-23  Jim Meyering  <meyering@redhat.com>
17086
17087         vc-list-files tests: convert to use init.sh
17088         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
17089         path_prepend_.
17090         Use Exit, not exit.
17091         Use skip_ rather than open coding it.
17092         Remove trap set-up and compare definitions.
17093         * tests/test-vc-list-files-git.sh: Likewise.
17094         * modules/vc-list-files-tests (Files): Add tests/init.sh.
17095
17096 2010-04-22  Simon Josefsson  <simon@josefsson.org>
17097
17098         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
17099         backup files.
17100
17101 2010-04-21  Simon Josefsson  <simon@josefsson.org>
17102
17103         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
17104
17105 2010-04-20  Eric Blake  <eblake@redhat.com>
17106
17107         tests: be robust to ignored SIGPIPE
17108         * tests/test-select-in.sh: Consume all output.
17109         * tests/test-lseek.sh: Check correct exit status, while avoiding
17110         EPIPE.
17111
17112 2010-04-20  Simon Josefsson  <simon@josefsson.org>
17113             Bruno Haible  <bruno@clisp.org>
17114
17115         visibility: Don't use -fvisibility if it leads to a warning.
17116         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
17117         yes, don't pretend that visibility works if it leads to a warning.
17118         Reported by Mike Gran <spk121@yahoo.com>.
17119
17120 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
17121
17122         * build-aux/bootstrap: Use "git -h" for testing for supported options
17123         instead of "git --help".  The short-form option only shows a summary,
17124         and doesn't layout the full man page.  Grep for the full option name
17125         in the summary, too.
17126
17127 2010-04-19  Bruno Haible  <bruno@clisp.org>
17128
17129         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
17130         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
17131         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
17132         mention of RELOCATABLE_STRIP.
17133         Reported by Sylvain Beucler <beuc@beuc.net>.
17134
17135 2010-04-19  Bruno Haible  <bruno@clisp.org>
17136
17137         * lib/diffseq.h: Fix typo in comment.
17138         Reported by Eric Blake.
17139
17140 2010-04-19  Bruno Haible  <bruno@clisp.org>
17141
17142         ioctl: Move autoconf macro to a .m4 file.
17143         * m4/ioctl.m4: New file, extracted from modules/ioctl.
17144         * modules/ioctl (Files): Add it.
17145         (configure.ac): Simply invoke gl_FUNC_IOCTL.
17146         Reported by Ian Beckwith <ianb@erislabs.net>.
17147
17148 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
17149             Bruno Haible  <bruno@clisp.org>
17150
17151         diffseq: Accommodate use-case with abstract arrays.
17152         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
17153         is not defined.
17154         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
17155         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
17156
17157 2010-04-18  Bruno Haible  <bruno@clisp.org>
17158
17159         * doc/posix-headers/stdbool.texi: More precise wording.
17160
17161 2010-04-17  Jim Meyering  <meyering@redhat.com>
17162
17163         maint.mk: use gnu-style indentation in an embedded perl script
17164         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
17165         Rename variable: s/two/last_two_bytes/
17166
17167 2010-04-16  Eric Blake  <eblake@redhat.com>
17168
17169         test-stdbool: skip test that fails with Solaris CC
17170         * tests/test-stdbool.c (f): Skip test that causes compilation
17171         error under buggy C++ compiler.
17172         * lib/stdbool.in.h: Document the limitation.
17173         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
17174
17175         setenv: allow compilation with C++
17176         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
17177         register keyword.
17178
17179         stdint: allow test to pass with C++
17180         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
17181
17182         getopt: allow compilation with C++
17183         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
17184         struct.
17185         * lib/getopt.c (_getopt_internal_r): Use correct type.
17186         Reported by Dagobert Michelson, via Joel E. Denny.
17187
17188 2010-04-16  Bruno Haible  <bruno@clisp.org>
17189
17190         Override netdb.h always.
17191         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
17192         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
17193         Reported by Ludovic Courtès <ludo@gnu.org>.
17194
17195 2010-04-15  Bruno Haible  <bruno@clisp.org>
17196
17197         openpty: Fix mistake from 2010-03-21.
17198         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
17199         Reported by Simon Josefsson.
17200
17201 2010-04-15  Eric Blake  <eblake@redhat.com>
17202
17203         test-forkpty: fix expected signature
17204         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
17205         Reported by Simon Josefsson.
17206
17207 2010-04-15  Jim Meyering  <meyering@redhat.com>
17208
17209         maint.mk: texinfo_suffix_re_: correct the default regexp
17210         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
17211
17212         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
17213         make it configurable via texinfo_suffix_re_.
17214
17215 2010-04-14  Eric Blake  <eblake@redhat.com>
17216
17217         strtok_r: relax license to LGPLv2+
17218         * modules/strtok_r (License): Relax license.
17219         Reported by Matthias Bolte.
17220
17221 2010-04-14  Simon Josefsson  <simon@josefsson.org>
17222
17223         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
17224         version 1.4.4 by default instead of requiring the libgcrypt
17225         version used during build.  This makes it possible to use the
17226         application with older but still binary compatible libgcrypt
17227         versions.
17228
17229 2010-04-13  Eric Blake  <eblake@redhat.com>
17230
17231         getopt-gnu: match recent glibc fixes and posix ruling
17232         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
17233         '+' handling, when requesting extensions.
17234         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
17235         'W;' handling.
17236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
17237         * doc/posix-functions/getopt.texi (getopt): Document this.
17238         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17239         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17240         Likewise.
17241
17242         getopt: merge bug fixes from glibc
17243         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
17244         diagnostics.  Honor '+:' correctly.  Reject ';'.
17245
17246         getopt-posix: detect MacOS bug
17247         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
17248         optind when missing a required argument.
17249         * doc/posix-functions/getopt.texi (getopt): Document the bug.
17250         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17251         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17252         Likewise.
17253
17254         getopt-posix: avoid spurious failure on Solaris
17255         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
17256         an indicator that setting optind=1 is sufficient for reset.
17257
17258         getopt-posix: avoid spurious failure on FreeBSD
17259         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
17260         in POSIX mode, since the m4 test uses it.
17261
17262         gnulib-tool: silence warning on BSD sh
17263         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
17264
17265 2010-04-13  Jim Meyering  <meyering@redhat.com>
17266
17267         doc: users.txt: GNU patch now uses gnulib
17268         * users.txt: Add patch.
17269
17270 2010-04-12  Jim Meyering  <meyering@redhat.com>
17271
17272         maint.mk: generate more concise timing data for syntax-check rules
17273         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
17274         " done" from each line that reports a syntax-check test duration.
17275
17276 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
17277
17278         git-version-gen: use "git update-index..." rather than "git status"
17279         * build-aux/git-version-gen: Use git update-index --refresh, not
17280         "git status".  With some versions of git, "git status" would fail
17281         to update the index and result in an unwarranted "-dirty" suffix.
17282
17283 2010-04-11  Jim Meyering  <meyering@redhat.com>
17284
17285         openat: correct formatting (no semantic change)
17286         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
17287         Suggested by Bruno Haible.
17288
17289 2010-04-11  Bruno Haible  <bruno@clisp.org>
17290
17291         Stricter declaration checking in testdirs.
17292         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17293         If for_tests is true, augment AM_CPPFLAGS to define
17294         GNULIB_STRICT_CHECKING.
17295         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
17296         GNULIB_STRICT_CHECKING is defined, verify that the function is
17297         declared.
17298
17299 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
17300             Bruno Haible  <bruno@clisp.org>
17301
17302         libunistring: Improve configure output.
17303         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
17304         Don't say "consider installing GNU libunistring" when checking again
17305         with libiconv.
17306
17307 2010-04-11  Bruno Haible  <bruno@clisp.org>
17308
17309         libunistring: Correct value of $LTLIBUNISTRING.
17310         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
17311         correct the value of $LTLIBUNISTRING.
17312
17313 2010-04-11  Bruno Haible  <bruno@clisp.org>
17314
17315         havelib: Add static libraries to LIBS in the right order.
17316         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
17317         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
17318
17319 2010-04-11  Bruno Haible  <bruno@clisp.org>
17320
17321         libunistring: Detect libunistring also when it depends on libiconv.
17322         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
17323         the second AC_LIB_HAVE_LINKFLAGS invocation.
17324
17325 2010-04-11  James Youngman  <jay@gnu.org>
17326
17327         close-stream: declare local scalars to be "const"
17328         * lib/close-stream.c (close_stream): Make boolean variables const
17329         to document the fact that we set but do not change them.
17330
17331 2010-04-11  Bruno Haible  <bruno@clisp.org>
17332
17333         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
17334
17335 2010-04-11  Jim Meyering  <meyering@redhat.com>
17336
17337         maint.mk: don't include dist-check.mk
17338         * top/maint.mk: Remove bogus include directive.
17339
17340         maint.mk: improve empty-line-at-EOF check
17341         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
17342         solution, rather than tail+Perl-based one.  The latter would read
17343         a few kilobytes from the end of each file, and did not handle empty
17344         files properly.
17345
17346         maint.mk: print the elapsed time for each syntax-check rule
17347         * top/maint.mk (sc_m_rules_): Save start time in a file.
17348         (sc_z_rules_): New rules: remove temp file and print elapsed time.
17349         (local-check): Interpose the .z rules
17350
17351 2010-04-11  Jim Meyering  <meyering@redhat.com>
17352
17353         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
17354         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
17355         empty file with one that ends in an empty line.
17356
17357 2010-04-10  Bruno Haible  <bruno@clisp.org>
17358
17359         mkdir: Make it work on mingw64.
17360         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
17361         * lib/mkdir.c: Update comment.
17362         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
17363
17364 2010-04-10  Bruno Haible  <bruno@clisp.org>
17365
17366         Don't override improved macro from newer autoconf.
17367         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
17368         autoconf >= 2.62.
17369         Reported by Joel E. Denny <jdenny@clemson.edu>.
17370
17371 2010-04-10  Jim Meyering  <meyering@redhat.com>
17372
17373         maint.mk: new syntax-check rule: prohibit empty lines at end of file
17374         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
17375
17376         maint.mk: correct a diagnostic
17377         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
17378         in diagnostic; now use $prohibit.
17379
17380 2010-04-10  Bruno Haible  <address@hidden>
17381
17382         fchownat: Fix a C++ test error on Solaris 8.
17383         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
17384         the function does not exist.
17385
17386 2010-04-10  Bruno Haible  <bruno@clisp.org>
17387
17388         vasnprintf: Add more tests.
17389         * tests/test-vasnprintf-posix.c: Include <errno.h>.
17390         (test_function): Test converting an invalid wide string.
17391
17392         vasnprintf: Correct handling of unconvertible wide string arguments.
17393         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
17394         VASNPRINTF.
17395         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
17396         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
17397         smaller than the expected maximum need for the directive. Set errno to
17398         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
17399         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
17400         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
17401         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
17402         * modules/vasnprintf (Files): Add m4/printf.m4.
17403         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17404
17405 2010-04-10  Bruno Haible  <bruno@clisp.org>
17406
17407         vasnprintf: Fix crash in %ls directive.
17408         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
17409         string is passed as argument to %ls, with no precision and no width.
17410         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17411
17412 2010-04-10  Bruno Haible  <bruno@clisp.org>
17413
17414         vasnprintf: Fix multiple test failures on mingw.
17415         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
17416         _snprintf, or snwprintf, not _snwprintf.
17417
17418 2010-04-10  Bruno Haible  <bruno@clisp.org>
17419
17420         write: Fix a C++ test error on mingw.
17421         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
17422
17423 2010-04-10  Bruno Haible  <bruno@clisp.org>
17424
17425         vasnprintf test: Reduce code duplication.
17426         * tests/test-vasnprintf.c (test_function): New function, extracted from
17427         test_vasnprintf.
17428         (test_vasnprintf, test_asnprintf): Invoke it.
17429
17430 2010-04-10  Bruno Haible  <bruno@clisp.org>
17431
17432         strnlen: Fix warning in C++ mode on MacOS X.
17433         * lib/string.in.h (strnlen): Use the modern idiom.
17434         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
17435         defining strnlen as a macro already in <config.h>.
17436         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17437         REPLACE_STRNLEN.
17438         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
17439         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17440
17441 2010-04-08  James Youngman  <jay@gnu.org>
17442
17443         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
17444         the example.
17445
17446 2010-04-09  Jim Meyering  <meyering@redhat.com>
17447
17448         maint.mk: print better diagnostic when there is no $(_hv_file)
17449         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
17450         announce that when $(_hv_file) (aka help-version) does not exist.
17451
17452         init.sh: run tr in the "C" locale to avoid multibyte interpretation
17453         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
17454         not try to interpret its random input bytes.  Jarno Rajahalme reported
17455         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
17456         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
17457         (mktempd_): Likewise, just in case.
17458
17459         ftruncate: add two years to projected module removal date: 2012
17460         * m4/ftruncate.m4: Adjust comments.
17461
17462         ftruncate: mark module as obsolete; even MinGW provides it, now
17463         * modules/ftruncate (Status): Obsolete.
17464         (Notice): Say that.
17465         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
17466         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
17467
17468 2010-04-08  Bruno Haible  <bruno@clisp.org>
17469
17470         Fix side effects from tests-related modules.
17471         * modules/dprintf-posix (Comment): New section.
17472         * modules/fprintf-posix (Comment): Likewise.
17473         * modules/obstack-printf-posix (Comment): Likewise.
17474         * modules/printf-posix (Comment): Likewise.
17475         * modules/snprintf-posix (Comment): Likewise.
17476         * modules/sprintf-posix (Comment): Likewise.
17477         * modules/vasnprintf-posix (Comment): Likewise.
17478         * modules/vasprintf-posix (Comment): Likewise.
17479         * modules/vdprintf-posix (Comment): Likewise.
17480         * modules/vfprintf-posix (Comment): Likewise.
17481         * modules/vprintf-posix (Comment): Likewise.
17482         * modules/vsnprintf-posix (Comment): Likewise.
17483         * modules/vsprintf-posix (Comment): Likewise.
17484         * modules/xprintf-posix (Comment): Likewise.
17485         * modules/xvasprintf-posix (Comment): Likewise.
17486         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
17487         * modules/floorf-tests (Depends-on): Likewise.
17488         * modules/round-tests (Depends-on): Likewise.
17489         * modules/roundf-tests (Depends-on): Likewise.
17490         * modules/trunc-tests (Depends-on): Likewise.
17491         * modules/truncf-tests (Depends-on): Likewise.
17492         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
17493         'fprintf-posix' module is not present.
17494         * tests/test-floorf2.c (check): Likewise.
17495         * tests/test-trunc2.c (check): Likewise.
17496         * tests/test-truncf2.c (check): Likewise.
17497         * tests/test-round2.c (equal): Likewise.
17498         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17499
17500 2010-04-07  Karl Berry  <karl@gnu.org>
17501
17502         * config/srclist.txt,
17503         * config/srclistvars.sh,
17504         * config/srclist-update: doc fixes.
17505
17506 2010-04-07  Jim Meyering  <meyering@redhat.com>
17507
17508         maint.mk: add a PATH crosschecking syntax-check rule
17509         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
17510         Useful if you use a test like the one in help-version (coreutils,
17511         diffutils, grep, gzip) that ensures $(VERSION) matches what is
17512         printed by prog --version.
17513
17514 2010-04-06  Bruno Haible  <bruno@clisp.org>
17515
17516         Fix link error on mingw.
17517         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
17518         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
17519
17520 2010-04-06  Bruno Haible  <bruno@clisp.org>
17521
17522         Assume rmdir exists.
17523         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
17524
17525 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
17526
17527         doc: update users.txt
17528         * users.txt: Add gcal.
17529
17530 2010-04-06  Jim Meyering  <meyering@redhat.com>
17531
17532         init.sh: simply unset TMPDIR rather than risking env -i
17533         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
17534         although it probably works fine on all Unix-based systems, some
17535         systems (Cygwin?) cannot tolerate a totally cleared environment.
17536         Suggestion from Eric Blake.
17537
17538 2010-04-06  Jim Meyering  <meyering@redhat.com>
17539
17540         init.sh: portability fix: use env's POSIX-specified -i option not -u
17541         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
17542         than unportable env -u.  Solaris 5.11's env lacks support for -u.
17543
17544 2010-04-05  Bruno Haible  <bruno@clisp.org>
17545
17546         btowc: Work around Cygwin 1.7.2 bug.
17547         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
17548         does not map NUL to 0.
17549         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
17550
17551 2010-04-05  Bruno Haible  <bruno@clisp.org>
17552
17553         Make the multithread modules work on Cygwin 1.7.2.
17554         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
17555         imported symbols can be declared weak, so that it returns "no" on
17556         Cygwin 1.7.2.
17557
17558 2010-04-05  Bruno Haible  <bruno@clisp.org>
17559
17560         Use the module 'strncat'.
17561         * modules/unistr/u8-strncat (Depends-on): Add strncat.
17562
17563         Tests for module 'strncat'.
17564         * modules/strncat-tests: New file.
17565         * tests/test-strncat.c: New file.
17566
17567         New module 'strncat'.
17568         * lib/string.in.h (strncat): New declaration.
17569         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
17570         * m4/strncat.m4: New file, based on m4/memchr.m4.
17571         * modules/strncat: New file.
17572         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
17573         is declared.
17574         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
17575         REPLACE_STRNCAT.
17576         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
17577         REPLACE_STRNCAT.
17578         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
17579         module.
17580         * tests/test-string-c++.cc: Check signature of strncat.
17581
17582 2010-04-05  Jim Meyering  <meyering@redhat.com>
17583
17584         xstrtoumax-tests: convert to use init.sh
17585         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
17586         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17587         Use Exit, not exit.
17588         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17589
17590         xstrtoimax-tests: convert to use init.sh
17591         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
17592         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17593         Use Exit, not exit.
17594         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17595
17596 2010-04-05  Bruno Haible  <bruno@clisp.org>
17597
17598         sys_socket: Avoid #define replacements in C++ mode.
17599         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
17600         warning to the function if possible, rather than #defining the symbol
17601         to a dysfunctional alias.
17602
17603 2010-04-05  Bruno Haible  <bruno@clisp.org>
17604
17605         fseeko: Fix C++ test error on mingw.
17606         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
17607         gl_FUNC_FSEEKO.
17608         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
17609         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
17610         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
17611         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
17612
17613 2010-04-05  Bruno Haible  <bruno@clisp.org>
17614
17615         duplocale: Improve test output.
17616         * tests/test-duplocale.c (main): Print reason for skipped test.
17617
17618 2010-04-05  Bruno Haible  <bruno@clisp.org>
17619
17620         Assume rmdir exists.
17621         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
17622         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
17623
17624 2010-04-05  Bruno Haible  <bruno@clisp.org>
17625
17626         Fix link error on Solaris 8 with cc.
17627         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
17628
17629 2010-04-05  Bruno Haible  <bruno@clisp.org>
17630
17631         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17632         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
17633
17634 2010-04-05  Bruno Haible  <bruno@clisp.org>
17635
17636         vasprintf: Update documentation.
17637         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
17638
17639 2010-04-05  Bruno Haible  <bruno@clisp.org>
17640
17641         ptsname: Improve test.
17642         * tests/test-ptsname.c (main): Also try the various master names of BSD
17643         systems.
17644
17645 2010-04-05  Bruno Haible  <bruno@clisp.org>
17646
17647         memchr: Avoid a possible C++ test error.
17648         * lib/string.in.h (memchr): Provide declaration if function is missing.
17649         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
17650         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
17651         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
17652         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
17653
17654 2010-04-05  Bruno Haible  <bruno@clisp.org>
17655
17656         strtok_r: Improve idiom.
17657         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
17658         AC_LIBOBJ is used.
17659
17660 2010-04-05  Bruno Haible  <bruno@clisp.org>
17661
17662         strdup: Improve idiom.
17663         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
17664         AC_LIBOBJ is used.
17665         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
17666         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
17667         when AC_LIBOBJ is used.
17668
17669 2010-04-05  Bruno Haible  <bruno@clisp.org>
17670
17671         mbsinit, mbrtowc, wcrtomb: Improve idioms.
17672         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
17673         don't set REPLACE_MBSINIT to 1.
17674         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
17675         don't set REPLACE_MBRTOWC to 1.
17676         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
17677         exist, don't set REPLACE_MBSRTOWCS to 1.
17678         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
17679         exist, don't set REPLACE_MBSNRTOWCS to 1.
17680         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
17681         don't set REPLACE_WCRTOMB to 1.
17682         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
17683         exist, don't set REPLACE_WCSRTOMBS to 1.
17684         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
17685         exist, don't set REPLACE_WCSNRTOMBS to 1.
17686
17687 2010-04-05  Bruno Haible  <bruno@clisp.org>
17688
17689         ldexpl: Improve idiom.
17690         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
17691         make sure to set HAVE_DECL_LDEXPL to 0.
17692
17693 2010-04-05  Jim Meyering  <meyering@redhat.com>
17694
17695         xstrtol-tests: convert to use init.sh
17696         * modules/xstrtol-tests (Files): Add tests/init.sh.
17697         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17698         Use Exit, not exit.
17699         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17700
17701         atexit-tests: convert to use init.sh
17702         * modules/atexit-tests (Files): Add tests/init.sh.
17703         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17704         Use Exit, not exit.
17705         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17706
17707         init.sh: fix typo
17708         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
17709
17710         init.sh: make it easier for a test script to write to the tty, ...
17711         when using automake's parallel-tests mode.
17712         * tests/init.sh (stderr_fileno_): Define overridable variable.
17713         (warn_): New function, to use it.
17714         (fail_, skip_, framework_failure_): Use warn_.
17715
17716 2010-04-04  Bruno Haible  <bruno@clisp.org>
17717
17718         btowc: Avoid warning.
17719         * lib/btowc.c: Include <stdlib.h>.
17720         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
17721
17722 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17723             Bruno Haible  <bruno@clisp.org>
17724
17725         wchar: Port to NetBSD 1.5.
17726         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
17727         * lib/wctype.in.h (WEOF): Likewise.
17728
17729 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17730             Bruno Haible  <bruno@clisp.org>
17731
17732         Port extended stdio to NetBSD 1.5.
17733         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
17734         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
17735         older.
17736
17737 2010-04-04  Bruno Haible  <bruno@clisp.org>
17738
17739         string: Remove unused substitution.
17740         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
17741         HAVE_DECL_STRERROR.
17742         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
17743
17744 2010-04-04  Bruno Haible  <bruno@clisp.org>
17745
17746         strtod: Avoid a possible C++ test error.
17747         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
17748         set REPLACE_STRTOD.
17749
17750 2010-04-04  Bruno Haible  <bruno@clisp.org>
17751
17752         strerror: Update documentation.
17753         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
17754
17755 2010-04-04  Bruno Haible  <bruno@clisp.org>
17756
17757         stdio: Fix some C++ test errors on Solaris 8 with GCC.
17758         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
17759         _GL_CXXALIAS_SYS_CAST.
17760
17761 2010-04-04  Bruno Haible  <bruno@clisp.org>
17762
17763         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17764         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
17765         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
17766         REPLACE_FREXPL to 1.
17767         * doc/posix-functions/frexpl.texi: Update documentation.
17768
17769 2010-04-04  Bruno Haible  <bruno@clisp.org>
17770
17771         math: Fix some C++ test errors on Solaris 8 and Cygwin.
17772         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
17773
17774 2010-04-04  Bruno Haible  <bruno@clisp.org>
17775
17776         Implement nanosleep for native Windows.
17777         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
17778
17779 2010-04-04  Bruno Haible  <bruno@clisp.org>
17780
17781         math: Fix some C++ test errors on Solaris 8.
17782         * lib/math.in.h (truncf, trunc): Use simpler idiom.
17783
17784 2010-04-04  Bruno Haible  <bruno@clisp.org>
17785
17786         math: Fix some C++ test errors on Cygwin.
17787         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
17788         truncl): Provide declaration if the system does not have it.
17789         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
17790         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
17791         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
17792         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
17793         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
17794         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
17795         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
17796         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
17797         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
17798         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
17799         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
17800         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
17801         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
17802         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
17803         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
17804         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
17805         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
17806         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17807         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17808         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
17809         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17810         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17811
17812 2010-04-04  Bruno Haible  <bruno@clisp.org>
17813
17814         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
17815         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17816         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
17817         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
17818         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
17819         * m4/isinf.m4 (gl_ISINF): Likewise.
17820         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17821
17822 2010-04-04  Bruno Haible  <bruno@clisp.org>
17823
17824         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
17825         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17826
17827 2010-04-04  Bruno Haible  <bruno@clisp.org>
17828
17829         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
17830         * modules/tmpfile (configure.ac): Update.
17831
17832         tmpfile: Fix C++ test error on mingw.
17833         * lib/stdio.in.h (tmpfile): New declaration.
17834         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
17835         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
17836         * modules/tmpfile (Depends-on): Add stdio.
17837         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17838         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
17839         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
17840         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
17841         REPLACE_TMPFILE.
17842         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
17843
17844 2010-04-04  Bruno Haible  <bruno@clisp.org>
17845
17846         ioctl: Fix C++ test error on mingw.
17847         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
17848         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
17849         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
17850
17851 2010-04-03  Bruno Haible  <bruno@clisp.org>
17852
17853         wcwidth: Fix C++ test error on mingw.
17854         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
17855         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
17856         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
17857
17858 2010-04-03  Bruno Haible  <bruno@clisp.org>
17859
17860         nanosleep: Fix C++ test error on mingw.
17861         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
17862         * lib/time.in.h (nanosleep): Use modern idiom.
17863         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
17864         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
17865         REPLACE_NANOSLEEP to 1.
17866         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
17867         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
17868
17869 2010-04-03  Bruno Haible  <bruno@clisp.org>
17870
17871         strptime: Fix C++ test error on mingw.
17872         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
17873         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
17874         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
17875         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
17876         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
17877         not REPLACE_STRPTIME.
17878         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
17879         REPLACE_STRPTIME.
17880
17881 2010-04-03  Bruno Haible  <bruno@clisp.org>
17882
17883         timegm: Fix C++ test error on mingw.
17884         * lib/time.in.h (timegm): Use modern idiom.
17885         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
17886         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
17887         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
17888         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
17889
17890 2010-04-03  Bruno Haible  <bruno@clisp.org>
17891
17892         timegm: Assume declaration if function exists.
17893         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
17894         if it exists. Don't clobber ac_cv_func_timegm.
17895
17896 2010-04-03  Bruno Haible  <bruno@clisp.org>
17897
17898         time_r: Fix C++ test error on mingw.
17899         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
17900         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
17901         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
17902         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
17903         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
17904
17905 2010-04-03  Bruno Haible  <bruno@clisp.org>
17906
17907         time_r: Minor updates.
17908         * modules/time_r (Description): Mention the provided functions.
17909         * lib/time_r.c: Don't include <string.h>.
17910         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
17911         * doc/posix-functions/localtime_r.texi: Likewise.
17912
17913 2010-04-03  Bruno Haible  <bruno@clisp.org>
17914
17915         time: Fix regression introduced on 2010-03-08.
17916         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
17917         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
17918
17919 2010-04-03  Jim Meyering  <meyering@redhat.com>
17920
17921         maint.mk: don't silently disable project-specific syntax-check rules
17922         * top/maint.mk (_prohibit_regexp): Define, to help people realize
17923         that they need to convert their project-specific syntax-check rules
17924         to use the new _sc_search_regexp.
17925
17926 2010-04-03  Bruno Haible  <bruno@clisp.org>
17927
17928         fchdir: Fix regression introduced on 2010-03-08.
17929         * lib/unistd.in.h (fchdir): Fix declaration.
17930         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
17931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
17932         REPLACE_FCHDIR.
17933         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
17934         REPLACE_FCHDIR.
17935
17936 2010-04-03  Bruno Haible  <bruno@clisp.org>
17937
17938         getpagesize: Fix C++ test error on mingw.
17939         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
17940         system does not declare the function.
17941         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
17942         declared.
17943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17944         HAVE_DECL_GETPAGESIZE.
17945         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
17946
17947 2010-04-03  Bruno Haible  <bruno@clisp.org>
17948
17949         stdio: Make C++ tests work on mingw.
17950         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
17951         does not declare the function.
17952
17953 2010-04-03  Bruno Haible  <bruno@clisp.org>
17954
17955         ftello: Fix C++ test error on mingw.
17956         * lib/stdio.in.h (ftello): Use modern idiom.
17957         * lib/ftello.c (ftello): Renamed from rpl_ftello.
17958         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
17959         is missing and that it needs to be replaced.
17960         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
17961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
17962         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
17963
17964 2010-04-03  Bruno Haible  <bruno@clisp.org>
17965
17966         fseeko: Fix C++ test error on mingw.
17967         * lib/stdio.in.h (fseeko): Use modern idiom.
17968         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
17969         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
17970         is missing and that it needs to be replaced.
17971         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
17972         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
17973         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
17974
17975 2010-04-03  Bruno Haible  <bruno@clisp.org>
17976
17977         mkstemp: Fix C++ test error on mingw.
17978         * lib/stdlib.in.h (mkstemp): Use modern idiom.
17979         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
17980         function is missing and that it needs to be replaced.
17981         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
17982         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
17983
17984 2010-04-03  Bruno Haible  <bruno@clisp.org>
17985
17986         stpncpy: Fix C++ test error on mingw.
17987         * lib/string.in.h (stpncpy): Use modern idiom.
17988         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
17989         function is missing and that it needs to be replaced.
17990         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17991         REPLACE_STPNCPY.
17992         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
17993
17994 2010-04-03  Bruno Haible  <bruno@clisp.org>
17995
17996         sys_stat: Fix C++ test error on mingw.
17997         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
17998         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
17999
18000 2010-04-03  Bruno Haible  <bruno@clisp.org>
18001
18002         pty: Update doc.
18003         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
18004
18005 2010-04-03  Bruno Haible  <bruno@clisp.org>
18006
18007         unistd: Fix C++ test error on mingw.
18008         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
18009
18010 2010-04-03  Bruno Haible  <bruno@clisp.org>
18011
18012         Update doc regarding mingw.
18013         * doc/glibc-functions/openpty.texi: Update regarding mingw.
18014         * doc/glibc-functions/login_tty.texi: Likewise.
18015         * doc/glibc-functions/forkpty.texi: Likewise.
18016
18017 2010-04-03  Bruno Haible  <bruno@clisp.org>
18018
18019         stdlib: Avoid compilation failure of c-strtold on mingw.
18020         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
18021
18022 2010-04-03  Bruno Haible  <bruno@clisp.org>
18023
18024         locale: Make C++ tests work on Cygwin and mingw.
18025         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
18026         cannot provide the function.
18027         Reported by Simon Josefsson.
18028
18029 2010-04-03  Bruno Haible  <bruno@clisp.org>
18030
18031         localename: Port to MacOS X 10.6.
18032         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
18033         memory layout of the locales in MacOS X 10.6 as well.
18034         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
18035
18036 2010-04-02  Bruno Haible  <bruno@clisp.org>
18037
18038         gnulib-tool: Ensure that long-running tests are executed last.
18039         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
18040         running tests after the one for the other tests.
18041
18042 2010-04-02  Bruno Haible  <bruno@clisp.org>
18043
18044         gnulib-tool: Ensure the tests in the main directory are executed first.
18045         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
18046         start with the current directory.
18047
18048 2010-04-02  Bruno Haible  <bruno@clisp.org>
18049
18050         Tests for module 'havelib', moved here from GNU gettext.
18051         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
18052         modifications.
18053         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
18054         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
18055         with modifications.
18056         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
18057         modifications.
18058         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
18059         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
18060         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
18061         with modifications.
18062         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
18063         with modifications.
18064         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
18065         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
18066         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
18067         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
18068         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
18069         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
18070         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
18071         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
18072         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
18073         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
18074         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
18075         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
18076         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
18077         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
18078         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
18079         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
18080         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
18081         with modifications.
18082         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
18083         with modifications.
18084         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
18085         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
18086         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
18087         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
18088         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
18089         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
18090         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
18091         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
18092         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
18093         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
18094         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
18095         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
18096         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
18097         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
18098         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
18099         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
18100         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
18101         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
18102         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
18103         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
18104         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
18105         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
18106         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
18107         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
18108         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
18109         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
18110         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
18111         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
18112         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
18113         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
18114         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
18115         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
18116         * tests/havelib/rpathx/rpathx.c: New file, from
18117         gettext/autoconf-lib-link.
18118         * tests/havelib/rpathx/Makefile.am: New file, from
18119         gettext/autoconf-lib-link.
18120         * tests/havelib/rpathx/configure.ac: New file, from
18121         gettext/autoconf-lib-link with modifications.
18122         * tests/havelib/rpathy/rpathy.c: New file, from
18123         gettext/autoconf-lib-link.
18124         * tests/havelib/rpathy/Makefile.am: New file, from
18125         gettext/autoconf-lib-link.
18126         * tests/havelib/rpathy/configure.ac: New file, from
18127         gettext/autoconf-lib-link with modifications.
18128         * tests/havelib/rpathz/rpathz.c: New file, from
18129         gettext/autoconf-lib-link.
18130         * tests/havelib/rpathz/Makefile.am: New file, from
18131         gettext/autoconf-lib-link.
18132         * tests/havelib/rpathz/configure.ac: New file, from
18133         gettext/autoconf-lib-link with modifications.
18134         * tests/havelib/rpathlx/usex.c: New file, from
18135         gettext/autoconf-lib-link.
18136         * tests/havelib/rpathlx/Makefile.am: New file, from
18137         gettext/autoconf-lib-link.
18138         * tests/havelib/rpathlx/configure.ac: New file, from
18139         gettext/autoconf-lib-link with modifications.
18140         * tests/havelib/rpathly/usey.c: New file, from
18141         gettext/autoconf-lib-link.
18142         * tests/havelib/rpathly/Makefile.am: New file, from
18143         gettext/autoconf-lib-link.
18144         * tests/havelib/rpathly/configure.ac: New file, from
18145         gettext/autoconf-lib-link with modifications.
18146         * tests/havelib/rpathlz/usez.c: New file, from
18147         gettext/autoconf-lib-link.
18148         * tests/havelib/rpathlz/Makefile.am: New file, from
18149         gettext/autoconf-lib-link.
18150         * tests/havelib/rpathlz/configure.ac: New file, from
18151         gettext/autoconf-lib-link with modifications.
18152         * tests/havelib/rpathlyx/usey.c: New file, from
18153         gettext/autoconf-lib-link.
18154         * tests/havelib/rpathlyx/Makefile.am: New file, from
18155         gettext/autoconf-lib-link.
18156         * tests/havelib/rpathlyx/configure.ac: New file, from
18157         gettext/autoconf-lib-link with modifications.
18158         * tests/havelib/rpathlzyx/usez.c: New file, from
18159         gettext/autoconf-lib-link.
18160         * tests/havelib/rpathlzyx/Makefile.am: New file, from
18161         gettext/autoconf-lib-link.
18162         * tests/havelib/rpathlzyx/configure.ac: New file, from
18163         gettext/autoconf-lib-link with modifications.
18164         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
18165         with modifications.
18166
18167 2010-04-02  Bruno Haible  <bruno@clisp.org>
18168
18169         gnulib-tool: Create distributed built sources also for the tests.
18170         * gnulib-tool (func_create_testdir): Also generate distributed built
18171         sources in the tests directory.
18172
18173 2010-04-02  Bruno Haible  <bruno@clisp.org>
18174
18175         gnulib-tool: Obey user's environment variables.
18176         * gnulib-tool (func_create_testdir): When creating built sources,
18177         respect the environment variables for autoconf, automake, etc. given by
18178         the user.
18179
18180 2010-04-02  Bruno Haible  <bruno@clisp.org>
18181
18182         gnulib-tool: Provide the value of --m4-base to modules.
18183         * gnulib-tool (func_import, func_create_testdir): Emit a definition
18184         of gl_m4_base.
18185
18186 2010-04-02  Eric Blake  <eblake@redhat.com>
18187
18188         maint.mk: fix some fallout
18189         * NEWS: Document the incompatible change, and its effect on cfg.mk.
18190         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
18191
18192 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
18193
18194         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
18195         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
18196         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
18197         (sc_cast_of_x_alloc_return_value): Likewise.
18198         (sc_cast_of_alloca_return_value): Likewise.
18199         (sc_space_tab): Likewise.
18200         (sc_prohibit_atoi_atof): Likewise.
18201         (sc_prohibit_magic_number_exit): Likewise.
18202         (sc_error_exit_success): Likewise.
18203         (sc_file_system): Likewise.
18204         (sc_prohibit_have_config_h): Likewise.
18205         (sc_require_config_h): Likewise.
18206         (sc_prohibit_HAVE_MBRTOWC): Likewise.
18207         (sc_obsolete_symbols): Likewise.
18208         (sc_changelog): Likewise.
18209         (sc_program_name): Likewise.
18210         (sc_the_the): Likewise.
18211         (sc_trailing_blank): Likewise.
18212         (sc_two_space_separator_in_usage): Likewise.
18213         (sc_useless_cpp_parens): Likewise.
18214         (sc_GPL_version): Likewise.
18215         (sc_GFDL_version): Likewise.
18216         (sc_texinfo_acronym): Likewise.
18217         (sc_prohibit_cvs_keyword): Likewise.
18218         (sc_prohibit_stat_st_blocks): Likewise.
18219         (sc_prohibit_S_IS_definition): Likewise.
18220         (sc_redundant_const): Likewise.
18221         (sc_makefile_TAB_only_indentation): Likewise.
18222         (sc_m4_quote_check): Likewise.
18223         (sc_makefile_path_separator_check): Likewise.
18224         (sc_copyright_check): Likewise.
18225         (sc_Wundef_boolean): Likewise.
18226         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18227
18228         maint.mk: match 0 or more whitespace-before-function-call '('
18229         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
18230         that have zero or two-and-more spaces between the function name
18231         and the open parenthesis.
18232         (sc_error_message_warn_fatal): Likewise.
18233         (sc_error_message_uppercase): Likewise.
18234         (sc_error_message_period): Likewise.
18235
18236 2010-03-31  Eric Blake  <eblake@redhat.com>
18237
18238         maint.mk: check for [ as well as test
18239         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
18240         Based on a libvirt report by Matthias Bolte.
18241
18242         gnumakefile: don't squelch _version output
18243         * top/GNUmakefile (_version): Create one-shot dependency rather
18244         than using $(shell) when version must be regenerated.
18245         (_autoreconf): Run verbosely, by default.
18246
18247         sys_time: avoid compiler warnings
18248         * lib/sys_time.in.h (includes): Ensure gcc pragma is
18249         unconditional, fixing regression from 2010-03-29.
18250         Reported by Simon Josefsson.
18251
18252 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
18253
18254         maint.mk: s/_header_without_use/_sc_header_without_use/
18255         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
18256         (sc_prohibit_assert_without_use): Use the new name.
18257         (sc_prohibit_close_stream_without_use): Likewise.
18258         (sc_prohibit_getopt_without_use): Likewise.
18259         (sc_prohibit_quotearg_without_use): Likewise.
18260         (sc_prohibit_quote_without_use): Likewise.
18261         (sc_prohibit_long_options_without_use): Likewise.
18262         (sc_prohibit_inttostr_without_use): Likewise.
18263         (sc_prohibit_ignore_value_without_use): Likewise.
18264         (sc_prohibit_error_without_use): Likewise.
18265         (sc_prohibit_xalloc_without_use): Likewise.
18266         (sc_prohibit_hash_without_use): Likewise.
18267         (sc_prohibit_hash_pjw_without_use): Likewise.
18268         (sc_prohibit_safe_read_without_use): Likewise.
18269         (sc_prohibit_argmatch_without_use): Likewise.
18270         (sc_prohibit_canonicalize_without_use): Likewise.
18271         (sc_prohibit_root_dev_ino_without_use): Likewise.
18272         (sc_prohibit_openat_without_use): Likewise.
18273         (sc_prohibit_c_ctype_without_use): Likewise.
18274         (sc_prohibit_signal_without_use): Likewise.
18275         (sc_prohibit_intprops_without_use): Likewise.
18276
18277 2010-03-30  Eric Blake  <eblake@redhat.com>
18278
18279         maint: improve module indicators
18280         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
18281         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
18282         columns, and avoid extra macro expansion.
18283
18284         fdopendir: work around FreeBSD bug
18285         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
18286         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
18287         * modules/dirent (Makefile.am): Substitute it.
18288         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
18289         declaration.
18290         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
18291         fix.
18292         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18293
18294 2010-03-29  Bruno Haible  <bruno@clisp.org>
18295
18296         Emit #pragma system_header after the inclusion guard, not before.
18297         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
18298         guard that spans the entire file, not before. This enables an
18299         optimization in GCC's preprocessor.
18300         * lib/ctype.in.h: Likewise.
18301         * lib/dirent.in.h: Likewise.
18302         * lib/errno.in.h: Likewise.
18303         * lib/float.in.h: Likewise.
18304         * lib/getopt.in.h: Likewise.
18305         * lib/iconv.in.h: Likewise.
18306         * lib/langinfo.in.h: Likewise.
18307         * lib/locale.in.h: Likewise.
18308         * lib/math.in.h: Likewise.
18309         * lib/netdb.in.h: Likewise.
18310         * lib/netinet_in.in.h: Likewise.
18311         * lib/pty.in.h: Likewise.
18312         * lib/sched.in.h: Likewise.
18313         * lib/se-selinux.in.h: Likewise.
18314         * lib/search.in.h: Likewise.
18315         * lib/spawn.in.h: Likewise.
18316         * lib/stdarg.in.h: Likewise.
18317         * lib/stdint.in.h: Likewise.
18318         * lib/string.in.h: Likewise.
18319         * lib/strings.in.h: Likewise.
18320         * lib/sys_file.in.h: Likewise.
18321         * lib/sys_ioctl.in.h: Likewise.
18322         * lib/sys_time.in.h: Likewise.
18323         * lib/sys_times.in.h: Likewise.
18324         * lib/sys_utsname.in.h: Likewise.
18325         * lib/sys_wait.in.h: Likewise.
18326         * lib/sysexits.in.h: Likewise.
18327         * lib/wctype.in.h: Likewise.
18328
18329 2010-03-28  James Youngman  <jay@gnu.org>
18330
18331         save-cwd: don't leak a file descriptor when the caller execs.
18332         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
18333         saved file descriptor.
18334         * modules/save-cwd (Depends-on): Depend on cloexec.
18335
18336 2010-03-29  Bruno Haible  <bruno@clisp.org>
18337
18338         Remove vestiges of fts-lgpl module.
18339         * lib/fts_.h: Assume GNULIB_FTS is 1.
18340         * lib/fts.c: Likewise.
18341         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18342
18343 2010-03-28  Bruno Haible  <bruno@clisp.org>
18344
18345         Fix definition of tests witness macro.
18346         * gnulib-tool (func_import): Fix definition of witness macro.
18347
18348 2010-03-28  Bruno Haible  <bruno@clisp.org>
18349
18350         Fix ioctl's protoype on glibc systems.
18351         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
18352         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
18353         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
18354         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
18355         signature. If not, arrange to replace the ioctl function.
18356         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
18357         REPLACE_IOCTL.
18358         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
18359         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
18360         Reported by Ludovic Courtès <ludo@gnu.org>.
18361
18362 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
18363
18364         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
18365         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
18366         made it so grep -r --include=GLOB* ... did not work.
18367
18368 2010-03-26  Jim Meyering  <meyering@redhat.com>
18369             Eric Blake  <eblake@redhat.com>
18370
18371         maint.mk: prohibit use of test's -o and -a operators
18372         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
18373
18374 2010-03-28  Bruno Haible  <bruno@clisp.org>
18375
18376         Remove unused GNULIB_XYZ macro definitions.
18377         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
18378         invocation.
18379
18380 2010-03-28  Bruno Haible  <bruno@clisp.org>
18381
18382         Mark privileged tests modules.
18383         * modules/idpriv-drop-tests (Status): New section.
18384         * modules/idpriv-droptemp-tests (Status): New section.
18385
18386 2010-03-28  Bruno Haible  <bruno@clisp.org>
18387
18388         Split C++ tests into separate tests modules.
18389         * modules/dirent-c++-tests: New file, extracted from
18390         modules/dirent-tests.
18391         * modules/dirent-tests: Depend on it.
18392         * modules/fcntl-h-c++-tests: New file, extracted from
18393         modules/fcntl-h-tests.
18394         * modules/fcntl-h-tests: Depend on it.
18395         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
18396         * modules/glob-tests: Depend on it.
18397         * modules/iconv-h-c++-tests: New file, extracted from
18398         modules/iconv-h-tests.
18399         * modules/iconv-h-tests: Depend on it.
18400         * modules/langinfo-c++-tests: New file, extracted from
18401         modules/langinfo-tests.
18402         * modules/langinfo-tests: Depend on it.
18403         * modules/locale-c++-tests: New file, extracted from
18404         modules/locale-tests.
18405         * modules/locale-tests: Depend on it.
18406         * modules/math-c++-tests: New file, extracted from modules/math-tests.
18407         * modules/math-tests: Depend on it.
18408         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
18409         * modules/pty-tests: Depend on it.
18410         * modules/search-c++-tests: New file, extracted from
18411         modules/search-tests.
18412         * modules/search-tests: Depend on it.
18413         * modules/signal-c++-tests: New file, extracted from
18414         modules/signal-tests.
18415         * modules/signal-tests: Depend on it.
18416         * modules/spawn-c++-tests: New file, extracted from
18417         modules/spawn-tests.
18418         * modules/spawn-tests: Depend on it.
18419         * modules/stdio-c++-tests: New file, extracted from
18420         modules/stdio-tests.
18421         * modules/stdio-tests: Depend on it.
18422         * modules/stdlib-c++-tests: New file, extracted from
18423         modules/stdlib-tests.
18424         * modules/stdlib-tests: Depend on it.
18425         * modules/string-c++-tests: New file, extracted from
18426         modules/string-tests.
18427         * modules/string-tests: Depend on it.
18428         * modules/sys_ioctl-c++-tests: New file, extracted from
18429         modules/sys_ioctl-tests.
18430         * modules/sys_ioctl-tests: Depend on it.
18431         * modules/sys_select-c++-tests: New file, extracted from
18432         modules/sys_select-tests.
18433         * modules/sys_select-tests: Depend on it.
18434         * modules/sys_socket-c++-tests: New file, extracted from
18435         modules/sys_socket-tests.
18436         * modules/sys_socket-tests: Depend on it.
18437         * modules/sys_stat-c++-tests: New file, extracted from
18438         modules/sys_stat-tests.
18439         * modules/sys_stat-tests: Depend on it.
18440         * modules/sys_time-c++-tests: New file, extracted from
18441         modules/sys_time-tests.
18442         * modules/sys_time-tests: Depend on it.
18443         * modules/time-c++-tests: New file, extracted from modules/time-tests.
18444         * modules/time-tests: Depend on it.
18445         * modules/unistd-c++-tests: New file, extracted from
18446         modules/unistd-tests.
18447         * modules/unistd-tests: Depend on it.
18448         * modules/wchar-c++-tests: New file, extracted from
18449         modules/wchar-tests.
18450         * modules/wchar-tests: Depend on it.
18451         * modules/wctype-c++-tests: New file, extracted from
18452         modules/wctype-tests.
18453         * modules/wctype-tests: Depend on it.
18454         Reported by Simon Josefsson.
18455
18456 2010-03-28  Bruno Haible  <bruno@clisp.org>
18457
18458         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
18459         * gnulib-tool (func_exists_module): New function, extracted from
18460         func_verify_module.
18461         (func_verify_module): Use it.
18462         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
18463         'foo' only if 'foo' exists.
18464         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
18465         module.
18466
18467 2010-03-28  Bruno Haible  <bruno@clisp.org>
18468
18469         gnulib-tool: Add support for special categories of tests.
18470         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
18471         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
18472         (func_usage): Document them.
18473         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
18474         inc_unportable_tests, inc_all_tests): New variables.
18475         (func_acceptable): Consider these variables.
18476         (func_modules_transitive_closure): Make it work when the 'Status' field
18477         consists of multiple words.
18478         (func_import): Store and restore the values of inc_cxx_tests,
18479         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
18480         inc_all_tests in gnulib-comp.m4.
18481         (func_create_testdir): Set inc_all_tests to true.
18482         * doc/gnulib.texi (Extra tests modules): New section.
18483         Suggested by Jim Meyering.
18484
18485 2010-03-28  Bruno Haible  <bruno@clisp.org>
18486
18487         ansi-c++-opt: Allow turning off the C++ build by default.
18488         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
18489         gl_CXX_CHOICE_DEFAULT_NO is defined.
18490         Requested by Eric Blake.
18491
18492 2010-03-28  Bruno Haible  <bruno@clisp.org>
18493
18494         unistd: Avoid #define replacements in C++ mode.
18495         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
18496         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
18497         setsockopt, shutdown, select): In C++, attach a warning to the function
18498         if possible, rather than #defining the symbol to a dysfunctional alias.
18499         Reported by John W. Eaton <jwe@gnu.org>.
18500
18501 2010-03-28  Bruno Haible  <bruno@clisp.org>
18502
18503         Fix link errors on mingw.
18504         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
18505         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
18506         $(LIBSOCKET).
18507         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
18508         $(LIBSOCKET).
18509
18510 2010-03-28  Bruno Haible  <bruno@clisp.org>
18511             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18512
18513         lib-ignore: Determine different options for different compilers.
18514         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
18515         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
18516         Add comments.
18517         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
18518         * NEWS: Mention the change.
18519
18520 2010-03-27  Bruno Haible  <bruno@clisp.org>
18521
18522         Remove unused GNULIB_XYZ macro definitions.
18523         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18524         * modules/fseek (configure.ac): Likewise.
18525         * modules/ioctl (configure.ac): Likewise.
18526         * modules/open (configure.ac): Likewise.
18527         * modules/stdlib-safer (configure.ac): Likewise.
18528
18529 2010-03-27  Bruno Haible  <bruno@clisp.org>
18530
18531         Add a remark about certain modules.
18532         * modules/malloc (Comment): New section.
18533         * modules/realloc (Comment): Likewise.
18534         * modules/sigpipe (Comment): Likewise.
18535
18536 2010-03-27  Bruno Haible  <bruno@clisp.org>
18537
18538         Resolve conflict between the two kinds of module indicators.
18539         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
18540         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
18541         * modules/canonicalize (configure.ac): Invoke
18542         gl_MODULE_INDICATOR_FOR_TESTS.
18543         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
18544         GNULIB_XYZ.
18545         * tests/test-dirent-c++.cc: Likewise.
18546         * tests/test-dirent-safer.c: Likewise.
18547         * tests/test-dup2.c: Likewise.
18548         * tests/test-fchdir.c: Likewise.
18549         * tests/test-fcntl-h-c++.cc: Likewise.
18550         * tests/test-getopt.c: Likewise.
18551         * tests/test-getopt.h: Likewise.
18552         * tests/test-langinfo-c++.cc: Likewise.
18553         * tests/test-locale-c++.cc: Likewise.
18554         * tests/test-math-c++.cc: Likewise.
18555         * tests/test-pty-c++.cc: Likewise.
18556         * tests/test-search-c++.cc: Likewise.
18557         * tests/test-signal-c++.cc: Likewise.
18558         * tests/test-spawn-c++.cc: Likewise.
18559         * tests/test-stdio-c++.cc: Likewise.
18560         * tests/test-stdlib-c++.cc: Likewise.
18561         * tests/test-string-c++.cc: Likewise.
18562         * tests/test-sys_ioctl-c++.cc: Likewise.
18563         * tests/test-sys_select-c++.cc: Likewise.
18564         * tests/test-sys_socket-c++.cc: Likewise.
18565         * tests/test-sys_stat-c++.cc: Likewise.
18566         * tests/test-sys_time-c++.cc: Likewise.
18567         * tests/test-time-c++.cc: Likewise.
18568         * tests/test-unistd-c++.cc: Likewise.
18569         * tests/test-wchar-c++.cc: Likewise.
18570         * tests/uninorm/test-u8-nfc.c: Likewise.
18571         * tests/uninorm/test-u8-nfd.c: Likewise.
18572         * tests/uninorm/test-u8-nfkc.c: Likewise.
18573         * tests/uninorm/test-u8-nfkd.c: Likewise.
18574         * tests/uninorm/test-u16-nfc.c: Likewise.
18575         * tests/uninorm/test-u16-nfd.c: Likewise.
18576         * tests/uninorm/test-u16-nfkc.c: Likewise.
18577         * tests/uninorm/test-u16-nfkd.c: Likewise.
18578         * tests/uninorm/test-u32-nfc.c: Likewise.
18579         * tests/uninorm/test-u32-nfc-big.c: Likewise.
18580         * tests/uninorm/test-u32-nfd.c: Likewise.
18581         * tests/uninorm/test-u32-nfd-big.c: Likewise.
18582         * tests/uninorm/test-u32-nfkc.c: Likewise.
18583         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
18584         * tests/uninorm/test-u32-nfkd.c: Likewise.
18585         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
18586         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18587
18588 2010-03-27  Bruno Haible  <bruno@clisp.org>
18589
18590         Distinguish two kinds of module indicators.
18591         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
18592         gl_MODULE_INDICATOR.
18593         (gl_MODULE_INDICATOR): New macro.
18594         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18595         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
18596         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18597         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18598         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18599         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18600         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18601         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18602         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18603         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18604         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18605         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18606         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18607         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18608         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18609         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18610         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18611         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18612         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18613         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18614         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18615         * modules/cloexec (configure.ac): Likewise.
18616         * modules/getopt-gnu (configure.ac): Likewise.
18617         * modules/uninorm/u8-normalize (configure.ac): Likewise.
18618         * modules/uninorm/u16-normalize (configure.ac): Likewise.
18619         * modules/uninorm/u32-normalize (configure.ac): Likewise.
18620         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
18621
18622 2010-03-27  Bruno Haible  <bruno@clisp.org>
18623
18624         New module description field 'Comment'.
18625         * gnulib-tool: New option --extract-comment.
18626         (func_usage): Document it.
18627         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
18628         (func_get_comment): New function.
18629         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
18630
18631 2010-03-27  Bruno Haible  <bruno@clisp.org>
18632
18633         Addendum to 2010-02-07 commit.
18634         * gnulib-tool (func_usage): Document --extract-applicability option.
18635
18636 2010-03-27  Bruno Haible  <bruno@clisp.org>
18637
18638         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
18639         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
18640         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
18641         rather than link errors.
18642
18643 2010-03-27  Bruno Haible  <bruno@clisp.org>
18644
18645         Avoid side effects from tests-related modules on the compilation of lib.
18646         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
18647         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
18648         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
18649         parameter. Emit into AM_CPPFLAGS a definition of the designated C
18650         macro.
18651         (func_import): Define a witness macro. Assign it a value that depends
18652         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
18653         tests-related modules.
18654         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
18655         Reported by Jim Meyering.
18656
18657 2010-03-27  Bruno Haible  <bruno@clisp.org>
18658
18659         Factorize common .m4 code.
18660         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
18661         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
18662         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
18663         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
18664         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18665         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
18666         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
18667         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18668         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18669         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18670         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
18671         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18672         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18673         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18674         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18675         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
18676         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18677         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18678         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18679         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
18680         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
18681         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18682         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18683         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18684         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18685         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18686         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
18687         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
18688         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
18689         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18690         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18691         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18692
18693 2010-03-27  Bruno Haible  <bruno@clisp.org>
18694
18695         Fix a compilation error on Cygwin with g++ >= 4.3.
18696         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
18697         if it is undefined or if we alias it to chmod.
18698         (lstat): Don't warn about the use of this function if it is undefined
18699         or if we alias it to stat.
18700         Reported by Simon Josefsson.
18701
18702 2010-03-27  Bruno Haible  <bruno@clisp.org>
18703
18704         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
18705         * modules/getlogin (configure.ac): Update.
18706
18707         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
18708         * modules/getlogin_r (configure.ac): Update.
18709
18710         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
18711         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
18712         * modules/inet_ntop (configure.ac): Update.
18713
18714         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
18715         * modules/inet_pton (configure.ac): Update.
18716
18717         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
18718         * modules/mbslen (configure.ac): Update.
18719
18720         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
18721         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
18722         * modules/forkpty (configure.ac): Update.
18723         * modules/openpty (configure.ac): Update.
18724
18725 2010-03-26  Simon Josefsson  <simon@josefsson.org>
18726
18727         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
18728         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
18729
18730 2010-03-25  Eric Blake  <eblake@redhat.com>
18731
18732         maint: use pragma consistently across replacement headers
18733         * lib/ctype.in.h (system_header): Hoist for consistent placement.
18734         * lib/dirent.in.h (system_header): Likewise.
18735         * lib/errno.in.h (system_header): Likewise.
18736         * lib/float.in.h (system_header): Likewise.
18737         * lib/getopt.in.h (system_header): Likewise.
18738         * lib/iconv.in.h (system_header): Likewise.
18739         * lib/inttypes.in.h (system_header): Likewise.
18740         * lib/langinfo.in.h (system_header): Likewise.
18741         * lib/locale.in.h (system_header): Likewise.
18742         * lib/math.in.h (system_header): Likewise.
18743         * lib/netdb.in.h (system_header): Likewise.
18744         * lib/netinet_in.in.h (system_header): Likewise.
18745         * lib/pty.in.h (system_header): Likewise.
18746         * lib/sched.in.h (system_header): Likewise.
18747         * lib/se-selinux.in.h (system_header): Likewise.
18748         * lib/search.in.h (system_header): Likewise.
18749         * lib/spawn.in.h (system_header): Likewise.
18750         * lib/stdarg.in.h (system_header): Likewise.
18751         * lib/stdint.in.h (system_header): Likewise.
18752         * lib/string.in.h (system_header): Likewise.
18753         * lib/strings.in.h (system_header): Likewise.
18754         * lib/sys_file.in.h (system_header): Likewise.
18755         * lib/sys_ioctl.in.h (system_header): Likewise.
18756         * lib/sys_socket.in.h (system_header): Likewise.
18757         * lib/sys_times.in.h (system_header): Likewise.
18758         * lib/sys_utsname.in.h (system_header): Likewise.
18759         * lib/sys_wait.in.h (system_header): Likewise.
18760         * lib/sysexits.in.h (system_header): Likewise.
18761         * lib/unistd.in.h (system_header): Likewise.
18762         * lib/wctype.in.h (system_header): Likewise.
18763
18764         arpa/inet: fix mingw compilation warning
18765         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
18766         Reported by Matthew Bolte.
18767
18768 2010-03-25  Bruno Haible  <bruno@clisp.org>
18769
18770         Avoid collision between gnulib wrapper and libintl wrapper.
18771         * lib/printf.c (printf): Don't define if a printf wrapper is already
18772         defined in intl/printf.c.
18773         Reported by Michel Boaventura <michel@michelboaventura.com>.
18774
18775 2010-03-25  Bruno Haible  <bruno@clisp.org>
18776
18777         Use ANSI C.
18778         * lib/readutmp.h (getutent): Provide ANSI C prototype.
18779
18780 2010-03-25  Bruno Haible  <bruno@clisp.org>
18781
18782         Minor formatting changes.
18783         * lib/acosl.c: Insert space before function argument list.
18784         * lib/argz.c: Likewise.
18785         * lib/asinl.c: Likewise.
18786         * lib/expl.c: Likewise.
18787         * lib/gen-uni-tables.c: Likewise.
18788         * lib/gettext.h: Likewise.
18789         * lib/glthread/lock.h: Likewise.
18790         * lib/tanl.c: Likewise.
18791         * lib/uniname/uniname.c: Likewise.
18792         * tests/test-idpriv-drop.c: Likewise.
18793         * tests/test-idpriv-droptemp.c: Likewise.
18794         * tests/test-lock.c: Likewise.
18795         * tests/test-tls.c: Likewise.
18796         * lib/argp-help.c: Insert space before function-like macro argument
18797         list.
18798         * lib/memcmp.c: Likewise.
18799         * tests/test-base64.c: Likewise.
18800         * lib/localename.c: Insert space before sizeof's argument list.
18801         * lib/safe-alloc.h: Likewise.
18802         * lib/file-set.h: Insert space before macro argument list.
18803         * tests/test-argp.c: Likewise.
18804         * lib/argp-namefrob.h: Insert space before function parameter list.
18805         * lib/getaddrinfo.c: Likewise.
18806         * lib/netdb.in.h: Likewise.
18807         * lib/parse-duration.h: Likewise.
18808         * lib/parse-duration.c: Likewise.
18809         * lib/poll.c: Likewise.
18810         * lib/select.c: Likewise.
18811         * lib/trim.h: Likewise.
18812         * tests/test-usleep.c: Likewise.
18813         * lib/ldexpl.c: Insert space before function parameter list and before
18814         function argument list.
18815         * lib/logl.c: Likewise.
18816         * lib/sqrtl.c: Likewise.
18817         * lib/trim.c: Likewise.
18818         * lib/cosl.c: Use GNU style indentation. Insert space before function
18819         argument list.
18820         * lib/sinl.c: Likewise.
18821         * lib/tsearch.c: Insert space after 'for'.
18822         Reported by Jim Meyering.
18823
18824 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
18825
18826         * maint.mk (sc_Wundef_boolean): Check for the presence of the
18827         config header before grepping, as it's not present before
18828         autoreconf/configure are run.  Reported by Simon Josefsson.
18829
18830 2010-03-23  Bruno Haible  <bruno@clisp.org>
18831
18832         pt_chown: Make it work with automake < 1.11.
18833         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
18834         Reported by Simon Josefsson.
18835
18836 2010-03-23  Bruno Haible  <bruno@clisp.org>
18837
18838         pt_chown: Don't depend on GPLed modules.
18839         * lib/pt_chown.c: Don't include idpriv.h.
18840         (main): Don't drop privileges.
18841         * modules/pt_chown (Depends-on): Remove idpriv-drop.
18842         Reported by Simon Josefsson.
18843
18844 2010-03-24  Simon Josefsson  <simon@josefsson.org>
18845
18846         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
18847         suggestions from karl@freefriends.org (Karl Berry).
18848
18849 2010-03-22  Eric Blake  <eblake@redhat.com>
18850
18851         gethostname: further tweaks
18852         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
18853         are overriding gethostname.
18854         Suggested by Bruno Haible.
18855
18856 2010-03-21  Bruno Haible  <bruno@clisp.org>
18857
18858         Fix comments.
18859         * lib/forkpty.c (rpl_forkpty): Fix comment.
18860         * lib/openpty.c (rpl_openpty): Likewise.
18861         Reported by Eric Blake.
18862
18863 2010-03-22  Eric Blake  <eblake@redhat.com>
18864
18865         gethostname: fix build on mingw
18866         * lib/unistd.in.h (includes): Work around fact that mingw
18867         <winsock2.h> re-includes <unistd.h>, by avoiding any
18868         redeclarations if we are being included by <winsock2.h>.
18869         Reported by Matthias Bolte.
18870
18871 2010-03-21  Bruno Haible  <bruno@clisp.org>
18872
18873         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18874         * lib/forkpty.c (forkpty): New replacement function, from glibc with
18875         modifications.
18876         * lib/pty.in.h (forkpty): Update declaration. Add comments.
18877         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
18878         provide the replacement.
18879         * modules/forkpty (Depends-on): Add openpty, login_tty.
18880         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
18881         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
18882         * doc/glibc-functions/forkpty.texi: More supported platforms.
18883         * config/srclist.txt: Add forkpty.c (commented).
18884
18885 2010-03-21  Bruno Haible  <bruno@clisp.org>
18886
18887         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
18888         (Makefile.am): Verify that PTY_LIB is defined.
18889
18890         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
18891
18892 2010-03-21  Bruno Haible  <bruno@clisp.org>
18893
18894         Tests for module 'login_tty'.
18895         * modules/login_tty-tests: New file.
18896         * tests/test-login_tty.c: New file.
18897
18898         New module 'login_tty'.
18899         * lib/login_tty.c: New file.
18900         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
18901         * modules/login_tty: New file.
18902         * doc/glibc-functions/login_tty.texi: Mention the new module.
18903
18904 2010-03-21  Bruno Haible  <bruno@clisp.org>
18905
18906         login_tty: Documentation.
18907         * doc/glibc-functions/login_tty.texi: New file.
18908         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
18909
18910 2010-03-21  Bruno Haible  <bruno@clisp.org>
18911
18912         pty: Consistent macro naming.
18913         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
18914         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
18915         * modules/pty (configure.ac): Update.
18916
18917 2010-03-21  Bruno Haible  <bruno@clisp.org>
18918
18919         Tests for openpty: Make stricter.
18920         * tests/test-openpty.c (main): Add test of canonical processing and
18921         erase.
18922         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
18923
18924         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18925         * lib/openpty.c (openpty): New replacement function.
18926         * lib/pty.in.h: Include <termios.h>.
18927         (openpty): Update declaration. Add comments.
18928         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
18929         is not declared, arrange to provide the replacement. Check for _getpty
18930         and posix_openpt.
18931         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
18932         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
18933         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
18934         * modules/pty-tests (test_pty_c___LDADD): New variable.
18935         * doc/glibc-functions/openpty.texi: More supported platforms.
18936
18937 2010-03-21  Bruno Haible  <bruno@clisp.org>
18938
18939         setenv: Tweaks.
18940         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
18941         the test program.
18942         * doc/posix-functions/setenv.texi: Update platforms list.
18943
18944 2010-03-21  Bruno Haible  <bruno@clisp.org>
18945
18946         New module 'unlockpt'.
18947         * lib/unlockpt.c: New file, from glibc with modifications.
18948         * m4/unlockpt.m4: New file.
18949         * modules/unlockpt: New file.
18950         * lib/stdlib.in.h (unlockpt): New declaration.
18951         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
18952         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
18953         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
18954         HAVE_UNLOCKPT.
18955         * doc/posix-functions/unlockpt.texi: Mention the new module.
18956         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
18957         * config/srclist.txt: Add unlockpt.c (commented).
18958
18959 2010-03-21  Jim Meyering  <meyering@redhat.com>
18960
18961         maint.mk: prohibit inclusion of "intprops.h" without use
18962         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
18963
18964 2010-03-21  Bruno Haible  <bruno@clisp.org>
18965
18966         New module 'grantpt'.
18967         * lib/grantpt.c: New file, from glibc with modifications.
18968         * m4/grantpt.m4: New file.
18969         * modules/grantpt: New file.
18970         * lib/stdlib.in.h (grantpt): New declaration.
18971         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
18972         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
18973         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
18974         HAVE_GRANTPT.
18975         * doc/posix-functions/grantpt.texi: Mention the new module.
18976         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
18977         * config/srclist.txt: Add grantpt.c (commented).
18978
18979 2010-03-21  Bruno Haible  <bruno@clisp.org>
18980
18981         New module 'pt_chown'.
18982         * lib/pt_chown.c: New file, from glibc with modifications.
18983         * lib/pty-private.h: New file, from glibc with modifications.
18984         * modules/pt_chown: New file.
18985         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
18986
18987 2010-03-21  Bruno Haible  <bruno@clisp.org>
18988
18989         Tests for module 'ptsname'.
18990         * modules/ptsname-tests: New file.
18991         * tests/test-ptsname.c: New file.
18992
18993         New module 'ptsname'.
18994         * lib/ptsname.c: New file, from glibc with modifications.
18995         * m4/ptsname.m4: New file.
18996         * modules/ptsname: New file.
18997         * lib/stdlib.in.h (ptsname): New declaration.
18998         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
18999         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
19000         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
19001         HAVE_PTSNAME.
19002         * doc/posix-functions/ptsname.texi: Mention the new module.
19003         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
19004         * config/srclist.txt: Add ptsname.c (commented).
19005
19006 2010-03-21  Bruno Haible  <bruno@clisp.org>
19007
19008         Tests for module 'ttyname_r'.
19009         * modules/ttyname_r-tests: New file.
19010         * tests/test-ttyname_r.c: New file.
19011
19012         New module 'ttyname_r'.
19013         * lib/ttyname_r.c: New file.
19014         * m4/ttyname_r.m4: New file.
19015         * modules/ttyname_r: New file.
19016         * lib/unistd.in.h (ttyname_r): New declaration.
19017         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
19018         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
19019         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
19020         HAVE_TTYNAME_R.
19021         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
19022         * doc/posix-functions/ttyname_r.texi: Mention the new module.
19023
19024 2010-03-20  Bruno Haible  <bruno@clisp.org>
19025
19026         signal: Undefine macro definitions in C++ mode.
19027         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
19028         sigfillset): Undefine macro definitions from the system header in C++
19029         mode.
19030         Reported by John W. Eaton <jwe@gnu.org>.
19031
19032 2010-03-20  Bruno Haible  <bruno@clisp.org>
19033
19034         Ensure no #include statements inside extern "C" { ... }.
19035         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
19036         contain #include statements.
19037         * lib/time.in.h: Likewise.
19038
19039 2010-03-20  Bruno Haible  <bruno@clisp.org>
19040
19041         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
19042         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
19043         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
19044         Reported by John W. Eaton <jwe@gnu.org>.
19045
19046 2010-03-20  Bruno Haible  <bruno@clisp.org>
19047
19048         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
19049         Reported by Jim Meyering.
19050
19051 2010-03-20  Bruno Haible  <bruno@clisp.org>
19052
19053         pipe: Set errno upon failure.
19054         * lib/pipe.h: Specify that when -1 is returned, errno is set.
19055         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
19056         errno value in error message.
19057
19058 2010-03-20  Bruno Haible  <bruno@clisp.org>
19059             Jim Meyering  <meyering@redhat.com>
19060
19061         lchown: Avoid "unused variable" warning.
19062         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
19063
19064 2010-03-20  Bruno Haible  <bruno@clisp.org>
19065
19066         Work around unlink() bug on MacOS X 10.5.6.
19067         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
19068         attempting to unlink a parent directory.
19069         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
19070         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
19071         activate for the replacement function.
19072         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
19073
19074 2010-03-20  Bruno Haible  <bruno@clisp.org>
19075
19076         Fix link errors on Solaris 8.
19077         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
19078         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
19079
19080 2010-03-19  Jim Meyering  <meyering@redhat.com>
19081
19082         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
19083         The _LIBC implementation of build_range_exp correctly honors the
19084         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
19085         However, the non-_LIBC implementation would ignore that syntax-bit
19086         flag and return REG_ERANGE unconditionally.
19087         This change makes it honor that flag.
19088         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
19089         Make two pointer parameters "const".
19090         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
19091         (parse_bracket_exp): Update caller.
19092
19093         regex.m4: correct the reversed range endpoint ([b-a]) test
19094         * m4/regex.m4: When requiring that [b-a] evoke failure,
19095         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
19096         test pass once again for x86-based systems.
19097
19098 2010-03-19  Bruno Haible  <bruno@clisp.org>
19099
19100         scandir: Fix link error on Solaris 8.
19101         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
19102         macros.
19103
19104 2010-03-19  Bruno Haible  <bruno@clisp.org>
19105
19106         getusershell: Fix documentation.
19107         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
19108         module.
19109         * doc/glibc-functions/setusershell.texi: Likewise.
19110
19111         getusershell: Provide declaration, missing on Solaris 9.
19112         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
19113         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
19114         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
19115         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
19116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19117         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
19118         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
19119         HAVE_GETUSERSHELL.
19120         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
19121
19122 2010-03-19  Bruno Haible  <bruno@clisp.org>
19123
19124         wctype: Provide iswblank function.
19125         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
19126         exists and is fine.
19127         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
19128         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
19129         * tests/test-wctype.c (main): Re-enable the iswblank tests.
19130         * doc/posix-functions/iswblank.texi: Update.
19131
19132 2010-03-19  Bruno Haible  <bruno@clisp.org>
19133
19134         Tests of module 'pty' in C++ mode.
19135         * modules/pty-tests: New file.
19136         * tests/test-pty-c++.cc: New file.
19137         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19138
19139 2010-03-19  Eric Blake  <eblake@redhat.com>
19140
19141         logb: fix documentation
19142         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
19143         1.5 declaration bug.
19144
19145         forkpty, openpty: prefer glibc's const-safe prototype
19146         * lib/forkpty.c (rpl_forkpty): New file.
19147         * lib/openpty.c (rpl_openpty): Likewise.
19148         * modules/forkpty (Files): Distribute it.
19149         * modules/openpty (Files): Likewise.
19150         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
19151         check...
19152         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
19153         replacement for for non-const BSD signature.
19154         * modules/pty (Makefile.am): Substitute witnesses.
19155         * lib/pty.in.h (forkpty, openpty): Declare replacements.
19156         * tests/test-forkpty.c: Update signature check.
19157         * tests/test-openpty.c: Likewise.
19158         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
19159         * doc/glibc-functions/openpty.texi (openpty): Likewise.
19160
19161         forkpty, openpty: split functions into new modules
19162         * modules/pty (Makefile.am): Substitute new witnesses.
19163         (Libraries): Move library detection...
19164         * modules/forkpty: ...into new module.
19165         * modules/openpty: Another new module.
19166         * modules/pty-tests: Rename and split...
19167         * modules/forkpty-tests: ...to this...
19168         * modules/openpty-tests: ...and this.
19169         * tests/test-pty.c: Rename and split...
19170         * tests/test-forkpty.c: ...to this...
19171         * tests/test-openpty.c: ...and this.
19172         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
19173         (gl_PTY): Split library searching...
19174         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
19175         (gl_FORKPTY, gl_OPENPTY): New macros.
19176         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
19177         * NEWS: Mention the split.
19178         * MODULES.html.sh (Misc): Document the modules.
19179         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
19180         * doc/glibc-functions/openpty.texi (openpty): Likewise.
19181
19182         pty: improve replacement header
19183         * lib/pty.in.h: New file.
19184         * modules/pty (Files): Ship it.
19185         (Makefile.am): Always build replacement.
19186         * m4/pty.m4: Rename...
19187         * m4/pty_h.m4: ...to this.
19188         (gl_PTY): Modernize setting of witness macros; update check of
19189         forkpty to take proper advantage of cache.
19190         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
19191
19192         getopt: avoid compiler warning
19193         * lib/getopt.c (attribute_hidden): Remove unused macro.
19194
19195 2010-03-18  Bruno Haible  <bruno@clisp.org>
19196
19197         Fix link errors on Solaris 8.
19198         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
19199         * modules/search-tests (test_search_c___LDADD): Likewise.
19200         * modules/signal-tests (test_signal_c___LDADD): Likewise.
19201         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
19202         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
19203         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
19204         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
19205         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
19206         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
19207
19208 2010-03-18  Bruno Haible  <bruno@clisp.org>
19209
19210         Fix bug introduced on 2010-03-14.
19211         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
19212         (gl_SPAWN_H): Require it.
19213         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
19214         Reported by Simon Josefsson.
19215
19216 2010-03-18  Bruno Haible  <bruno@clisp.org>
19217
19218         Fix typo introduced on 2009-12-31.
19219         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
19220         posix_spawn_file_actions_adddup2.
19221
19222 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
19223         and Eric Blake  <eblake@redhat.com>
19224
19225         test-vc-list-files-git: make more robust
19226         * tests/test-vc-list-files-git.sh: Unset problematic environment
19227         variables.  Chain commands together.
19228
19229 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
19230
19231         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
19232         `AC_CHECK_DECL' invocation.
19233
19234 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
19235
19236         * lib/inttostr.c (inttostr): Make sure the invocation of verify
19237         appears before executable statements. Suggested by Petr Sumbera
19238         <Petr.Sumbera@Sun.COM>.
19239
19240 2010-03-14  Bruno Haible  <bruno@clisp.org>
19241
19242         * tests/test-flock.c (test_exclusive): Comment out a test that causes
19243         portability problems. Instead use a simpler test.
19244         (main): Check that invalid arguments are rejected only on Linux.
19245
19246 2010-03-14  Bruno Haible  <bruno@clisp.org>
19247
19248         Fix bug introduced on 2009-12-31.
19249         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19250         gl_PREREQ_SYS_H_WINSOCK2 always.
19251         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
19252         SYS_SOCKET_H variable.
19253         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
19254         Update comments.
19255         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
19256         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19257         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19258         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19259         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
19260
19261 2010-03-14  Bruno Haible  <bruno@clisp.org>
19262
19263         Fix values returned by sinl, cosl.
19264         * lib/trigl.h: Add specification comments.
19265         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
19266         that combines the values from the precomputed table with the values of
19267         the Chebyshev polynomials.
19268
19269 2010-03-14  Bruno Haible  <bruno@clisp.org>
19270
19271         Fix compilation error when modules 'posix_spawn[p]' are not used.
19272         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
19273         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
19274
19275 2010-03-14  Bruno Haible  <bruno@clisp.org>
19276
19277         Fix compilation error on mingw when module 'time_r' is not used.
19278         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
19279         is 1.
19280         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
19281         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19282         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
19283         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
19284
19285 2010-03-14  Bruno Haible  <bruno@clisp.org>
19286
19287         Fix compilation error with Sun C.
19288         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
19289         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
19290         instead of GCC specific ULONG_LONG_MAX.
19291         * lib/xstrtoll.c: Likewise.
19292         * lib/xstrtoull.c: Likewise.
19293
19294 2010-03-13  Bruno Haible  <bruno@clisp.org>
19295
19296         Allow the user to disable C++ code and tests.
19297         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
19298         (gl_PROG_ANSI_CXX): Require it.
19299
19300 2010-03-13  Bruno Haible  <bruno@clisp.org>
19301
19302         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
19303         cases.
19304
19305 2010-03-13  Bruno Haible  <bruno@clisp.org>
19306
19307         Test that gnulib does not break the standard C++ headers.
19308         * tests/test-locale-c++2.cc: New file.
19309         * modules/locale-tests (Files): Add it.
19310         (Makefile.am): Compile it for test-locale-c++.
19311         * tests/test-math-c++2.cc: New file.
19312         * modules/math-tests (Files): Add it.
19313         (Makefile.am): Compile it for test-math-c++.
19314         * tests/test-signal-c++2.cc: New file.
19315         * modules/signal-tests (Files): Add it.
19316         (Makefile.am): Compile it for test-signal-c++.
19317         * tests/test-stdio-c++2.cc: New file.
19318         * modules/stdio-tests (Files): Add it.
19319         (Makefile.am): Compile it for test-stdio-c++.
19320         * tests/test-stdlib-c++2.cc: New file.
19321         * modules/stdlib-tests (Files): Add it.
19322         (Makefile.am): Compile it for test-stdlib-c++.
19323         * tests/test-string-c++2.cc: New file.
19324         * modules/string-tests (Files): Add it.
19325         (Makefile.am): Compile it for test-string-c++.
19326         * tests/test-time-c++2.cc: New file.
19327         * modules/time-tests (Files): Add it.
19328         (Makefile.am): Compile it for test-time-c++.
19329         Reported by John W. Eaton <jwe@gnu.org>.
19330
19331 2010-03-13  Bruno Haible  <bruno@clisp.org>
19332
19333         * gnulib-tool (func_usage): Clarify which options are available for
19334         --create-testdir and --create-megatestdir.
19335
19336 2010-03-13  Bruno Haible  <bruno@clisp.org>
19337
19338         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
19339         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
19340         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
19341         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19342         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
19343         when appropriate.
19344         Reported by Jim Meyering.
19345
19346 2010-03-12  Simon Josefsson  <simon@josefsson.org>
19347
19348         * gnulib-tool (func_import): Explain origin of code.
19349
19350 2010-03-12  Bruno Haible  <bruno@clisp.org>
19351
19352         Fix problem with automake's definition of CXXLINK.
19353         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
19354         Reported by Simon Josefsson and Ludovic Courtès.
19355
19356 2010-03-12  Bruno Haible  <bruno@clisp.org>
19357
19358         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
19359         stable releases.
19360
19361 2010-03-11  Bruno Haible  <bruno@clisp.org>
19362
19363         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
19364         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
19365         whether the system provides one variant or multiple variants of the
19366         function.
19367         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
19368         C++ compilers.
19369         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
19370         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
19371         Reported by Jim Meyering.
19372
19373 2010-03-09  Simon Josefsson  <simon@josefsson.org>
19374
19375         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
19376
19377 2010-03-08  Bruno Haible  <bruno@clisp.org>
19378
19379         gnulib-tool: Add support for --libtool in --create-testdir.
19380         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
19381         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
19382
19383 2010-03-08  Eric Blake  <eblake@redhat.com>
19384
19385         gnulib-tool.texi: mention possibility of git submodule
19386         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
19387         submodules.
19388         * doc/.gitignore: Ignore another generated file.
19389
19390 2010-03-08  Karl Berry  <karl@gnu.org>
19391
19392         * doc/gnulib-tool.texi (VCS Issues): Mention third option
19393         of committing gnulib files while skipping others.
19394
19395 2010-03-07  Bruno Haible  <bruno@clisp.org>
19396
19397         Tests of module 'wctype' in C++ mode.
19398         * tests/test-wctype-c++.cc: New file.
19399         * modules/wctype-tests (Files): Add it and tests/signature.h.
19400         (Depends-on): Add ansi-c++-opt.
19401         (Makefile.am): Arrange to compile and run test-wctype-c++.
19402
19403         Tests of module 'wchar' in C++ mode.
19404         * tests/test-wchar-c++.cc: New file.
19405         * modules/wchar-tests (Files): Add it and tests/signature.h.
19406         (Depends-on): Add ansi-c++-opt.
19407         (Makefile.am): Arrange to compile and run test-wchar-c++.
19408         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
19409         gl_MODULE_INDICATOR.
19410
19411         Tests of module 'unistd' in C++ mode.
19412         * tests/test-unistd-c++.cc: New file.
19413         * modules/unistd-tests (Files): Add it and tests/signature.h.
19414         (Depends-on): Add ansi-c++-opt.
19415         (Makefile.am): Arrange to compile and run test-unistd-c++.
19416         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
19417         gl_MODULE_INDICATOR.
19418
19419         Tests of module 'time' in C++ mode.
19420         * tests/test-time-c++.cc: New file.
19421         * modules/time-tests (Files): Add it and tests/signature.h.
19422         (Depends-on): Add ansi-c++-opt.
19423         (Makefile.am): Arrange to compile and run test-time-c++.
19424         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19425
19426         Tests of module 'sys_time' in C++ mode.
19427         * tests/test-sys_time-c++.cc: New file.
19428         * modules/sys_time-tests (Files): Add it and tests/signature.h.
19429         (Depends-on): Add ansi-c++-opt.
19430         (Makefile.am): Arrange to compile and run test-sys_time-c++.
19431         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
19432         gl_MODULE_INDICATOR.
19433
19434         Tests of module 'sys_stat' in C++ mode.
19435         * tests/test-sys_stat-c++.cc: New file.
19436         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
19437         (Depends-on): Add ansi-c++-opt.
19438         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
19439         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
19440         gl_MODULE_INDICATOR.
19441
19442         Tests of module 'sys_socket' in C++ mode.
19443         * tests/test-sys_socket-c++.cc: New file.
19444         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
19445         (Depends-on): Add ansi-c++-opt.
19446         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
19447         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
19448         gl_MODULE_INDICATOR.
19449
19450         Tests of module 'sys_select' in C++ mode.
19451         * tests/test-sys_select-c++.cc: New file.
19452         * modules/sys_select-tests (Files): Add it and tests/signature.h.
19453         (Depends-on): Add ansi-c++-opt.
19454         (Makefile.am): Arrange to compile and run test-sys_select-c++.
19455         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
19456         gl_MODULE_INDICATOR.
19457
19458         Tests of module 'sys_ioctl' in C++ mode.
19459         * tests/test-sys_ioctl-c++.cc: New file.
19460         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
19461         (Depends-on): Add ansi-c++-opt.
19462         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
19463         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
19464         gl_MODULE_INDICATOR.
19465
19466         Tests of module 'string' in C++ mode.
19467         * tests/test-string-c++.cc: New file.
19468         * modules/string-tests (Files): Add it and tests/signature.h.
19469         (Depends-on): Add ansi-c++-opt.
19470         (Makefile.am): Arrange to compile and run test-string-c++.
19471         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
19472         gl_MODULE_INDICATOR.
19473
19474         Tests of module 'stdlib' in C++ mode.
19475         * tests/test-stdlib-c++.cc: New file.
19476         * modules/stdlib-tests (Files): Add it and tests/signature.h.
19477         (Depends-on): Add ansi-c++-opt.
19478         (Makefile.am): Arrange to compile and run test-stdlib-c++.
19479         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
19480         gl_MODULE_INDICATOR.
19481
19482         Tests of module 'stdio' in C++ mode.
19483         * tests/test-stdio-c++.cc: New file.
19484         * modules/stdio-tests (Files): Add it and tests/signature.h.
19485         (Depends-on): Add ansi-c++-opt.
19486         (Makefile.am): Arrange to compile and run test-stdio-c++.
19487         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
19488         gl_MODULE_INDICATOR.
19489
19490         Tests of module 'spawn' in C++ mode.
19491         * tests/test-spawn-c++.cc: New file.
19492         * modules/spawn-tests (Files): Add it and tests/signature.h.
19493         (Depends-on): Add ansi-c++-opt.
19494         (Makefile.am): Arrange to compile and run test-spawn-c++.
19495         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
19496         gl_MODULE_INDICATOR.
19497
19498         Tests of module 'signal' in C++ mode.
19499         * tests/test-signal-c++.cc: New file.
19500         * modules/signal-tests (Files): Add it and tests/signature.h.
19501         (Depends-on): Add ansi-c++-opt.
19502         (Makefile.am): Arrange to compile and run test-signal-c++.
19503         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
19504         gl_MODULE_INDICATOR.
19505
19506         Tests of module 'search' in C++ mode.
19507         * tests/test-search-c++.cc: New file.
19508         * modules/search-tests (Files): Add it and tests/signature.h.
19509         (Depends-on): Add ansi-c++-opt.
19510         (Makefile.am): Arrange to compile and run test-search-c++.
19511         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
19512         gl_MODULE_INDICATOR.
19513
19514         Tests of module 'math' in C++ mode.
19515         * tests/test-math-c++.cc: New file.
19516         * modules/math-tests (Files): Add it and tests/signature.h.
19517         (Depends-on): Add ansi-c++-opt.
19518         (Makefile.am): Arrange to compile and run test-math-c++.
19519         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19520
19521         Tests of module 'locale' in C++ mode.
19522         * tests/test-locale-c++.cc: New file.
19523         * modules/locale-tests (Files): Add it and tests/signature.h.
19524         (Depends-on): Add ansi-c++-opt.
19525         (Makefile.am): Arrange to compile and run test-locale-c++.
19526         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
19527         gl_MODULE_INDICATOR.
19528
19529         Tests of module 'langinfo' in C++ mode.
19530         * tests/test-langinfo-c++.cc: New file.
19531         * modules/langinfo-tests (Files): Add it and tests/signature.h.
19532         (Depends-on): Add ansi-c++-opt.
19533         (Makefile.am): Arrange to compile and run test-langinfo-c++.
19534         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
19535         gl_MODULE_INDICATOR.
19536
19537         Tests of module 'iconv-h' in C++ mode.
19538         * tests/test-iconv-h-c++.cc: New file.
19539         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
19540         (Depends-on): Add ansi-c++-opt.
19541         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
19542
19543         Tests of module 'glob' in C++ mode.
19544         * tests/test-glob-c++.cc: New file.
19545         * modules/glob-tests (Files): Add it.
19546         (Depends-on): Add ansi-c++-opt.
19547         (Makefile.am): Arrange to compile and run test-glob-c++.
19548
19549         Tests of module 'fcntl-h' in C++ mode.
19550         * tests/test-fcntl-h-c++.cc: New file.
19551         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
19552         (Depends-on): Add ansi-c++-opt.
19553         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
19554         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
19555         gl_MODULE_INDICATOR.
19556
19557         Tests of module 'dirent' in C++ mode.
19558         * tests/test-dirent-c++.cc: New file.
19559         * modules/dirent-tests (Files): Add it and tests/signature.h.
19560         (Depends-on): Add ansi-c++-opt.
19561         (Makefile.am): Arrange to compile and run test-dirent-c++.
19562         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19563         gl_MODULE_INDICATOR.
19564
19565         New module 'ansi-c++-opt'.
19566         * modules/ansi-c++-opt: New file.
19567         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
19568
19569         Document C++ namespace mode.
19570         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
19571
19572         wctype: Avoid #define replacements in C++ mode.
19573         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
19574         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
19575         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
19576         In C++, define a namespaced alias symbol.
19577         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
19578         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
19579         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
19580         rule.
19581
19582         wchar: Avoid #define replacements in C++ mode.
19583         * lib/wchar.in.h: Include c++defs.h.
19584         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
19585         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
19586         symbol.
19587         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
19588         * modules/wchar (Depends-on): Add c++defs.
19589         (Makefile.am): Update wchar.h rule.
19590
19591         unistd: Avoid #define replacements in C++ mode.
19592         * lib/unistd.in.h: Include c++defs.h.
19593         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
19594         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
19595         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
19596         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
19597         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
19598         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
19599         symbol.
19600         (environ): Update.
19601         * modules/unistd (Depends-on): Add c++defs.
19602         (Makefile.am): Update unistd.h rule.
19603
19604         time: Avoid #define replacements in C++ mode.
19605         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
19606         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
19607         define a namespaced alias symbol.
19608         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
19609         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
19610         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
19611         * modules/time (Depends-on): Add c++defs, warn-on-use.
19612         (Makefile.am): Update time.h rule.
19613         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19614         * modules/nanosleep (configure.ac): Likewise.
19615         * modules/strptime (configure.ac): Likewise.
19616         * modules/timegm (configure.ac): Likewise.
19617
19618         sys_time: Avoid #define replacements in C++ mode.
19619         * lib/sys_time.in.h: Include c++defs.h.
19620         (gettimeofday): In C++, define a namespaced alias symbol.
19621         * modules/sys_time (Depends-on): Add c++defs.
19622         (Makefile.am): Update sys/time.h rule.
19623
19624         sys_stat: Avoid #define replacements in C++ mode.
19625         * lib/sys_stat.in.h: Include c++defs.h.
19626         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
19627         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
19628         namespaced alias symbol.
19629         In C++, define a namespaced alias symbol.
19630         * modules/sys_stat (Depends-on): Add c++defs.
19631         (Makefile.am): Update sys/stat.h rule.
19632
19633         sys_socket: Avoid #define replacements in C++ mode.
19634         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
19635         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
19636         definitions also when the system has a <sys/socket.h>.
19637         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19638         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
19639         In C++, define a namespaced alias symbol.
19640         * modules/sys_socket (Depends-on): Add c++defs.
19641         (Makefile.am): Update sys/socket.h rule.
19642
19643         sys_select: Avoid #define replacements in C++ mode.
19644         * lib/sys_select.in.h: Include c++defs.h. Enable the function
19645         definitions also when the system has a <sys/select.h>.
19646         (select): In C++, define a namespaced alias symbol.
19647         * modules/sys_select (Depends-on): Add c++defs.
19648         (Makefile.am): Update sys/select.h rule.
19649
19650         sys_ioctl: Avoid #define replacements in C++ mode.
19651         * lib/sys_ioctl.in.h: Include c++defs.h.
19652         (ioctl): In C++, define a namespaced alias symbol.
19653         * modules/sys_ioctl (Depends-on): Add c++defs.
19654         (Makefile.am): Update sys/ioctl.h rule.
19655
19656         string: Avoid #define replacements in C++ mode.
19657         * lib/string.in.h: Include c++defs.h.
19658         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
19659         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
19660         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
19661         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
19662         strsignal, strverscmp): In C++, define a namespaced alias symbol.
19663         * modules/string (Depends-on): Add c++defs.
19664         (Makefile.am): Update string.h rule.
19665
19666         stdlib: Avoid #define replacements in C++ mode.
19667         * lib/stdlib.in.h: Include c++defs.h.
19668         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
19669         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
19670         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
19671         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
19672         symbol.
19673         * modules/stdlib (Depends-on): Add c++defs.
19674         (Makefile.am): Update stdlib.h rule.
19675
19676         stdio: Avoid #define replacements in C++ mode.
19677         * lib/stdio.in.h: Include c++defs.h.
19678         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
19679         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
19680         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
19681         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
19682         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
19683         namespaced alias symbol.
19684         * modules/stdio (Depends-on): Add c++defs.
19685         (Makefile.am): Update stdio.h rule.
19686
19687         spawn: Avoid #define replacements in C++ mode.
19688         * lib/spawn.in.h: Include c++defs.h.
19689         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19690         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19691         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19692         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19693         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19694         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19695         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19696         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19697         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19698         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19699         In C++, define a namespaced alias symbol.
19700         * modules/spawn (Depends-on): Add c++defs.
19701         (Makefile.am): Update spawn.h rule.
19702
19703         signal: Avoid #define replacements in C++ mode.
19704         * lib/signal.in.h: Include c++defs.h.
19705         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19706         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
19707         namespaced alias symbol.
19708         * modules/signal (Depends-on): Add c++defs.
19709         (Makefile.am): Update signal.h rule.
19710
19711         search: Avoid #define replacements in C++ mode.
19712         * lib/search.in.h: Include c++defs.h.
19713         (_gl_search_compar_fn, _gl_search_action_fn): New types.
19714         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
19715         symbol.
19716         * modules/search (Depends-on): Add c++defs.
19717         (Makefile.am): Update search.h rule.
19718
19719         math: Avoid #define replacements in C++ mode.
19720         * lib/math.in.h: Include c++defs.h.
19721         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
19722         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
19723         trunc, truncl): In C++, define a namespaced alias symbol.
19724         * modules/math (Depends-on): Add c++defs.
19725         (Makefile.am): Update math.h rule.
19726
19727         locale: Avoid #define replacements in C++ mode.
19728         * lib/locale.in.h: Include c++defs.h.
19729         (duplocale): In C++, define a namespaced alias symbol.
19730         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
19731         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
19732         * modules/locale (Depends-on): Add c++defs.
19733         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
19734
19735         langinfo: Avoid #define replacements in C++ mode.
19736         * lib/langinfo.in.h: Include c++defs.h.
19737         (nl_langinfo): In C++, define a namespaced alias symbol.
19738         * modules/langinfo (Depends-on): Add c++defs.
19739         (Makefile.am): Update langinfo.h rule.
19740
19741         iconv-h: Avoid #define replacements in C++ mode.
19742         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
19743         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
19744         symbol.
19745         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19746         whenever iconv is present.
19747         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
19748         (Makefile.am): Update iconv.h rule.
19749
19750         glob: Avoid #define replacements in C++ mode.
19751         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
19752         (_gl_glob_errfunc_fn): New type.
19753         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
19754         symbol.
19755         * modules/glob (Depends-on): Add c++defs, warn-on-use.
19756         (Makefile.am): Update glob.h rule.
19757
19758         fcntl-h: Avoid #define replacements in C++ mode.
19759         * lib/fcntl.in.h: Include c++defs.h.
19760         (fcntl, open, openat): In C++, define a namespaced alias symbol.
19761         * modules/fcntl-h (Depends-on): Add c++defs.
19762         (Makefile.am): Update fcntl.h rule.
19763
19764         dirent: Avoid #define replacements in C++ mode.
19765         * lib/dirent.in.h: Include c++defs.h.
19766         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
19767         namespaced alias symbol.
19768         (dirfd): Update declaration.
19769         * modules/dirent (Depends-on): Add c++defs.
19770         (Makefile.am): Update dirent.h rule.
19771
19772         ctype: Make it usable in C++ code.
19773         * lib/ctype.in.h: Include c++defs.h.
19774         (isblank): Declare as extern "C".
19775         * modules/ctype (Depends-on): Add c++defs.
19776         (Makefile.am): Update ctype.h rule.
19777
19778         New module 'c++defs'.
19779         * modules/c++defs: New file.
19780         * build-aux/c++defs.h: New file.
19781         Reported by John W. Eaton <jwe@gnu.org>.
19782
19783 2010-03-07  Bruno Haible  <bruno@clisp.org>
19784
19785         logb: Provide missing declaration for Cygwin.
19786         * lib/math.in.h (logb): New declaration.
19787         * m4/logb.m4: New file.
19788         * modules/logb (Files): Add m4/logb.m4.
19789         (Depends-on): Add math.
19790         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
19791         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
19792         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
19793         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
19794         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
19795
19796 2010-03-07  Bruno Haible  <bruno@clisp.org>
19797
19798         Fix test-cond link error.
19799         * tests/test-cond.c: Include <stdio.h>.
19800
19801 2010-03-07  Bruno Haible  <bruno@clisp.org>
19802
19803         Fix test-dirent-safer link error.
19804         * modules/dirent-safer-tests (Makefile.am): Define
19805         test_dirent_safer_LDADD.
19806
19807 2010-03-07  Bruno Haible  <bruno@clisp.org>
19808
19809         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
19810         among default module list.
19811
19812 2010-03-07  Bruno Haible  <bruno@clisp.org>
19813
19814         Fix link error on platforms with GNU libiconv.
19815         * modules/unistr/u8-strcoll-tests (Makefile): Define
19816         test_u8_strcoll_LDADD.
19817         * modules/unistr/u16-strcoll-tests (Makefile): Define
19818         test_u16_strcoll_LDADD.
19819         * modules/unistr/u32-strcoll-tests (Makefile): Define
19820         test_u32_strcoll_LDADD.
19821
19822 2010-03-07  Bruno Haible  <bruno@clisp.org>
19823
19824         Use POSIX declarations for socket functions.
19825         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
19826         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
19827         rpl_sendto): Change declaration to match POSIX.
19828         * lib/connect.c (rpl_connect): Likewise.
19829         * lib/accept.c (rpl_accept): Likewise.
19830         * lib/bind.c (rpl_bind): Likewise.
19831         * lib/getpeername.c (rpl_getpeername): Likewise.
19832         * lib/getsockname.c (rpl_getsockname): Likewise.
19833         * lib/recv.c (rpl_recv): Likewise.
19834         * lib/send.c (rpl_send): Likewise.
19835         * lib/recvfrom.c (rpl_recvfrom): Likewise.
19836         * lib/sendto.c (rpl_sendto): Likewise.
19837
19838 2010-03-06  Bruno Haible  <bruno@clisp.org>
19839
19840         Clarify access, euidaccess, faccessat.
19841         * doc/posix-functions/faccessat.texi: Mention security problem under
19842         "Other problems", not "Portability problems".
19843         * doc/posix-functions/access.texi: Likewise. Mention a related security
19844         problem.
19845         * doc/glibc-functions/euidaccess.texi: Mention security problems.
19846         * lib/euidaccess.c: Add comments about platforms.
19847         * lib/unistd.in.h (access, euidaccess): Add warnings.
19848
19849 2010-03-07  Bruno Haible  <bruno@clisp.org>
19850
19851         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
19852         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
19853         (POSIX_SPAWN_SETSCHEDULER): Likewise.
19854         (POSIX_SPAWN_USEVFORK): Define in a way that works when
19855         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19856         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
19857         declare when POSIX_SPAWN_SETSCHEDULER is zero.
19858         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
19859         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
19860         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
19861         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
19862         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
19863         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
19864         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
19865         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
19866         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
19867         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
19868         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
19869         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
19870         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
19871         Likewise.
19872         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
19873         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
19874         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
19875         Likewise.
19876         * tests/test-spawn.c (main): Make it work when
19877         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19878
19879 2010-03-07  Bruno Haible  <bruno@clisp.org>
19880
19881         Fix incorrect Makefile.am generation in German locale.
19882         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19883         Execute sed command with character range in C locale.
19884
19885 2010-03-06  Bruno Haible  <bruno@clisp.org>
19886
19887         Tests for module 'iconv-h'.
19888         * modules/iconv-h-tests: New file.
19889         * tests/test-iconv-h.c: New file.
19890
19891         New module 'iconv-h'.
19892         * modules/iconv-h: New file.
19893         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
19894         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
19895         (configure.ac): Remove gl_ICONV_H.
19896         (Makefile.am): Remove rule for iconv.h.
19897
19898 2010-03-06  Bruno Haible  <bruno@clisp.org>
19899
19900         More consistent naming of *.m4 files.
19901         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
19902         * modules/wctype (Files): Update.
19903
19904         More consistent naming of *.m4 files.
19905         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
19906         * modules/wchar (Files): Update.
19907
19908 2010-03-06  Jim Meyering  <meyering@redhat.com>
19909
19910         euidaccess: relax license to LGPLv2+
19911         * modules/euidaccess (License): Relax to LGPLv2+.
19912
19913 2010-03-06  Bruno Haible  <bruno@clisp.org>
19914
19915         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
19916         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
19917         (Makefile.am): Augment lib_SOURCES instead.
19918
19919 2010-03-04  Jim Meyering  <meyering@redhat.com>
19920
19921         utime: remove obsolete module
19922         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
19923         unnecessary for years, and has been marked as obsolete for 10 months.
19924         * modules/utime: Remove file.
19925         * lib/utime.c: Remove file.
19926         * m4/utime.m4: Remove file.
19927         * m4/utimes-null.m4: Remove file.
19928         * doc/posix-functions/utime.texi (utime): Remove reference to
19929         the module.  Move the sole "fixed by gnulib" item into the
19930         "problems not fixed by Gnulib" list.
19931         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
19932
19933 2010-03-05  Simon Josefsson  <simon@josefsson.org>
19934
19935         * modules/exit (License): Relax license to LGPLv2+.
19936         (Status): Mark as obsolete.
19937         * NEWS: Mention deprecated 'exit' module.
19938         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
19939         of now obsolete 'exit'.
19940
19941 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19942
19943         fts-lgpl: remove unused module
19944         * modules/fts-lgpl: Remove.
19945         * MODULES.html.sh (func_all_modules): Adjust.
19946         * check-module (find_included_lib_files): Adjust.
19947         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
19948
19949 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
19950
19951         copy-acl: enhance Solaris ACL error handling
19952         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
19953         * lib/set-mode-acl.c (qset_acl): Likewise.
19954
19955 2010-03-02  Bruno Haible  <bruno@clisp.org>
19956
19957         spawn: Don't override the system defined values on FreeBSD 8.
19958         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
19959         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
19960         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
19961         if HAVE_POSIX_SPAWN is 1.
19962         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
19963
19964 2010-03-01  Bruno Haible  <bruno@clisp.org>
19965
19966         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
19967         regarding Automake.
19968
19969 2010-02-25  Bruno Haible  <bruno@clisp.org>
19970
19971         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
19972         * gnulib-tool: Define 'echo' as a function only before the ksh alias
19973         setting, not afterwards.
19974         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
19975
19976 2010-02-24  Eric Blake  <eblake@redhat.com>
19977
19978         bootstrap, git-version-gen: use timestamp
19979         * build-aux/git-version-gen (scriptversion): Force UTC.
19980         * build-aux/bootstrap (scriptversion): New variable.
19981
19982         bootstrap: allow older git
19983         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
19984         older than 1.6.4.  Requested by the libvirt project.
19985
19986 2010-02-23  Eric Blake  <eblake@redhat.com>
19987
19988         warn-on-use: work with old autoconf
19989         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
19990         AS_VAR semantics of autoconf 2.60.
19991         Reported by Bruno Haible.
19992
19993         bootstrap: improve some comments
19994         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
19995         clarification comments.
19996
19997         gettimeofday: provide correct function
19998         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
19999         when replacement is declared, otherwise provide gettimeofday.
20000         Reported by Michael Goffioul.
20001
20002 2010-02-23  Jim Meyering  <meyering@redhat.com>
20003
20004         lib-ignore: relax license to "unlimited", not LGPLv2+
20005         * modules/lib-ignore (License): Relax to "unlimited".
20006
20007 2010-02-23  Jim Meyering  <meyering@redhat.com>
20008
20009         lib-ignore: relax license to LGPLv2+
20010         * modules/lib-ignore (License): Relax to LGPLv2+.
20011
20012 2010-02-22  Eric Blake  <eblake@redhat.com>
20013
20014         lseek: avoid bash 3.2 broken pipe bug
20015         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
20016         warning from bash 3.2.
20017         Reported by Ben Pfaff, with analysis from Bruno Haible.
20018
20019         bootstrap: support non-FSF copyright holder
20020         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
20021         bootstrap.conf override of COPYRIGHT_HOLDER.
20022         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
20023
20024         bootstrap: interoperate with gettext 0.14.1
20025         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
20026
20027         bootstrap: allow for alternate submodule location
20028         * build-aux/bootstrap (gnulib_path): New variable; use instead of
20029         hardcoding submodule location.
20030         (gnulib_mk): Allow direct use of Makefile.am.
20031
20032         bootstrap: use GNULIB_SRCDIR to reduce disk usage
20033         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
20034         rather than reconfiguring where the submodule points.
20035
20036         gettimeofday: restore support for platforms that lack function
20037         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
20038         replacement if function is missing.
20039         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
20040         * modules/sys_time (Makefile.am): Substitute it.
20041         * lib/sys_time.in.h (gettimeofday): Check it.
20042         Reported by Michael Goffioul.
20043
20044 2010-02-21  Bruno Haible  <bruno@clisp.org>
20045
20046         * lib/stdio.in.h (obstack_printf): Fix typo.
20047
20048 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
20049
20050         vc-list-files: use bzr ls's -R option
20051         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
20052         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
20053
20054 2010-02-21  Jim Meyering  <meyering@redhat.com>
20055
20056         init.sh: fix EXEEXT shims to work also for names like test-prog
20057         * tests/init.sh: Re-exec a better shell, when needed.
20058         If the current shell lacks support for posix $(...), an init.sh-using
20059         test will now try to find a shell that supports that.  If EXEEXT is
20060         nonempty, we also require support for hyphen-in-alias-name and shell
20061         substitutions like ${var#glob}.  Failure to find such a shell results
20062         in a skipped test.
20063
20064 2010-02-21  Bruno Haible  <bruno@clisp.org>
20065
20066         Really work around around "broken pipe" error message from bash 3.2.
20067         * gnulib-tool (func_reset_sigpipe): Remove function.
20068         (echo): In bash 3.2, define to a function that uses printf.
20069         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
20070
20071 2010-02-20  Bruno Haible  <bruno@clisp.org>
20072
20073         Restore support for automake 1.9.6 with autoconf 2.61.
20074         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
20075         Reported by James Youngman <jay@gnu.org>.
20076
20077 2010-02-20  Bruno Haible  <bruno@clisp.org>
20078
20079         Improve *printf warning condition.
20080         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
20081         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
20082         and the function is overridden due to SIGPIPE emulation.
20083
20084 2010-02-20  Bruno Haible  <bruno@clisp.org>
20085
20086         * lib/stdio.in.h: Tweak comments.
20087
20088 2010-02-19  Bruno Haible  <bruno@clisp.org>
20089
20090         Make it easier to find modules. New gnulib-tool option '--find'.
20091         * gnulib-tool: New option --find.
20092         (func_usage): Document it.
20093         (func_sanitize_modulelist): New function, extracted from
20094         func_all_modules.
20095         (func_all_modules): Invoke it.
20096         * doc/gnulib-tool.texi (Which modules?): New node.
20097
20098 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
20099
20100         * lib/sys_select.in.h: Provide select replacement even if
20101         sys/select.h exists on a system, for Interix.
20102
20103 2010-02-18  Jim Meyering  <meyering@redhat.com>
20104
20105         init.sh: don't use $(...) just yet
20106         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
20107         to accommodate e.g., Solaris' /bin/sh.
20108
20109 2010-02-17  Bruno Haible  <bruno@clisp.org>
20110
20111         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
20112         Reported by Ludovic Courtès <ludo@gnu.org>.
20113
20114 2010-02-16  Simon Josefsson  <simon@josefsson.org>
20115
20116         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
20117         linking with -lintl.
20118
20119 2010-02-17  Simon Josefsson  <simon@josefsson.org>
20120
20121         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
20122         if not provided by the system's netdb.h.  Reported by
20123         ludo@gnu.org (Ludovic Courtès).
20124
20125 2010-02-15  Jim Meyering  <meyering@redhat.com>
20126
20127         init.sh: improve portability and efficiency
20128         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
20129         "dummy" in a for loop.
20130         Use '!', not '^' to select the complement of a character set used
20131         in a "case" statement.
20132         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
20133         Suggestions from Eric Blake.
20134
20135         init.sh: automatically accommodate programs with the .exe suffix
20136         Automatically arrange for an invocation of "prog" to execute the
20137         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
20138         may use the simpler "prog", yet still work when built on a system
20139         that requires specifying the added suffix.
20140         Do this by constructing a function named "prog" that invokes
20141         "prog.exe" for each .exe file in selected directories.
20142         * tests/init.sh (find_exe_basenames_): New function.
20143         (create_exe_shim_functions_): New function.
20144         (path_prepend_): Use it.
20145
20146         maint.mk: mark syntax-check sc_*.m rules as .PHONY
20147         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
20148         "make -t syntax-check" doesn't create a ton of sc_*.m files.
20149
20150 2010-02-14  Jim Meyering  <meyering@redhat.com>
20151
20152         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
20153         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
20154         (sc_prohibit_hash_pjw_without_use): New rule.
20155
20156         maint.mk: allow the default upload destination dir to be overridden
20157         * top/maint.mk (upload_dest_dir_): Define with a default that
20158         preserves the status quo.
20159         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
20160         Reported by Peter Simons.
20161
20162         maint.mk: prohibit inclusion of "hash.h" without_use
20163         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
20164
20165 2010-02-10  Jim Meyering  <meyering@redhat.com>
20166
20167         maint.mk: prohibit inclusion of "ignore-value.h" without_use
20168         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
20169
20170 2010-02-09  Eric Blake  <ebb9@byu.net>
20171         and Bruno Haible  <bruno@clisp.org>
20172
20173         obstack-printf-posix: ensure declaration
20174         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
20175         extracted from gl_FUNC_OBSTACK_PRINTF.
20176         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
20177         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
20178         Likewise.
20179         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
20180         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
20181         0.
20182
20183 2010-02-08  Bruno Haible  <bruno@clisp.org>
20184
20185         gnulib-tool: Fix typo in 2010-02-07 commit.
20186         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
20187         Reported by Eric Blake.
20188
20189 2010-02-07  Bruno Haible  <bruno@clisp.org>
20190
20191         gnulib-tool: Fix up caching patches.
20192         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
20193         option --no-cache. Use associative arrays when supported by the shell.
20194         (sed_comments): New variable.
20195         (modcache): Renamed from do_cache.
20196         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
20197         abbreviate unnecessarily.
20198         (have_associative): New variable.
20199         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
20200         way also for ksh and zsh.
20201         (func_init_sed_convert_to_cache_statements): New function, extracted
20202         from func_cache_lookup_module. Add support for associative arrays.
20203         Don't set the c_MODULE_cached variable here. Ignore all lines before
20204         the first field header. Remove only the final newline, not all trailing
20205         newlines. Support empty fields correctly. Limit the use of 'eval' to
20206         assignments.
20207         (func_get_description, func_get_status, func_get_notice,
20208         func_get_applicability, func_get_filelist, func_get_dependencies,
20209         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
20210         func_get_automake_snippet, func_get_include_directive,
20211         func_get_link_directive, func_get_license, func_get_maintainer):
20212         Update documentation. List the unoptimized code first. Add support for
20213         associative arrays. Limit the use of 'eval' to assignments.
20214         (func_get_applicability): Undo stylistic pessimisations.
20215         (func_get_automake_snippet, func_get_include_directive): Reduce code
20216         duplication.
20217         (func_modules_transitive_closure, func_modules_add_dummy,
20218         func_modules_notice, func_modules_to_filelist, func_add_file,
20219         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
20220         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
20221         func_create_testdir, func_create_megatestdir): Update documentation.
20222
20223 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20224
20225         * gnulib-tool (func_cache_lookup_module): Store the module name
20226         belonging to the cache variable; error out if two different
20227         module names map to the same cache variable name.
20228
20229 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20230
20231         gnulib-tool: Make caching optional.
20232         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
20233         Update matching short versions of --no-changelog.
20234         (func_usage): Update.
20235         (sed_extract_cache_prog): Renamed from ...
20236         (sed_extract_prog): ... this; revert to old extraction script.
20237         (func_get_description, func_get_status)
20238         (func_get_notice, func_get_applicability, func_get_filelist)
20239         (func_get_dependencies, func_get_autoconf_early_snippet)
20240         (func_get_autoconf_snippet, func_get_automake_snippet)
20241         (func_get_include_directive, func_get_link_directive)
20242         (func_get_license, func_get_maintainer): If $do_cache is false,
20243         use old, non-caching extraction scripts.
20244         Suggestion by Bruno Haible.
20245
20246 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20247
20248         gnulib-tool: cache module metainformation.
20249         * gnulib-tool (sed_extract_prog): Match newline before each
20250         header, and rewrite header to a shell variable suffix.
20251         (func_cache_var, func_cache_lookup_module): New functions,
20252         to turn a module name into a cache variable prefix, and to
20253         look up and cache module metainformation.
20254         (func_get_description, func_get_status)
20255         (func_get_notice, func_get_applicability, func_get_filelist)
20256         (func_get_dependencies, func_get_autoconf_early_snippet)
20257         (func_get_autoconf_snippet, func_get_automake_snippet)
20258         (func_get_include_directive, func_get_link_directive)
20259         (func_get_license, func_get_maintainer): Use
20260         func_cache_lookup_module.
20261
20262 2010-02-07  Bruno Haible  <bruno@clisp.org>
20263
20264         fnctl: Fix missing dependency.
20265         * modules/fcntl (Depends-on): Add getdtablesize.
20266         Reported by John W. Eaton <jwe@gnu.org>.
20267
20268 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20269
20270         Argp: fix recognition of short alias options.
20271
20272         * lib/argp-parse.c (convert_options): Fix improper use of
20273         `|' between character values.
20274         * tests/test-argp.c (group1_option): New alias option
20275         --read (-r).
20276         (group1_parser): Special handling for 'r'.
20277         (test15): New test case.
20278         (test_fun): Add test15.
20279         * tests/test-argp-2.sh: Update expected --help and --usage
20280         outputs.
20281
20282 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20283
20284         * tests/test-argp.c: Fix indentation.
20285
20286 2010-02-04  Eric Blake  <ebb9@byu.net>
20287
20288         gettimeofday: expose type of second argument
20289         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
20290         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
20291         * tests/test-gettimeofday.c: Use it to silence warning.
20292         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
20293         the issue.
20294
20295 2010-02-03  Jim Meyering  <meyering@redhat.com>
20296
20297         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
20298         * lib/regcomp.c (TYPE_SIGNED): Define.
20299         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
20300
20301         regcomp.c: avoid a new -Wshadow warning
20302         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
20303
20304 2010-02-01  Jim Meyering  <meyering@redhat.com>
20305
20306         removing useless parentheses in cpp #define directives
20307         For motivation, see commit c0221df4, "define STREQ(a,b)
20308         consistently, removing useless parentheses"
20309         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
20310         * lib/mountlist.c (MNT_IGNORE): Likewise.
20311         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
20312
20313 2010-02-01  Eric Blake  <ebb9@byu.net>
20314
20315         sys_time: use link-warning
20316         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
20317         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
20318         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
20319         * modules/sys_time (Depends-on): Add warn-on-use.
20320         (Makefile.am): Always build replacement.
20321         (configure.ac): Update substitutions.
20322         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
20323         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
20324         bother with SYS_TIME_H.
20325         * modules/gettimeofday (configure.ac): Declare indicator.
20326         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
20327         in use.
20328
20329         closein-tests: silence compiler warning
20330         * tests/test-closein.c (main): Ignore fread result.
20331         * modules/closein-tests (Depends-on): Add ignore-value.
20332
20333         tests: silence warning about system return
20334         * tests/test-areadlink-with-size.c (main): Ignore system result.
20335         * tests/test-areadlink.c (main): Likewise.
20336         * tests/test-areadlinkat-with-size.c (main): Likewise.
20337         * tests/test-areadlinkat.c (main): Likewise.
20338         * tests/test-canonicalize-lgpl.c (main): Likewise.
20339         * tests/test-canonicalize.c (main): Likewise.
20340         * tests/test-chown.c (main): Likewise.
20341         * tests/test-fchownat.c (main): Likewise.
20342         * tests/test-fdutimensat.c (main): Likewise.
20343         * tests/test-fstatat.c (main): Likewise.
20344         * tests/test-futimens.c (main): Likewise.
20345         * tests/test-lchown.c (main): Likewise.
20346         * tests/test-link.c (main): Likewise.
20347         * tests/test-linkat.c (main): Likewise.
20348         * tests/test-lstat.c (main): Likewise.
20349         * tests/test-mkdir.c (main): Likewise.
20350         * tests/test-mkdirat.c (main): Likewise.
20351         * tests/test-mkfifo.c (main): Likewise.
20352         * tests/test-mkfifoat.c (main): Likewise.
20353         * tests/test-mknod.c (main): Likewise.
20354         * tests/test-readlink.c (main): Likewise.
20355         * tests/test-remove.c (main): Likewise.
20356         * tests/test-rename.c (main): Likewise.
20357         * tests/test-renameat.c (main): Likewise.
20358         * tests/test-rmdir.c (main): Likewise.
20359         * tests/test-symlink.c (main): Likewise.
20360         * tests/test-symlinkat.c (main): Likewise.
20361         * tests/test-unlink.c (main): Likewise.
20362         * tests/test-unlinkat.c (main): Likewise.
20363         * tests/test-utimens.c (main): Likewise.
20364         * tests/test-utimensat.c (main): Likewise.
20365         * modules/areadlink-tests (Depends-on): Add ignore-value.
20366         * modules/areadlink-with-size-tests (Depends-on): Likewise.
20367         * modules/areadlinkat-tests (Depends-on): Likewise.
20368         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
20369         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20370         * modules/canonicalize-tests (Depends-on): Likewise.
20371         * modules/chown-tests (Depends-on): Likewise.
20372         * modules/fdutimensat-tests (Depends-on): Likewise.
20373         * modules/futimens-tests (Depends-on): Likewise.
20374         * modules/lchown-tests (Depends-on): Likewise.
20375         * modules/link-tests (Depends-on): Likewise.
20376         * modules/linkat-tests (Depends-on): Likewise.
20377         * modules/lstat-tests (Depends-on): Likewise.
20378         * modules/mkdir-tests (Depends-on): Likewise.
20379         * modules/mkfifo-tests (Depends-on): Likewise.
20380         * modules/mkfifoat-tests (Depends-on): Likewise.
20381         * modules/mknod-tests (Depends-on): Likewise.
20382         * modules/openat-tests (Depends-on): Likewise.
20383         * modules/readlink-tests (Depends-on): Likewise.
20384         * modules/remove-tests (Depends-on): Likewise.
20385         * modules/rename-tests (Depends-on): Likewise.
20386         * modules/renameat-tests (Depends-on): Likewise.
20387         * modules/rmdir-tests (Depends-on): Likewise.
20388         * modules/symlink-tests (Depends-on): Likewise.
20389         * modules/symlinkat-tests (Depends-on): Likewise.
20390         * modules/unlink-tests (Depends-on): Likewise.
20391         * modules/utimens-tests (Depends-on): Likewise.
20392         * modules/utimensat-tests (Depends-on): Likewise.
20393
20394 2010-01-31  Bruno Haible  <bruno@clisp.org>
20395
20396         Perform the same test for many <math.h> functions.
20397         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
20398         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
20399         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
20400         of gl_MATHFUNC.
20401         * modules/acos (configure.ac): Likewise.
20402         * modules/asin (configure.ac): Likewise.
20403         * modules/atan (configure.ac): Likewise.
20404         * modules/atan2 (configure.ac): Likewise.
20405         * modules/cbrt (configure.ac): Likewise.
20406         * modules/copysign (configure.ac): Likewise.
20407         * modules/cos (configure.ac): Likewise.
20408         * modules/cosh (configure.ac): Likewise.
20409         * modules/erf (configure.ac): Likewise.
20410         * modules/erfc (configure.ac): Likewise.
20411         * modules/exp (configure.ac): Likewise.
20412         * modules/fmod (configure.ac): Likewise.
20413         * modules/hypot (configure.ac): Likewise.
20414         * modules/j0 (configure.ac): Likewise.
20415         * modules/j1 (configure.ac): Likewise.
20416         * modules/jn (configure.ac): Likewise.
20417         * modules/lgamma (configure.ac): Likewise.
20418         * modules/log (configure.ac): Likewise.
20419         * modules/log10 (configure.ac): Likewise.
20420         * modules/log1p (configure.ac): Likewise.
20421         * modules/pow (configure.ac): Likewise.
20422         * modules/remainder (configure.ac): Likewise.
20423         * modules/sin (configure.ac): Likewise.
20424         * modules/sinh (configure.ac): Likewise.
20425         * modules/tan (configure.ac): Likewise.
20426         * modules/tanh (configure.ac): Likewise.
20427         * modules/y0 (configure.ac): Likewise.
20428         * modules/y1 (configure.ac): Likewise.
20429         * modules/yn (configure.ac): Likewise.
20430         Suggested by Paolo Bonzini.
20431
20432 2010-01-31  Bruno Haible  <bruno@clisp.org>
20433
20434         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
20435
20436 2010-01-31  Bruno Haible  <bruno@clisp.org>
20437
20438         Work around getdelim() bug on FreeBSD 8.0.
20439         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
20440         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
20441         not work.
20442         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
20443         is 1.
20444         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
20445         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
20446         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
20447         a non-zero size.
20448         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
20449
20450 2010-01-31  Bruno Haible  <bruno@clisp.org>
20451
20452         Work around getline() bug on FreeBSD 8.0.
20453         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
20454         and a non-zero size.
20455         * tests/test-getline.c (main): Likewise.
20456         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
20457         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
20458
20459 2010-01-28  Eric Blake  <ebb9@byu.net>
20460
20461         regex: fix build failure
20462         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
20463         platforms.
20464
20465 2010-01-28  Jim Meyering  <meyering@redhat.com>
20466
20467         regex: do not ignore memory allocation failure
20468         * lib/regex_internal.c (create_cd_newstate): Detect
20469         re_node_set_init_copy failure.   Extracted from glibc commit
20470         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20471
20472         regex: sync more white-space changes from libc
20473         * lib/regex_internal.c: White-space only changes.
20474         * lib/regexec.c: Likewise.
20475
20476         regex: add many uses of __attribute_warn_unused_result__
20477         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
20478         * lib/regexec.c: Likewise.
20479         Extracted from a messy glibc commit.
20480
20481         regcomp.c: spelling and merge-artifact from glibc
20482         * lib/regcomp.c: Merge remainder of glibc's
20483         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20484
20485         regcomp.c: sync white-space changes from glibc
20486         * lib/regcomp.c: Merge to accommodate white space
20487         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20488
20489         regcomp.c: do not ignore internal return values
20490         * lib/regcomp.c: Do not ignore internal return values.
20491         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
20492         but without its white-space changes and spelling fixes.
20493
20494         regex_internal.h: define __attribute_warn_unused_result__
20495         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
20496
20497         maint: add a syntax-check rule to check for vulnerable Makefile.in
20498         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
20499
20500 2010-01-27  Jim Meyering  <meyering@redhat.com>
20501
20502         ncftpput-ftp: clean up spaces
20503         * build-aux/ncftpput-ftp: Make Copyright line consistent.
20504         Remove trailing blanks.
20505
20506 2010-01-27  Simon Josefsson  <simon@josefsson.org>
20507
20508         * build-aux/git-version-gen: Fix copyright statement.
20509         * build-aux/gnupload: Likewise.
20510         * tests/test-arcfour.c: Likewise.
20511         * tests/test-arctwo.c: Likewise.
20512         * tests/test-count-one-bits.c: Likewise.
20513         * tests/test-crc.c: Likewise.
20514         * tests/test-des.c: Likewise.
20515         * tests/test-gc-arcfour.c: Likewise.
20516         * tests/test-gc-arctwo.c: Likewise.
20517         * tests/test-gc-des.c: Likewise.
20518         * tests/test-gc-hmac-md5.c: Likewise.
20519         * tests/test-gc-hmac-sha1.c: Likewise.
20520         * tests/test-gc-md2.c: Likewise.
20521         * tests/test-gc-md4.c: Likewise.
20522         * tests/test-gc-md5.c: Likewise.
20523         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20524         * tests/test-gc-rijndael.c: Likewise.
20525         * tests/test-gc-sha1.c: Likewise.
20526         * tests/test-gc.c: Likewise.
20527         * tests/test-gethostname.c: Likewise.
20528         * tests/test-gettimeofday.c: Likewise.
20529         * tests/test-hash.c: Likewise.
20530         * tests/test-hmac-md5.c: Likewise.
20531         * tests/test-hmac-sha1.c: Likewise.
20532         * tests/test-md2.c: Likewise.
20533         * tests/test-md4.c: Likewise.
20534         * tests/test-md5.c: Likewise.
20535         * tests/test-memchr.c: Likewise.
20536         * tests/test-memchr2.c: Likewise.
20537         * tests/test-memcmp.c: Likewise.
20538         * tests/test-memmem.c: Likewise.
20539         * tests/test-memrchr.c: Likewise.
20540         * tests/test-rawmemchr.c: Likewise.
20541         * tests/test-read-file.c: Likewise.
20542         * tests/test-rijndael.c: Likewise.
20543         * tests/test-sockets.c: Likewise.
20544         * tests/test-strchrnul.c: Likewise.
20545         * tests/test-strstr.c: Likewise.
20546         * tests/test-strtod.c: Likewise.
20547         * build-aux/ncftpput-ftp: Likewise.
20548
20549 2010-01-26  Eric Blake  <ebb9@byu.net>
20550
20551         ignore-value: update recommended header name
20552         * modules/ignore-value (Include): Only use <> for headers that
20553         exist in glibc.
20554
20555 2010-01-26  Jim Meyering  <meyering@redhat.com>
20556
20557         test-userspec.c: avoid compiler warnings
20558         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
20559         and "initialization discards qualifiers..." warnings.
20560         Put the first "uid" in its own scope, and make char* members "const".
20561
20562 2010-01-25  Bruno Haible  <bruno@clisp.org>
20563
20564         gnulib-tool: Make warning diagnostics consistent.
20565         * gnulib-tool (func_warning): New function.
20566         Use it everywhere where gnulib-tool produces output to stderr and it is
20567         not a fatal error.
20568
20569 2010-01-25  Bruno Haible  <bruno@clisp.org>
20570
20571         Fix test dependencies.
20572         * modules/xstrtol-tests (Depends-on): Add inttypes.
20573         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
20574
20575 2010-01-25 Pádraig Brady <P@draigBrady.com>
20576
20577         syntax-check: detect incorrect boolean macro values in config.h
20578         * modules/maintainer-makefile (configure.ac): Parameterize the location
20579         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
20580         The logic is from Eric Blake and the location indicated by Jim Meyering.
20581         Note the more natural CONFIG_HEADER name is prohibited by automake
20582         for backwards compatibility reasons.
20583         * top/maint.mk (sc_Wundef_boolean): New rule.
20584
20585 2010-01-25  Jim Meyering  <meyering@redhat.com>
20586
20587         bootstrap: detect MacOS 10.6's shasum, too
20588         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
20589         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
20590
20591 2010-01-23  Jim Meyering  <meyering@redhat.com>
20592
20593         xstrtoll: new module
20594         * modules/xstrtoll: New file.
20595         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
20596         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
20597         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
20598         ./configure fails if you use this module and lack "long long".
20599         * modules/xstrtoll-tests: New module.
20600         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
20601         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
20602         new init.sh-based test framework.
20603
20604 2010-01-24  Bruno Haible  <bruno@clisp.org>
20605
20606         Tests for module 'yn'.
20607         * modules/yn-tests: New file.
20608         * tests/test-yn.c: New file.
20609
20610         Tests for module 'y1'.
20611         * modules/y1-tests: New file.
20612         * tests/test-y1.c: New file.
20613
20614         Tests for module 'y0'.
20615         * modules/y0-tests: New file.
20616         * tests/test-y0.c: New file.
20617
20618         Tests for module 'tanh'.
20619         * modules/tanh-tests: New file.
20620         * tests/test-tanh.c: New file.
20621
20622         Tests for module 'tan'.
20623         * modules/tan-tests: New file.
20624         * tests/test-tan.c: New file.
20625
20626         Tests for module 'sqrt'.
20627         * modules/sqrt-tests: New file.
20628         * tests/test-sqrt.c: New file.
20629
20630         Tests for module 'sinh'.
20631         * modules/sinh-tests: New file.
20632         * tests/test-sinh.c: New file.
20633
20634         Tests for module 'sin'.
20635         * modules/sin-tests: New file.
20636         * tests/test-sin.c: New file.
20637
20638         Tests for module 'rint'.
20639         * modules/rint-tests: New file.
20640         * tests/test-rint.c: New file.
20641
20642         Tests for module 'remainder'.
20643         * modules/remainder-tests: New file.
20644         * tests/test-remainder.c: New file.
20645
20646         Tests for module 'pow'.
20647         * modules/pow-tests: New file.
20648         * tests/test-pow.c: New file.
20649
20650         Tests for module 'nextafter'.
20651         * modules/nextafter-tests: New file.
20652         * tests/test-nextafter.c: New file.
20653
20654         Tests for module 'modf'.
20655         * modules/modf-tests: New file.
20656         * tests/test-modf.c: New file.
20657
20658         Tests for module 'logb'.
20659         * modules/logb-tests: New file.
20660         * tests/test-logb.c: New file.
20661
20662         Tests for module 'log1p'.
20663         * modules/log1p-tests: New file.
20664         * tests/test-log1p.c: New file.
20665
20666         Tests for module 'log10'.
20667         * modules/log10-tests: New file.
20668         * tests/test-log10.c: New file.
20669
20670         Tests for module 'log'.
20671         * modules/log-tests: New file.
20672         * tests/test-log.c: New file.
20673
20674         Tests for module 'lgamma'.
20675         * modules/lgamma-tests: New file.
20676         * tests/test-lgamma.c: New file.
20677
20678         Tests for module 'ldexp'.
20679         * modules/ldexp-tests: New file.
20680         * tests/test-ldexp.c: New file.
20681
20682         Tests for module 'jn'.
20683         * modules/jn-tests: New file.
20684         * tests/test-jn.c: New file.
20685
20686         Tests for module 'j1'.
20687         * modules/j1-tests: New file.
20688         * tests/test-j1.c: New file.
20689
20690         Tests for module 'j0'.
20691         * modules/j0-tests: New file.
20692         * tests/test-j0.c: New file.
20693
20694         Tests for module 'hypot'.
20695         * modules/hypot-tests: New file.
20696         * tests/test-hypot.c: New file.
20697
20698         Tests for module 'fmod'.
20699         * modules/fmod-tests: New file.
20700         * tests/test-fmod.c: New file.
20701
20702         Tests for module 'fabs'.
20703         * modules/fabs-tests: New file.
20704         * tests/test-fabs.c: New file.
20705
20706         Tests for module 'exp'.
20707         * modules/exp-tests: New file.
20708         * tests/test-exp.c: New file.
20709
20710         Tests for module 'erfc'.
20711         * modules/erfc-tests: New file.
20712         * tests/test-erfc.c: New file.
20713
20714         Tests for module 'erf'.
20715         * modules/erf-tests: New file.
20716         * tests/test-erf.c: New file.
20717
20718         Tests for module 'cosh'.
20719         * modules/cosh-tests: New file.
20720         * tests/test-cosh.c: New file.
20721
20722         Tests for module 'cos'.
20723         * modules/cos-tests: New file.
20724         * tests/test-cos.c: New file.
20725
20726         Tests for module 'copysign'.
20727         * modules/copysign-tests: New file.
20728         * tests/test-copysign.c: New file.
20729
20730         Tests for module 'cbrt'.
20731         * modules/cbrt-tests: New file.
20732         * tests/test-cbrt.c: New file.
20733
20734         Tests for module 'atan2'.
20735         * modules/atan2-tests: New file.
20736         * tests/test-atan2.c: New file.
20737
20738         Tests for module 'atan'.
20739         * modules/atan-tests: New file.
20740         * tests/test-atan.c: New file.
20741
20742         Tests for module 'asin'.
20743         * modules/asin-tests: New file.
20744         * tests/test-asin.c: New file.
20745
20746         Tests for module 'acos'.
20747         * modules/acos-tests: New file.
20748         * tests/test-acos.c: New file.
20749
20750 2010-01-24  Bruno Haible  <bruno@clisp.org>
20751
20752         Fix tests for common <math.h> functions.
20753         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
20754         code snippet that references the function pointer, rather than merely
20755         calling the function. Substitute the FUNC_LIBM variable.
20756         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
20757         * modules/acos (configure.ac): Likewise.
20758         * modules/asin (configure.ac): Likewise.
20759         * modules/atan (configure.ac): Likewise.
20760         * modules/atan2 (configure.ac): Likewise.
20761         * modules/cbrt (configure.ac): Likewise.
20762         * modules/copysign (configure.ac): Likewise.
20763         * modules/cos (configure.ac): Likewise.
20764         * modules/cosh (configure.ac): Likewise.
20765         * modules/erf (configure.ac): Likewise.
20766         * modules/erfc (configure.ac): Likewise.
20767         * modules/exp (configure.ac): Likewise.
20768         * modules/fabs (configure.ac): Likewise.
20769         * modules/fmod (configure.ac): Likewise.
20770         * modules/hypot (configure.ac): Likewise.
20771         * modules/j0 (configure.ac): Likewise.
20772         * modules/j1 (configure.ac): Likewise.
20773         * modules/jn (configure.ac): Likewise.
20774         * modules/ldexp (configure.ac): Likewise.
20775         * modules/lgamma (configure.ac): Likewise.
20776         * modules/log (configure.ac): Likewise.
20777         * modules/log10 (configure.ac): Likewise.
20778         * modules/log1p (configure.ac): Likewise.
20779         * modules/logb (configure.ac): Likewise.
20780         * modules/modf (configure.ac): Likewise.
20781         * modules/nextafter (configure.ac): Likewise.
20782         * modules/pow (configure.ac): Likewise.
20783         * modules/remainder (configure.ac): Likewise.
20784         * modules/rint (configure.ac): Likewise.
20785         * modules/sin (configure.ac): Likewise.
20786         * modules/sinh (configure.ac): Likewise.
20787         * modules/tan (configure.ac): Likewise.
20788         * modules/tanh (configure.ac): Likewise.
20789         * modules/y0 (configure.ac): Likewise.
20790         * modules/y1 (configure.ac): Likewise.
20791         * modules/yn (configure.ac): Likewise.
20792
20793 2010-01-24  Bruno Haible  <bruno@clisp.org>
20794
20795         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
20796         * tests/test-acosl.c (x): New variable.
20797         (main): Store argument in x and fetch it from x.
20798         * tests/test-asinl.c (x): New variable.
20799         (main): Store argument in x and fetch it from x.
20800         * tests/test-atanl.c (x): New variable.
20801         (main): Store argument in x and fetch it from x.
20802         * tests/test-cosl.c (x): New variable.
20803         (main): Store argument in x and fetch it from x.
20804         * tests/test-expl.c (x): New variable.
20805         (main): Store argument in x and fetch it from x.
20806         * tests/test-logl.c (x): New variable.
20807         (main): Store argument in x and fetch it from x.
20808         * tests/test-sinl.c (x): New variable.
20809         (main): Store argument in x and fetch it from x.
20810         * tests/test-sqrtl.c (x): New variable.
20811         (main): Store argument in x and fetch it from x.
20812         * tests/test-tanl.c (x): New variable.
20813         (main): Store argument in x and fetch it from x.
20814
20815 2010-01-24  Bruno Haible  <bruno@clisp.org>
20816
20817         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
20818         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
20819         assignments to the initial TESTS_ENVIRONMENT.
20820         * doc/gnulib.texi (Unit test modules): Document it.
20821         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
20822         TESTS_ENVIRONMENT.
20823         * modules/btowc-tests (Makefile.am): Likewise.
20824         * modules/c-stack-tests (Makefile.am): Likewise.
20825         * modules/c-strcase-tests (Makefile.am): Likewise.
20826         * modules/copy-file-tests (Makefile.am): Likewise.
20827         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
20828         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
20829         * modules/mbrtowc-tests (Makefile.am): Likewise.
20830         * modules/mbscasecmp-tests (Makefile.am): Likewise.
20831         * modules/mbscasestr-tests (Makefile.am): Likewise.
20832         * modules/mbschr-tests (Makefile.am): Likewise.
20833         * modules/mbscspn-tests (Makefile.am): Likewise.
20834         * modules/mbsinit-tests (Makefile.am): Likewise.
20835         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
20836         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
20837         * modules/mbspbrk-tests (Makefile.am): Likewise.
20838         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
20839         * modules/mbsrchr-tests (Makefile.am): Likewise.
20840         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
20841         * modules/mbsspn-tests (Makefile.am): Likewise.
20842         * modules/mbsstr-tests (Makefile.am): Likewise.
20843         * modules/nl_langinfo-tests (Makefile.am): Likewise.
20844         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
20845         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
20846         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
20847         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
20848         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
20849         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
20850         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
20851         * modules/wcrtomb-tests (Makefile.am): Likewise.
20852         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
20853         * modules/wcsrtombs-tests (Makefile.am): Likewise.
20854         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
20855         assignments from TESTS_ENVIRONMENT.
20856         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
20857         augmentation.
20858         * modules/argp-version-etc-tests (Makefile.am): Likewise.
20859         * modules/atexit-tests (Makefile.am): Likewise.
20860         * modules/binary-io-tests (Makefile.am): Likewise.
20861         * modules/closein-tests (Makefile.am): Likewise.
20862         * modules/dprintf-posix-tests (Makefile.am): Likewise.
20863         * modules/exclude-tests (Makefile.am): Likewise.
20864         * modules/fflush-tests (Makefile.am): Likewise.
20865         * modules/fpending-tests (Makefile.am): Likewise.
20866         * modules/fprintf-posix-tests (Makefile.am): Likewise.
20867         * modules/freadahead-tests (Makefile.am): Likewise.
20868         * modules/freadptr-tests (Makefile.am): Likewise.
20869         * modules/freadseek-tests (Makefile.am): Likewise.
20870         * modules/fseek-tests (Makefile.am): Likewise.
20871         * modules/fseeko-tests (Makefile.am): Likewise.
20872         * modules/ftell-tests (Makefile.am): Likewise.
20873         * modules/ftello-tests (Makefile.am): Likewise.
20874         * modules/idpriv-drop-tests (Makefile.am): Likewise.
20875         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
20876         * modules/lseek-tests (Makefile.am): Likewise.
20877         * modules/parse-duration-tests (Makefile.am): Likewise.
20878         * modules/perror-tests (Makefile.am): Likewise.
20879         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
20880         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
20881         * modules/pipe-tests (Makefile.am): Likewise.
20882         * modules/pread-tests (Makefile.am): Likewise.
20883         * modules/printf-posix-tests (Makefile.am): Likewise.
20884         * modules/select-tests (Makefile.am): Likewise.
20885         * modules/sigpipe-tests (Makefile.am): Likewise.
20886         * modules/tsearch-tests (Makefile.am): Likewise.
20887         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
20888         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
20889         * modules/uniname/uniname-tests (Makefile.am): Likewise.
20890         * modules/uniwidth/width-tests (Makefile.am): Likewise.
20891         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
20892         * modules/version-etc-tests (Makefile.am): Likewise.
20893         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20894         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20895         * modules/xalloc-die-tests (Makefile.am): Likewise.
20896         * modules/xprintf-posix-tests (Makefile.am): Likewise.
20897         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20898         * modules/xstrtol-tests (Makefile.am): Likewise.
20899         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20900         * modules/yesno-tests (Makefile.am): Likewise.
20901         Suggested by Jim Meyering.
20902
20903 2010-01-24  Bruno Haible  <bruno@clisp.org>
20904
20905         More documentation.
20906         * doc/gnulib.texi (Writing modules): New chapter.
20907         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
20908         the new chapter.
20909
20910 2010-01-24  Jim Meyering  <meyering@redhat.com>
20911
20912         maint.mk: do not prepend "./" after filtering
20913         * top/maint.mk (_prepend_srcdir_prefix): New variable
20914         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
20915         "./" when $(srcdir) is ".".
20916
20917         define STREQ(a,b) consistently, removing useless parentheses
20918         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
20919         since the only risk is that "a" or "b" contains an unparenthesized
20920         comma, but if either did that, STREQ would have 3 or more arguments.
20921         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
20922         * lib/fts.c (STREQ): Remove unnecessary parentheses.
20923         * lib/hash-triple.c (STREQ): Likewise.
20924         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
20925         * lib/getugroups.c (STREQ): Likewise.
20926
20927 2010-01-23  Jim Meyering  <meyering@redhat.com>
20928
20929         maint.mk: fix syntax-check in a non-srcdir build directory
20930         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
20931         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
20932
20933 2010-01-22  Jim Meyering  <meyering@redhat.com>
20934
20935         userspec: add unit tests
20936         * tests/test-userspec.c: New file.
20937         * modules/userspec-tests: Likewise.
20938
20939 2010-01-21  Jim Meyering  <meyering@redhat.com>
20940
20941         maint.mk: handle source file names containing "." robustly
20942         * top/maint.mk (_dot_escaped_srcdir): Define.
20943         (VC_LIST): Use it in LHS of sed substitution.
20944
20945 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
20946
20947         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
20948         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
20949         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
20950         from a non-srcdir build.
20951
20952 2010-01-20  Eric Blake  <ebb9@byu.net>
20953
20954         warn-on-use: use instead of link-warning
20955         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
20956         * modules/unistd (Depends-on, Makefile.am): Likewise.
20957         * modules/arpa_inet (Depends-on): Replace link-warning with
20958         warn-on-use.
20959         (Makefile.am): Update rules accordingly.
20960         * modules/ctype (Depends-on, Makefile.am): Likewise.
20961         * modules/dirent (Depends-on, Makefile.am): Likewise.
20962         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
20963         * modules/inttypes (Depends-on, Makefile.am): Likewise.
20964         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20965         * modules/locale (Depends-on, Makefile.am): Likewise.
20966         * modules/math (Depends-on, Makefile.am): Likewise.
20967         * modules/search (Depends-on, Makefile.am): Likewise.
20968         * modules/signal (Depends-on, Makefile.am): Likewise.
20969         * modules/spawn (Depends-on, Makefile.am): Likewise.
20970         * modules/stdlib (Depends-on, Makefile.am): Likewise.
20971         * modules/string (Depends-on, Makefile.am): Likewise.
20972         * modules/strings (Depends-on, Makefile.am): Likewise.
20973         * modules/sys_file (Depends-on, Makefile.am): Likewise.
20974         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
20975         * modules/sys_select (Depends-on, Makefile.am): Likewise.
20976         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
20977         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
20978         * modules/sys_times (Depends-on, Makefile.am): Likewise.
20979         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20980         * modules/wchar (Depends-on, Makefile.am): Likewise.
20981         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
20982         should be poisoned.
20983         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
20984         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
20985         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
20986         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20987         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20988         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20989         * m4/math_h.m4 (gl_MATH_H): Likewise.
20990         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20991         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
20992         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20993         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20994         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20995         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
20996         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
20997         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
20998         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20999         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21000         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21001         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
21002         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21003         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21004         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21005         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21006         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
21007         GL_LINK_WARNING.
21008         * lib/ctype.in.h: Likewise.
21009         * lib/dirent.in.h: Likewise.
21010         * lib/fcntl.in.h: Likewise.
21011         * lib/inttypes.in.h: Likewise.
21012         * lib/langinfo.in.h: Likewise.
21013         * lib/locale.in.h: Likewise.
21014         * lib/math.in.h: Likewise.
21015         * lib/search.in.h: Likewise.
21016         * lib/signal.in.h: Likewise.
21017         * lib/spawn.in.h: Likewise.
21018         * lib/stdio.in.h: Likewise.
21019         * lib/stdlib.in.h: Likewise.
21020         * lib/string.in.h: Likewise.
21021         * lib/strings.in.h: Likewise.
21022         * lib/sys_file.in.h: Likewise.
21023         * lib/sys_ioctl.in.h: Likewise.
21024         * lib/sys_select.in.h: Likewise.
21025         * lib/sys_socket.in.h: Likewise.
21026         * lib/sys_stat.in.h: Likewise.
21027         * lib/sys_times.in.h: Likewise.
21028         * lib/sys_utsname.in.h: Likewise.
21029         * lib/unistd.in.h: Likewise.
21030         * lib/wchar.in.h: Likewise.
21031
21032 2010-01-20  Bruno Haible  <bruno@clisp.org>
21033
21034         Avoid duplicate -lm.
21035         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
21036         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
21037         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
21038         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
21039         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
21040         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
21041         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
21042         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
21043         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
21044         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
21045         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
21046         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21047         Reported by Paolo Bonzini.
21048
21049 2010-01-19  Bruno Haible  <bruno@clisp.org>
21050
21051         langinfo, nl_langinfo: Relicense under LGPLv2+.
21052         * modules/langinfo (License): Change to LGPLv2+.
21053         * modules/nl_langinfo (License): Likewise.
21054         Patch by David Lutterkort <lutter@redhat.com>.
21055
21056 2010-01-19  Bruno Haible  <bruno@clisp.org>
21057
21058         Avoid compilation error with cc on OSF/1 5.1.
21059         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
21060         statement, not before.
21061         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21062
21063 2010-01-18  Bruno Haible  <bruno@clisp.org>
21064
21065         Avoid a link error due to the __printf__ symbol.
21066         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
21067         and 2.6.x.
21068         (__format__, __printf__): Remove definitions.
21069         * lib/argp-fmtstream.h: Likewise.
21070         * lib/argp.h: Likewise.
21071         * lib/error.h: Likewise.
21072         * lib/vasnprintf.h: Likewise.
21073         * lib/xprintf.h: Likewise.
21074         * lib/xvasprintf.h: Likewise.
21075         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21076
21077 2010-01-18  Bruno Haible  <bruno@clisp.org>
21078
21079         Tests for module 'tanl'.
21080         * modules/tanl-tests: New file.
21081         * tests/test-tanl.c: New file.
21082
21083         Tests for module 'sqrtl'.
21084         * modules/sqrtl-tests: New file.
21085         * tests/test-sqrtl.c: New file.
21086
21087         Tests for module 'sinl'.
21088         * modules/sinl-tests: New file.
21089         * tests/test-sinl.c: New file.
21090
21091         Tests for module 'logl'.
21092         * modules/logl-tests: New file.
21093         * tests/test-logl.c: New file.
21094
21095         Tests for module 'expl'.
21096         * modules/expl-tests: New file.
21097         * tests/test-expl.c: New file.
21098
21099         Tests for module 'cosl'.
21100         * modules/cosl-tests: New file.
21101         * tests/test-cosl.c: New file.
21102
21103         Tests for module 'atanl'.
21104         * modules/atanl-tests: New file.
21105         * tests/test-atanl.c: New file.
21106
21107         Tests for module 'asinl'.
21108         * modules/asinl-tests: New file.
21109         * tests/test-asinl.c: New file.
21110
21111         Tests for module 'acosl'.
21112         * modules/acosl-tests: New file.
21113         * tests/test-acosl.c: New file.
21114
21115         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
21116         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
21117         tanl): Use the standard gnulib idiom.
21118         * lib/cosl.c: Don't include trigl.c and sincosl.c.
21119         * lib/sinl.c: Likewise.
21120         * lib/tanl.c: Don't include trigl.c.
21121         (kernel_tanl): Make static.
21122         * lib/sincosl.c: Include trigl.h first.
21123         * lib/trigl.c: Likewise.
21124         * m4/acosl.m4: New file.
21125         * m4/asinl.m4: New file.
21126         * m4/atanl.m4: New file.
21127         * m4/cosl.m4: New file.
21128         * m4/expl.m4: New file.
21129         * m4/logl.m4: New file.
21130         * m4/sinl.m4: New file.
21131         * m4/sqrtl.m4: New file.
21132         * m4/tanl.m4: New file.
21133         * m4/mathl.m4: Remove file.
21134         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
21135         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
21136         Don't initialize GNULIB_MATHL.
21137         * modules/acosl: New file.
21138         * modules/asinl: New file.
21139         * modules/atanl: New file.
21140         * modules/cosl: New file.
21141         * modules/expl: New file.
21142         * modules/logl: New file.
21143         * modules/sinl: New file.
21144         * modules/sqrtl: New file.
21145         * modules/tanl: New file.
21146         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
21147         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
21148         substitute GNULIB_MATHL.
21149         * modules/mathl: Rewritten.
21150         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
21151         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
21152         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
21153         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
21154         * doc/posix-functions/expl.texi: Mention the 'expl' module.
21155         * doc/posix-functions/logl.texi: Mention the 'logl' module.
21156         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
21157         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
21158         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
21159
21160 2010-01-18  Bruno Haible  <bruno@clisp.org>
21161
21162         sqrt: Make gl_FUNC_SQRT requirable.
21163         * m4/sqrt.m4: New file.
21164         * modules/sqrt (Files): Add it.
21165         (configure.ac): Invoke gl_FUNC_SQRT.
21166
21167 2010-01-18  Bruno Haible  <bruno@clisp.org>
21168
21169         New modules for common <math.h> functions.
21170         * m4/mathfunc.m4: New file.
21171         * modules/acos: New file.
21172         * modules/asin: New file.
21173         * modules/atan: New file.
21174         * modules/atan2: New file.
21175         * modules/cbrt: New file.
21176         * modules/copysign: New file.
21177         * modules/cos: New file.
21178         * modules/cosh: New file.
21179         * modules/erf: New file.
21180         * modules/erfc: New file.
21181         * modules/exp: New file.
21182         * modules/fabs: New file.
21183         * modules/fmod: New file.
21184         * modules/hypot: New file.
21185         * modules/j0: New file.
21186         * modules/j1: New file.
21187         * modules/jn: New file.
21188         * modules/ldexp: New file.
21189         * modules/lgamma: New file.
21190         * modules/log: New file.
21191         * modules/log10: New file.
21192         * modules/log1p: New file.
21193         * modules/logb: New file.
21194         * modules/modf: New file.
21195         * modules/nextafter: New file.
21196         * modules/pow: New file.
21197         * modules/remainder: New file.
21198         * modules/rint: New file.
21199         * modules/sin: New file.
21200         * modules/sinh: New file.
21201         * modules/sqrt: New file.
21202         * modules/tan: New file.
21203         * modules/tanh: New file.
21204         * modules/y0: New file.
21205         * modules/y1: New file.
21206         * modules/yn: New file.
21207         * doc/posix-functions/acos.texi: Mention the 'acos' module.
21208         * doc/posix-functions/asin.texi: Mention the 'asin' module.
21209         * doc/posix-functions/atan.texi: Mention the 'atan' module.
21210         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
21211         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
21212         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
21213         * doc/posix-functions/cos.texi: Mention the 'cos' module.
21214         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
21215         * doc/posix-functions/erf.texi: Mention the 'erf' module.
21216         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
21217         * doc/posix-functions/exp.texi: Mention the 'exp' module.
21218         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
21219         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
21220         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
21221         * doc/posix-functions/j0.texi: Mention the 'j0' module.
21222         * doc/posix-functions/j1.texi: Mention the 'j1' module.
21223         * doc/posix-functions/jn.texi: Mention the 'jn' module.
21224         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
21225         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
21226         * doc/posix-functions/log.texi: Mention the 'log' module.
21227         * doc/posix-functions/log10.texi: Mention the 'log10' module.
21228         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
21229         * doc/posix-functions/logb.texi: Mention the 'logb' module.
21230         * doc/posix-functions/modf.texi: Mention the 'modf' module.
21231         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
21232         * doc/posix-functions/pow.texi: Mention the 'pow' module.
21233         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
21234         * doc/posix-functions/rint.texi: Mention the 'rint' module.
21235         * doc/posix-functions/sin.texi: Mention the 'sin' module.
21236         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
21237         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
21238         * doc/posix-functions/tan.texi: Mention the 'tan' module.
21239         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
21240         * doc/posix-functions/y0.texi: Mention the 'y0' module.
21241         * doc/posix-functions/y1.texi: Mention the 'y1' module.
21242         * doc/posix-functions/yn.texi: Mention the 'yn' module.
21243
21244 2010-01-18  Jim Meyering  <meyering@redhat.com>
21245
21246         ignore-value: relax license to LGPLv2+
21247         * modules/ignore-value (License): Relax to LGPLv2+.
21248
21249         getdate: don't leak when TZ contains two or more '"'s
21250         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
21251         double quote in TZ after the first one.
21252
21253         readtokens: do not leak internal token_lengths buffer
21254         * lib/readtokens.c (readtokens): Free the local, lengths,
21255         when the supplied "token_lengths" parameter is NULL.
21256
21257 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21258
21259         Fix a couple of missing LIBTHREAD link failures on AIX.
21260         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
21261         $(LIBTHREAD).
21262         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
21263
21264         Link test-poll against INET_PTON_LIB.
21265         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
21266         for inet_pton on Solaris 10.
21267
21268 2010-01-17  Bruno Haible  <bruno@clisp.org>
21269
21270         unistdio/*-sprintf: Fix typo in module description.
21271         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
21272         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
21273         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
21274         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
21275         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
21276         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
21277         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
21278         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21279
21280 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21281
21282         gnulib-tool: fix filelist for AIX, HP-UX ksh.
21283         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
21284         variables in shell case patterns, for AIX and HP-UX ksh.
21285
21286         Split large sed scripts, for HP-UX sed.
21287         * modules/stdio: Split sed scripts around 50 sed commands,
21288         to avoid HP-UX limit of 99 commands, in the near future.
21289         * modules/string: Likewise.
21290         * modules/unistd: Likewise.
21291
21292         gnulib-tool: avoid writing in the current directory.
21293         * gnulib-tool (func_emit_lib_Makefile_am)
21294         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
21295         not in the current directory, so concurrent gnulib-tool
21296         instances do not interfere.
21297
21298 2010-01-16  Jim Meyering  <meyering@redhat.com>
21299
21300         doc: update users.txt
21301         * users.txt: Add grep.
21302         (diffutils, gzip): Update URLs.
21303
21304 2010-01-12  Bruno Haible  <bruno@clisp.org>
21305
21306         posix_spawn: Avoid test failure on Cygwin.
21307         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
21308         characters.
21309         Reported by Simon Josefsson.
21310
21311 2010-01-12  Bruno Haible  <bruno@clisp.org>
21312
21313         * tests/test-cond.c (main): When skipping the test, show the reason.
21314
21315 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21316
21317         * lib/striconv.c (str_cd_iconv): Avoid if before free.
21318
21319 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21320
21321         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
21322         VC_LIST_ALWAYS_EXCLUDE_REGEX.
21323
21324 2010-01-12  Eric Blake  <ebb9@byu.net>
21325
21326         build: guarantee AS_VAR_IF
21327         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
21328         (gl_AS_VAR_IF): Move...
21329         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
21330         Reported by Simon Josefsson.
21331
21332 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21333
21334         * lib/stdio.in.h: Fix typo.
21335
21336 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21337
21338         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
21339         libgpg-error.
21340
21341 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21342
21343         * tests/test-xalloc-die.sh: Use $EXEEXT.
21344
21345 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21346             Bruno Haible  <bruno@clisp.org>
21347
21348         getlogin, getlogin_r: Avoid test failure.
21349         * tests/test-getlogin.c: Include <stdio.h>.
21350         (main): Skip the test when the function fails because stdin is not a
21351         tty.
21352         * tests/test-getlogin_r.c: Include <stdio.h>.
21353         (main): Skip the test when the function fails because stdin is not a
21354         tty.
21355
21356 2010-01-11  Eric Blake  <ebb9@byu.net>
21357
21358         tests: avoid more large file warnings
21359         * tests/test-fflush.c: Avoid warning about ftell use.
21360         * tests/test-fseek.c: Avoid warning about fseek use.
21361
21362 2010-01-10  Bruno Haible  <bruno@clisp.org>
21363
21364         nproc: Work better on Linux when /proc and /sys are not mounted.
21365         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
21366         as lower bound when, on glibc/Linux systems,
21367         sysconf (_SC_NPROCESSORS_CONF) returns 1.
21368         Suggested by Pádraig Brady <P@draigbrady.com>.
21369         Reported by Dmitry V. Levin <ldv@altlinux.org>.
21370
21371         nproc: Refactor.
21372         * lib/nproc.c (num_processors_via_affinity_mask): New function,
21373         extracted from num_processors.
21374         (num_processors): Call it.
21375
21376 2010-01-11  Jim Meyering  <meyering@redhat.com>
21377
21378         utimecmp: avoid new warning from upcoming gcc-4.5.0
21379         * lib/utimecmp.c (BILLION): Define using #define rather than an
21380         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
21381
21382 2010-01-11  Eric Blake  <ebb9@byu.net>
21383
21384         math: add portability warnings for classification macros
21385         * modules/math (Depends-on): Add warn-on-use.
21386         (Makefile.am): Provide new substitutions.
21387         * m4/math_h.m4 (gl_MATH_H): Require inline.
21388         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
21389         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
21390         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
21391         implement warnings.
21392
21393         unistd: warn on use of environ without module
21394         * modules/unistd (Depends-on): Add warn-on-use.
21395         (Makefile.am): Provide new substitutions.
21396         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
21397         * lib/unistd.in.h (environ): Wrap with a warning helper function.
21398
21399         stdio: warn on suspicious uses
21400         * modules/stdio (Depends-on): Add warn-on-use.
21401         (Makefile.am): Provide new substitutions.
21402         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
21403         fseeko.
21404         * lib/stdio.in.h (gets): Always warn on use.
21405         (fseek, ftell): Adjust when warnings are issued, and honor
21406         _GL_NO_LARGE_FILES as a way to silence the warning.
21407         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
21408         any warning about large file offsets.
21409         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
21410         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
21411         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
21412         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
21413         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
21414         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
21415         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
21416         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
21417
21418         warn-on-use: new module
21419         * modules/warn-on-use: New file.
21420         * build-aux/warn-on-use.h: Likewise.
21421         * m4/warn-on-use.m4: Likewise.
21422         * MODULES.html.sh (Support for building): Mention it.
21423
21424 2010-01-10  Bruno Haible  <bruno@clisp.org>
21425
21426         Tests for module 'unistr/u32-strdup'.
21427         * modules/unistr/u32-strdup-tests: New file.
21428         * tests/unistr/test-u32-strdup.c: New file.
21429
21430         Tests for module 'unistr/u16-strdup'.
21431         * modules/unistr/u16-strdup-tests: New file.
21432         * tests/unistr/test-u16-strdup.c: New file.
21433
21434         Tests for module 'unistr/u8-strdup'.
21435         * modules/unistr/u8-strdup-tests: New file.
21436         * tests/unistr/test-u8-strdup.c: New file.
21437         * tests/unistr/test-strdup.h: New file.
21438
21439         Tests for module 'unistr/u32-strncmp'.
21440         * modules/unistr/u32-strncmp-tests: New file.
21441         * tests/unistr/test-u32-strncmp.c: New file.
21442
21443         Tests for module 'unistr/u16-strncmp'.
21444         * modules/unistr/u16-strncmp-tests: New file.
21445         * tests/unistr/test-u16-strncmp.c: New file.
21446
21447         Tests for module 'unistr/u8-strncmp'.
21448         * modules/unistr/u8-strncmp-tests: New file.
21449         * tests/unistr/test-u8-strncmp.c: New file.
21450         * tests/unistr/test-strncmp.h: New file.
21451
21452         Tests for module 'unistr/u32-strcoll'.
21453         * modules/unistr/u32-strcoll-tests: New file.
21454         * tests/unistr/test-u32-strcoll.c: New file.
21455
21456         Tests for module 'unistr/u16-strcoll'.
21457         * modules/unistr/u16-strcoll-tests: New file.
21458         * tests/unistr/test-u16-strcoll.c: New file.
21459
21460         Tests for module 'unistr/u8-strcoll'.
21461         * modules/unistr/u8-strcoll-tests: New file.
21462         * tests/unistr/test-u8-strcoll.c: New file.
21463
21464         Tests for module 'unistr/u32-strcmp'.
21465         * modules/unistr/u32-strcmp-tests: New file.
21466         * tests/unistr/test-u32-strcmp.c: New file.
21467         * tests/unistr/test-u32-strcmp.h: New file.
21468
21469         Tests for module 'unistr/u16-strcmp'.
21470         * modules/unistr/u16-strcmp-tests: New file.
21471         * tests/unistr/test-u16-strcmp.c: New file.
21472         * tests/unistr/test-u16-strcmp.h: New file.
21473
21474         Tests for module 'unistr/u8-strcmp'.
21475         * modules/unistr/u8-strcmp-tests: New file.
21476         * tests/unistr/test-u8-strcmp.c: New file.
21477         * tests/unistr/test-u8-strcmp.h: New file.
21478         * tests/unistr/test-strcmp.h: New file.
21479
21480         Tests for module 'unistr/u32-strncat'.
21481         * modules/unistr/u32-strncat-tests: New file.
21482         * tests/unistr/test-u32-strncat.c: New file.
21483
21484         Tests for module 'unistr/u16-strncat'.
21485         * modules/unistr/u16-strncat-tests: New file.
21486         * tests/unistr/test-u16-strncat.c: New file.
21487
21488         Tests for module 'unistr/u8-strncat'.
21489         * modules/unistr/u8-strncat-tests: New file.
21490         * tests/unistr/test-u8-strncat.c: New file.
21491         * tests/unistr/test-strncat.h: New file.
21492
21493         Tests for module 'unistr/u32-strcat'.
21494         * modules/unistr/u32-strcat-tests: New file.
21495         * tests/unistr/test-u32-strcat.c: New file.
21496
21497         Tests for module 'unistr/u16-strcat'.
21498         * modules/unistr/u16-strcat-tests: New file.
21499         * tests/unistr/test-u16-strcat.c: New file.
21500
21501         Tests for module 'unistr/u8-strcat'.
21502         * modules/unistr/u8-strcat-tests: New file.
21503         * tests/unistr/test-u8-strcat.c: New file.
21504         * tests/unistr/test-strcat.h: New file.
21505
21506         Tests for module 'unistr/u32-stpncpy'.
21507         * modules/unistr/u32-stpncpy-tests: New file.
21508         * tests/unistr/test-u32-stpncpy.c: New file.
21509
21510         Tests for module 'unistr/u16-stpncpy'.
21511         * modules/unistr/u16-stpncpy-tests: New file.
21512         * tests/unistr/test-u16-stpncpy.c: New file.
21513
21514         Tests for module 'unistr/u8-stpncpy'.
21515         * modules/unistr/u8-stpncpy-tests: New file.
21516         * tests/unistr/test-u8-stpncpy.c: New file.
21517         * tests/unistr/test-stpncpy.h: New file.
21518
21519         Tests for module 'unistr/u32-strncpy'.
21520         * modules/unistr/u32-strncpy-tests: New file.
21521         * tests/unistr/test-u32-strncpy.c: New file.
21522
21523         Tests for module 'unistr/u16-strncpy'.
21524         * modules/unistr/u16-strncpy-tests: New file.
21525         * tests/unistr/test-u16-strncpy.c: New file.
21526
21527         Tests for module 'unistr/u8-strncpy'.
21528         * modules/unistr/u8-strncpy-tests: New file.
21529         * tests/unistr/test-u8-strncpy.c: New file.
21530         * tests/unistr/test-strncpy.h: New file.
21531
21532         Tests for module 'unistr/u32-stpcpy'.
21533         * modules/unistr/u32-stpcpy-tests: New file.
21534         * tests/unistr/test-u32-stpcpy.c: New file.
21535
21536         Tests for module 'unistr/u16-stpcpy'.
21537         * modules/unistr/u16-stpcpy-tests: New file.
21538         * tests/unistr/test-u16-stpcpy.c: New file.
21539
21540         Tests for module 'unistr/u8-stpcpy'.
21541         * modules/unistr/u8-stpcpy-tests: New file.
21542         * tests/unistr/test-u8-stpcpy.c: New file.
21543         * tests/unistr/test-stpcpy.h: New file.
21544
21545         Tests for module 'unistr/u32-strcpy'.
21546         * modules/unistr/u32-strcpy-tests: New file.
21547         * tests/unistr/test-u32-strcpy.c: New file.
21548
21549         Tests for module 'unistr/u16-strcpy'.
21550         * modules/unistr/u16-strcpy-tests: New file.
21551         * tests/unistr/test-u16-strcpy.c: New file.
21552
21553         Tests for module 'unistr/u8-strcpy'.
21554         * modules/unistr/u8-strcpy-tests: New file.
21555         * tests/unistr/test-u8-strcpy.c: New file.
21556         * tests/unistr/test-strcpy.h: New file.
21557
21558         Tests for module 'unistr/u32-strnlen'.
21559         * modules/unistr/u32-strnlen-tests: New file.
21560         * tests/unistr/test-u32-strnlen.c: New file.
21561
21562         Tests for module 'unistr/u16-strnlen'.
21563         * modules/unistr/u16-strnlen-tests: New file.
21564         * tests/unistr/test-u16-strnlen.c: New file.
21565
21566         Tests for module 'unistr/u8-strnlen'.
21567         * modules/unistr/u8-strnlen-tests: New file.
21568         * tests/unistr/test-u8-strnlen.c: New file.
21569         * tests/unistr/test-strnlen.h: New file.
21570
21571         Tests for module 'unistr/u32-strlen'.
21572         * modules/unistr/u32-strlen-tests: New file.
21573         * tests/unistr/test-u32-strlen.c: New file.
21574
21575         Tests for module 'unistr/u16-strlen'.
21576         * modules/unistr/u16-strlen-tests: New file.
21577         * tests/unistr/test-u16-strlen.c: New file.
21578
21579         Tests for module 'unistr/u8-strlen'.
21580         * modules/unistr/u8-strlen-tests: New file.
21581         * tests/unistr/test-u8-strlen.c: New file.
21582
21583         Tests for module 'unistr/u32-prev'.
21584         * modules/unistr/u32-prev-tests: New file.
21585         * tests/unistr/test-u32-prev.c: New file.
21586
21587         Tests for module 'unistr/u16-prev'.
21588         * modules/unistr/u16-prev-tests: New file.
21589         * tests/unistr/test-u16-prev.c: New file.
21590
21591         Tests for module 'unistr/u8-prev'.
21592         * modules/unistr/u8-prev-tests: New file.
21593         * tests/unistr/test-u8-prev.c: New file.
21594
21595         Tests for module 'unistr/u32-next'.
21596         * modules/unistr/u32-next-tests: New file.
21597         * tests/unistr/test-u32-next.c: New file.
21598
21599         Tests for module 'unistr/u16-next'.
21600         * modules/unistr/u16-next-tests: New file.
21601         * tests/unistr/test-u16-next.c: New file.
21602
21603         Tests for module 'unistr/u8-next'.
21604         * modules/unistr/u8-next-tests: New file.
21605         * tests/unistr/test-u8-next.c: New file.
21606
21607         Tests for module 'unistr/u32-strmbtouc'.
21608         * modules/unistr/u32-strmbtouc-tests: New file.
21609         * tests/unistr/test-u32-strmbtouc.c: New file.
21610
21611         Tests for module 'unistr/u16-strmbtouc'.
21612         * modules/unistr/u16-strmbtouc-tests: New file.
21613         * tests/unistr/test-u16-strmbtouc.c: New file.
21614
21615         Tests for module 'unistr/u8-strmbtouc'.
21616         * modules/unistr/u8-strmbtouc-tests: New file.
21617         * tests/unistr/test-u8-strmbtouc.c: New file.
21618
21619         Tests for module 'unistr/u32-strmblen'.
21620         * modules/unistr/u32-strmblen-tests: New file.
21621         * tests/unistr/test-u32-strmblen.c: New file.
21622
21623         Tests for module 'unistr/u16-strmblen'.
21624         * modules/unistr/u16-strmblen-tests: New file.
21625         * tests/unistr/test-u16-strmblen.c: New file.
21626
21627         Tests for module 'unistr/u8-strmblen'.
21628         * modules/unistr/u8-strmblen-tests: New file.
21629         * tests/unistr/test-u8-strmblen.c: New file.
21630
21631         Tests for module 'unistr/u32-cpy-alloc'.
21632         * modules/unistr/u32-cpy-alloc-tests: New file.
21633         * tests/unistr/test-u32-cpy-alloc.c: New file.
21634
21635         Tests for module 'unistr/u16-cpy-alloc'.
21636         * modules/unistr/u16-cpy-alloc-tests: New file.
21637         * tests/unistr/test-u16-cpy-alloc.c: New file.
21638
21639         Tests for module 'unistr/u8-cpy-alloc'.
21640         * modules/unistr/u8-cpy-alloc-tests: New file.
21641         * tests/unistr/test-u8-cpy-alloc.c: New file.
21642         * tests/unistr/test-cpy-alloc.h: New file.
21643
21644         Tests for module 'unistr/u32-mbsnlen'.
21645         * modules/unistr/u32-mbsnlen-tests: New file.
21646         * tests/unistr/test-u32-mbsnlen.c: New file.
21647
21648         Tests for module 'unistr/u16-mbsnlen'.
21649         * modules/unistr/u16-mbsnlen-tests: New file.
21650         * tests/unistr/test-u16-mbsnlen.c: New file.
21651
21652         Tests for module 'unistr/u8-mbsnlen'.
21653         * modules/unistr/u8-mbsnlen-tests: New file.
21654         * tests/unistr/test-u8-mbsnlen.c: New file.
21655
21656         Tests for module 'unistr/u32-chr'.
21657         * modules/unistr/u32-chr-tests: New file.
21658         * tests/unistr/test-u32-chr.c: New file.
21659
21660         Tests for module 'unistr/u16-chr'.
21661         * modules/unistr/u16-chr-tests: New file.
21662         * tests/unistr/test-u16-chr.c: New file.
21663
21664         Tests for module 'unistr/u8-chr'.
21665         * modules/unistr/u8-chr-tests: New file.
21666         * tests/unistr/test-u8-chr.c: New file.
21667         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
21668
21669         Tests for module 'unistr/u32-cmp2'.
21670         * modules/unistr/u32-cmp2-tests: New file.
21671         * tests/unistr/test-u32-cmp2.c: New file.
21672
21673         Tests for module 'unistr/u16-cmp2'.
21674         * modules/unistr/u16-cmp2-tests: New file.
21675         * tests/unistr/test-u16-cmp2.c: New file.
21676
21677         Tests for module 'unistr/u8-cmp2'.
21678         * modules/unistr/u8-cmp2-tests: New file.
21679         * tests/unistr/test-u8-cmp2.c: New file.
21680         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
21681
21682         Tests for module 'unistr/u32-cmp'.
21683         * modules/unistr/u32-cmp-tests: New file.
21684         * tests/unistr/test-u32-cmp.c: New file.
21685
21686         Tests for module 'unistr/u16-cmp'.
21687         * modules/unistr/u16-cmp-tests: New file.
21688         * tests/unistr/test-u16-cmp.c: New file.
21689
21690         Tests for module 'unistr/u8-cmp'.
21691         * modules/unistr/u8-cmp-tests: New file.
21692         * tests/unistr/test-u8-cmp.c: New file.
21693         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
21694
21695         Tests for module 'unistr/u32-set'.
21696         * modules/unistr/u32-set-tests: New file.
21697         * tests/unistr/test-u32-set.c: New file.
21698
21699         Tests for module 'unistr/u16-set'.
21700         * modules/unistr/u16-set-tests: New file.
21701         * tests/unistr/test-u16-set.c: New file.
21702
21703         Tests for module 'unistr/u8-set'.
21704         * modules/unistr/u8-set-tests: New file.
21705         * tests/unistr/test-u8-set.c: New file.
21706         * tests/unistr/test-set.h: New file.
21707
21708         Tests for module 'unistr/u32-move'.
21709         * modules/unistr/u32-move-tests: New file.
21710         * tests/unistr/test-u32-move.c: New file.
21711
21712         Tests for module 'unistr/u16-move'.
21713         * modules/unistr/u16-move-tests: New file.
21714         * tests/unistr/test-u16-move.c: New file.
21715
21716         Tests for module 'unistr/u8-move'.
21717         * modules/unistr/u8-move-tests: New file.
21718         * tests/unistr/test-u8-move.c: New file.
21719         * tests/unistr/test-move.h: New file.
21720
21721         Tests for module 'unistr/u32-cpy'.
21722         * modules/unistr/u32-cpy-tests: New file.
21723         * tests/unistr/test-u32-cpy.c: New file.
21724
21725         Tests for module 'unistr/u16-cpy'.
21726         * modules/unistr/u16-cpy-tests: New file.
21727         * tests/unistr/test-u16-cpy.c: New file.
21728
21729         Tests for module 'unistr/u8-cpy'.
21730         * modules/unistr/u8-cpy-tests: New file.
21731         * tests/unistr/test-u8-cpy.c: New file.
21732         * tests/unistr/test-cpy.h: New file.
21733
21734 2010-01-09  Bruno Haible  <bruno@clisp.org>
21735
21736         Tests for module 'unistr/u32-uctomb'.
21737         * modules/unistr/u32-uctomb-tests: New file.
21738         * tests/unistr/test-u32-uctomb.c: New file.
21739
21740         Tests for module 'unistr/u16-uctomb'.
21741         * modules/unistr/u16-uctomb-tests: New file.
21742         * tests/unistr/test-u16-uctomb.c: New file.
21743
21744         Tests for module 'unistr/u8-uctomb'.
21745         * modules/unistr/u8-uctomb-tests: New file.
21746         * tests/unistr/test-u8-uctomb.c: New file.
21747
21748         Tests for module 'unistr/u32-mbtoucr'.
21749         * modules/unistr/u32-mbtoucr-tests: New file.
21750         * tests/unistr/test-u32-mbtoucr.c: New file.
21751
21752         Tests for module 'unistr/u16-mbtoucr'.
21753         * modules/unistr/u16-mbtoucr-tests: New file.
21754         * tests/unistr/test-u16-mbtoucr.c: New file.
21755
21756         Tests for module 'unistr/u8-mbtoucr'.
21757         * modules/unistr/u8-mbtoucr-tests: New file.
21758         * tests/unistr/test-u8-mbtoucr.c: New file.
21759
21760         Tests for module 'unistr/u32-mbtouc'.
21761         * modules/unistr/u32-mbtouc-tests: New file.
21762         * tests/unistr/test-u32-mbtouc.c: New file.
21763
21764         Tests for module 'unistr/u16-mbtouc'.
21765         * modules/unistr/u16-mbtouc-tests: New file.
21766         * tests/unistr/test-u16-mbtouc.c: New file.
21767
21768         Tests for module 'unistr/u8-mbtouc'.
21769         * modules/unistr/u8-mbtouc-tests: New file.
21770         * tests/unistr/test-u8-mbtouc.c: New file.
21771
21772         Tests for module 'unistr/u32-mbtouc-unsafe'.
21773         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
21774         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
21775         * tests/unistr/test-u32-mbtouc.h: New file.
21776
21777         Tests for module 'unistr/u16-mbtouc-unsafe'.
21778         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
21779         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
21780         * tests/unistr/test-u16-mbtouc.h: New file.
21781
21782         Tests for module 'unistr/u8-mbtouc-unsafe'.
21783         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
21784         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
21785         * tests/unistr/test-u8-mbtouc.h: New file.
21786
21787         Tests for module 'unistr/u32-mblen'.
21788         * modules/unistr/u32-mblen-tests: New file.
21789         * tests/unistr/test-u32-mblen.c: New file.
21790
21791         Tests for module 'unistr/u16-mblen'.
21792         * modules/unistr/u16-mblen-tests: New file.
21793         * tests/unistr/test-u16-mblen.c: New file.
21794
21795         Tests for module 'unistr/u8-mblen'.
21796         * modules/unistr/u8-mblen-tests: New file.
21797         * tests/unistr/test-u8-mblen.c: New file.
21798
21799         Tests for module 'unistr/u32-to-u16'.
21800         * modules/unistr/u32-to-u16-tests: New file.
21801         * tests/unistr/test-u32-to-u16.c: New file.
21802
21803         Tests for module 'unistr/u32-to-u8'.
21804         * modules/unistr/u32-to-u8-tests: New file.
21805         * tests/unistr/test-u32-to-u8.c: New file.
21806
21807         Tests for module 'unistr/u16-to-u32'.
21808         * modules/unistr/u16-to-u32-tests: New file.
21809         * tests/unistr/test-u16-to-u32.c: New file.
21810
21811         Tests for module 'unistr/u16-to-u8'.
21812         * modules/unistr/u16-to-u8-tests: New file.
21813         * tests/unistr/test-u16-to-u8.c: New file.
21814
21815         Tests for module 'unistr/u8-to-u32'.
21816         * modules/unistr/u8-to-u32-tests: New file.
21817         * tests/unistr/test-u8-to-u32.c: New file.
21818
21819         Tests for module 'unistr/u8-to-u16'.
21820         * modules/unistr/u8-to-u16-tests: New file.
21821         * tests/unistr/test-u8-to-u16.c: New file.
21822
21823         Tests for module 'unistr/u32-check'.
21824         * modules/unistr/u32-check-tests: New file.
21825         * tests/unistr/test-u32-check.c: New file.
21826
21827         Tests for module 'unistr/u16-check'.
21828         * modules/unistr/u16-check-tests: New file.
21829         * tests/unistr/test-u16-check.c: New file.
21830
21831         Tests for module 'unistr/u8-check'.
21832         * modules/unistr/u8-check-tests: New file.
21833         * tests/unistr/test-u8-check.c: New file.
21834
21835         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
21836         (category_equals): New function.
21837         (main): Add more tests.
21838         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
21839
21840         * tests/unictype/test-bidi_byname.c (main): Add more tests.
21841
21842 2010-01-10  Bruno Haible  <bruno@clisp.org>
21843
21844         unistr/u*-strcoll: Try harder to distinguish different strings.
21845         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
21846         compare s1 and s2 to see if they are different.
21847
21848 2010-01-10  Bruno Haible  <bruno@clisp.org>
21849
21850         unistr/u*-stpncpy: Fix the return value.
21851         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
21852         description of the return value consistent with stpncpy in glibc.
21853         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
21854         written non-NUL unit.
21855
21856 2010-01-10  Bruno Haible  <bruno@clisp.org>
21857
21858         unistr/u*-next: Add missing dependencies.
21859         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
21860         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
21861         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
21862
21863 2010-01-10  Bruno Haible  <bruno@clisp.org>
21864
21865         unistr/u8-mbsnlen: Fix return value for incomplete character.
21866         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
21867         u8_mblen.
21868         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
21869         Remove unistr/u8-mblen.
21870         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
21871         u16_mblen.
21872         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
21873         Remove unistr/u16-mblen.
21874
21875 2010-01-10  Bruno Haible  <bruno@clisp.org>
21876
21877         wchar: Fix compilation error when <wchar.h> is used from coreutils.
21878         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
21879         Reported by Brian Gough <bjg@gnu.org> and
21880         Chris Clayton <chris2553@googlemail.com> via
21881         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
21882
21883 2010-01-09  Bruno Haible  <bruno@clisp.org>
21884
21885         unistr/u16-to-u32: Reject invalid input.
21886         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
21887         u16_mbtouc.
21888         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
21889         Remove unistr/u16-mbtouc.
21890
21891         unistr/u16-to-u8: Reject invalid input.
21892         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
21893         u16_mbtouc.
21894         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
21895         Remove unistr/u16-mbtouc.
21896
21897         unistr/u8-to-u32: Reject invalid input.
21898         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
21899         u8_mbtouc.
21900         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
21901         Remove unistr/u8-mbtouc.
21902
21903         unistr/u8-to-u16: Reject invalid input.
21904         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
21905         u8_mbtouc.
21906         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
21907         Remove unistr/u8-mbtouc.
21908
21909 2010-01-09  Bruno Haible  <bruno@clisp.org>
21910
21911         Tests for module 'getlogin'.
21912         * modules/getlogin-tests: New file.
21913         * tests/test-getlogin.c: New file.
21914
21915         New module 'getlogin'.
21916         * lib/unistd.in.h (getlogin): New declaration.
21917         * lib/getlogin.c: New file.
21918         * m4/getlogin.m4: New file.
21919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
21920         HAVE_GETLOGIN.
21921         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
21922         HAVE_GETLOGIN.
21923         * modules/getlogin: New file.
21924         * doc/posix-functions/getlogin.texi: Mention the new module.
21925         Reported by John W. Eaton <jwe@gnu.org>.
21926
21927 2010-01-09  Bruno Haible  <bruno@clisp.org>
21928
21929         getlogin_r: Support for native Windows.
21930         * lib/getlogin_r.c: Include <windows.h>
21931         (getlogin_r): Implement for native Windows.
21932         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
21933         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
21934         via John W. Eaton <jwe@gnu.org>.
21935
21936 2010-01-09  Bruno Haible  <bruno@clisp.org>
21937
21938         getlogin_r: Small fixes.
21939         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
21940         succeeds.
21941         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
21942         before testing whether getlogin_r is declared. No need to set
21943         HAVE_DECL_GETLOGIN_R to 1.
21944         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
21945
21946 2010-01-09  Bruno Haible  <bruno@clisp.org>
21947
21948         * lib/unistd.in.h (getlogin_r): Add comment.
21949
21950 2010-01-09  Bruno Haible  <bruno@clisp.org>
21951
21952         Tests for module 'getlogin_r'.
21953         * modules/getlogin_r-tests: New file.
21954         * tests/test-getlogin_r.c: New file.
21955
21956 2010-01-09  Jim Meyering  <meyering@redhat.com>
21957
21958         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
21959         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
21960         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
21961
21962 2010-01-08  Simon Josefsson  <simon@josefsson.org>
21963
21964         * lib/dup2.c (rpl_dup2): Improve comment.
21965
21966 2010-01-08  Eric Blake  <ebb9@byu.net>
21967
21968         maint.mk: allow packages to add makefile @@ exceptions
21969         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
21970         (sc_makefile_check): Rename...
21971         (sc_makefile_at_at_check): ...to this, and use hook.
21972
21973         dup2: work around mingw bug
21974         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
21975         Reported by Simon Josefsson.
21976
21977 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
21978
21979         glob: Fix C++ compilation.
21980         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
21981         C++.
21982
21983 2010-01-07  Bruno Haible  <bruno@clisp.org>
21984
21985         Fix indentation of wctype.in.h, broken since 2007-01-06.
21986         * lib/wctype.in.h: Fix indentation of preprocessor directives.
21987
21988 2010-01-07  Bruno Haible  <bruno@clisp.org>
21989
21990         mbslen: Avoid collision with system function.
21991         * lib/string.in.h [MirBSD]: Include <wchar.h>.
21992         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
21993         * m4/mbslen.m4: New file.
21994         * modules/mbslen (Files): Add it.
21995         (configure.ac): Invoke gl_MBSLEN.
21996         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
21997         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
21998         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
21999         via Ian Beckwith <ianb@erislabs.net>.
22000
22001 2010-01-07  Bruno Haible  <bruno@clisp.org>
22002
22003         dirent: Document the last fix.
22004         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
22005
22006 2010-01-07  Bruno Haible  <bruno@clisp.org>
22007
22008         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
22009         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
22010         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
22011         va_list are defined.
22012         * doc/posix-headers/stdio.texi: Document the bug of missing types.
22013         Reported by Eric Blake.
22014
22015 2010-01-07  Bruno Haible  <bruno@clisp.org>
22016
22017         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
22018         * modules/xlist (Depends-on): Add 'list',
22019         * modules/xoset (Depends-on): Add 'oset'.
22020         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22021
22022 2010-01-07  Bruno Haible  <bruno@clisp.org>
22023
22024         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
22025         * doc/posix-functions/strncasecmp.texi: Likewise.
22026
22027 2010-01-07  Bruno Haible  <bruno@clisp.org>
22028
22029         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
22030
22031 2010-01-07  John W. Eaton  <jwe@octave.org>
22032
22033         wctype: allow C++ use
22034         * lib/wctype.in.h: Add extern "C" block for C++.
22035
22036 2010-01-06  Eric Blake  <ebb9@byu.net>
22037
22038         maint.mk: detect incorrect GFDL usage
22039         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
22040
22041 2010-01-06  Jim Meyering  <meyering@redhat.com>
22042         and Eric Blake  <ebb9@byu.net>
22043
22044         maint.mk: ignore multi-line copyright in NEWS
22045         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
22046
22047 2010-01-06  Eric Blake  <ebb9@byu.net>
22048
22049         select: add missing dependency
22050         * modules/select-tests (Depends-on): Move sockets dependency...
22051         * modules/select (Depends-on): ...here.
22052         Reported by Ian Beckwith.
22053
22054         doc: regenerate INSTALL
22055         * doc/INSTALL: Reflect recent autoconf update.
22056         * doc/INSTALL.ISO: Likewise.
22057         * doc/INSTALL.UTF-8: Likewise.
22058
22059         pread: fix compilation on glibc
22060         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
22061         Reported by Ralf Wildenhues.
22062
22063         dirent: fix test failure
22064         * lib/dirent.in.h (includes): Guarantee ino_t.
22065         Reported by Ralf Wildenhues.
22066
22067 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
22068
22069         linkat, renameat: avoid bad free
22070         * lib/at-func2.c (at_func2): Fix typo.
22071         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
22072
22073 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22074
22075         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
22076         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
22077         to avoid failure of symlink test later.
22078
22079 2010-01-06  Eric Blake  <ebb9@byu.net>
22080
22081         stdio, unistd: guarantee ssize_t
22082         * lib/unistd.in.h (includes): Ensure that types required by POSIX
22083         2008 are exposed when needed.
22084         * lib/stdio.in.h (includes): Likewise.
22085         Reported by Ralf Wildenhues.
22086
22087 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
22088
22089         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
22090         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
22091         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
22092
22093 2010-01-06  Jim Meyering  <meyering@redhat.com>
22094
22095         readtokens: this module *does* require xalloc.h
22096         It uses only functions that were omitted by the old syntax-check rule.
22097         * lib/readtokens.c: Include "xalloc.h" once again.
22098         * modules/readtokens (Depends-on): Add xalloc.
22099         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
22100
22101 2010-01-05  Eric Blake  <ebb9@byu.net>
22102
22103         maint: support 'make announcement' from a VPATH build
22104         * top/maint.mk (announcement): Look for correct NEWS file.
22105
22106 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
22107
22108         utimens (fdutimens): ignore a negative FD, per contract
22109         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
22110         when we have a valid file descriptor.  Otherwise, using a brand
22111         new glibc (with just-patched futimens that now fails with EBADF)
22112         would cause this function to fail with ENOSYS.
22113         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
22114         See also http://bugzilla.redhat.com/552320.
22115
22116 2010-01-05  Eric Blake  <ebb9@byu.net>
22117
22118         strcase: document what it provides
22119         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
22120         gnulib module.
22121         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
22122         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
22123
22124 2010-01-05  Jim Meyering  <meyering@redhat.com>
22125
22126         maint: remove useless inclusions of "xalloc.h"
22127         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
22128         * lib/readtokens.c: Likewise.
22129         * lib/same.c: Likewise.
22130         * modules/getloadavg (Depends-on): Remove xalloc.
22131         * modules/readtokens: Likewise.
22132         * modules/same: Likewise.
22133
22134         maint.mk: include 4 more function names in alloca.h-checking regexp
22135         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
22136         regexp.  Before, we would give a false-positive (saying alloca.h
22137         is included unnecessarily) when the only uses involved omitted symbols.
22138
22139         xalloc.h: use consistent formatting
22140         * lib/xalloc.h: Move declarations to start in the first column.
22141
22142 2010-01-05  Eric Blake  <ebb9@byu.net>
22143
22144         mkdir: avoid xalloc
22145         * lib/mkdir.c (includes): Drop unused header.
22146         Reported by John W. Eaton.
22147
22148 2010-01-04  Jim Meyering  <meyering@redhat.com>
22149
22150         nl_langinfo: avoid configure-time syntax error
22151         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
22152         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
22153         the empty string.  Don't let that provoke a shell syntax error.
22154
22155         regcomp, regexec, fnmatch: avoid array bounds read error
22156         * lib/regcomp.c (build_equiv_class): From glibc:
22157         Use only the low 24 bits of a findidx return value as an index
22158         into the weights array.  Patch by Ulrich Drepper:
22159         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
22160         * lib/regexec.c (check_node_accept_bytes): Likewise.
22161         * lib/fnmatch_loop.c (FCT): Likewise.
22162
22163         regcomp: skip collseq lookup when there are no rules
22164         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
22165         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
22166
22167         regcomp: recognize ill-formed { } expressions
22168         * lib/regcomp.c (parse_dup_op): From glibc:
22169         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
22170
22171         regcomp: fix typo in comment
22172         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
22173         s/satisfy/satisfies/.
22174
22175         regcomp: sync from glibc: remove dead store
22176         * lib/regcomp.c (duplicate_node_closure): Remove useless
22177         search_duplicated_node call and dead store.
22178
22179         regcomp: sync from glibc; always use nl_langinfo
22180         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
22181         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
22182         * modules/regex (Depends-on): Add nl_langinfo.
22183
22184 2010-01-04  Eric Blake  <ebb9@byu.net>
22185
22186         fdopendir: fix configure test
22187         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
22188
22189 2010-01-01  Bruno Haible  <bruno@clisp.org>
22190
22191         wchar: Remove unused configure check.
22192         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
22193
22194 2010-01-01  Eric Blake  <ebb9@byu.net>
22195
22196         headers: make check of system header explicit
22197         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
22198         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
22199         ourselves.
22200         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22201         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22202         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
22203         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
22204         internals.
22205         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
22206         missing.
22207         Suggested by Bruno Haible.
22208
22209 2010-01-01  Jim Meyering  <meyering@redhat.com>
22210
22211         ChangeLog: tweak to eliminate unnecessary copyright line
22212         * ChangeLog: Remove a copyright line that was mistakenly updated
22213         by today's update-copyright run.  Reported by Eric Blake.
22214
22215         test-update-copyright: don't let envvar setting cause test failure
22216         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22217
22218 2010-01-01  Bruno Haible  <bruno@clisp.org>
22219
22220         localename: Avoid gcc warning.
22221         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
22222         function if it is not used.
22223
22224 2010-01-01  Jim Meyering  <meyering@redhat.com>
22225
22226         update nearly all FSF copyright year lists to include 2010
22227         Use the same procedure as for 2009, outlined in
22228         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
22229
22230         version-etc: set COPYRIGHT_YEAR to 2010
22231         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
22232
22233 2009-12-31  Eric Blake  <ebb9@byu.net>
22234
22235         doc: correct availability of cygwin 1.5.x getopt
22236         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
22237         variables.
22238         * doc/posix-functions/opterr.texi (opterr): Likewise.
22239         * doc/posix-functions/optind.texi (optind): Likewise.
22240         * doc/posix-functions/optopt.texi (optopt): Likewise.
22241         * doc/posix-functions/tzname.texi (tzname): Likewise.
22242
22243         openat: update maintainer
22244         * modules/openat (Maintainer): Add myself.
22245
22246         utimens: avoid shadowing warning
22247         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
22248         buffers into one, to avoid shadowing, as well as avoiding a
22249         redundant stat.
22250         Reported by Jim Meyering.
22251
22252         test-dup2: avoid compiler warning
22253         * tests/test-dup2.c (is_inheritable): Only define if used.
22254
22255 2010-01-01  Bruno Haible  <bruno@clisp.org>
22256
22257         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
22258         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
22259         defined, use wctomb instead of wcrtomb.
22260
22261 2010-01-01  Bruno Haible  <bruno@clisp.org>
22262
22263         iconv: Reject native Solaris iconv.
22264         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
22265         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
22266
22267 2009-12-31  Bruno Haible  <bruno@clisp.org>
22268
22269         * tests/test-signal.c (main): Remove test of 'SIG'.
22270
22271 2009-12-31  Bruno Haible  <bruno@clisp.org>
22272
22273         spawn: Fix incomplete fix.
22274         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
22275         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
22276         warnings for GNULIB_POSIXCHECK again.
22277         Reported by Eric Blake.
22278
22279 2009-12-31  Bruno Haible  <bruno@clisp.org>
22280
22281         Avoid namespace pollution on glibc systems.
22282         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
22283         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
22284         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
22285         glibc systems.
22286
22287 2009-12-31  Bruno Haible  <bruno@clisp.org>
22288
22289         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
22290         (gl_REPLACE_WCHAR_H): Turn into a no-op.
22291         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
22292         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
22293         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
22294         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
22295         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
22296
22297 2009-12-31  Bruno Haible  <bruno@clisp.org>
22298
22299         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22300         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
22301         afterwards.
22302
22303 2009-12-31  Bruno Haible  <bruno@clisp.org>
22304
22305         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
22306         SYS_UTSNAME_H.
22307
22308 2009-12-31  Bruno Haible  <bruno@clisp.org>
22309
22310         spawn: Fix misapplied patch.
22311         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
22312         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
22313         warnings for GNULIB_POSIXCHECK.
22314
22315 2009-12-31  Bruno Haible  <bruno@clisp.org>
22316
22317         times: Update after sys_times changed.
22318         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
22319         * modules/times (Files): Add it.
22320         (configure.ac): Invoke gl_FUNC_TIMES.
22321
22322 2009-12-31  Bruno Haible  <bruno@clisp.org>
22323
22324         Use AC_C_INLINE where necessary.
22325         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
22326         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22327         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
22328         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
22329         * m4/mbfile.m4 (gl_MBFILE): Likewise.
22330         * m4/mbiter.m4 (gl_MBITER): Likewise.
22331         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
22332         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22333         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
22334         * modules/u64 (configure.ac): Likewise.
22335
22336 2009-12-31  Bruno Haible  <bruno@clisp.org>
22337
22338         Use AC_C_INLINE instead of module 'inline' where possible.
22339         * modules/inline (Description): Clarify purpose.
22340         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
22341         * modules/count-one-bits (Depends-on): Remove inline.
22342         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
22343         * modules/openat (Depends-on): Remove inline.
22344         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
22345         instead of depending on module 'inline'.
22346         * modules/filevercmp (Depends-on, configure.ac): Likewise.
22347         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
22348         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
22349         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
22350         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
22351         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
22352         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
22353         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
22354         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
22355         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
22356         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
22357         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
22358         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
22359         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
22360         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
22361         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
22362         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
22363         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
22364         Likewise.
22365         * modules/unictype/property-ascii-hex-digit (Depends-on,
22366         configure.ac): Likewise.
22367         * modules/unictype/property-bidi-arabic-digit (Depends-on,
22368         configure.ac): Likewise.
22369         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
22370         configure.ac): Likewise.
22371         * modules/unictype/property-bidi-block-separator (Depends-on,
22372         configure.ac): Likewise.
22373         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
22374         configure.ac): Likewise.
22375         * modules/unictype/property-bidi-common-separator (Depends-on,
22376         configure.ac): Likewise.
22377         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
22378         Likewise.
22379         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
22380         configure.ac): Likewise.
22381         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
22382         configure.ac): Likewise.
22383         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
22384         configure.ac): Likewise.
22385         * modules/unictype/property-bidi-european-digit (Depends-on,
22386         configure.ac): Likewise.
22387         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
22388         configure.ac): Likewise.
22389         * modules/unictype/property-bidi-left-to-right (Depends-on,
22390         configure.ac): Likewise.
22391         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
22392         configure.ac): Likewise.
22393         * modules/unictype/property-bidi-other-neutral (Depends-on,
22394         configure.ac): Likewise.
22395         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
22396         Likewise.
22397         * modules/unictype/property-bidi-segment-separator (Depends-on,
22398         configure.ac): Likewise.
22399         * modules/unictype/property-bidi-whitespace (Depends-on,
22400         configure.ac): Likewise.
22401         * modules/unictype/property-combining (Depends-on, configure.ac):
22402         Likewise.
22403         * modules/unictype/property-composite (Depends-on, configure.ac):
22404         Likewise.
22405         * modules/unictype/property-currency-symbol (Depends-on,
22406         configure.ac): Likewise.
22407         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
22408         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
22409         Likewise.
22410         * modules/unictype/property-default-ignorable-code-point (Depends-on,
22411         configure.ac): Likewise.
22412         * modules/unictype/property-deprecated (Depends-on, configure.ac):
22413         Likewise.
22414         * modules/unictype/property-diacritic (Depends-on, configure.ac):
22415         Likewise.
22416         * modules/unictype/property-extender (Depends-on, configure.ac):
22417         Likewise.
22418         * modules/unictype/property-format-control (Depends-on, configure.ac):
22419         Likewise.
22420         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
22421         Likewise.
22422         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
22423         Likewise.
22424         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
22425         Likewise.
22426         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
22427         Likewise.
22428         * modules/unictype/property-hyphen (Depends-on, configure.ac):
22429         Likewise.
22430         * modules/unictype/property-id-continue (Depends-on, configure.ac):
22431         Likewise.
22432         * modules/unictype/property-id-start (Depends-on, configure.ac):
22433         Likewise.
22434         * modules/unictype/property-ideographic (Depends-on, configure.ac):
22435         Likewise.
22436         * modules/unictype/property-ids-binary-operator (Depends-on,
22437         configure.ac): Likewise.
22438         * modules/unictype/property-ids-trinary-operator (Depends-on,
22439         configure.ac): Likewise.
22440         * modules/unictype/property-ignorable-control (Depends-on,
22441         configure.ac): Likewise.
22442         * modules/unictype/property-iso-control (Depends-on, configure.ac):
22443         Likewise.
22444         * modules/unictype/property-join-control (Depends-on, configure.ac):
22445         Likewise.
22446         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
22447         Likewise.
22448         * modules/unictype/property-line-separator (Depends-on, configure.ac):
22449         Likewise.
22450         * modules/unictype/property-logical-order-exception (Depends-on,
22451         configure.ac): Likewise.
22452         * modules/unictype/property-lowercase (Depends-on, configure.ac):
22453         Likewise.
22454         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
22455         * modules/unictype/property-non-break (Depends-on, configure.ac):
22456         Likewise.
22457         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
22458         Likewise.
22459         * modules/unictype/property-numeric (Depends-on, configure.ac):
22460         Likewise.
22461         * modules/unictype/property-other-alphabetic (Depends-on,
22462         configure.ac): Likewise.
22463         * modules/unictype/property-other-default-ignorable-code-point
22464         (Depends-on, configure.ac): Likewise.
22465         * modules/unictype/property-other-grapheme-extend (Depends-on,
22466         configure.ac): Likewise.
22467         * modules/unictype/property-other-id-continue (Depends-on,
22468         configure.ac): Likewise.
22469         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
22470         Likewise.
22471         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
22472         Likewise.
22473         * modules/unictype/property-other-math (Depends-on, configure.ac):
22474         Likewise.
22475         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
22476         Likewise.
22477         * modules/unictype/property-paired-punctuation (Depends-on,
22478         configure.ac): Likewise.
22479         * modules/unictype/property-paragraph-separator (Depends-on,
22480         configure.ac): Likewise.
22481         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
22482         Likewise.
22483         * modules/unictype/property-pattern-white-space (Depends-on,
22484         configure.ac): Likewise.
22485         * modules/unictype/property-private-use (Depends-on, configure.ac):
22486         Likewise.
22487         * modules/unictype/property-punctuation (Depends-on, configure.ac):
22488         Likewise.
22489         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
22490         Likewise.
22491         * modules/unictype/property-radical (Depends-on, configure.ac):
22492         Likewise.
22493         * modules/unictype/property-sentence-terminal (Depends-on,
22494         configure.ac): Likewise.
22495         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
22496         Likewise.
22497         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
22498         * modules/unictype/property-terminal-punctuation (Depends-on,
22499         configure.ac): Likewise.
22500         * modules/unictype/property-titlecase (Depends-on, configure.ac):
22501         Likewise.
22502         * modules/unictype/property-unassigned-code-value (Depends-on,
22503         configure.ac): Likewise.
22504         * modules/unictype/property-unified-ideograph (Depends-on,
22505         configure.ac): Likewise.
22506         * modules/unictype/property-uppercase (Depends-on, configure.ac):
22507         Likewise.
22508         * modules/unictype/property-variation-selector (Depends-on,
22509         configure.ac): Likewise.
22510         * modules/unictype/property-white-space (Depends-on, configure.ac):
22511         Likewise.
22512         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
22513         Likewise.
22514         * modules/unictype/property-xid-start (Depends-on, configure.ac):
22515         Likewise.
22516         * modules/unictype/property-zero-width (Depends-on, configure.ac):
22517         Likewise.
22518         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
22519         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
22520         Likewise.
22521
22522 2009-12-31  Bruno Haible  <bruno@clisp.org>
22523
22524         Remove unnecessary AC_C_INLINE invocation.
22525         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
22526         since 2009-08-21.
22527
22528 2009-12-31  Jim Meyering  <meyering@redhat.com>
22529
22530         maint.mk: don't require explicit gpg_key_ID in cfg.mk
22531         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
22532         With this change, we can all remove the gpg_key_ID = ... definition
22533         from our respective cfg.mk files.
22534
22535         maint.mk: create announcement template in ~/, not in /tmp
22536         * top/maint.mk (emit_upload_commands): Adjust.
22537         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
22538         Remove temporary file, .ci-msg.
22539
22540 2009-12-31  Eric Blake  <ebb9@byu.net>
22541
22542         link-warning: always build headers with link warnings
22543         * modules/arpa_inet (Makefile.am): Always build replacement
22544         header.
22545         * modules/ctype (Makefile.am): Likewise.
22546         * modules/dirent (Makefile.am): Likewise.
22547         * modules/inttypes (Makefile.am): Likewise.
22548         * modules/langinfo (Makefile.am): Likewise.
22549         * modules/locale (Makefile.am): Likewise.
22550         * modules/spawn (Makefile.am): Likewise.
22551         * modules/sys_file (Makefile.am): Likewise.
22552         * modules/sys_ioctl (Makefile.am): Likewise.
22553         * modules/sys_select (Makefile.am): Likewise.
22554         * modules/sys_socket (Makefile.am): Likewise.
22555         * modules/sys_times (Makefile.am): Likewise.
22556         * modules/sys_utsname (Makefile.am): Likewise.
22557         * modules/sys_wait (Makefile.am): Likewise.
22558         * modules/wchar (Makefile.am): Likewise.
22559         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
22560         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
22561         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
22562         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
22563         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
22564         Likewise.
22565         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22566         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22567         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
22568         Likewise.
22569         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
22570         Likewise.
22571         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22572         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
22573         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
22574         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22575         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22576         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22577         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22578         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
22579         (gl_WCHAR_H_DEFAULTS): Likewise.
22580
22581 2009-12-31  Eric Blake  <ebb9@byu.net>
22582
22583         signal, spawn: use link warnings
22584         * lib/signal.in.h (sigset_t): Make unconditional.
22585         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
22586         (sigpending, sigprocmask, sigaction): Add link warnings.
22587         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
22588         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
22589         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
22590         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
22591         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
22592         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
22593         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
22594         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
22595         (posix_spawn_file_actions_destroy)
22596         (posix_spawn_file_actions_addopen)
22597         (posix_spawn_file_actions_addclose)
22598         (posix_spawn_file_actions_adddup2): Likewise.
22599         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
22600         * tests/test-signal.c (main): Enhance test.
22601
22602         spawn: improve wrapper support
22603         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
22604         (gl_SPAWN_H_DEFAULTS): New defaults.
22605         * modules/spawn (Makefile.am): Substitute them.
22606         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
22607         Only declare if missing or broken.
22608
22609         sys_times, sys_utsname: use include_next
22610         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
22611         header.
22612         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
22613         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22614         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22615         * modules/sys_times (Depends-on): Add include_next.
22616         (Makefile.am): Substitute additional values.
22617         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22618         * lib/sys_times.in.h (includes): Include native header, if
22619         available.
22620         * lib/sys_utsname.in.h (includes): Likewise.
22621         * tests/test-sys_times.c (main): Enhance test.
22622
22623         fdutimensat: revert prior patch
22624         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
22625         utimens.h.
22626         Reported by Bruno Haible.
22627
22628 2009-12-30  Eric Blake  <ebb9@byu.net>
22629
22630         sys_wait: drop link-warning dependency
22631         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
22632         link-warning efforts.
22633         * lib/sys_wait.in.h: Likewise.
22634
22635         fdutimensat: remove bogus dependency
22636         * modules/fdutimensat (Depends-on): Drop inline.
22637
22638         unistd: fix typo
22639         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
22640
22641 2009-12-30  Bruno Haible  <bruno@clisp.org>
22642
22643         Fix compilation error with Solaris cc.
22644         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
22645         * lib/unicase/u16-is-invariant.c: Likewise.
22646         * lib/unicase/u32-is-invariant.c: Likewise.
22647         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22648
22649 2009-12-30  Bruno Haible  <bruno@clisp.org>
22650
22651         Fix test crash.
22652         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
22653         locales.
22654         Reported by Simon Josefsson <simon@josefsson.org>.
22655
22656 2009-12-30  Bruno Haible  <bruno@clisp.org>
22657
22658         Fix compilation error on most platforms.
22659         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
22660         Reported by Simon Josefsson <simon@josefsson.org>
22661         and Nelson H. F. Beebe <beebe@math.utah.edu>.
22662
22663 2009-12-30  Eric Blake  <ebb9@byu.net>
22664
22665         futimens, utimensat: work around ntfs-3g bug
22666         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
22667         a ctime bug is present, and expand workaround to cover ntfs-3g.
22668         * lib/utimens.c (fdutimens, lutimens): Likewise.
22669         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
22670         (validate_timespec): Adjust return value.
22671         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
22672         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22673         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
22674
22675 2009-12-29  Eric Blake  <ebb9@byu.net>
22676
22677         link-warning: make usage consistent
22678         * modules/ctype (Depends-on): Add link-warning.
22679         (Makefile.am): Update rules accordingly.
22680         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22681         * modules/locale (Depends-on, Makefile.am): Likewise.
22682         * modules/sys_file (Makefile.am): Likewise.
22683         * modules/getopt-posix (Makefile.am): Delete unused link warning
22684         efforts.
22685         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
22686         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
22687         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
22688         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
22689
22690         stdio: remove unused variables
22691         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
22692         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
22693         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22694
22695         tests: test more substitute headers
22696         * modules/ctype-tests: New file.
22697         * modules/dirent-tests: Likewise.
22698         * modules/spawn-tests: Likewise.
22699         * modules/sys_file-tests: Likewise.
22700         * modules/sys_ioctl-tests: Likewise.
22701         * modules/sys_wait-tests: Likewise.
22702         * tests/test-ctype.c: Likewise.
22703         * tests/test-dirent.c: Likewise.
22704         * tests/test-spawn.c: Likewise.
22705         * tests/test-sys_file.c: Likewise.
22706         * tests/test-sys_ioctl.c: Likewise.
22707         * tests/test-sys_wait.c: Likewise.
22708         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
22709         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
22710         whether or not flock is in use.
22711
22712         tests: remove License section from module
22713         * modules/arpa_inet-tests: Remove unneeded section.
22714         * modules/byteswap-tests: Likewise.
22715         * modules/ceilf-tests: Likewise.
22716         * modules/ceill-tests: Likewise.
22717         * modules/crypto/des-tests: Likewise.
22718         * modules/crypto/gc-arcfour-tests: Likewise.
22719         * modules/crypto/gc-arctwo-tests: Likewise.
22720         * modules/crypto/gc-des-tests: Likewise.
22721         * modules/crypto/gc-hmac-md5-tests: Likewise.
22722         * modules/crypto/gc-hmac-sha1-tests: Likewise.
22723         * modules/crypto/gc-md2-tests: Likewise.
22724         * modules/crypto/gc-md4-tests: Likewise.
22725         * modules/crypto/gc-md5-tests: Likewise.
22726         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
22727         * modules/crypto/gc-rijndael-tests: Likewise.
22728         * modules/crypto/gc-sha1-tests: Likewise.
22729         * modules/crypto/gc-tests: Likewise.
22730         * modules/crypto/md2-tests: Likewise.
22731         * modules/crypto/md4-tests: Likewise.
22732         * modules/fcntl-h-tests: Likewise.
22733         * modules/floorf-tests: Likewise.
22734         * modules/floorl-tests: Likewise.
22735         * modules/frexp-nolibm-tests: Likewise.
22736         * modules/frexp-tests: Likewise.
22737         * modules/frexpl-nolibm-tests: Likewise.
22738         * modules/frexpl-tests: Likewise.
22739         * modules/getaddrinfo-tests: Likewise.
22740         * modules/inttypes-tests: Likewise.
22741         * modules/isfinite-tests: Likewise.
22742         * modules/isinf-tests: Likewise.
22743         * modules/ldexpl-tests: Likewise.
22744         * modules/locale-tests: Likewise.
22745         * modules/math-tests: Likewise.
22746         * modules/netdb-tests: Likewise.
22747         * modules/netinet_in-tests: Likewise.
22748         * modules/printf-frexp-tests: Likewise.
22749         * modules/printf-frexpl-tests: Likewise.
22750         * modules/priv-set-tests: Likewise.
22751         * modules/random_r-tests: Likewise.
22752         * modules/round-tests: Likewise.
22753         * modules/roundf-tests: Likewise.
22754         * modules/roundl-tests: Likewise.
22755         * modules/search-tests: Likewise.
22756         * modules/select-tests: Likewise.
22757         * modules/signal-tests: Likewise.
22758         * modules/stdbool-tests: Likewise.
22759         * modules/stddef-tests: Likewise.
22760         * modules/stdint-tests: Likewise.
22761         * modules/stdio-tests: Likewise.
22762         * modules/stdlib-tests: Likewise.
22763         * modules/string-tests: Likewise.
22764         * modules/strings-tests: Likewise.
22765         * modules/sys_select-tests: Likewise.
22766         * modules/sys_socket-tests: Likewise.
22767         * modules/sys_stat-tests: Likewise.
22768         * modules/sys_time-tests: Likewise.
22769         * modules/sys_utsname-tests: Likewise.
22770         * modules/sysexits-tests: Likewise.
22771         * modules/time-tests: Likewise.
22772         * modules/trunc-tests: Likewise.
22773         * modules/truncf-tests: Likewise.
22774         * modules/truncl-tests: Likewise.
22775         * modules/tsearch-tests: Likewise.
22776         * modules/unistd-tests: Likewise.
22777         * modules/wchar-tests: Likewise.
22778         * modules/wctype-tests: Likewise.
22779
22780         tests: fix license on several tests
22781         * tests/test-des.c: Update to GPLv3+.
22782         * tests/test-flock.c: Likewise.
22783         * tests/test-fsync.c: Likewise.
22784         * tests/test-futimens.h: Likewise.
22785         * tests/test-gc-arcfour.c: Likewise.
22786         * tests/test-gc-arctwo.c: Likewise.
22787         * tests/test-gc-des.c: Likewise.
22788         * tests/test-gc-hmac-md5.c: Likewise.
22789         * tests/test-gc-hmac-sha1.c: Likewise.
22790         * tests/test-gc-md2.c: Likewise.
22791         * tests/test-gc-md4.c: Likewise.
22792         * tests/test-gc-md5.c: Likewise.
22793         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22794         * tests/test-gc-rijndael.c: Likewise.
22795         * tests/test-gc-sha1.c: Likewise.
22796         * tests/test-gc.c: Likewise.
22797         * tests/test-getcwd.c: Likewise.
22798         * tests/test-link.c: Likewise.
22799         * tests/test-link.h: Likewise.
22800         * tests/test-lutimens.h: Likewise.
22801         * tests/test-md2.c: Likewise.
22802         * tests/test-md4.c: Likewise.
22803         * tests/test-mkdir.h: Likewise.
22804         * tests/test-rename.c: Likewise.
22805         * tests/test-rename.h: Likewise.
22806         * tests/test-safe-alloc.c: Likewise.
22807         * tests/test-utimens-common.h: Likewise.
22808         * tests/test-utimens.h: Likewise.
22809
22810         maint: sync license texts
22811         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
22812         * doc/gpl-3.0.texi: Revert copyright year update.
22813         * doc/lgpl-3.0.texi: Likewise.
22814
22815 2009-12-29  Jim Meyering  <meyering@redhat.com>
22816
22817         update nearly all FSF copyright year lists to include 2009
22818         The files named by the following are exempted:
22819             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
22820               test -f "$dst" && { echo "$dst"; continue; }
22821               test -d "$dst" || continue
22822               echo "$dst"/$(basename "$src")
22823             done > exempt
22824             git ls-files tests/unictype >> exempt
22825         In the remaining files, convert to all-interval notation if
22826         - there is already at least one year interval like 2000-2003
22827         - the file is maintained by me
22828         - the file is in lib/uni*/, where that style already prevails
22829         Otherwise, use update-copyright's default.
22830
22831 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22832         and Eric Blake  <ebb9@byu.net>
22833
22834         tests: don't require debug system() to pass
22835         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
22836         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22837         * tests/test-unlink.h (test_unlink_func): Likewise.
22838         * tests/test-fstatat.c (main): ...into callers.
22839         * tests/test-lstat.c (main): Likewise.
22840         * tests/test-rmdir.c (main): Likewise.
22841         * tests/test-unlink.c (main): Likewise.
22842         * tests/test-unlinkat.c (main): Likewise.
22843         * tests/test-areadlink-with-size.c (main): Don't require a
22844         debug-only system call to pass, aiding cross-testing to mingw.
22845         * tests/test-areadlink.c (main): Likewise.
22846         * tests/test-areadlinkat-with-size.c (main): Likewise.
22847         * tests/test-areadlinkat.c (main): Likewise.
22848         * tests/test-canonicalize-lgpl.c (main): Likewise.
22849         * tests/test-canonicalize.c (main): Likewise.
22850         * tests/test-chown.c (main): Likewise.
22851         * tests/test-fchownat.c (main): Likewise.
22852         * tests/test-lchown.c (main): Likewise.
22853         * tests/test-fdutimensat.c (main): Likewise.
22854         * tests/test-futimens.c (main): Likewise.
22855         * tests/test-link.c (main): Likewise.
22856         * tests/test-linkat.c (main): Likewise.
22857         * tests/test-mkdir.c (main): Likewise.
22858         * tests/test-mkdirat.c (main): Likewise.
22859         * tests/test-mkfifo.c (main): Likewise.
22860         * tests/test-mkfifoat.c (main): Likewise.
22861         * tests/test-mknod.c (main): Likewise.
22862         * tests/test-readlink.c (main): Likewise.
22863         * tests/test-remove.c (main): Likewise.
22864         * tests/test-rename.c (main): Likewise.
22865         * tests/test-renameat.c (main): Likewise.
22866         * tests/test-symlink.c (main): Likewise.
22867         * tests/test-symlinkat.c (main): Likewise.
22868         * tests/test-utimens.c (main): Likewise.
22869         * tests/test-utimensat.c (main): Likewise.
22870
22871 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22872
22873         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
22874         on $(UNUSED_PARAMETER_H) to avoid build failure.
22875
22876 2009-12-28  Jim Meyering  <meyering@redhat.com>
22877
22878         update-copyright: you may specify a max. line length other than 72
22879         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22880
22881         maint: use consistent FSF copyright line syntax
22882         * lib/posixtm.c: Add missing comma in FSF copyright line.
22883         * lib/posixtm.h: Likewise.
22884         * lib/getugroups.c: Add missing ", Inc.".
22885
22886         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
22887         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
22888         FSF copyright line.  Remove trailing blanks.
22889
22890 2009-12-28  Eric Blake  <ebb9@byu.net>
22891
22892         test-dup2: reduce dependencies
22893         * modules/cloexec (Configure.ac): Set witness.
22894         * modules/dup2-tests (Depends-on): Drop cloexec.
22895         * tests/test-dup2.c (main): Skip portion of test if cloexec module
22896         not present.
22897         Suggested by Bruno Haible.
22898
22899 2009-12-26  Bruno Haible  <bruno@clisp.org>
22900
22901         Remove an unneeded dependency.
22902         * modules/fseterr (Depends-on): Remove dup2.
22903
22904 2009-12-26  Eric Blake  <ebb9@byu.net>
22905
22906         tests: use macros.h in more places
22907         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
22908         (ASSERT_STREAM): Provide default of stderr.
22909         * tests/test-dirent-safer.c: Include macros.h, using alternate
22910         stream for assertions.
22911         * tests/test-dup-safer.c: Likewise.
22912         * tests/test-freopen-safer.c: Likewise.
22913         * tests/test-getopt.c: Likewise.
22914         * tests/test-openat-safer.c: Likewise.
22915         * tests/test-pipe.c: Likewise.
22916         * tests/test-popen-safer.c: Likewise.
22917         * modules/dirent-safer-tests (Files): Include macros.h.
22918         * modules/unistd-safer-tests (Files): Likewise.
22919         * modules/freopen-safer-tests (Files): Likewise.
22920         * modules/getopt-posix-tests (Files): Likewise.
22921         * modules/openat-safer-tests (Files): Likewise.
22922         * modules/pipe-tests (Files): Likewise.
22923
22924 2009-12-26  Bruno Haible  <bruno@clisp.org>
22925
22926         javacomp: Portability fix.
22927         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
22928         that it also works on Solaris.
22929
22930 2009-12-26  Bruno Haible  <bruno@clisp.org>
22931
22932         localename: Fix storage allocation of gl_locale_name_thread's result.
22933         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
22934         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
22935         all platforms that have 'uselocale'.
22936         (gl_locale_name_thread_unsafe): New function, extracted from
22937         gl_locale_name_thread.
22938         (gl_locale_name_thread): Call struniq on all platforms that have
22939         'uselocale'.
22940         * tests/test-localename.c (test_locale_name_thread): Check that the
22941         resulting strings are permanently allocated.
22942         * modules/localename-tests (Depends-on): Add strdup.
22943
22944 2009-12-26  Bruno Haible  <bruno@clisp.org>
22945
22946         * tests/test-localename.c (categories): Fill in the strings.
22947
22948 2009-12-26  Jim Meyering  <meyering@redhat.com>
22949
22950         isdir: complete the removal of m4/isdir.m4
22951         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
22952
22953         isdir: clean up, since at least grep still uses it
22954         * lib/isdir.c: Include "isdir.h".
22955         (S_ISDIR): Remove now-unneeded definition.
22956         * modules/isdir (Files): Add lib/isdir.h.
22957         * lib/isdir.h: New file, with declaration.
22958         * m4/isdir.m4: Remove file -- unneeded.
22959
22960 2009-12-25  Bruno Haible  <bruno@clisp.org>
22961
22962         selinux-h: Make generated .h files standalone.
22963         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
22964         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
22965         * lib/se-selinux.in.h: Likewise.
22966         * modules/selinux-h (Depends-on): Add unused-parameter.
22967         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
22968         selinux/selinux.h and selinux/context.h.
22969         Suggested by Eric Blake.
22970
22971 2009-12-25  Bruno Haible  <bruno@clisp.org>
22972
22973         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
22974         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
22975         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
22976         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
22977         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
22978
22979 2009-12-24  Bruno Haible  <bruno@clisp.org>
22980
22981         openat: Fix warning.
22982         * lib/openat-proc.c: Include <unistd.h>.
22983
22984 2009-12-24  Bruno Haible  <bruno@clisp.org>
22985
22986         New module 'unused-parameter'.
22987         * build-aux/unused-parameter.h: New file, extracted from earlier
22988         gnulib-common.m4.
22989         * modules/unused-parameter: New file.
22990         * lib/unistr.h: Include unused-parameter.h.
22991         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
22992         _GL_UNUSED.
22993         * modules/unistr/base (Depends-on): Add unused-parameter.
22994
22995 2009-12-24  Bruno Haible  <bruno@clisp.org>
22996
22997         Add missing dependencies to 'extensions' module.
22998         * m4/extensions.m4: Add comment.
22999         * modules/accept4 (Depends-on): Add extensions.
23000         * modules/dup3 (Depends-on): Likewise.
23001         * modules/fcntl (Depends-on): Likewise.
23002         * modules/futimens (Depends-on): Likewise.
23003         * modules/mknod (Depends-on): Likewise.
23004         * modules/pipe2 (Depends-on): Likewise.
23005         * modules/stat-time (Depends-on): Likewise.
23006         * modules/strcasestr-simple (Depends-on): Likewise.
23007         * modules/strsignal (Depends-on): Likewise.
23008         * modules/utimensat (Depends-on): Likewise.
23009         * modules/localcharset (Depends-on): Likewise. Needed because of
23010         gl_FCNTL_O_FLAGS.
23011         * modules/wcrtomb (Depends-on): Likewise. Needed because of
23012         AC_TYPE_MBSTATE_T.
23013         * modules/wcsnrtombs (Depends-on): Likewise.
23014         * modules/wcsrtombs (Depends-on): Likewise.
23015
23016 2009-12-24  Bruno Haible  <bruno@clisp.org>
23017
23018         binary-io: Avoid gcc warning due to SET_BINARY.
23019         * lib/binary-io.h (SET_BINARY): Cast the result to void.
23020         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
23021
23022 2009-12-24  Bruno Haible  <bruno@clisp.org>
23023
23024         Avoid future namespace pollution on glibc systems.
23025         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
23026         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
23027         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
23028         glibc systems.
23029
23030 2009-12-24  Bruno Haible  <bruno@clisp.org>
23031
23032         Refactor common macros used in tests.
23033         * tests/macros.h: New file.
23034         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
23035         and/or <stdlib.h>, if appropriate.
23036         (ASSERT, SIZEOF): Remove macros.
23037         * tests/test-areadlink-with-size.c: Likewise.
23038         * tests/test-areadlinkat.c: Likewise.
23039         * tests/test-areadlinkat-with-size.c: Likewise.
23040         * tests/test-argmatch.c: Likewise.
23041         * tests/test-argv-iter.c: Likewise.
23042         * tests/test-array-mergesort.c: Likewise.
23043         * tests/test-array_list.c: Likewise.
23044         * tests/test-array_oset.c: Likewise.
23045         * tests/test-avltree_list.c: Likewise.
23046         * tests/test-avltree_oset.c: Likewise.
23047         * tests/test-avltreehash_list.c: Likewise.
23048         * tests/test-base64.c: Likewise.
23049         * tests/test-binary-io.c: Likewise.
23050         * tests/test-bitrotate.c: Likewise.
23051         * tests/test-btowc.c: Likewise.
23052         * tests/test-byteswap.c: Likewise.
23053         * tests/test-c-ctype.c: Likewise.
23054         * tests/test-c-stack.c: Likewise.
23055         * tests/test-c-strcasecmp.c: Likewise.
23056         * tests/test-c-strcasestr.c: Likewise.
23057         * tests/test-c-strncasecmp.c: Likewise.
23058         * tests/test-c-strstr.c: Likewise.
23059         * tests/test-canonicalize-lgpl.c: Likewise.
23060         * tests/test-canonicalize.c: Likewise.
23061         * tests/test-carray_list.c: Likewise.
23062         * tests/test-ceilf1.c: Likewise.
23063         * tests/test-ceilf2.c: Likewise.
23064         * tests/test-ceill.c: Likewise.
23065         * tests/test-chown.c: Likewise.
23066         * tests/test-cloexec.c: Likewise.
23067         * tests/test-copy-acl.c: Likewise.
23068         * tests/test-copy-file.c: Likewise.
23069         * tests/test-count-one-bits.c: Likewise.
23070         * tests/test-dprintf-posix.c: Likewise.
23071         * tests/test-dup2.c: Likewise.
23072         * tests/test-dup3.c: Likewise.
23073         * tests/test-duplocale.c: Likewise.
23074         * tests/test-fbufmode.c: Likewise.
23075         * tests/test-fchdir.c: Likewise.
23076         * tests/test-fchownat.c: Likewise.
23077         * tests/test-fcntl-safer.c: Likewise.
23078         * tests/test-fcntl.c: Likewise.
23079         * tests/test-fdopendir.c: Likewise.
23080         * tests/test-fdutimensat.c: Likewise.
23081         * tests/test-fflush2.c: Likewise.
23082         * tests/test-file-has-acl.c: Likewise.
23083         * tests/test-filevercmp.c: Likewise.
23084         * tests/test-flock.c: Likewise.
23085         * tests/test-floorf1.c: Likewise.
23086         * tests/test-floorf2.c: Likewise.
23087         * tests/test-floorl.c: Likewise.
23088         * tests/test-fnmatch.c: Likewise.
23089         * tests/test-fopen.h: Likewise.
23090         * tests/test-fpending.c: Likewise.
23091         * tests/test-fprintf-posix.c: Likewise.
23092         * tests/test-fpurge.c: Likewise.
23093         * tests/test-freadable.c: Likewise.
23094         * tests/test-freadahead.c: Likewise.
23095         * tests/test-freading.c: Likewise.
23096         * tests/test-freadptr.c: Likewise.
23097         * tests/test-freadptr2.c: Likewise.
23098         * tests/test-freadseek.c: Likewise.
23099         * tests/test-freopen.c: Likewise.
23100         * tests/test-frexp.c: Likewise.
23101         * tests/test-frexpl.c: Likewise.
23102         * tests/test-fseek.c: Likewise.
23103         * tests/test-fseeko.c: Likewise.
23104         * tests/test-fstatat.c: Likewise.
23105         * tests/test-fstrcmp.c: Likewise.
23106         * tests/test-fsync.c: Likewise.
23107         * tests/test-ftell.c: Likewise.
23108         * tests/test-ftello.c: Likewise.
23109         * tests/test-func.c: Likewise.
23110         * tests/test-futimens.c: Likewise.
23111         * tests/test-fwritable.c: Likewise.
23112         * tests/test-fwriting.c: Likewise.
23113         * tests/test-getcwd.c: Likewise.
23114         * tests/test-getdate.c: Likewise.
23115         * tests/test-getdelim.c: Likewise.
23116         * tests/test-getdtablesize.c: Likewise.
23117         * tests/test-getgroups.c: Likewise.
23118         * tests/test-getline.c: Likewise.
23119         * tests/test-getndelim2.c: Likewise.
23120         * tests/test-glob.c: Likewise.
23121         * tests/test-hash.c: Likewise.
23122         * tests/test-i-ring.c: Likewise.
23123         * tests/test-iconv-utf.c: Likewise.
23124         * tests/test-iconv.c: Likewise.
23125         * tests/test-idpriv-drop.c: Likewise.
23126         * tests/test-idpriv-droptemp.c: Likewise.
23127         * tests/test-inet_ntop.c: Likewise.
23128         * tests/test-inet_pton.c: Likewise.
23129         * tests/test-isblank.c: Likewise.
23130         * tests/test-isfinite.c: Likewise.
23131         * tests/test-isinf.c: Likewise.
23132         * tests/test-isnan.c: Likewise.
23133         * tests/test-isnand.h: Likewise.
23134         * tests/test-isnanf.h: Likewise.
23135         * tests/test-isnanl.h: Likewise.
23136         * tests/test-lchown.c: Likewise.
23137         * tests/test-ldexpl.c: Likewise.
23138         * tests/test-link.c: Likewise.
23139         * tests/test-linkat.c: Likewise.
23140         * tests/test-linked_list.c: Likewise.
23141         * tests/test-linkedhash_list.c: Likewise.
23142         * tests/test-localename.c: Likewise.
23143         * tests/test-lseek.c: Likewise.
23144         * tests/test-lstat.c: Likewise.
23145         * tests/test-mbmemcasecmp.c: Likewise.
23146         * tests/test-mbmemcasecoll.c: Likewise.
23147         * tests/test-mbrtowc.c: Likewise.
23148         * tests/test-mbscasecmp.c: Likewise.
23149         * tests/test-mbscasestr1.c: Likewise.
23150         * tests/test-mbscasestr2.c: Likewise.
23151         * tests/test-mbscasestr3.c: Likewise.
23152         * tests/test-mbscasestr4.c: Likewise.
23153         * tests/test-mbschr.c: Likewise.
23154         * tests/test-mbscspn.c: Likewise.
23155         * tests/test-mbsinit.c: Likewise.
23156         * tests/test-mbsncasecmp.c: Likewise.
23157         * tests/test-mbsnrtowcs.c: Likewise.
23158         * tests/test-mbspbrk.c: Likewise.
23159         * tests/test-mbspcasecmp.c: Likewise.
23160         * tests/test-mbsrchr.c: Likewise.
23161         * tests/test-mbsrtowcs.c: Likewise.
23162         * tests/test-mbsspn.c: Likewise.
23163         * tests/test-mbsstr1.c: Likewise.
23164         * tests/test-mbsstr2.c: Likewise.
23165         * tests/test-mbsstr3.c: Likewise.
23166         * tests/test-memchr.c: Likewise.
23167         * tests/test-memchr2.c: Likewise.
23168         * tests/test-memcmp.c: Likewise.
23169         * tests/test-memmem.c: Likewise.
23170         * tests/test-memrchr.c: Likewise.
23171         * tests/test-mkdir.c: Likewise.
23172         * tests/test-mkdirat.c: Likewise.
23173         * tests/test-mkfifo.c: Likewise.
23174         * tests/test-mkfifoat.c: Likewise.
23175         * tests/test-mknod.c: Likewise.
23176         * tests/test-nanosleep.c: Likewise.
23177         * tests/test-nl_langinfo.c: Likewise.
23178         * tests/test-obstack-printf.c: Likewise.
23179         * tests/test-open.c: Likewise.
23180         * tests/test-openat.c: Likewise.
23181         * tests/test-pipe-filter-gi1.c: Likewise.
23182         * tests/test-pipe-filter-gi2-main.c: Likewise.
23183         * tests/test-pipe-filter-ii1.c: Likewise.
23184         * tests/test-pipe-filter-ii2-main.c: Likewise.
23185         * tests/test-pipe2.c: Likewise.
23186         * tests/test-popen.h: Likewise.
23187         * tests/test-posixtm.c: Likewise.
23188         * tests/test-pread.c: Likewise.
23189         * tests/test-printf-frexp.c: Likewise.
23190         * tests/test-printf-frexpl.c: Likewise.
23191         * tests/test-printf-posix.c: Likewise.
23192         * tests/test-priv-set.c: Likewise.
23193         * tests/test-quotearg.c: Likewise.
23194         * tests/test-random_r.c: Likewise.
23195         * tests/test-rawmemchr.c: Likewise.
23196         * tests/test-rbtree_list.c: Likewise.
23197         * tests/test-rbtree_oset.c: Likewise.
23198         * tests/test-rbtreehash_list.c: Likewise.
23199         * tests/test-readlink.c: Likewise.
23200         * tests/test-remove.c: Likewise.
23201         * tests/test-rename.c: Likewise.
23202         * tests/test-renameat.c: Likewise.
23203         * tests/test-rmdir.c: Likewise.
23204         * tests/test-round1.c: Likewise.
23205         * tests/test-roundf1.c: Likewise.
23206         * tests/test-roundl.c: Likewise.
23207         * tests/test-safe-alloc.c: Likewise.
23208         * tests/test-sameacls.c: Likewise.
23209         * tests/test-set-mode-acl.c: Likewise.
23210         * tests/test-setenv.c: Likewise.
23211         * tests/test-sigaction.c: Likewise.
23212         * tests/test-signbit.c: Likewise.
23213         * tests/test-sleep.c: Likewise.
23214         * tests/test-snprintf-posix.c: Likewise.
23215         * tests/test-snprintf.c: Likewise.
23216         * tests/test-sprintf-posix.c: Likewise.
23217         * tests/test-stat-time.c: Likewise.
23218         * tests/test-stat.c: Likewise.
23219         * tests/test-strcasestr.c: Likewise.
23220         * tests/test-strchrnul.c: Likewise.
23221         * tests/test-strerror.c: Likewise.
23222         * tests/test-striconv.c: Likewise.
23223         * tests/test-striconveh.c: Likewise.
23224         * tests/test-striconveha.c: Likewise.
23225         * tests/test-strsignal.c: Likewise.
23226         * tests/test-strstr.c: Likewise.
23227         * tests/test-strtod.c: Likewise.
23228         * tests/test-strverscmp.c: Likewise.
23229         * tests/test-symlink.c: Likewise.
23230         * tests/test-symlinkat.c: Likewise.
23231         * tests/test-trunc1.c: Likewise.
23232         * tests/test-trunc2.c: Likewise.
23233         * tests/test-truncf1.c: Likewise.
23234         * tests/test-truncf2.c: Likewise.
23235         * tests/test-truncl.c: Likewise.
23236         * tests/test-uname.c: Likewise.
23237         * tests/test-unlink.c: Likewise.
23238         * tests/test-unlinkat.c: Likewise.
23239         * tests/test-unsetenv.c: Likewise.
23240         * tests/test-usleep.c: Likewise.
23241         * tests/test-utimens.c: Likewise.
23242         * tests/test-utimensat.c: Likewise.
23243         * tests/test-vasnprintf-posix.c: Likewise.
23244         * tests/test-vasnprintf-posix2.c: Likewise.
23245         * tests/test-vasnprintf.c: Likewise.
23246         * tests/test-vasprintf-posix.c: Likewise.
23247         * tests/test-vasprintf.c: Likewise.
23248         * tests/test-vdprintf-posix.c: Likewise.
23249         * tests/test-vfprintf-posix.c: Likewise.
23250         * tests/test-vprintf-posix.c: Likewise.
23251         * tests/test-vsnprintf-posix.c: Likewise.
23252         * tests/test-vsnprintf.c: Likewise.
23253         * tests/test-vsprintf-posix.c: Likewise.
23254         * tests/test-wcrtomb.c: Likewise.
23255         * tests/test-wcsnrtombs.c: Likewise.
23256         * tests/test-wcsrtombs.c: Likewise.
23257         * tests/test-wctype.c: Likewise.
23258         * tests/test-wcwidth.c: Likewise.
23259         * tests/test-xfprintf-posix.c: Likewise.
23260         * tests/test-xmemdup0.c: Likewise.
23261         * tests/test-xprintf-posix.c: Likewise.
23262         * tests/test-xvasprintf.c: Likewise.
23263         * tests/unicase/test-locale-language.c: Likewise.
23264         * tests/unicase/test-mapping-part1.h: Likewise.
23265         * tests/unicase/test-predicate-part1.h: Likewise.
23266         * tests/unicase/test-u8-casecmp.c: Likewise.
23267         * tests/unicase/test-u8-casecoll.c: Likewise.
23268         * tests/unicase/test-u8-casefold.c: Likewise.
23269         * tests/unicase/test-u8-is-cased.c: Likewise.
23270         * tests/unicase/test-u8-is-casefolded.c: Likewise.
23271         * tests/unicase/test-u8-is-lowercase.c: Likewise.
23272         * tests/unicase/test-u8-is-titlecase.c: Likewise.
23273         * tests/unicase/test-u8-is-uppercase.c: Likewise.
23274         * tests/unicase/test-u8-tolower.c: Likewise.
23275         * tests/unicase/test-u8-totitle.c: Likewise.
23276         * tests/unicase/test-u8-toupper.c: Likewise.
23277         * tests/unicase/test-u16-casecmp.c: Likewise.
23278         * tests/unicase/test-u16-casecoll.c: Likewise.
23279         * tests/unicase/test-u16-casefold.c: Likewise.
23280         * tests/unicase/test-u16-is-cased.c: Likewise.
23281         * tests/unicase/test-u16-is-casefolded.c: Likewise.
23282         * tests/unicase/test-u16-is-lowercase.c: Likewise.
23283         * tests/unicase/test-u16-is-titlecase.c: Likewise.
23284         * tests/unicase/test-u16-is-uppercase.c: Likewise.
23285         * tests/unicase/test-u16-tolower.c: Likewise.
23286         * tests/unicase/test-u16-totitle.c: Likewise.
23287         * tests/unicase/test-u16-toupper.c: Likewise.
23288         * tests/unicase/test-u32-casecmp.c: Likewise.
23289         * tests/unicase/test-u32-casecoll.c: Likewise.
23290         * tests/unicase/test-u32-casefold.c: Likewise.
23291         * tests/unicase/test-u32-is-cased.c: Likewise.
23292         * tests/unicase/test-u32-is-casefolded.c: Likewise.
23293         * tests/unicase/test-u32-is-lowercase.c: Likewise.
23294         * tests/unicase/test-u32-is-titlecase.c: Likewise.
23295         * tests/unicase/test-u32-is-uppercase.c: Likewise.
23296         * tests/unicase/test-u32-tolower.c: Likewise.
23297         * tests/unicase/test-u32-totitle.c: Likewise.
23298         * tests/unicase/test-u32-toupper.c: Likewise.
23299         * tests/unicase/test-ulc-casecmp.c: Likewise.
23300         * tests/unicase/test-ulc-casecoll.c: Likewise.
23301         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
23302         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
23303         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
23304         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
23305         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
23306         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
23307         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
23308         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
23309         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
23310         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
23311         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
23312         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
23313         * tests/unictype/test-bidi_byname.c: Likewise.
23314         * tests/unictype/test-bidi_name.c: Likewise.
23315         * tests/unictype/test-bidi_of.c: Likewise.
23316         * tests/unictype/test-bidi_test.c: Likewise.
23317         * tests/unictype/test-block_list.c: Likewise.
23318         * tests/unictype/test-block_of.c: Likewise.
23319         * tests/unictype/test-block_test.c: Likewise.
23320         * tests/unictype/test-categ_and.c: Likewise.
23321         * tests/unictype/test-categ_and_not.c: Likewise.
23322         * tests/unictype/test-categ_byname.c: Likewise.
23323         * tests/unictype/test-categ_name.c: Likewise.
23324         * tests/unictype/test-categ_none.c: Likewise.
23325         * tests/unictype/test-categ_of.c: Likewise.
23326         * tests/unictype/test-categ_or.c: Likewise.
23327         * tests/unictype/test-categ_test_withtable.c: Likewise.
23328         * tests/unictype/test-combining.c: Likewise.
23329         * tests/unictype/test-decdigit.c: Likewise.
23330         * tests/unictype/test-digit.c: Likewise.
23331         * tests/unictype/test-mirror.c: Likewise.
23332         * tests/unictype/test-numeric.c: Likewise.
23333         * tests/unictype/test-pr_byname.c: Likewise.
23334         * tests/unictype/test-pr_test.c: Likewise.
23335         * tests/unictype/test-predicate-part1.h: Likewise.
23336         * tests/unictype/test-scripts.c: Likewise.
23337         * tests/unictype/test-sy_c_ident.c: Likewise.
23338         * tests/unictype/test-sy_java_ident.c: Likewise.
23339         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
23340         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
23341         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
23342         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
23343         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
23344         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
23345         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
23346         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
23347         * tests/uninorm/test-canonical-decomposition.c: Likewise.
23348         * tests/uninorm/test-compat-decomposition.c: Likewise.
23349         * tests/uninorm/test-composition.c: Likewise.
23350         * tests/uninorm/test-decomposing-form.c: Likewise.
23351         * tests/uninorm/test-decomposition.c: Likewise.
23352         * tests/uninorm/test-u8-nfc.c: Likewise.
23353         * tests/uninorm/test-u8-nfd.c: Likewise.
23354         * tests/uninorm/test-u8-nfkc.c: Likewise.
23355         * tests/uninorm/test-u8-nfkd.c: Likewise.
23356         * tests/uninorm/test-u8-normcmp.c: Likewise.
23357         * tests/uninorm/test-u8-normcoll.c: Likewise.
23358         * tests/uninorm/test-u16-nfc.c: Likewise.
23359         * tests/uninorm/test-u16-nfd.c: Likewise.
23360         * tests/uninorm/test-u16-nfkc.c: Likewise.
23361         * tests/uninorm/test-u16-nfkd.c: Likewise.
23362         * tests/uninorm/test-u16-normcmp.c: Likewise.
23363         * tests/uninorm/test-u16-normcoll.c: Likewise.
23364         * tests/uninorm/test-u32-nfc.c: Likewise.
23365         * tests/uninorm/test-u32-nfd.c: Likewise.
23366         * tests/uninorm/test-u32-nfkc.c: Likewise.
23367         * tests/uninorm/test-u32-nfkd.c: Likewise.
23368         * tests/uninorm/test-u32-normalize-big.c: Likewise.
23369         * tests/uninorm/test-u32-normcmp.c: Likewise.
23370         * tests/uninorm/test-u32-normcoll.c: Likewise.
23371         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
23372         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
23373         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
23374         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
23375         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
23376         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
23377         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
23378         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
23379         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
23380         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
23381         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
23382         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
23383         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
23384         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
23385         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
23386         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
23387         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
23388         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
23389         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
23390         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
23391         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
23392         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
23393         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
23394         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
23395         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
23396         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
23397         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
23398         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
23399         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
23400         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
23401         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
23402         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
23403         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
23404         * tests/uniwidth/test-u8-strwidth.c: Likewise.
23405         * tests/uniwidth/test-u8-width.c: Likewise.
23406         * tests/uniwidth/test-u16-strwidth.c: Likewise.
23407         * tests/uniwidth/test-u16-width.c: Likewise.
23408         * tests/uniwidth/test-u32-strwidth.c: Likewise.
23409         * tests/uniwidth/test-u32-width.c: Likewise.
23410         * tests/uniwidth/test-uc_width.c: Likewise.
23411         * tests/uniwidth/test-uc_width2.c: Likewise.
23412         * modules/acl-tests (Files): Add tests/macros.h.
23413         * modules/areadlink-tests (Files): Likewise.
23414         * modules/areadlink-with-size-tests (Files): Likewise.
23415         * modules/areadlinkat-tests (Files): Likewise.
23416         * modules/areadlinkat-with-size-tests (Files): Likewise.
23417         * modules/argmatch-tests (Files): Likewise.
23418         * modules/argv-iter-tests (Files): Likewise.
23419         * modules/array-list-tests (Files): Likewise.
23420         * modules/array-mergesort-tests (Files): Likewise.
23421         * modules/array-oset-tests (Files): Likewise.
23422         * modules/avltree-list-tests (Files): Likewise.
23423         * modules/avltree-oset-tests (Files): Likewise.
23424         * modules/avltreehash-list-tests (Files): Likewise.
23425         * modules/base64-tests (Files): Likewise.
23426         * modules/binary-io-tests (Files): Likewise.
23427         * modules/bitrotate-tests (Files): Likewise.
23428         * modules/btowc-tests (Files): Likewise.
23429         * modules/byteswap-tests (Files): Likewise.
23430         * modules/c-ctype-tests (Files): Likewise.
23431         * modules/c-stack-tests (Files): Likewise.
23432         * modules/c-strcase-tests (Files): Likewise.
23433         * modules/c-strcasestr-tests (Files): Likewise.
23434         * modules/c-strstr-tests (Files): Likewise.
23435         * modules/canonicalize-lgpl-tests (Files): Likewise.
23436         * modules/canonicalize-tests (Files): Likewise.
23437         * modules/carray-list-tests (Files): Likewise.
23438         * modules/ceilf-tests (Files): Likewise.
23439         * modules/ceill-tests (Files): Likewise.
23440         * modules/chown-tests (Files): Likewise.
23441         * modules/cloexec-tests (Files): Likewise.
23442         * modules/copy-file-tests (Files): Likewise.
23443         * modules/count-one-bits-tests (Files): Likewise.
23444         * modules/dprintf-posix-tests (Files): Likewise.
23445         * modules/dup2-tests (Files): Likewise.
23446         * modules/dup3-tests (Files): Likewise.
23447         * modules/duplocale-tests (Files): Likewise.
23448         * modules/fbufmode-tests (Files): Likewise.
23449         * modules/fchdir-tests (Files): Likewise.
23450         * modules/fcntl-safer-tests (Files): Likewise.
23451         * modules/fcntl-tests (Files): Likewise.
23452         * modules/fdopendir-tests (Files): Likewise.
23453         * modules/fdutimensat-tests (Files): Likewise.
23454         * modules/fflush-tests (Files): Likewise.
23455         * modules/filevercmp-tests (Files): Likewise.
23456         * modules/flock-tests (Files): Likewise.
23457         * modules/floorf-tests (Files): Likewise.
23458         * modules/floorl-tests (Files): Likewise.
23459         * modules/fnmatch-tests (Files): Likewise.
23460         * modules/fopen-safer-tests (Files): Likewise.
23461         * modules/fopen-tests (Files): Likewise.
23462         * modules/fpending-tests (Files): Likewise.
23463         * modules/fprintf-posix-tests (Files): Likewise.
23464         * modules/fpurge-tests (Files): Likewise.
23465         * modules/freadable-tests (Files): Likewise.
23466         * modules/freadahead-tests (Files): Likewise.
23467         * modules/freading-tests (Files): Likewise.
23468         * modules/freadptr-tests (Files): Likewise.
23469         * modules/freadseek-tests (Files): Likewise.
23470         * modules/freopen-tests (Files): Likewise.
23471         * modules/frexp-nolibm-tests (Files): Likewise.
23472         * modules/frexp-tests (Files): Likewise.
23473         * modules/frexpl-nolibm-tests (Files): Likewise.
23474         * modules/frexpl-tests (Files): Likewise.
23475         * modules/fseek-tests (Files): Likewise.
23476         * modules/fseeko-tests (Files): Likewise.
23477         * modules/fstrcmp-tests (Files): Likewise.
23478         * modules/fsync-tests (Files): Likewise.
23479         * modules/ftell-tests (Files): Likewise.
23480         * modules/ftello-tests (Files): Likewise.
23481         * modules/func-tests (Files): Likewise.
23482         * modules/futimens-tests (Files): Likewise.
23483         * modules/fwritable-tests (Files): Likewise.
23484         * modules/fwriting-tests (Files): Likewise.
23485         * modules/getcwd-tests (Files): Likewise.
23486         * modules/getdate-tests (Files): Likewise.
23487         * modules/getdelim-tests (Files): Likewise.
23488         * modules/getdtablesize-tests (Files): Likewise.
23489         * modules/getgroups-tests (Files): Likewise.
23490         * modules/getline-tests (Files): Likewise.
23491         * modules/getndelim2-tests (Files): Likewise.
23492         * modules/glob-tests (Files): Likewise.
23493         * modules/hash-tests (Files): Likewise.
23494         * modules/i-ring-tests (Files): Likewise.
23495         * modules/iconv-tests (Files): Likewise.
23496         * modules/iconv_open-utf-tests (Files): Likewise.
23497         * modules/idpriv-drop-tests (Files): Likewise.
23498         * modules/idpriv-droptemp-tests (Files): Likewise.
23499         * modules/inet_ntop-tests (Files): Likewise.
23500         * modules/inet_pton-tests (Files): Likewise.
23501         * modules/isblank-tests (Files): Likewise.
23502         * modules/isfinite-tests (Files): Likewise.
23503         * modules/isinf-tests (Files): Likewise.
23504         * modules/isnan-tests (Files): Likewise.
23505         * modules/isnand-nolibm-tests (Files): Likewise.
23506         * modules/isnand-tests (Files): Likewise.
23507         * modules/isnanf-nolibm-tests (Files): Likewise.
23508         * modules/isnanf-tests (Files): Likewise.
23509         * modules/isnanl-nolibm-tests (Files): Likewise.
23510         * modules/isnanl-tests (Files): Likewise.
23511         * modules/lchown-tests (Files): Likewise.
23512         * modules/ldexpl-tests (Files): Likewise.
23513         * modules/link-tests (Files): Likewise.
23514         * modules/linkat-tests (Files): Likewise.
23515         * modules/linked-list-tests (Files): Likewise.
23516         * modules/linkedhash-list-tests (Files): Likewise.
23517         * modules/localename-tests (Files): Likewise.
23518         * modules/lseek-tests (Files): Likewise.
23519         * modules/lstat-tests (Files): Likewise.
23520         * modules/mbmemcasecmp-tests (Files): Likewise.
23521         * modules/mbmemcasecoll-tests (Files): Likewise.
23522         * modules/mbrtowc-tests (Files): Likewise.
23523         * modules/mbscasecmp-tests (Files): Likewise.
23524         * modules/mbscasestr-tests (Files): Likewise.
23525         * modules/mbschr-tests (Files): Likewise.
23526         * modules/mbscspn-tests (Files): Likewise.
23527         * modules/mbsinit-tests (Files): Likewise.
23528         * modules/mbsncasecmp-tests (Files): Likewise.
23529         * modules/mbsnrtowcs-tests (Files): Likewise.
23530         * modules/mbspbrk-tests (Files): Likewise.
23531         * modules/mbspcasecmp-tests (Files): Likewise.
23532         * modules/mbsrchr-tests (Files): Likewise.
23533         * modules/mbsrtowcs-tests (Files): Likewise.
23534         * modules/mbsspn-tests (Files): Likewise.
23535         * modules/mbsstr-tests (Files): Likewise.
23536         * modules/memchr-tests (Files): Likewise.
23537         * modules/memchr2-tests (Files): Likewise.
23538         * modules/memcmp-tests (Files): Likewise.
23539         * modules/memmem-tests (Files): Likewise.
23540         * modules/memrchr-tests (Files): Likewise.
23541         * modules/mkdir-tests (Files): Likewise.
23542         * modules/mkfifo-tests (Files): Likewise.
23543         * modules/mkfifoat-tests (Files): Likewise.
23544         * modules/mknod-tests (Files): Likewise.
23545         * modules/nanosleep-tests (Files): Likewise.
23546         * modules/nl_langinfo-tests (Files): Likewise.
23547         * modules/obstack-printf-tests (Files): Likewise.
23548         * modules/open-tests (Files): Likewise.
23549         * modules/openat-tests (Files): Likewise.
23550         * modules/pipe-filter-gi-tests (Files): Likewise.
23551         * modules/pipe-filter-ii-tests (Files): Likewise.
23552         * modules/pipe2-tests (Files): Likewise.
23553         * modules/popen-safer-tests (Files): Likewise.
23554         * modules/popen-tests (Files): Likewise.
23555         * modules/posixtm-tests (Files): Likewise.
23556         * modules/pread-tests (Files): Likewise.
23557         * modules/printf-frexp-tests (Files): Likewise.
23558         * modules/printf-frexpl-tests (Files): Likewise.
23559         * modules/printf-posix-tests (Files): Likewise.
23560         * modules/priv-set-tests (Files): Likewise.
23561         * modules/quotearg-tests (Files): Likewise.
23562         * modules/random_r-tests (Files): Likewise.
23563         * modules/rawmemchr-tests (Files): Likewise.
23564         * modules/rbtree-list-tests (Files): Likewise.
23565         * modules/rbtree-oset-tests (Files): Likewise.
23566         * modules/rbtreehash-list-tests (Files): Likewise.
23567         * modules/readlink-tests (Files): Likewise.
23568         * modules/remove-tests (Files): Likewise.
23569         * modules/rename-tests (Files): Likewise.
23570         * modules/renameat-tests (Files): Likewise.
23571         * modules/rmdir-tests (Files): Likewise.
23572         * modules/round-tests (Files): Likewise.
23573         * modules/roundf-tests (Files): Likewise.
23574         * modules/roundl-tests (Files): Likewise.
23575         * modules/safe-alloc-tests (Files): Likewise.
23576         * modules/setenv-tests (Files): Likewise.
23577         * modules/sigaction-tests (Files): Likewise.
23578         * modules/signbit-tests (Files): Likewise.
23579         * modules/sleep-tests (Files): Likewise.
23580         * modules/snprintf-posix-tests (Files): Likewise.
23581         * modules/snprintf-tests (Files): Likewise.
23582         * modules/sprintf-posix-tests (Files): Likewise.
23583         * modules/stat-tests (Files): Likewise.
23584         * modules/stat-time-tests (Files): Likewise.
23585         * modules/strcasestr-tests (Files): Likewise.
23586         * modules/strchrnul-tests (Files): Likewise.
23587         * modules/strerror-tests (Files): Likewise.
23588         * modules/striconv-tests (Files): Likewise.
23589         * modules/striconveh-tests (Files): Likewise.
23590         * modules/striconveha-tests (Files): Likewise.
23591         * modules/strsignal-tests (Files): Likewise.
23592         * modules/strstr-tests (Files): Likewise.
23593         * modules/strtod-tests (Files): Likewise.
23594         * modules/strverscmp-tests (Files): Likewise.
23595         * modules/symlink-tests (Files): Likewise.
23596         * modules/symlinkat-tests (Files): Likewise.
23597         * modules/trunc-tests (Files): Likewise.
23598         * modules/truncf-tests (Files): Likewise.
23599         * modules/truncl-tests (Files): Likewise.
23600         * modules/uname-tests (Files): Likewise.
23601         * modules/unicase/cased-tests (Files): Likewise.
23602         * modules/unicase/ignorable-tests (Files): Likewise.
23603         * modules/unicase/locale-language-tests (Files): Likewise.
23604         * modules/unicase/tolower-tests (Files): Likewise.
23605         * modules/unicase/totitle-tests (Files): Likewise.
23606         * modules/unicase/toupper-tests (Files): Likewise.
23607         * modules/unicase/u8-casecmp-tests (Files): Likewise.
23608         * modules/unicase/u8-casecoll-tests (Files): Likewise.
23609         * modules/unicase/u8-casefold-tests (Files): Likewise.
23610         * modules/unicase/u8-is-cased-tests (Files): Likewise.
23611         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
23612         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
23613         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
23614         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
23615         * modules/unicase/u8-tolower-tests (Files): Likewise.
23616         * modules/unicase/u8-totitle-tests (Files): Likewise.
23617         * modules/unicase/u8-toupper-tests (Files): Likewise.
23618         * modules/unicase/u16-casecmp-tests (Files): Likewise.
23619         * modules/unicase/u16-casecoll-tests (Files): Likewise.
23620         * modules/unicase/u16-casefold-tests (Files): Likewise.
23621         * modules/unicase/u16-is-cased-tests (Files): Likewise.
23622         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
23623         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
23624         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
23625         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
23626         * modules/unicase/u16-tolower-tests (Files): Likewise.
23627         * modules/unicase/u16-totitle-tests (Files): Likewise.
23628         * modules/unicase/u16-toupper-tests (Files): Likewise.
23629         * modules/unicase/u32-casecmp-tests (Files): Likewise.
23630         * modules/unicase/u32-casecoll-tests (Files): Likewise.
23631         * modules/unicase/u32-casefold-tests (Files): Likewise.
23632         * modules/unicase/u32-is-cased-tests (Files): Likewise.
23633         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
23634         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
23635         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
23636         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
23637         * modules/unicase/u32-tolower-tests (Files): Likewise.
23638         * modules/unicase/u32-totitle-tests (Files): Likewise.
23639         * modules/unicase/u32-toupper-tests (Files): Likewise.
23640         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
23641         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
23642         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
23643         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
23644         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
23645         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
23646         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
23647         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
23648         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
23649         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
23650         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
23651         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
23652         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
23653         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
23654         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
23655         * modules/unictype/bidicategory-name-tests (Files): Likewise.
23656         * modules/unictype/bidicategory-of-tests (Files): Likewise.
23657         * modules/unictype/bidicategory-test-tests (Files): Likewise.
23658         * modules/unictype/block-list-tests (Files): Likewise.
23659         * modules/unictype/block-of-tests (Files): Likewise.
23660         * modules/unictype/block-test-tests (Files): Likewise.
23661         * modules/unictype/category-C-tests (Files): Likewise.
23662         * modules/unictype/category-Cc-tests (Files): Likewise.
23663         * modules/unictype/category-Cf-tests (Files): Likewise.
23664         * modules/unictype/category-Cn-tests (Files): Likewise.
23665         * modules/unictype/category-Co-tests (Files): Likewise.
23666         * modules/unictype/category-Cs-tests (Files): Likewise.
23667         * modules/unictype/category-L-tests (Files): Likewise.
23668         * modules/unictype/category-Ll-tests (Files): Likewise.
23669         * modules/unictype/category-Lm-tests (Files): Likewise.
23670         * modules/unictype/category-Lo-tests (Files): Likewise.
23671         * modules/unictype/category-Lt-tests (Files): Likewise.
23672         * modules/unictype/category-Lu-tests (Files): Likewise.
23673         * modules/unictype/category-M-tests (Files): Likewise.
23674         * modules/unictype/category-Mc-tests (Files): Likewise.
23675         * modules/unictype/category-Me-tests (Files): Likewise.
23676         * modules/unictype/category-Mn-tests (Files): Likewise.
23677         * modules/unictype/category-N-tests (Files): Likewise.
23678         * modules/unictype/category-Nd-tests (Files): Likewise.
23679         * modules/unictype/category-Nl-tests (Files): Likewise.
23680         * modules/unictype/category-No-tests (Files): Likewise.
23681         * modules/unictype/category-P-tests (Files): Likewise.
23682         * modules/unictype/category-Pc-tests (Files): Likewise.
23683         * modules/unictype/category-Pd-tests (Files): Likewise.
23684         * modules/unictype/category-Pe-tests (Files): Likewise.
23685         * modules/unictype/category-Pf-tests (Files): Likewise.
23686         * modules/unictype/category-Pi-tests (Files): Likewise.
23687         * modules/unictype/category-Po-tests (Files): Likewise.
23688         * modules/unictype/category-Ps-tests (Files): Likewise.
23689         * modules/unictype/category-S-tests (Files): Likewise.
23690         * modules/unictype/category-Sc-tests (Files): Likewise.
23691         * modules/unictype/category-Sk-tests (Files): Likewise.
23692         * modules/unictype/category-Sm-tests (Files): Likewise.
23693         * modules/unictype/category-So-tests (Files): Likewise.
23694         * modules/unictype/category-Z-tests (Files): Likewise.
23695         * modules/unictype/category-Zl-tests (Files): Likewise.
23696         * modules/unictype/category-Zp-tests (Files): Likewise.
23697         * modules/unictype/category-Zs-tests (Files): Likewise.
23698         * modules/unictype/category-and-not-tests (Files): Likewise.
23699         * modules/unictype/category-and-tests (Files): Likewise.
23700         * modules/unictype/category-byname-tests (Files): Likewise.
23701         * modules/unictype/category-name-tests (Files): Likewise.
23702         * modules/unictype/category-none-tests (Files): Likewise.
23703         * modules/unictype/category-of-tests (Files): Likewise.
23704         * modules/unictype/category-or-tests (Files): Likewise.
23705         * modules/unictype/category-test-withtable-tests (Files): Likewise.
23706         * modules/unictype/combining-class-tests (Files): Likewise.
23707         * modules/unictype/ctype-alnum-tests (Files): Likewise.
23708         * modules/unictype/ctype-alpha-tests (Files): Likewise.
23709         * modules/unictype/ctype-blank-tests (Files): Likewise.
23710         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
23711         * modules/unictype/ctype-digit-tests (Files): Likewise.
23712         * modules/unictype/ctype-graph-tests (Files): Likewise.
23713         * modules/unictype/ctype-lower-tests (Files): Likewise.
23714         * modules/unictype/ctype-print-tests (Files): Likewise.
23715         * modules/unictype/ctype-punct-tests (Files): Likewise.
23716         * modules/unictype/ctype-space-tests (Files): Likewise.
23717         * modules/unictype/ctype-upper-tests (Files): Likewise.
23718         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
23719         * modules/unictype/decimal-digit-tests (Files): Likewise.
23720         * modules/unictype/digit-tests (Files): Likewise.
23721         * modules/unictype/mirror-tests (Files): Likewise.
23722         * modules/unictype/numeric-tests (Files): Likewise.
23723         * modules/unictype/property-alphabetic-tests (Files): Likewise.
23724         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
23725         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
23726         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
23727         Likewise.
23728         * modules/unictype/property-bidi-block-separator-tests (Files):
23729         Likewise.
23730         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
23731         Likewise.
23732         * modules/unictype/property-bidi-common-separator-tests (Files):
23733         Likewise.
23734         * modules/unictype/property-bidi-control-tests (Files): Likewise.
23735         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
23736         Likewise.
23737         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
23738         Likewise.
23739         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
23740         Likewise.
23741         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
23742         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
23743         Likewise.
23744         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
23745         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
23746         Likewise.
23747         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
23748         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
23749         * modules/unictype/property-bidi-segment-separator-tests (Files):
23750         Likewise.
23751         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
23752         * modules/unictype/property-byname-tests (Files): Likewise.
23753         * modules/unictype/property-combining-tests (Files): Likewise.
23754         * modules/unictype/property-composite-tests (Files): Likewise.
23755         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
23756         * modules/unictype/property-dash-tests (Files): Likewise.
23757         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
23758         * modules/unictype/property-default-ignorable-code-point-tests (Files):
23759         Likewise.
23760         * modules/unictype/property-deprecated-tests (Files): Likewise.
23761         * modules/unictype/property-diacritic-tests (Files): Likewise.
23762         * modules/unictype/property-extender-tests (Files): Likewise.
23763         * modules/unictype/property-format-control-tests (Files): Likewise.
23764         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
23765         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
23766         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
23767         * modules/unictype/property-hex-digit-tests (Files): Likewise.
23768         * modules/unictype/property-hyphen-tests (Files): Likewise.
23769         * modules/unictype/property-id-continue-tests (Files): Likewise.
23770         * modules/unictype/property-id-start-tests (Files): Likewise.
23771         * modules/unictype/property-ideographic-tests (Files): Likewise.
23772         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
23773         * modules/unictype/property-ids-trinary-operator-tests (Files):
23774         Likewise.
23775         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
23776         * modules/unictype/property-iso-control-tests (Files): Likewise.
23777         * modules/unictype/property-join-control-tests (Files): Likewise.
23778         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
23779         * modules/unictype/property-line-separator-tests (Files): Likewise.
23780         * modules/unictype/property-logical-order-exception-tests (Files):
23781         Likewise.
23782         * modules/unictype/property-lowercase-tests (Files): Likewise.
23783         * modules/unictype/property-math-tests (Files): Likewise.
23784         * modules/unictype/property-non-break-tests (Files): Likewise.
23785         * modules/unictype/property-not-a-character-tests (Files): Likewise.
23786         * modules/unictype/property-numeric-tests (Files): Likewise.
23787         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
23788         * modules/unictype/property-other-default-ignorable-code-point-tests
23789         (Files): Likewise.
23790         * modules/unictype/property-other-grapheme-extend-tests (Files):
23791         Likewise.
23792         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
23793         * modules/unictype/property-other-id-start-tests (Files): Likewise.
23794         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
23795         * modules/unictype/property-other-math-tests (Files): Likewise.
23796         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
23797         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
23798         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
23799         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
23800         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
23801         * modules/unictype/property-private-use-tests (Files): Likewise.
23802         * modules/unictype/property-punctuation-tests (Files): Likewise.
23803         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
23804         * modules/unictype/property-radical-tests (Files): Likewise.
23805         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
23806         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
23807         * modules/unictype/property-space-tests (Files): Likewise.
23808         * modules/unictype/property-terminal-punctuation-tests (Files):
23809         Likewise.
23810         * modules/unictype/property-test-tests (Files): Likewise.
23811         * modules/unictype/property-titlecase-tests (Files): Likewise.
23812         * modules/unictype/property-unassigned-code-value-tests (Files):
23813         Likewise.
23814         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
23815         * modules/unictype/property-uppercase-tests (Files): Likewise.
23816         * modules/unictype/property-variation-selector-tests (Files): Likewise.
23817         * modules/unictype/property-white-space-tests (Files): Likewise.
23818         * modules/unictype/property-xid-continue-tests (Files): Likewise.
23819         * modules/unictype/property-xid-start-tests (Files): Likewise.
23820         * modules/unictype/property-zero-width-tests (Files): Likewise.
23821         * modules/unictype/scripts-tests (Files): Likewise.
23822         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
23823         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
23824         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
23825         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
23826         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
23827         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
23828         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
23829         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
23830         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
23831         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
23832         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
23833         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
23834         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
23835         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
23836         * modules/uninorm/composition-tests (Files): Likewise.
23837         * modules/uninorm/decomposing-form-tests (Files): Likewise.
23838         * modules/uninorm/decomposition-tests (Files): Likewise.
23839         * modules/uninorm/filter-tests (Files): Likewise.
23840         * modules/uninorm/nfc-tests (Files): Likewise.
23841         * modules/uninorm/nfd-tests (Files): Likewise.
23842         * modules/uninorm/nfkc-tests (Files): Likewise.
23843         * modules/uninorm/nfkd-tests (Files): Likewise.
23844         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
23845         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
23846         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
23847         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
23848         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
23849         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
23850         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
23851         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23852         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
23853         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
23854         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
23855         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
23856         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23857         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
23858         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
23859         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
23860         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
23861         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23862         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
23863         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
23864         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
23865         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
23866         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23867         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
23868         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
23869         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
23870         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
23871         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
23872         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
23873         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
23874         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
23875         * modules/uniwidth/u8-width-tests (Files): Likewise.
23876         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
23877         * modules/uniwidth/u16-width-tests (Files): Likewise.
23878         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
23879         * modules/uniwidth/u32-width-tests (Files): Likewise.
23880         * modules/uniwidth/width-tests (Files): Likewise.
23881         * modules/unlink-tests (Files): Likewise.
23882         * modules/unsetenv-tests (Files): Likewise.
23883         * modules/usleep-tests (Files): Likewise.
23884         * modules/utimens-tests (Files): Likewise.
23885         * modules/utimensat-tests (Files): Likewise.
23886         * modules/vasnprintf-posix-tests (Files): Likewise.
23887         * modules/vasnprintf-tests (Files): Likewise.
23888         * modules/vasprintf-posix-tests (Files): Likewise.
23889         * modules/vasprintf-tests (Files): Likewise.
23890         * modules/vdprintf-posix-tests (Files): Likewise.
23891         * modules/vfprintf-posix-tests (Files): Likewise.
23892         * modules/vprintf-posix-tests (Files): Likewise.
23893         * modules/vsnprintf-posix-tests (Files): Likewise.
23894         * modules/vsnprintf-tests (Files): Likewise.
23895         * modules/vsprintf-posix-tests (Files): Likewise.
23896         * modules/wcrtomb-tests (Files): Likewise.
23897         * modules/wcsnrtombs-tests (Files): Likewise.
23898         * modules/wcsrtombs-tests (Files): Likewise.
23899         * modules/wctype-tests (Files): Likewise.
23900         * modules/wcwidth-tests (Files): Likewise.
23901         * modules/xmemdup0-tests (Files): Likewise.
23902         * modules/xprintf-posix-tests (Files): Likewise.
23903         * modules/xvasprintf-tests (Files): Likewise.
23904
23905 2009-12-24  Eric Blake  <ebb9@byu.net>
23906
23907         test-nanosleep: fix typo
23908         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
23909         patch.
23910         Reported by Bruno Haible.
23911
23912 2009-12-24  Bruno Haible  <bruno@clisp.org>
23913
23914         Reduce namespace pollution on glibc systems.
23915         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
23916         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
23917         systems.
23918         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
23919         <getopt.h> on glibc systems.
23920         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
23921         systems.
23922         * lib/fcntl.c: Include <unistd.h> here instead.
23923
23924 2009-12-24  Bruno Haible  <bruno@clisp.org>
23925
23926         * lib/stdlib.in.h (includes): Fix typo in today's commit.
23927
23928 2009-12-24  Eric Blake  <ebb9@byu.net>
23929
23930         tests: add signature checks
23931         * tests/signature.h (SIGNATURE_CHECK): New file.
23932         * modules/atexit-tests (Files): Use it.
23933         * modules/btowc-tests (Files): Likewise.
23934         * modules/canonicalize-lgpl-tests (Files): Likewise.
23935         * modules/ceilf-tests (Files): Likewise.
23936         * modules/ceill-tests (Files): Likewise.
23937         * modules/chown-tests (Files): Likewise.
23938         * modules/dprintf-posix-tests (Files): Likewise.
23939         * modules/dup2-tests (Files): Likewise.
23940         * modules/dup3-tests (Files): Likewise.
23941         * modules/duplocale-tests (Files): Likewise.
23942         * modules/fchdir-tests (Files): Likewise.
23943         * modules/fcntl-tests (Files): Likewise.
23944         * modules/fdopendir-tests (Files): Likewise.
23945         * modules/fflush-tests (Files): Likewise.
23946         * modules/flock-tests (Files): Likewise.
23947         * modules/floorf-tests (Files): Likewise.
23948         * modules/floorl-tests (Files): Likewise.
23949         * modules/fnmatch-tests (Files): Likewise.
23950         * modules/fopen-tests (Files): Likewise.
23951         * modules/fprintf-posix-tests (Files): Likewise.
23952         * modules/freopen-tests (Files): Likewise.
23953         * modules/frexp-nolibm-tests (Files): Likewise.
23954         * modules/frexp-tests (Files): Likewise.
23955         * modules/frexpl-nolibm-tests (Files): Likewise.
23956         * modules/frexpl-tests (Files): Likewise.
23957         * modules/fseek-tests (Files): Likewise.
23958         * modules/fseeko-tests (Files): Likewise.
23959         * modules/fsync-tests (Files): Likewise.
23960         * modules/ftell-tests (Files): Likewise.
23961         * modules/ftello-tests (Files): Likewise.
23962         * modules/futimens-tests (Files): Likewise.
23963         * modules/getaddrinfo-tests (Files): Likewise.
23964         * modules/getcwd-tests (Files): Likewise.
23965         * modules/getdelim-tests (Files): Likewise.
23966         * modules/getdtablesize-tests (Files): Likewise.
23967         * modules/getgroups-tests (Files): Likewise.
23968         * modules/gethostname-tests (Files): Likewise.
23969         * modules/getline-tests (Files): Likewise.
23970         * modules/getopt-posix-tests (Files): Likewise.
23971         * modules/gettimeofday-tests (Files): Likewise.
23972         * modules/glob-tests (Files): Likewise.
23973         * modules/iconv-tests (Files): Likewise.
23974         * modules/inet_ntop-tests (Files): Likewise.
23975         * modules/inet_pton-tests (Files): Likewise.
23976         * modules/isblank-tests (Files): Likewise.
23977         * modules/lchown-tests (Files): Likewise.
23978         * modules/ldexpl-tests (Files): Likewise.
23979         * modules/link-tests (Files): Likewise.
23980         * modules/linkat-tests (Files): Likewise.
23981         * modules/lseek-tests (Files): Likewise.
23982         * modules/lstat-tests (Files): Likewise.
23983         * modules/mbrtowc-tests (Files): Likewise.
23984         * modules/mbsinit-tests (Files): Likewise.
23985         * modules/mbsnrtowcs-tests (Files): Likewise.
23986         * modules/mbsrtowcs-tests (Files): Likewise.
23987         * modules/memchr-tests (Files): Likewise.
23988         * modules/memcmp-tests (Files): Likewise.
23989         * modules/memmem-tests (Files): Likewise.
23990         * modules/memrchr-tests (Files): Likewise.
23991         * modules/mkdir-tests (Files): Likewise.
23992         * modules/mkfifo-tests (Files): Likewise.
23993         * modules/mkfifoat-tests (Files): Likewise.
23994         * modules/mknod-tests (Files): Likewise.
23995         * modules/nanosleep-tests (Files): Likewise.
23996         * modules/nl_langinfo-tests (Files): Likewise.
23997         * modules/obstack-printf-tests (Files): Likewise.
23998         * modules/open-tests (Files): Likewise.
23999         * modules/openat-tests (Files): Likewise.
24000         * modules/perror-tests (Files): Likewise.
24001         * modules/pipe2-tests (Files): Likewise.
24002         * modules/poll-tests (Files): Likewise.
24003         * modules/popen-tests (Files): Likewise.
24004         * modules/posix_spawn-tests (Files): Likewise.
24005         * modules/posix_spawnp-tests (Files): Likewise.
24006         * modules/pread-tests (Files): Likewise.
24007         * modules/printf-posix-tests (Files): Likewise.
24008         * modules/pty-tests (Files): Likewise.
24009         * modules/random_r-tests (Files): Likewise.
24010         * modules/rawmemchr-tests (Files): Likewise.
24011         * modules/readlink-tests (Files): Likewise.
24012         * modules/remove-tests (Files): Likewise.
24013         * modules/rename-tests (Files): Likewise.
24014         * modules/renameat-tests (Files): Likewise.
24015         * modules/rmdir-tests (Files): Likewise.
24016         * modules/round-tests (Files): Likewise.
24017         * modules/roundf-tests (Files): Likewise.
24018         * modules/roundl-tests (Files): Likewise.
24019         * modules/select-tests (Files): Likewise.
24020         * modules/setenv-tests (Files): Likewise.
24021         * modules/sigaction-tests (Files): Likewise.
24022         * modules/sleep-tests (Files): Likewise.
24023         * modules/snprintf-posix-tests (Files): Likewise.
24024         * modules/snprintf-tests (Files): Likewise.
24025         * modules/sprintf-posix-tests (Files): Likewise.
24026         * modules/stat-tests (Files): Likewise.
24027         * modules/strcasestr-tests (Files): Likewise.
24028         * modules/strchrnul-tests (Files): Likewise.
24029         * modules/strerror-tests (Files): Likewise.
24030         * modules/strsignal-tests (Files): Likewise.
24031         * modules/strstr-tests (Files): Likewise.
24032         * modules/strtod-tests (Files): Likewise.
24033         * modules/strverscmp-tests (Files): Likewise.
24034         * modules/symlink-tests (Files): Likewise.
24035         * modules/symlinkat-tests (Files): Likewise.
24036         * modules/times-tests (Files): Likewise.
24037         * modules/trunc-tests (Files): Likewise.
24038         * modules/truncf-tests (Files): Likewise.
24039         * modules/truncl-tests (Files): Likewise.
24040         * modules/tsearch-tests (Files): Likewise.
24041         * modules/uname-tests (Files): Likewise.
24042         * modules/unlink-tests (Files): Likewise.
24043         * modules/unsetenv-tests (Files): Likewise.
24044         * modules/usleep-tests (Files): Likewise.
24045         * modules/utimensat-tests (Files): Likewise.
24046         * modules/vasprintf-tests (Files): Likewise.
24047         * modules/vdprintf-posix-tests (Files): Likewise.
24048         * modules/vfprintf-posix-tests (Files): Likewise.
24049         * modules/vprintf-posix-tests (Files): Likewise.
24050         * modules/vsnprintf-posix-tests (Files): Likewise.
24051         * modules/vsnprintf-tests (Files): Likewise.
24052         * modules/vsprintf-posix-tests (Files): Likewise.
24053         * modules/wcrtomb-tests (Files): Likewise.
24054         * modules/wcsnrtombs-tests (Files): Likewise.
24055         * modules/wcsrtombs-tests (Files): Likewise.
24056         * modules/wcwidth-tests (Files): Likewise.
24057         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
24058         * tests/test-isinf.c (isinf): Likewise.
24059         * tests/test-isnan.c (isnan): Likewise.
24060         * tests/test-signbit.c (signbit): Likewise.
24061         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
24062         declaration, either as macro or with correct signature.
24063         (select): Ensure function under test is declared with correct
24064         signature in correct header.
24065         * tests/test-atexit.c (atexit): Likewise.
24066         * tests/test-btowc.c (btowc): Likewise.
24067         * tests/test-canonicalize-lgpl.c (realpath)
24068         (canonicalize_file_name): Likewise.
24069         * tests/test-ceilf1.c (ceilf): Likewise.
24070         * tests/test-ceill.c (ceill): Likewise.
24071         * tests/test-chown.c (chown): Likewise.
24072         * tests/test-dprintf-posix.c (dprintf): Likewise.
24073         * tests/test-dup2.c (dup2): Likewise.
24074         * tests/test-dup3.c (dup3): Likewise.
24075         * tests/test-duplocale.c (duplocale): Likewise.
24076         * tests/test-fchdir.c (fchdir): Likewise.
24077         * tests/test-fchownat.c (fchownat): Likewise.
24078         * tests/test-fcntl.c (fcntl): Likewise.
24079         * tests/test-fdopendir.c (fdopendir): Likewise.
24080         * tests/test-fflush.c (fflush): Likewise.
24081         * tests/test-flock.c (flock): Likewise.
24082         * tests/test-floorf1.c (floorf): Likewise.
24083         * tests/test-floorl.c (floorl): Likewise.
24084         * tests/test-fnmatch.c (fnmatch): Likewise.
24085         * tests/test-fopen.c (fopen): Likewise.
24086         * tests/test-fprintf-posix.c (fprintf): Likewise.
24087         * tests/test-freopen.c (freopen): Likewise.
24088         * tests/test-frexp.c (frexp): Likewise.
24089         * tests/test-frexpl.c (frexpl): Likewise.
24090         * tests/test-fseek.c (fseek): Likewise.
24091         * tests/test-fseeko.c (fseeko): Likewise.
24092         * tests/test-fstatat.c (fstatat): Likewise.
24093         * tests/test-fsync.c (fsync): Likewise.
24094         * tests/test-ftell.c (ftell): Likewise.
24095         * tests/test-ftello.c (ftello): Likewise.
24096         * tests/test-futimens.c (futimens): Likewise.
24097         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
24098         (gai_strerror): Likewise.
24099         * tests/test-getcwd.c (getcwd): Likewise.
24100         * tests/test-getdelim.c (getdelim): Likewise.
24101         * tests/test-getdtablesize.c (getdtablesize): Likewise.
24102         * tests/test-getgroups.c (getgroups): Likewise.
24103         * tests/test-gethostname.c (gethostname): Likewise.
24104         * tests/test-getline.c (getline): Likewise.
24105         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
24106         Likewise.
24107         * tests/test-gettimeofday.c (gettimeofday): Likewise.
24108         * tests/test-glob.c (glob, globfree): Likewise.
24109         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
24110         * tests/test-inet_ntop.c (inet_ntop): Likewise.
24111         * tests/test-inet_pton.c (inet_pton): Likewise.
24112         * tests/test-isblank.c (isblank): Likewise.
24113         * tests/test-lchown.c (lchown): Likewise.
24114         * tests/test-ldexpl.c (ldexpl): Likewise.
24115         * tests/test-link.c (link): Likewise.
24116         * tests/test-linkat.c (linkat): Likewise.
24117         * tests/test-lseek.c (lseek): Likewise.
24118         * tests/test-lstat.c (lstat): Likewise.
24119         * tests/test-mbrtowc.c (mbrtowc): Likewise.
24120         * tests/test-mbsinit.c (mbsinit): Likewise.
24121         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
24122         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
24123         * tests/test-memchr.c (memchr): Likewise.
24124         * tests/test-memcmp.c (memcmp): Likewise.
24125         * tests/test-memmem.c (memmem): Likewise.
24126         * tests/test-memrchr.c (memrchr): Likewise.
24127         * tests/test-mkdir.c (mkdir): Likewise.
24128         * tests/test-mkdirat.c (mkdirat): Likewise.
24129         * tests/test-mkfifo.c (mkfifo): Likewise.
24130         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
24131         * tests/test-mknod.c (mknod): Likewise.
24132         * tests/test-nanosleep.c (nanosleep): Likewise.
24133         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
24134         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
24135         Likewise.
24136         * tests/test-open.c (open): Likewise.
24137         * tests/test-openat.c (openat): Likewise.
24138         * tests/test-perror.c (perror): Likewise.
24139         * tests/test-pipe2.c (pipe2): Likewise.
24140         * tests/test-poll.c (poll): Likewise.
24141         * tests/test-popen.c (popen, pclose): Likewise.
24142         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
24143         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
24144         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
24145         (posix_spawn_file_actions_destroy)
24146         (posix_spawn_file_actions_addclose)
24147         (posix_spawn_file_actions_addopen)
24148         (posix_spawn_file_actions_adddup2): Likewise.
24149         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
24150         * tests/test-pread.c (pread): Likewise.
24151         * tests/test-printf-posix.c (printf): Likewise.
24152         * tests/test-pty.c (openpty, forkpty): Likewise.
24153         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
24154         (random_r): Likewise.
24155         * tests/test-rawmemchr.c (rawmemchr): Likewise.
24156         * tests/test-readlink.c (readlink): Likewise.
24157         * tests/test-remove.c (remove): Likewise.
24158         * tests/test-rename.c (rename): Likewise.
24159         * tests/test-renameat.c (renameat): Likewise.
24160         * tests/test-rmdir.c (rmdir): Likewise.
24161         * tests/test-round1.c (round): Likewise.
24162         * tests/test-roundf1.c (roundf): Likewise.
24163         * tests/test-roundl.c (roundl): Likewise.
24164         * tests/test-setenv.c (setenv): Likewise.
24165         * tests/test-sigaction.c (sigaction): Likewise.
24166         * tests/test-sleep.c (sleep): Likewise.
24167         * tests/test-snprintf.c (snprintf): Likewise.
24168         * tests/test-sprintf-posix.c (sprintf): Likewise.
24169         * tests/test-stat.c (stat): Likewise.
24170         * tests/test-stpncpy.c (stpncpy): Likewise.
24171         * tests/test-strcasestr.c (strcasestr): Likewise.
24172         * tests/test-strchrnul.c (strchrnul): Likewise.
24173         * tests/test-strerror.c (strerror): Likewise.
24174         * tests/test-strsignal.c (strsignal): Likewise.
24175         * tests/test-strstr.c (strstr): Likewise.
24176         * tests/test-strtod.c (strtod): Likewise.
24177         * tests/test-strverscmp.c (strverscmp): Likewise.
24178         * tests/test-symlink.c (symlink): Likewise.
24179         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
24180         * tests/test-times.c (times): Likewise.
24181         * tests/test-trunc1.c (trunc): Likewise.
24182         * tests/test-truncf1.c (truncf): Likewise.
24183         * tests/test-truncl.c (truncl): Likewise.
24184         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
24185         Likewise.
24186         * tests/test-uname.c (uname): Likewise.
24187         * tests/test-unlink.c (unlink): Likewise.
24188         * tests/test-unlinkat.c (unlinkat): Likewise.
24189         * tests/test-unsetenv.c (unsetenv): Likewise.
24190         * tests/test-usleep.c (usleep): Likewise.
24191         * tests/test-utimensat.c (utimensat): Likewise.
24192         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
24193         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
24194         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
24195         * tests/test-vprintf-posix.c (vprintf): Likewise.
24196         * tests/test-vsnprintf.c (vsnprintf): Likewise.
24197         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
24198         * tests/test-wcrtomb.c (wcrtomb): Likewise.
24199         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
24200         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
24201         * tests/test-wcwidth.c (wcwidth): Likewise.
24202
24203         build: pull in conditional headers during GNULIB_POSIXCHECK
24204         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
24205         definitions from any conditionally-included headers.
24206         * lib/stdlib.in.h (includes): Likewise.
24207         * lib/unistd.in.h (includes): Likewise.
24208
24209 2009-12-24  Bruno Haible  <bruno@clisp.org>
24210
24211         * tests/test-argv-iter.c: Include header file being tested immediately
24212         after config.h.
24213         * tests/test-base64.c: Likewise.
24214         * tests/test-flock.c: Likewise.
24215         * tests/test-fsync.c: Likewise.
24216         * tests/test-getdate.c: Likewise.
24217         * tests/test-getndelim2.c: Likewise.
24218         * tests/test-isfinite.c: Likewise.
24219         * tests/test-isinf.c: Likewise.
24220         * tests/test-strerror.c: Likewise.
24221         * tests/test-strsignal.c: Likewise.
24222
24223 2009-12-23  Eric Blake  <ebb9@byu.net>
24224
24225         unistd: work around cygwin bug
24226         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
24227         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
24228         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24229
24230 2009-12-23  Bruno Haible  <bruno@clisp.org>
24231
24232         localename: More tests.
24233         * tests/test-localename.c (SIZEOF): New macro.
24234         (categories): New variable.
24235         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
24236         test_locale_name_default): Add test w.r.t. thread locale.
24237         (test_locale_name_thread): New function.
24238         (main): Invoke it.
24239
24240         localename: Make aware of thread locale.
24241         * lib/localename.h (gl_locale_name_thread): New declaration.
24242         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
24243         behaviour with respect to thread locale.
24244         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
24245         <langinfo.h>, glthread/lock.h.
24246         (SIZE_BITS): New macro.
24247         (string_hash): New function.
24248         (struct hash_node): New type.
24249         (HASH_TABLE_SIZE): New macro.
24250         (struniq_hash_table, struniq_lock): New variables.
24251         (struniq): New function.
24252         (gl_locale_name_thread): New function.
24253         (gl_locale_name): Invoke it.
24254         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
24255         * modules/localename (Depends-on): Add lock.
24256         Reported by Mike Gran <spk121@yahoo.com>.
24257
24258 2009-12-23  Eric Blake  <ebb9@byu.net>
24259
24260         va-args: new module
24261         * modules/va-args: New file.
24262         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
24263         * MODULES.html.sh (Core language properties): Mention it.
24264
24265         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
24266         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
24267         named alias for __attribute__((__unused__)).
24268         * lib/chown.c: Update client.
24269         * lib/fchmodat.c: Likewise.
24270         * lib/fts.c: Likewise.
24271         * lib/getdate.y: Likewise.
24272         * lib/getgroups.c: Likewise.
24273         * lib/getopt.c: Likewise.
24274         * lib/getugroups.c: Likewise.
24275         * lib/mkdir.c: Likewise.
24276         * lib/mkfifo.c: Likewise.
24277         * lib/mkfifoat.c: Likewise.
24278         * lib/mknod.c: Likewise.
24279         * lib/mknodat.c: Likewise.
24280         * lib/readlink.c: Likewise.
24281         * lib/se-context.in.h: Likewise.
24282         * lib/se-selinux.in.h: Likewise.
24283         * lib/sockets.c: Likewise.
24284         * lib/symlink.c: Likewise.
24285         * lib/symlinkat.c: Likewise.
24286         * lib/unicodeio.c: Likewise.
24287         * lib/unistr.h: Likewise.
24288         * tests/test-areadlink.c: Likewise.
24289         * tests/test-areadlinkat.c: Likewise.
24290         * tests/test-filenamecat.c: Likewise.
24291         * tests/test-fseeko.c: Likewise.
24292         * tests/test-ftello.c: Likewise.
24293         * tests/test-getdate.c: Likewise.
24294         * tests/test-getgroups.c: Likewise.
24295         * tests/test-gethostname.c: Likewise.
24296         * tests/test-quotearg.c: Likewise.
24297         * tests/test-version-etc.c: Likewise.
24298         * tests/test-xalloc-die.c: Likewise.
24299         * tests/test-xfprintf-posix.c: Likewise.
24300         * tests/test-xprintf-posix.c: Likewise.
24301         * tests/test-xvasprintf.c: Likewise.
24302
24303         tests: avoid compiler warnings
24304         * tests/test-fcntl.c (main): Delete unused parameters.
24305         * tests/test-freopen-safer.c (main): Likewise.
24306         * tests/test-xalloc-die.c (main): Mark unused parameters.
24307         * tests/test-fseeko.c (main): Likewise.
24308         * tests/test-ftello.c (main): Likewise.
24309         * tests/test-nanosleep.c (main): Avoid declaration warning.
24310         * tests/test-sleep.c (main): Likewise.
24311         * tests/test-unsetenv.c (main): Silence warning about string
24312         literal.
24313         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
24314
24315 2009-12-23  Bruno Haible  <bruno@clisp.org>
24316
24317         * tests/test-localename.c (test_locale_name): New function, extracted
24318         from main. Also test mixed situations.
24319         (test_locale_name_posix, test_locale_name_environ,
24320         test_locale_name_default): New functions.
24321         (main): Invoke them all.
24322         * modules/localename-tests (configure.ac): Test for newlocale.
24323
24324 2009-12-23  Bruno Haible  <bruno@clisp.org>
24325
24326         unistd: Ensure getcwd gets declared before being overridden.
24327         * lib/unistd.in.h: Conditionally include <io.h>.
24328
24329 2009-12-22  Bruno Haible  <bruno@clisp.org>
24330
24331         wchar: Diagnose broken combination of glibc and gcc versions and flags.
24332         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
24333         (gl_WCHAR_H): Invoke it.
24334         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
24335         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
24336         Reported by Karl Berry <karl@freefriends.org>.
24337
24338 2009-12-22  Eric Blake  <ebb9@byu.net>
24339
24340         math, unistd: avoid redundant includes
24341         * lib/math.in.h (isnan): No need to re-include <math.h>.
24342         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
24343
24344         getsubopt: work around cygwin bug
24345         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
24346         avoid conflicting with system getsubopt.
24347         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
24348         bug.
24349
24350         getopt: synchronize from glibc
24351         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
24352         parameter order.  Adjust all callers.
24353         (_getopt_internal_r, main): Adjust quoting in error messages.
24354         Drop considerations for outdated POSIX 1003.2 error message.
24355         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
24356         callers.
24357         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
24358
24359         test-getopt: test stderr behavior
24360         * modules/getopt-posix-tests (Depends-on): Add dup2.
24361         * tests/test-getopt.c (ASSERT): Avoid stderr.
24362         (main): Move stderr to a temporary file.
24363         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
24364         Instead, add parameter to inform caller if output occurred.
24365         (test_getopt): Adjust all existing tests to expect silence, and
24366         add new tests of leading ":".
24367         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
24368         glibc shortcomings with leading "-:" or "+:" in optstring.
24369         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24370         Likewise.
24371         * doc/posix-functions/getopt.texi (getopt): Likewise.
24372
24373         test-getopt: enhance test
24374         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
24375         supports optind=0.
24376         * tests/test-getopt.c (OPTIND_MIN): Move...
24377         * tests/test-getopt.h (OPTIND_MIN): ...here.
24378         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
24379         Require that optind=0 works, since modern BSD supports it in
24380         addition to optreset, and since coreutils expects it.
24381         (test_getopt_long_only): New test.
24382         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
24383         glibc shortcomings with 'W;', and enforcement of optind=0.
24384         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24385         Likewise.
24386
24387 2009-12-21  Bruno Haible  <bruno@clisp.org>
24388
24389         localename: Improvements for MacOS X and Cygwin.
24390         * lib/localename.h (gl_locale_name_environ): New declaration.
24391         * lib/localename.c (gl_locale_name_environ): New function, extracted from
24392         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
24393         (gl_locale_name_posix): Invoke it.
24394         (gl_locale_name_default): Add comments. Use Windows native API also on
24395         Cygwin.
24396
24397 2009-12-21  Bruno Haible  <bruno@clisp.org>
24398
24399         Update list of Win32 locale ids.
24400         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
24401         (LANG_SAMI): Renamed from LANG_SAAMI.
24402         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
24403         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
24404         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
24405         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
24406         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
24407         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
24408         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
24409         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
24410         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
24411         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
24412         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
24413         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
24414         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
24415         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
24416         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
24417         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
24418         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
24419         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
24420         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
24421         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
24422         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
24423         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
24424         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
24425         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
24426         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
24427         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
24428         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
24429         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
24430         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
24431         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
24432         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
24433         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
24434         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
24435         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
24436         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
24437         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
24438         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
24439         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
24440         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
24441         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
24442         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
24443         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
24444         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
24445         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
24446         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
24447         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
24448         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
24449         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
24450         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
24451         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
24452         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
24453         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
24454         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
24455         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
24456         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
24457         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
24458         Add more languages and countries for Sami, Sorbian. Add more countries
24459         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
24460         for Pashto. Change country for Syriac, Tswana.
24461
24462 2009-12-21  Eric Blake  <ebb9@byu.net>
24463
24464         test-utimens: avoid spurious failure
24465         * tests/test-chown.h (nap): Factor...
24466         * tests/nap.h: ...into new file.
24467         * tests/test-lchown.h (nap): Avoid duplication.
24468         * tests/test-utimens-common.h (nap): Use shared implementation,
24469         necessary on file systems with 1-second resolution.
24470         * modules/chown-tests (Files): Include new file.
24471         * modules/fdutimensat-tests (Files): Likewise.
24472         * modules/futimens-tests (Files): Likewise.
24473         * modules/lchown-tests (Files): Likewise.
24474         * modules/openat-tests (Files): Likewise.
24475         * modules/utimens-tests (Files): Likewise.
24476         * modules/utimensat-tests (Files): Likewise.
24477
24478 2009-12-19  Eric Blake  <ebb9@byu.net>
24479
24480         futimens, utimensat: work around Linux bug
24481         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
24482         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24483         * lib/utimensat.c (rpl_utimensat): Work around it.
24484         * lib/futimens.c (rpl_futimens): Adjust comment.
24485
24486         utimens: work around Linux ctime bug
24487         * lib/utimens.c (detect_ctime_bug): New helper function.
24488         (update_timespec): Differentiate between workaround needed for
24489         this bug vs. what is needed for systems that lack utimensat.
24490         (fdutimens, lutimens): Work around bug.
24491
24492         utimens: check for ctime update
24493         * tests/test-utimens-common.h (check_ctime): Define.
24494         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
24495         * tests/test-futimens.h (test_futimens): Likewise.
24496         * tests/test-lutimens.h (test_lutimens): Likewise.
24497         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24498         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24499
24500 2009-12-19  Bruno Haible  <bruno@clisp.org>
24501
24502         dprintf-posix: Check against memory leak fixed on 2009-12-15.
24503         * tests/test-dprintf-posix2.sh: New file.
24504         * tests/test-dprintf-posix2.c: New file.
24505         * modules/dprintf-posix-tests (Files): Add them.
24506         (configure.ac): Check for getrlimit and setrlimit.
24507         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
24508
24509 2009-12-19  Bruno Haible  <bruno@clisp.org>
24510
24511         fprintf-posix: Check against memory leak fixed on 2009-12-15.
24512         * tests/test-fprintf-posix3.sh: New file.
24513         * tests/test-fprintf-posix3.c: New file.
24514         * modules/fprintf-posix-tests (Files): Add them.
24515         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
24516
24517 2009-12-19  Eric Blake  <ebb9@byu.net>
24518
24519         dirfd: fix prototype
24520         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
24521         * lib/dirfd.c (dirfd): Likewise.
24522
24523         canonicalize: reduce memory usage
24524         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
24525         allocation to size.
24526         Reported by Solar Designer <solar@openwall.com>.
24527
24528 2009-12-19  Bruno Haible  <bruno@clisp.org>
24529
24530         New module attribute 'Applicability'.
24531         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
24532         * gnulib-tool: New option --extract-applicability.
24533         (func_usage): Document it.
24534         (sed_extract_prog): Recognize it.
24535         (func_get_applicability): New function.
24536         (func_import): Generalize handling of 'link-warning' module.
24537         * modules/link-warning (Applicability): New section.
24538         * modules/arg-nonnull (Applicability): New section.
24539         Repoted by Simon Josefsson <simon@josefsson.org>.
24540
24541 2009-12-19  Bruno Haible  <bruno@clisp.org>
24542
24543         fflush: tweak
24544         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
24545         * lib/fseeko.c (rpl_fseeko): Likewise.
24546
24547 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
24548
24549         * lib/gl_list.h: Fix typo in comment.
24550
24551 2009-12-16  Eric Blake  <ebb9@byu.net>
24552
24553         fcntl: use to simplify other modules
24554         * modules/cloexec (Depends-on): Add fcntl.
24555         * modules/fchdir (Depends-on): Likewise.
24556         * modules/fd-safer-flag (Depends-on): Likewise.
24557         * modules/unistd-safer (Depends-on): Likewise.
24558         * modules/dup3 (configure.ac): Set module indicator.
24559         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
24560         missing.
24561         * lib/fchdir.c (_gl_register_dup): Fix comment.
24562         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
24563         * lib/dup-safer.c (dup_safer): Likewise.
24564         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
24565         * lib/dup3.c (dup3): Likewise.
24566         * tests/test-fchdir.c (main): Enhance test.
24567         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
24568
24569         fcntl: port portions of fcntl to mingw
24570         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
24571         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
24572         replacement for mingw.
24573         * modules/fcntl (Description): Update.
24574         (Depends-on): Add dup2.
24575         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
24576         * modules/fcntl-h (Makefile.am): Substitute it.
24577         * lib/fcntl.in.h (fcntl): Update declaration.
24578         (F_DUPFD, F_GETFD): New macros, when needed.
24579         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24580         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
24581         * tests/test-fcntl.c (check_flags, main): Enhance test for items
24582         we now guarantee.
24583
24584         fcntl: work around cygwin bug in F_DUPFD
24585         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
24586         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
24587         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
24588         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
24589         * doc/posix-functions/fcntl.texi (fcntl): Document it.
24590
24591         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
24592         * modules/fcntl (Files): List new files.
24593         (configure.ac): Run a test.
24594         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
24595         * lib/fcntl.c (rpl_fcntl): Likewise.
24596         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
24597         (gl_FCNTL_H): Always replace fcntl.h.
24598         * modules/fcntl-h (Makefile.am): Substitute witnesses.
24599         * lib/fcntl.in.h (fcntl): Declare replacement.
24600         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
24601         needed, plus a witness.
24602         * doc/posix-functions/fcntl.texi (fcntl): Document this.
24603         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24604         * tests/test-fcntl.c: New file.
24605         * modules/fcntl-tests: Likewise.
24606
24607         binary-io: avoid potential compilation warning
24608         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
24609         directives.
24610
24611         fflush: avoid compilation error on NetBSD
24612         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
24613         between off_t and fpos_t, since the latter is sometimes a struct.
24614         * lib/fseeko.c (rpl_fseeko): Likewise.
24615         Reported by Alexander Nasonov <alnsn@yandex.ru>.
24616
24617 2009-12-15  Eric Blake  <ebb9@byu.net>
24618
24619         fcntl-h, stdio, sys_ioctl: fix declarations
24620         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
24621         function must not take arguments.
24622         * lib/sys_ioctl.in.h (ioctl): Likewise.
24623         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
24624         (open): Add a link warning.
24625
24626 2009-12-15  Jim Meyering  <meyering@redhat.com>
24627
24628         areadlink, areadlink-with-size: relax license to LGPLv2+
24629         * modules/areadlink (License): Relax to LGPLv2+.
24630         * modules/areadlink-with-size (License): Likewise.
24631
24632 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
24633             Bruno Haible  <bruno@clisp.org>
24634
24635         *printf: Fix memory leak.
24636         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
24637         * lib/vfprintf.c (vfprintf): Likewise.
24638         * lib/dprintf.c (dprintf): Likewise.
24639         * lib/vdprintf.c (vdprintf): Likewise.
24640
24641 2009-12-14  Eric Blake  <ebb9@byu.net>
24642
24643         accept4: adjust module dependencies
24644         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
24645
24646         utimens: one more try at avoiding compiler warning
24647         * lib/utimens.c (lutimens): Lower scope of result.
24648
24649 2009-12-13  Bruno Haible  <bruno@clisp.org>
24650
24651         Move the malloc checking from module 'list' to new module 'xlist'.
24652         * modules/xlist: New file.
24653         * lib/gl_xlist.h: New file.
24654         * lib/gl_xlist.c: New file.
24655         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
24656         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
24657         gl_list_add_last, gl_list_add_before, gl_list_add_after,
24658         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
24659         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
24660         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
24661         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
24662         gl_sortedlist_nx_add): New declarations.
24663         (struct gl_list_implementation): Rename and change methods accordingly.
24664         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
24665         (gl_list_nx_create): Renamed from gl_list_create.
24666         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24667         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24668         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24669         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24670         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24671         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24672         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24673         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24674         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
24675         gl_list_create_empty.
24676         (gl_list_nx_create): Renamed from gl_list_create.
24677         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24678         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24679         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24680         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24681         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24682         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24683         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24684         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24685         * lib/gl_array_list.c: Don't include xalloc.h.
24686         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
24687         NULL upon out-of-memory.
24688         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
24689         out-of-memory.
24690         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
24691         Change return type to 'int'.
24692         (gl_array_nx_set_at): Renamed from gl_array_set_at.
24693         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24694         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
24695         upon out-of-memory.
24696         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
24697         upon out-of-memory.
24698         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
24699         upon out-of-memory.
24700         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
24701         upon out-of-memory.
24702         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
24703         out-of-memory.
24704         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
24705         Update.
24706         (gl_array_list_implementation): Update.
24707         * lib/gl_carray_list.c: Don't include xalloc.h.
24708         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
24709         Return NULL upon out-of-memory.
24710         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
24711         out-of-memory.
24712         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
24713         Change return type to 'int'.
24714         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
24715         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24716         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
24717         upon out-of-memory.
24718         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
24719         upon out-of-memory.
24720         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
24721         out-of-memory.
24722         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
24723         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
24724         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
24725         Update.
24726         (gl_carray_list_implementation): Update.
24727         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
24728         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
24729         gl_linked_create_empty. Return NULL upon out-of-memory.
24730         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
24731         out-of-memory.
24732         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
24733         Change return type to 'int'. Return -1 upon out-of-memory.
24734         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
24735         out-of-memory.
24736         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
24737         upon out-of-memory.
24738         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
24739         upon out-of-memory.
24740         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
24741         NULL upon out-of-memory.
24742         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
24743         upon out-of-memory.
24744         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
24745         out-of-memory.
24746         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
24747         Update.
24748         * lib/gl_linked_list.c: Don't include xalloc.h.
24749         (gl_linked_list_implementation): Update.
24750         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
24751         (add_to_bucket): Change return type to 'int'.
24752         (gl_linkedhash_list_implementation): Update.
24753         * lib/gl_anytree_list1.h (free_subtree): New function.
24754         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
24755         gl_tree_create_empty. Return NULL upon out-of-memory.
24756         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
24757         Change return type to 'int'. Return -1 upon out-of-memory.
24758         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
24759         out-of-memory.
24760         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
24761         (gl_tree_remove_node): New function, moved here from
24762         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
24763         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
24764         Update.
24765         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
24766         malloc, not xmalloc. Return NULL upon out-of-memory.
24767         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24768         out-of-memory.
24769         (gl_tree_remove_node_from_tree): New function, extracted from
24770         gl_tree_remove_node.
24771         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24772         upon out-of-memory.
24773         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24774         out-of-memory.
24775         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24776         upon out-of-memory.
24777         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24778         upon out-of-memory.
24779         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24780         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
24781         not xmalloc. Return NULL upon out-of-memory.
24782         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24783         out-of-memory.
24784         (gl_tree_remove_node_from_tree): New function, extracted from
24785         gl_tree_remove_node.
24786         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24787         upon out-of-memory.
24788         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24789         out-of-memory.
24790         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24791         upon out-of-memory.
24792         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24793         upon out-of-memory.
24794         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24795         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
24796         gl_anytree_list1.h before gl_anyavltree_list2.h.
24797         (gl_avltree_list_implementation): Update.
24798         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
24799         gl_anytree_list1.h before gl_anyavltree_list2.h.
24800         (gl_rbtree_list_implementation): Update.
24801         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
24802         Change return type to 'int'. Return -1 upon out-of-memory. Use
24803         __builtin_expect.
24804         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
24805         (gl_avltreehash_list_implementation): Update.
24806         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
24807         (gl_rbtreehash_list_implementation): Update.
24808         * modules/array-list (Depends-on): Remove xalloc.
24809         * modules/carray-list (Depends-on): Likewise.
24810         * modules/linked-list (Depends-on): Likewise.
24811         * modules/linkedhash-list (Depends-on): Likewise.
24812         * modules/avltree-list (Depends-on): Likewise.
24813         * modules/rbtree-list (Depends-on): Likewise.
24814         * modules/avltreehash-list (Depends-on): Likewise.
24815         * modules/rbtreehash-list (Depends-on): Likewise.
24816
24817         * modules/xsublist: New file.
24818         * lib/gl_xsublist.h: New file.
24819         * lib/gl_xsublist.c: New file.
24820         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
24821         (gl_sublist_nx_create): New declaration.
24822         * lib/gl_sublist.c: Don't include xalloc.h.
24823         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
24824         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
24825         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
24826         Change return type to 'int'. Return -1 upon out-of-memory.
24827         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
24828         upon out-of-memory.
24829         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
24830         NULL upon out-of-memory.
24831         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
24832         upon out-of-memory.
24833         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
24834         NULL upon out-of-memory.
24835         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
24836         NULL upon out-of-memory.
24837         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
24838         upon out-of-memory.
24839         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
24840         (gl_sublist_list_implementation): Update.
24841         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
24842         upon out-of-memory.
24843         * modules/sublist (Depends-on): Remove xalloc.
24844
24845         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
24846         * tests/test-carray_list.c: Likewise.
24847         * tests/test-linked_list.c: Likewise.
24848         * tests/test-linkedhash_list.c: Likewise.
24849         * tests/test-avltree_list.c: Likewise.
24850         * tests/test-rbtree_list.c: Likewise.
24851         * tests/test-avltreehash_list.c: Likewise.
24852         * tests/test-rbtreehash_list.c: Likewise.
24853         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
24854         * modules/carray-list-tests (Makefile.am): Likewise.
24855         * modules/linked-list-tests (Makefile.am): Likewise.
24856         * modules/linkedhash-list-tests (Makefile.am): Likewise.
24857         * modules/avltree-list-tests (Makefile.am): Likewise.
24858         * modules/rbtree-list-tests (Makefile.am): Likewise.
24859         * modules/avltreehash-list-tests (Makefile.am): Likewise.
24860         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
24861
24862         * NEWS: Mention the changes.
24863
24864         * lib/clean-temp.c: Include gl_xlist.h.
24865         * modules/clean-temp (Depends-on): Add xlist.
24866
24867         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
24868         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
24869
24870         * tests/test-array_oset.c: Include gl_xlist.h.
24871         * modules/array-oset-tests (Depends-on): Add xlist.
24872
24873         Reported by José E. Marchesi <jemarch@gnu.org>.
24874
24875 2009-12-13  Bruno Haible  <bruno@clisp.org>
24876
24877         Move the malloc checking from module 'oset' to new module 'xoset'.
24878         * modules/xoset: New file.
24879         * lib/gl_xoset.h: New file.
24880         * lib/gl_xoset.c: New file.
24881         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
24882         declarations.
24883         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
24884         (struct gl_oset_implementation): Rename and change methods accordingly.
24885         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
24886         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24887         'int'. Mark as __warn_unused_result__.
24888         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
24889         gl_oset_create_empty.
24890         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24891         'int'.
24892         * lib/gl_array_oset.c: Don't include xalloc.h.
24893         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
24894         malloc, not xmalloc.
24895         (grow): Change return type to 'int'. Don't call xalloc_die.
24896         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
24897         to 'int'.
24898         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
24899         'int'.
24900         (gl_array_oset_implementation): Update.
24901         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
24902         gl_tree_create_empty.
24903         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
24904         'int'.
24905         * lib/gl_avltree_oset.c: Don't include xalloc.h.
24906         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24907         xmalloc.
24908         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24909         not xmalloc.
24910         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24911         xmalloc.
24912         (gl_avltree_oset_implementation): Update.
24913         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
24914         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24915         xmalloc.
24916         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24917         not xmalloc.
24918         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24919         xmalloc.
24920         (gl_rbtree_oset_implementation): Update.
24921         * modules/array-oset (Depends-on): Remove xalloc.
24922         * modules/avltree-oset (Depends-on): Likewise.
24923         * modules/rbtree-oset (Depends-on): Likewise.
24924         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
24925         * tests/test-avltree_oset.c: Likewise.
24926         * tests/test-rbtree_oset.c: Likewise.
24927         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
24928         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
24929         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24930         * NEWS: Mention the change.
24931
24932 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
24933
24934         maint.mk: allow a project to override release-prep commands
24935         * top/maint.mk (alpha, beta, stable): Move release-preparatory
24936         commands into a new rule.
24937         (release-prep): New rule.
24938         (release-prep-hook): New overridable variable.
24939
24940 2009-12-13  Bruno Haible  <bruno@clisp.org>
24941
24942         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
24943
24944 2009-12-13  Jim Meyering  <meyering@redhat.com>
24945
24946         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
24947         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
24948
24949 2009-12-12  Bruno Haible  <bruno@clisp.org>
24950
24951         duplocale: Tweak.
24952         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
24953
24954 2009-12-12  Karl Berry  <karl@gnu.org>
24955
24956         * config/srclist.txt (strtoll.c): tab changes, no more sync.
24957
24958 2009-12-12  Bruno Haible  <bruno@clisp.org>
24959
24960         * m4/po.m4: Undo incorrect untabification.
24961
24962 2009-12-12  Bruno Haible  <bruno@clisp.org>
24963
24964         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
24965         * modules/c-strtod (Depends-on): Add locale.
24966         * modules/c-strtold (Depends-on): Likewise.
24967
24968 2009-12-12  Bruno Haible  <bruno@clisp.org>
24969
24970         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
24971
24972 2009-12-11  Eric Blake  <ebb9@byu.net>
24973
24974         setenv: relax requirement in light of POSIX ruling
24975         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
24976         not NULL.
24977         * tests/test-setenv.c (main): Relax test.
24978         * tests/test-unsetenv.c (main): Likewise.
24979         * doc/posix-functions/setenv.texi (setenv): Document this.
24980         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24981
24982 2009-12-11  Bruno Haible  <bruno@clisp.org>
24983
24984         New module 'fd-safer-flag'.
24985         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
24986         * lib/dup-safer.c (dup_safer_flag): Remove function.
24987         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
24988         * lib/fd-safer.c (fd_safer_flag): Remove function.
24989         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
24990         * modules/cloexec (configure.ac): Drop indicator macro.
24991         * modules/fd-safer-flag: New file.
24992         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
24993         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
24994         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
24995
24996 2009-12-11  Bruno Haible  <bruno@clisp.org>
24997
24998         Tests for module 'nl_langinfo'.
24999         * modules/nl_langinfo-tests: New file.
25000         * tests/test-nl_langinfo.sh: New file.
25001         * tests/test-nl_langinfo.c: New file.
25002
25003         New module 'nl_langinfo'.
25004         * lib/nl_langinfo.c: New file.
25005         * m4/nl_langinfo.m4: New file.
25006         * modules/nl_langinfo: New file.
25007         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
25008
25009 2009-12-11  Bruno Haible  <bruno@clisp.org>
25010
25011         Tests for module 'langinfo'.
25012         * modules/langinfo-tests: New file.
25013         * tests/test-langinfo.c: New file.
25014
25015         New module 'langinfo'.
25016         * lib/langinfo.in.h: New file.
25017         * m4/langinfo_h.m4: New file.
25018         * modules/langinfo: New file.
25019         * doc/posix-headers/langinfo.texi: Mention the new module.
25020
25021 2009-12-11  Bruno Haible  <bruno@clisp.org>
25022
25023         * lib/config.charset: Untabify.
25024
25025 2009-12-11  Bruno Haible  <bruno@clisp.org>
25026
25027         * modules/unistd-safer (configure.ac): Drop indicator macro.
25028
25029 2009-12-11  Bruno Haible  <bruno@clisp.org>
25030
25031         Move pipe2-safer code to its own file.
25032         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
25033         * lib/pipe-safer.c (pipe2_safer): Remove function.
25034         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
25035         (Makefile.am): Add it to lib_SOURCES.
25036
25037 2009-12-10  Bruno Haible  <bruno@clisp.org>
25038
25039         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
25040
25041 2009-12-10  Bruno Haible  <bruno@clisp.org>
25042
25043         Declare which arguments expect non-NULL values, for GCC and clang.
25044         * build-aux/arg-nonnull.h: New file.
25045         * modules/arg-nonnull: New file.
25046         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
25047         (inet_ntop, inet_pton): Use it.
25048         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
25049         (closedir, dirfd, opendir, scandir, alphasort): Use it.
25050         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
25051         (open, openat): Use it.
25052         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
25053         (fnmatch): Use it.
25054         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
25055         (getopt, getopt_long, getopt_long_only): Use it.
25056         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
25057         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
25058         Use it.
25059         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
25060         (iconv_open): Use it.
25061         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
25062         (strtoimax, strtoumax): Use it.
25063         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
25064         (duplocale): Use it.
25065         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
25066         (frexp, frexpl): Use it.
25067         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
25068         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
25069         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
25070         (tsearch, tfind, tdelete, twalk): Use it.
25071         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
25072         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25073         sigpending): Use it.
25074         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
25075         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25076         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25077         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25078         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25079         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25080         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25081         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25082         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25083         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25084         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25085         Use it.
25086         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
25087         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
25088         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
25089         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
25090         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
25091         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
25092         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
25093         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
25094         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
25095         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
25096         strtoull, unsetenv): Use it.
25097         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
25098         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25099         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25100         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
25101         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
25102         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
25103         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
25104         (strcasecmp, strncasecmp): Use it.
25105         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
25106         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
25107         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
25108         rpl_setsockopt): Use it.
25109         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
25110         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
25111         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
25112         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
25113         (gettimeofday): Use it.
25114         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
25115         (times): Use it.
25116         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
25117         (uname): Use it.
25118         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
25119         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
25120         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
25121         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
25122         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
25123         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
25124         unlinkat, write): Use it.
25125         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
25126         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
25127         * lib/argv-iter.h: Include arg-nonnull.h.
25128         (_ATTRIBUTE_NONNULL_): Remove macro.
25129         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
25130         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
25131         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
25132         optimization.
25133         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
25134         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
25135         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
25136         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
25137         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
25138         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
25139         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
25140         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
25141         * modules/arpa_inet (Depends-on): Add arg-nonnull.
25142         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
25143         * modules/dirent (Depends-on): Add arg-nonnull.
25144         (Makefile.am): Insert arg-nonnull.h into dirent.h.
25145         * modules/fcntl-h (Depends-on): Add arg-nonnull.
25146         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
25147         * modules/fnmatch (Depends-on): Add arg-nonnull.
25148         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
25149         * modules/getopt-posix (Depends-on): Add arg-nonnull.
25150         (Makefile.am): Insert arg-nonnull.h into getopt.h.
25151         * modules/glob (Depends-on): Add arg-nonnull.
25152         (Makefile.am): Insert arg-nonnull.h into glob.h.
25153         * modules/iconv_open (Depends-on): Add arg-nonnull.
25154         (Makefile.am): Insert arg-nonnull.h into iconv.h.
25155         * modules/inttypes (Depends-on): Add arg-nonnull.
25156         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
25157         * modules/locale (Depends-on): Add arg-nonnull.
25158         (Makefile.am): Insert arg-nonnull.h into locale.h.
25159         * modules/math (Depends-on): Add arg-nonnull.
25160         (Makefile.am): Insert arg-nonnull.h into math.h.
25161         * modules/netdb (Depends-on): Add arg-nonnull.
25162         (Makefile.am): Insert arg-nonnull.h into netdb.h.
25163         * modules/search (Depends-on): Add arg-nonnull.
25164         (Makefile.am): Insert arg-nonnull.h into search.h.
25165         * modules/signal (Depends-on): Add arg-nonnull.
25166         (Makefile.am): Insert arg-nonnull.h into signal.h.
25167         * modules/spawn (Depends-on): Add arg-nonnull.
25168         (Makefile.am): Insert arg-nonnull.h into spawn.h.
25169         * modules/stdio (Depends-on): Add arg-nonnull.
25170         (Makefile.am): Insert arg-nonnull.h into stdio.h.
25171         * modules/stdlib (Depends-on): Add arg-nonnull.
25172         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
25173         * modules/string (Depends-on): Add arg-nonnull.
25174         (Makefile.am): Insert arg-nonnull.h into string.h.
25175         * modules/strings (Depends-on): Add arg-nonnull.
25176         (Makefile.am): Insert arg-nonnull.h into strings.h.
25177         * modules/sys_socket (Depends-on): Add arg-nonnull.
25178         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
25179         * modules/sys_stat (Depends-on): Add arg-nonnull.
25180         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
25181         * modules/sys_time (Depends-on): Add arg-nonnull.
25182         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
25183         * modules/sys_times (Depends-on): Add arg-nonnull.
25184         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
25185         * modules/sys_utsname (Depends-on): Add arg-nonnull.
25186         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
25187         * modules/time (Depends-on): Add arg-nonnull.
25188         (Makefile.am): Insert arg-nonnull.h into time.h.
25189         * modules/unistd (Depends-on): Add arg-nonnull.
25190         (Makefile.am): Insert arg-nonnull.h into unistd.h.
25191         * modules/wchar (Depends-on): Add arg-nonnull.
25192         (Makefile.am): Insert arg-nonnull.h into wchar.h.
25193         * modules/argv-iter (Depends-on): Add arg-nonnull.
25194         * tests/test-canonicalize.c (null_ptr): New function.
25195         (main): Use it.
25196         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
25197         (main): Use it.
25198         * tests/test-memmem.c (null_ptr): New function.
25199         (main): Use it.
25200         Reported by Jim Meyering.
25201
25202 2009-12-10  Bruno Haible  <bruno@clisp.org>
25203
25204         Use spaces for indentation, not tabs.
25205         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
25206         * m4/*.m4: Untabify.
25207         * build-aux/*.h: Untabify.
25208         * tests/**/*.[hc]: Untabify.
25209         * README: New section "Indent with spaces, not TABs", based on
25210         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
25211         * NEWS: Mention the change.
25212
25213 2009-12-10  Bruno Haible  <bruno@clisp.org>
25214
25215         pty test: Fix link error.
25216         * modules/pty-tests (Makefile.am): Add the default LDADD value to
25217         test_pty_LDADD.
25218
25219 2009-12-07  Simon Josefsson  <simon@josefsson.org>
25220
25221         * modules/pty: New file.
25222         * modules/pty-tests: New file.
25223         * m4/pty.m4: New file.
25224         * tests/test-pty.c: New file.
25225         * doc/glibc-headers/pty.texi: Modified.
25226         * doc/glibc-functions/forkpty.texi: Modified.
25227         * doc/glibc-functions/openpty.texi: Modified.
25228
25229 2009-12-10  Bruno Haible  <bruno@clisp.org>
25230
25231         Avoid syntax error in C++ mode.
25232         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
25233
25234 2009-12-10  Bruno Haible  <bruno@clisp.org>
25235
25236         Use sed with option -e.
25237         * gnulib-tool (func_version, func_emit_copyright_notice,
25238         func_emit_initmacro_end, func_import, func_create_testdir): Pass
25239         option -e to sed.
25240         * modules/link-warning (Makefile.am): Likewise.
25241
25242 2009-12-10  Jim Meyering  <meyering@redhat.com>
25243
25244         mgetgroups: do not write bytes beyond end of malloc'd buffer
25245         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
25246         username, we call getgroups with a one-element-shorter buffer,
25247         but still told it the length was original, max_n_groups.
25248
25249 2009-12-09  Eric Blake  <ebb9@byu.net>
25250
25251         cloexec: relax license
25252         * modules/cloexec (Maintainer): Add myself.
25253         (License): Use LGPL, not GPL.
25254
25255         link-warning: optimize generation
25256         * modules/link-warning (Makefile.am): Reduce process usage.
25257
25258 2009-12-09  Bruno Haible  <bruno@clisp.org>
25259
25260         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
25261         workaround was added on 2009-11-17.
25262
25263 2009-12-09  Jim Meyering  <meyering@redhat.com>
25264             Bruno Haible  <bruno@clisp.org>
25265
25266         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
25267         * modules/link-warning (Makefile.am): Make the comment-removing sed
25268         command more robust in the face of bootstrap-prepended comment lines.
25269
25270 2009-12-09  Bruno Haible  <bruno@clisp.org>
25271
25272         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
25273         most one group.
25274
25275 2009-12-09  Simon Josefsson <simon@josefsson.org>
25276             Bruno Haible  <bruno@clisp.org>
25277
25278         * build-aux/link-warning.h: Add copyright notice.
25279         * modules/link-warning (Makefile.am): Generate link-warning.h from
25280         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
25281         * NEWS: Mention change in link-warning module.
25282         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
25283         * modules/dirent (Makefile.am): Add dependency to dirent.h.
25284         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
25285         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
25286         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
25287         * modules/math (Makefile.am): Add dependency to math.h.
25288         * modules/search (Makefile.am): Add dependency to search.h.
25289         * modules/signal (Makefile.am): Add dependency to signal.h.
25290         * modules/spawn (Makefile.am): Add dependency to spawn.h.
25291         * modules/stdio (Makefile.am): Add dependency to stdio.h.
25292         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
25293         * modules/string (Makefile.am): Add dependency to string.h.
25294         * modules/strings (Makefile.am): Add dependency to strings.h.
25295         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
25296         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
25297         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
25298         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
25299         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
25300         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
25301         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
25302         * modules/unistd (Makefile.am): Add dependency to unistd.h.
25303         * modules/wchar (Makefile.am): Add dependency to wchar.h.
25304
25305 2009-12-09  Bruno Haible  <bruno@clisp.org>
25306
25307         fchdir: Optimize away rpl_fstat when possible.
25308         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
25309         REPLACE_OPEN_DIRECTORY.
25310         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
25311
25312 2009-12-09  Bruno Haible  <bruno@clisp.org>
25313
25314         * lib/fchdir.c: Update comment.
25315
25316 2009-12-09  Bruno Haible  <bruno@clisp.org>
25317
25318         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
25319
25320 2009-12-08  Eric Blake  <ebb9@byu.net>
25321
25322         fchdir: avoid memory leak on re-registration.
25323         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
25324
25325 2009-12-08  Jim Meyering  <meyering@redhat.com>
25326
25327         init.sh: avoid Solaris 10 /bin/sh portability problem
25328         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
25329         sourced script:
25330           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
25331           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
25332           bar
25333         tests/init.sh relied on that, accepting a --set-path=DIR argument,
25334         and two tests used that idiom.
25335         * tests/init.sh: Update suggested usage comments.
25336         (path_prepend_): New function, to be used in place
25337         of the --src-path=DIR option.
25338         (setup_): Move PATH-prepending code into path_prepend_.
25339         * tests/test-pread.sh: Adapt to new usage.
25340         * tests/test-xalloc-die.sh: Likewise.
25341
25342 2009-12-08  Simon Josefsson  <simon@josefsson.org>
25343
25344         * doc/gnulib.texi (Glibc pty.h): Add.
25345         * doc/glibc-functions/forkpty.texi: Add.
25346         * doc/glibc-functions/openpty.texi: Add.
25347         Suggested by Bruno Haible.
25348
25349 2009-12-08  Eric Blake  <ebb9@byu.net>
25350
25351         fchdir: fix logic bugs
25352         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
25353         * tests/test-fchdir.c (main): Enhance test.
25354         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
25355         is in use.
25356
25357         dup2: fix logic bugs
25358         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
25359         REPLACE_DUP2 to decide when rpl_dup2 is needed.
25360         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
25361         exists.
25362         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
25363
25364 2009-12-07  Eric Blake  <ebb9@byu.net>
25365
25366         unlink: fix m4 detection
25367         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
25368
25369         unistd-safer: add unit test
25370         * modules/unistd-safer-tests: New file.
25371         * tests/test-dup-safer.c: Likewise.
25372         * tests/test-cloexec.c (setmode): Avoid compiler warning.
25373         * tests/test-dup2.c (setmode): Likewise.
25374         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
25375
25376         cloexec: preserve text vs. binary across dup_cloexec
25377         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
25378         mode.
25379         * modules/dup2-tests (Depends-on): Add binary-io.
25380         * modules/cloexec-tests (Depends-on): Likewise.
25381         * tests/test-dup2.c (setmode, is_mode): New helpers.
25382         (main): Add tests that translation mode is preserved.
25383         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
25384         Reported by Bruno Haible.
25385
25386         mgetgroups: reduce duplicate listings
25387         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
25388         resulting array.
25389         * tests/test-chown.h (test_chown): Simplify client.
25390         * tests/test-lchown.h (test_lchown): Likewise.
25391
25392 2009-12-06  Bruno Haible  <bruno@clisp.org>
25393
25394         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
25395         value.
25396
25397 2009-12-06  Bruno Haible  <bruno@clisp.org>
25398
25399         * lib/progname.c: Include stdio.h, stdlib.h.
25400         (set_program_name): Reject a NULL argument.
25401
25402 2009-12-05  Eric Blake  <ebb9@byu.net>
25403
25404         pipe2-safer: new module
25405         * modules/pipe2-safer: New file.
25406         * lib/unistd-safer.h (pipe2_safer): New prototype.
25407         * lib/unistd--.h (pipe2): New wrapper.
25408         * lib/pipe-safer.c (pipe2_safer): New function.
25409         * modules/pipe (Depends-on): Add pipe2-safer.
25410         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
25411
25412         stdlib-safer: preserve cloexec flag for mkostemp[s]
25413         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
25414         fd_safer_flag.
25415
25416         unistd-safer: allow preservation of cloexec status via flag
25417         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
25418         prototypes.
25419         * lib/dup-safer.c (dup_safer_flag): New function.
25420         * lib/fd-safer.c (fd_safer_flag): Likewise.
25421         * modules/cloexec (configure.ac): Set witness.
25422
25423         test-dup2: enhance test
25424         * modules/dup2-tests (Depends-on): Add cloexec.
25425         * tests/test-dup2.c (main): Enhance test.
25426
25427         cloexec: add dup_cloexec
25428         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
25429         header and comments.
25430         * lib/cloexec.c (set_cloexec_flag): Add comments.
25431         (dup_cloexec): New function, with mingw implementation borrowed
25432         from...
25433         * lib/w32spawn.h (dup_noinherit): ...here.
25434         * modules/execute (Depends-on): Add cloexec.
25435         * modules/pipe (Depends-on): Likewise.
25436         * modules/cloexec (Depends-on): Add dup2.
25437         * modules/cloexec-tests (Files): New file.
25438         * tests/test-cloexec.c: Likewise.
25439
25440         test-xalloc-die: fix test for mingw
25441         * modules/xalloc-die-tests (Files): Add tests/init.sh.
25442         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
25443         directory and .exe suffix off argv[0] output.
25444
25445         test-fseeko: fix test for mingw
25446         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
25447         than undefining fseek, so test will pass on mingw.
25448
25449 2009-12-05  Bruno Haible  <bruno@clisp.org>
25450
25451         * lib/progname.h (set_program_name): Clarify specification.
25452         * lib/progname.c (set_program_name): Likewise.
25453         Reported by Jim Meyering.
25454
25455 2009-12-05  Jim Meyering  <meyering@redhat.com>
25456
25457         maint.mk: backslash-escape parens in default regexp
25458         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
25459         backslash-escape the literal parentheses.
25460
25461         maint.mk: news-date-check: use grep -E
25462         * top/maint.mk (today): Define a Make variable, not a...
25463         (news-date-check): ...shell variable.
25464         (news-date-regexp): Use the Make variable.
25465         Use grep's -E option.  Change the failing diagnostic to mention
25466         the variable, $(news-date-regexp).
25467
25468 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
25469
25470         maintainer-makefile: allow customization of NEWS entry format
25471         * top/maint.mk (news-date-regexp): New overridable variable.
25472         (news-date-check): Use it.
25473
25474 2009-12-04  Eric Blake  <ebb9@byu.net>
25475
25476         mgetgroups: add xgetgroups, and avoid ENOSYS failures
25477         * lib/mgetgroups.h (xgetgroups): New prototype.
25478         * lib/mgetgroups.c (xgetgroups): New wrapper.
25479         (mgetgroups): Handle ENOSYS.
25480         * modules/mgetgroups (Depends-on): Add realloc.
25481         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
25482
25483         mgetgroups: avoid argument promotion issues with -1
25484         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
25485         for invalid gid_t.
25486         * tests/test-chown.h (getegid, test_chown): Likewise.
25487         * tests/test-lchown.h (getegid, test_lchown): Likewise.
25488
25489 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
25490
25491         exclude: Fix header file problems.
25492         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
25493
25494 2009-12-01  Jim Meyering  <meyering@redhat.com>
25495
25496         fts: fts_open: do not let an empty string cause immediate failure
25497         This is required in support of GNU rm, for which the command
25498         "rm A '' B" must process and remove both A and B, in spite of
25499         the empty string argument.
25500         * lib/fts.c (fts_open): Do not let the presence of an empty string
25501         cause fts_open to fail immediately.  Most fts-using tools must be
25502         able to process all arguments, in order, and can be expected to
25503         diagnose such arguments themselves.
25504
25505 2009-11-30  Eric Blake  <ebb9@byu.net>
25506
25507         utimens: fix compilation error
25508         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
25509         Declare variable at right scope.
25510
25511 2009-11-29  Jim Meyering  <meyering@redhat.com>
25512
25513         bootstrap: handle perl-5.11's changed --version output
25514         * build-aux/bootstrap (get_version): Handle perl separately,
25515         since perl-5.11's --version output is different.
25516
25517 2009-11-28  Jim Meyering  <meyering@redhat.com>
25518
25519         userspec: depend on the inttostr module, too
25520         * modules/userspec (Depends-on): Add inttostr.
25521
25522         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
25523         * lib/userspec.c (parse_with_separator): Do not accept a user ID
25524         number of MAXUID when it evaluates to (uid_t) -1.
25525         Likewise for group ID.  Reported by Matt McCutchen in
25526         <http://savannah.gnu.org/bugs/?28113>
25527
25528         userspec: reformat to use spaces, not TABs
25529         * lib/userspec.c: Expand TABs to spaces.
25530         Add Emacs' "indent-tabs-mode: nil" hint.
25531
25532 2009-11-27  Eric Blake  <ebb9@byu.net>
25533
25534         getopt-gnu: flush out another BSD bug
25535         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
25536         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
25537         flush out BSD bug.
25538         * tests/test-getopt.h (test_getopt): End lists with NULL.
25539         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25540         (test_getopt_long_posix): Enhance test.
25541         * modules/getopt-posix-tests (Depends-on): Add stdbool.
25542         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
25543         getopt-gnu.
25544         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25545         Likewise.
25546
25547 2009-11-27  Simon Josefsson  <simon@josefsson.org>
25548
25549         * modules/idpriv-droptemp-tests (Notice): Fix text.
25550
25551 2009-11-27  Jim Meyering  <meyering@redhat.com>
25552
25553         test-xalloc-die: avoid spurious failure due to libtool argv difference
25554         In a libtool-enabled project, this test would fail due to a difference
25555         in the emitted program name, e.g.,
25556         -test-xalloc-die: memory exhausted
25557         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
25558         Use program to avoid that.
25559         * modules/xalloc-die-tests (Depends-on): Add progname.
25560         * tests/test-xalloc-die.c: Include progname.h".
25561         (program_name): Remove decl.
25562         (main): Call set_program_name.
25563         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
25564
25565 2009-11-26  Richard Jones  <rjones@redhat.com>
25566
25567         w32sock: leave win32 error in place.
25568         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
25569
25570 2009-11-26  Eric Blake  <ebb9@byu.net>
25571
25572         init.sh: suggest to use skip_ and fail_ functions in comments
25573         * tests/init.sh: Add a sentence.
25574
25575 2009-11-25  Bruno Haible  <bruno@clisp.org>
25576
25577         init.sh: add documentation in comments
25578         * tests/init.sh: Add some developer and user documentation.
25579
25580 2009-11-26  Jim Meyering  <meyering@redhat.com>
25581
25582         init.sh: accommodate even those who specify bogus srcdir manually
25583         * tests/init.sh: Normally, srcdir is guaranteed by automake and
25584         configure-time tests to be sanitized, so that there is no need to
25585         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
25586         (with no double quotes) suffices.  However, since tests may be
25587         invoked manually, and since you may explicitly set srcdir to the
25588         name of a directory containing spaces, do quote its uses here.
25589         * tests/test-pread.sh: Likewise.
25590         Suggested by Bruno Haible.
25591
25592         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
25593         * tests/test-pread.sh: Write no data into the pipe, because
25594         test-pread actually reads none.  This avoids a diagnostic,
25595         "bash: echo: write error: Broken pipe", that arises in the unusual
25596         event something is ignoring SIGPIPE, and might be interpreted
25597         as some sort of failure.  Reported by Bruno Haible.
25598
25599 2009-11-25  Jim Meyering  <meyering@redhat.com>
25600
25601         test-pread: cover failure with ESPIPE and EINVAL
25602         * tests/test-pread.c (main): Test for failure, too.
25603         * tests/test-pread.sh: Invoke with stdin on a pipe.
25604         Suggested by Eric Blake.
25605
25606         pread: improvement and fix
25607         * modules/pread (Depends-on): Depend on lseek, for portability to
25608         e.g., mingw.  Suggested by Eric Blake.
25609         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
25610
25611         unistd.in.h: correct declaration of pread
25612         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
25613         Reported by Richard W.M. Jones.
25614
25615         test-pread.sh: distribute the test script
25616         * modules/pread-tests (Files): Include test-pread.sh.
25617
25618         test-pread.sh: clean up
25619         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
25620         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
25621         That is unnecessary, since it's always ".".
25622         Suggestion from Eric Blake.
25623
25624         test-pread.sh: make executable
25625         * tests/test-pread.sh: Set executable bit.
25626         Reported by Eric Blake.
25627
25628         correct typo in test-pread.sh
25629         * tests/test-pread.sh: Add #! line.
25630
25631         test pread
25632         * tests/test-pread.c: New file.
25633         * tests/test-pread.sh: Likewise.
25634         * modules/pread-tests: Likewise.
25635
25636         pread: new module
25637         * modules/pread: New file.
25638         * lib/unistd.in.h (pread): Define/declare.
25639         * lib/pread.c (pread): New file.
25640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
25641         * modules/unistd (Makefile.am): Substitute witnesses.
25642         * doc/posix-functions/pread.texi (pread): Update.
25643         * MODULES.html.sh: Add pread.
25644
25645 2009-11-25  Jim Meyering  <meyering@redhat.com>
25646
25647         tests/init.sh: new file to be used via most *.sh tests
25648         * tests/init.sh: New file.
25649
25650 2009-11-25  Eric Blake  <ebb9@byu.net>
25651
25652         utimens: work around older Linux failure with symlinks
25653         * lib/utimens.c (lutimensat_works_really): New variable.
25654         (fdutimens, lutimens): Use it to manage kernels that support
25655         nanosecond times on files, but not on symlinks.
25656         Reported by OndÅ™ej Vašík.
25657
25658         utimes: fix configure grammar
25659         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
25660
25661 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
25662
25663         regex: Fix fastmap for multibyte character ranges.
25664         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
25665         characters when a multibyte character range is included.
25666
25667 2009-11-22  Andy Wingo  <wingo@pobox.com>
25668
25669         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
25670         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
25671
25672 2009-11-24  Bruno Haible  <bruno@clisp.org>
25673
25674         doc: Most *_l functions exist in MacOS X 10.5.
25675         * doc/posix-functions/duplocale.texi: Update platforms list.
25676         * doc/posix-functions/freelocale.texi: Likewise.
25677         * doc/posix-functions/newlocale.texi: Likewise.
25678         * doc/posix-functions/uselocale.texi: Likewise.
25679         * doc/posix-functions/isalnum_l.texi: Likewise.
25680         * doc/posix-functions/isalpha_l.texi: Likewise.
25681         * doc/posix-functions/isblank_l.texi: Likewise.
25682         * doc/posix-functions/iscntrl_l.texi: Likewise.
25683         * doc/posix-functions/isdigit_l.texi: Likewise.
25684         * doc/posix-functions/isgraph_l.texi: Likewise.
25685         * doc/posix-functions/islower_l.texi: Likewise.
25686         * doc/posix-functions/isprint_l.texi: Likewise.
25687         * doc/posix-functions/ispunct_l.texi: Likewise.
25688         * doc/posix-functions/isspace_l.texi: Likewise.
25689         * doc/posix-functions/isupper_l.texi: Likewise.
25690         * doc/posix-functions/iswalnum_l.texi: Likewise.
25691         * doc/posix-functions/iswalpha_l.texi: Likewise.
25692         * doc/posix-functions/iswblank_l.texi: Likewise.
25693         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25694         * doc/posix-functions/iswctype_l.texi: Likewise.
25695         * doc/posix-functions/iswdigit_l.texi: Likewise.
25696         * doc/posix-functions/iswgraph_l.texi: Likewise.
25697         * doc/posix-functions/iswlower_l.texi: Likewise.
25698         * doc/posix-functions/iswprint_l.texi: Likewise.
25699         * doc/posix-functions/iswpunct_l.texi: Likewise.
25700         * doc/posix-functions/iswspace_l.texi: Likewise.
25701         * doc/posix-functions/iswupper_l.texi: Likewise.
25702         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25703         * doc/posix-functions/isxdigit_l.texi: Likewise.
25704         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
25705         * doc/posix-functions/strcasecmp_l.texi: Likewise.
25706         * doc/posix-functions/strcoll_l.texi: Likewise.
25707         * doc/posix-functions/strfmon_l.texi: Likewise.
25708         * doc/posix-functions/strftime_l.texi: Likewise.
25709         * doc/posix-functions/strncasecmp_l.texi: Likewise.
25710         * doc/posix-functions/strxfrm_l.texi: Likewise.
25711         * doc/posix-functions/tolower_l.texi: Likewise.
25712         * doc/posix-functions/toupper_l.texi: Likewise.
25713         * doc/posix-functions/towctrans_l.texi: Likewise.
25714         * doc/posix-functions/towlower_l.texi: Likewise.
25715         * doc/posix-functions/towupper_l.texi: Likewise.
25716         * doc/posix-functions/wcscoll_l.texi: Likewise.
25717         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25718         * doc/posix-functions/wctrans_l.texi: Likewise.
25719         * doc/posix-functions/wctype_l.texi: Likewise.
25720         * doc/glibc-functions/strptime_l.texi: Likewise.
25721         * doc/glibc-functions/strtod_l.texi: Likewise.
25722         * doc/glibc-functions/strtof_l.texi: Likewise.
25723         * doc/glibc-functions/strtol_l.texi: Likewise.
25724         * doc/glibc-functions/strtold_l.texi: Likewise.
25725         * doc/glibc-functions/strtoll_l.texi: Likewise.
25726         * doc/glibc-functions/strtoul_l.texi: Likewise.
25727         * doc/glibc-functions/strtoull_l.texi: Likewise.
25728         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25729         * doc/glibc-functions/wcstod_l.texi: Likewise.
25730         * doc/glibc-functions/wcstof_l.texi: Likewise.
25731         * doc/glibc-functions/wcstol_l.texi: Likewise.
25732         * doc/glibc-functions/wcstold_l.texi: Likewise.
25733         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25734         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25735         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25736
25737 2009-11-24  Bruno Haible  <bruno@clisp.org>
25738
25739         duplocale: Fix logic bug.
25740         * lib/duplocale.c: Don't include <langinfo.h>.
25741         (_NL_LOCALE_NAME): Remove macro.
25742         (rpl_duplocale): Use setlocale instead of nl_langinfo.
25743         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
25744
25745 2009-11-23  Jim Meyering  <meyering@redhat.com>
25746
25747         test-update-copyright: don't hard-code /usr/bin/perl
25748         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
25749         perl to print the current year.  Gilles Espinasse reported that
25750         the replaced use of perl was hard-coded as /usr/bin/perl.
25751
25752 2009-11-23  Bruno Haible  <bruno@clisp.org>
25753
25754         duplocale: Add support for glibc 2.3.x.
25755         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
25756
25757 2009-11-22  Bruno Haible  <bruno@clisp.org>
25758
25759         vasnprintf: Tiny optimization.
25760         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
25761         MacOS X.
25762
25763 2009-11-22  Bruno Haible  <bruno@clisp.org>
25764
25765         Tests for module 'duplocale'.
25766         * modules/duplocale-tests: New file.
25767         * tests/test-duplocale.c: New file.
25768
25769         New module 'duplocale'.
25770         * m4/duplocale.m4: New file.
25771         * lib/locale.in.h (duplocale): New declaration.
25772         * lib/duplocale.c: New file.
25773         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
25774         gl_LOCALE_H_DEFAULTS): New macros.
25775         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
25776         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
25777         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
25778         REPLACE_DUPLOCALE.
25779         * modules/duplocale: New file.
25780         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
25781
25782 2009-11-22  Bruno Haible  <bruno@clisp.org>
25783
25784         * modules/locale-tests (configure.ac): Test for newlocale function.
25785         * tests/test-locale.c: When the system has extended locale functions,
25786         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
25787
25788         locale: Make locale_t available when possible.
25789         * lib/locale.in.h: Include <xlocale.h> when it exists.
25790         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
25791         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
25792         * modules/locale (Depends-on): Add extensions.
25793         (Makefile.am): Also substitute HAVE_XLOCALE_H.
25794         * doc/posix-headers/locale.texi: Document the problem with locale_t.
25795
25796 2009-11-22  Bruno Haible  <bruno@clisp.org>
25797
25798         Add comments.
25799         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
25800         invocation.
25801         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
25802         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25803         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25804
25805 2009-11-22  Bruno Haible  <bruno@clisp.org>
25806
25807         error: account for the possibility of freopen (stdout).
25808         * lib/error.c: Include <unistd.h>.
25809         (flush_stdout): New function, extracted from error and error_at_line.
25810         Determine stdout's fd dynamically.
25811         (error, error_at_line): Invoke flush_stdout.
25812         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
25813         * modules/error (Depends-on): Add unistd.
25814
25815 2009-11-22  Bruno Haible  <bruno@clisp.org>
25816
25817         diffseq: Add comment.
25818         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
25819
25820 2009-11-22  Jim Meyering  <meyering@redhat.com>
25821
25822         c-stack: avoid defining an unused static function
25823         * lib/c-stack.c (find_stack_direction): Do not define this function
25824         when it will not be used.
25825
25826         diffseq: avoid spurious gcc warnings
25827         * lib/diffseq.h (IF_LINT2): Define.
25828         (compareseq): Use it to initialize two members of "part".
25829         This avoids two used-uninitialized warnings.
25830
25831 2009-11-21  Jim Meyering  <meyering@redhat.com>
25832
25833         c-stack: avoid "ignoring return value of `write'" warning
25834         * lib/c-stack.c: Include "ignore-value.h".
25835         (die): Explicitly ignore each write return value.
25836         * modules/c-stack (Depends-on): Add ignore-value.
25837
25838 2009-11-21  Bruno Haible  <bruno@clisp.org>
25839
25840         diffseq: reduce scope of variable 'best'.
25841         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
25842         variable, earlier used for two different purposes.
25843
25844 2009-11-21  Jim Meyering  <meyering@redhat.com>
25845
25846         diffseq: remove useless assignment to "best"
25847         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
25848         assignment.  At that point "best" is already guaranteed to be zero.
25849
25850 2009-11-20  Eric Blake  <ebb9@byu.net>
25851
25852         build: mention ftp redirector in release announcements
25853         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
25854         values that used to come from cfg.mk; mention FTP redirect URL.
25855         * build-aux/announce-gen: Mention the mirror list.
25856         Suggested by Karl Berry.
25857
25858         nanosleep: improve port to mingw
25859         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
25860         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
25861         LIB_NANOSLEEP, but only when needed.
25862         * modules/select (Link): Document LIBSOCKET.
25863         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
25864         enough.
25865
25866         nanosleep: work around cygwin bug
25867         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
25868         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
25869         bug.
25870         (getnow): Delete, not needed.
25871         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
25872         LIB_CLOCK_GETTIME.
25873         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
25874         clock-time, gettime.
25875         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
25876         bug.
25877         * modules/nanosleep-tests: New test.
25878         * tests/test-nanosleep.c: New file.
25879
25880         sleep: work around cygwin bug
25881         * lib/sleep.c (rpl_sleep): Work around the bug.
25882         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
25883         (gl_PREREQ_SLEEP): Delete unused macro.
25884         * modules/sleep (Depends-on): Add verify.
25885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25886         * modules/unistd (Makefile.am): Substitute witness.
25887         * lib/unistd.in.h (sleep): Update prototype.
25888         * doc/posix-functions/sleep.texi (sleep): Document the bug.
25889         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
25890         * modules/sleep-tests (Depends-on): Check for alarm.
25891
25892 2009-11-20  Jim Meyering  <meyering@redhat.com>
25893
25894         maint.mk: improve sc_prohibit_magic_number_exit
25895         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
25896         so it does not match uses like System.exit(1).
25897         Add comments showing how to correct all offenders.
25898
25899 2009-11-19  Eric Blake  <ebb9@byu.net>
25900
25901         xalloc-die-tests: add missing library
25902         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
25903
25904         test-xvasprintf: silence compiler warnings
25905         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
25906         empty string from gcc.
25907
25908 2009-11-19  Jim Meyering  <meyering@redhat.com>
25909
25910         xfreopen: new module, from coreutils
25911         * modules/xfreopen: New module.
25912         * lib/xfreopen.c: New file.
25913         * lib/xfreopen.h: New file.
25914         * MODULES.html.sh (File stream based Input/Output"): Add it.
25915
25916 2009-11-19  Eric Blake  <ebb9@byu.net>
25917
25918         manywarnings: depend on warnings
25919         * modules/manywarnings (Depends-on): Add warnings.
25920
25921         build: avoid compiler warnings
25922         * lib/select.c (rpl_select): Delete unused variable.
25923         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
25924
25925 2009-11-18  Eric Blake  <ebb9@byu.net>
25926
25927         tests: avoid false negative with --with-packager
25928         * tests/test-version-etc.sh: Discard packager information.
25929         * tests/test-argp-version-etc-1.sh: Likewise.
25930         Reported by Mike Frysinger.
25931
25932         utimens: fix regression on Solaris
25933         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
25934         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
25935         can only change fd timestamps via futimesat.  Instead, use an
25936         additional witness macro to avoid BSD bug.
25937         Reported by Jim Meyering.
25938
25939 2009-11-17  Eric Blake  <ebb9@byu.net>
25940
25941         usleep: use it to simplify tests
25942         * modules/stat-time-tests (Depends-on): Add usleep.
25943         (configure.ac): Drop usleep check.
25944         * modules/chown-tests (Depends-on, configure.ac): Likewise.
25945         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
25946         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
25947         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
25948         * modules/openat-tests (Depends-on, configure.ac): Likewise.
25949         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
25950         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
25951         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
25952         Likewise.
25953         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
25954         * tests/test-lchown.h (nap): Likewise.
25955         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
25956         * tests/test-stat-time.c (nap): Likewise.
25957         * tests/test-utimens-common.h (nap): Update comments.
25958
25959         usleep: new module
25960         * modules/usleep: New file.
25961         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
25962         * lib/usleep.c (usleep): Likewise.
25963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25964         * modules/unistd (Makefile.am): Substitute witnesses.
25965         * lib/unistd.in.h (usleep): Add declaration.
25966         * doc/pastposix-functions/usleep.texi (usleep): Document this.
25967         * MODULES.html.sh (Date and time): Likewise.
25968         * modules/usleep-tests (Depends-on): New test.
25969         * tests/test-usleep.c: New file.
25970
25971         chown: work around OpenBSD bug
25972         * lib/chown.c (rpl_chown): Work around the bug.
25973         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
25974         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
25975         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
25976         * modules/chown (Depends-on): Add stdbool.
25977         * modules/lchown (Depends-on): Likewise.
25978         * doc/posix-functions/chown.texi (chown): Document the bug.
25979         * doc/posix-functions/lchown.texi (lchown): Likewise.
25980         * tests/test-lchown.h (test_chown): Relax test.
25981
25982         mkstemp: avoid conflict with C++ keyword template
25983         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
25984         * lib/mkostemp.c (mkostemp): Likewise.
25985         * lib/mkostemps.c (mkostemps): Likewise.
25986         * lib/mkstemp.c (mkstemp): Likewise.
25987         * lib/mkstemps.c (mkstemps): Likewise.
25988
25989         xalloc-die-tests: optimize
25990         * tests/test-xalloc-die.sh: Reduce number of processes.
25991
25992 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25993
25994         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
25995         patch from ludo@gnu.org (Ludovic Courtès).
25996
25997 2009-11-17  Jim Meyering  <meyering@redhat.com>
25998
25999         version-etc: use proper license string
26000         * modules/version-etc (License): Use LGPL, not LGPLv3+.
26001         * modules/version-etc-fsf: Likewise.
26002
26003 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26004
26005         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
26006         printed to stdout.  Deal with EOL differences.
26007
26008 2009-11-17  Eric Blake  <ebb9@byu.net>
26009
26010         unsetenv: work around Solaris bug
26011         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
26012         * lib/unsetenv.c (rpl_unsetenv): Work around it.
26013         Reported by Jim Meyering.
26014
26015         vasnprintf: avoid compiler warnings
26016         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
26017         variables.
26018         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
26019
26020 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26021
26022         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
26023         settings since xalloc-die is no longer the self test,
26024         xalloc-die.sh is.
26025
26026 2009-11-17  Jim Meyering  <meyering@redhat.com>
26027
26028         test-xalloc-die.sh: make the code agree with the commit log
26029         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
26030         at the end, just in case you happen to have a test-xalloc-die
26031         program in some other PATH directory.
26032
26033         test-xalloc-die.sh: fix a portability bug
26034         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
26035         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
26036         Otherwise, argv[0] (as often seen in diagnostics) would be too
26037         system-dependent, sometimes with, and sometimes without the leading "./".
26038
26039         version-etc-fsf: relax license to LGPLv3+
26040         * modules/version-etc-fsf (License): Relax license.
26041
26042 2009-11-16  Eric Blake  <ebb9@byu.net>
26043
26044         xalloc-die-tests: avoid printing null pointer
26045         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
26046         shell script.
26047         * tests/test-xalloc-die.c (program_name): Declare.
26048         * tests/test-xalloc-die.sh (tmpfiles): New file.
26049
26050         setenv, unsetenv: work around various bugs
26051         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
26052         (setenv) [HAVE_SETENV]: Work around bugs.
26053         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
26054         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
26055         for bugs.
26056         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
26057         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
26058         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
26059         * modules/stdlib (Makefile.am): Update substitutions.
26060         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
26061         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
26062         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26063         * modules/setenv-tests: New test.
26064         * modules/unsetenv-tests: Likewise.
26065         * tests/test-setenv.c: New file.
26066         * tests/test-unsetenv.c: Likewise.
26067
26068 2009-11-16  Jim Meyering  <meyering@redhat.com>
26069
26070         version-etc: relax license to LGPLv3+
26071         * modules/version-etc (License): Relax license.
26072
26073         better AC_REQUIRE expanded-before-required-warning avoidance
26074         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
26075         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
26076         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
26077         which is no longer needed.
26078
26079 2009-11-16  Eric Blake  <ebb9@byu.net>
26080
26081         test-freading: clean up temporary file
26082         * tests/test-freading.c (main): Remove file on success, and use
26083         ASSERT more liberally.
26084         Reported by Jim Meyering.
26085
26086 2009-11-16  Jim Meyering  <meyering@redhat.com>
26087
26088         avoid new AC_REQUIRE expanded-before-required warnings
26089         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
26090         merely using it.
26091         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
26092         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
26093
26094 2009-11-15  Simon Josefsson  <simon@josefsson.org>
26095
26096         * tests/test-xalloc-die.c: New file.
26097         * modules/xalloc-die-tests: New file.
26098         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
26099         XFAIL_TESTS so it can be appended by modules.
26100
26101 2009-11-15  Simon Josefsson  <simon@josefsson.org>
26102
26103         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
26104         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
26105
26106 2009-11-14  Eric Blake  <ebb9@byu.net>
26107
26108         fnmatch: avoid compiler warning
26109         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
26110         to silence compiler warning about mismatch signedness in ?:.
26111         Reported by Robert Millan.
26112
26113         intprops: add double-inclusion guard
26114         * lib/intprops.h: Allow idempotent includes.
26115         Suggested by Bruce Korb.
26116
26117         openat: detect Solaris fchownat bug
26118         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
26119         penalizing glibc chownat when only lchownat is broken.
26120         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
26121         trailing slash bugs.
26122         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
26123         * modules/openat-tests (Files): Include more files.
26124         (Depends-on): Add mgetgroups, sleep, stat-time.
26125         (configure.ac): Add additional checks.
26126         (Makefile.am): Build new test.
26127         * tests/test-fchownat.c: New file.
26128
26129         lchown: detect Solaris and FreeBSD bug
26130         * lib/lchown.c (rpl_lchown): Work around bug.
26131         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
26132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26133         * modules/unistd (Makefile.am): Populate it.
26134         * lib/unistd.in.h (lchown): Update declaration.
26135         * doc/posix-functions/lchown.texi (lchown): Document the bug.
26136         * modules/lchown-tests: New file.
26137         * tests/test-lchown.h (test_lchown): Likewise.
26138         * tests/test-lchown.c (main): Likewise.
26139
26140         chown: detect Solaris and FreeBSD bug
26141         * lib/chown.c (rpl_chown): Work around bug.
26142         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
26143         (gl_PREREQ_CHOWN): Delete.
26144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26145         * modules/unistd (Makefile.am): Populate it.
26146         * lib/unistd.in.h (chown): Update declaration.
26147         * lib/lchown.c (chown): Update client.
26148         * modules/lchown (Depends-on): Add lstat.
26149         * doc/posix-functions/chown.texi (chown): Document the bug.
26150         * doc/posix-functions/getgroups.texi (getgroups): Document
26151         getgroups pitfall.
26152         * modules/chown-tests: New file.
26153         * tests/test-chown.h (test_chown): Likewise.
26154         * tests/test-chown.c (main): Likewise.
26155
26156 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
26157
26158         gnulib-tool: correctly detect absence of m4 directories
26159         * gnulib-tool: Avoid extra newline on data passed to wc -l.
26160
26161 2009-11-14  Jim Meyering  <meyering@redhat.com>
26162
26163         maint.mk: Prohibit inclusion of "xalloc.h" without use.
26164         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
26165
26166 2009-11-14  John W. Eaton  <jwe@gnu.org>
26167
26168         strftime.h: wrap funtion declaration in extern "C" block
26169         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
26170
26171 2009-11-13  Eric Blake  <ebb9@byu.net>
26172
26173         getgroups: avoid compiler warning
26174         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
26175
26176         getgroups: work around FreeBSD bug
26177         * lib/getgroups.c (rpl_getgroups): Work around the bug.
26178         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
26179         * doc/posix-functions/getgroups.texi (getgroups): Document it.
26180         * tests/test-getgroups.c (main): Fix buffer overrun.
26181
26182         getgroups: avoid compilation failure
26183         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
26184         * modules/getgroups (Depends-on): Add stdint.
26185
26186 2009-11-13  Jim Meyering  <meyering@redhat.com>
26187
26188         test-getgroups: avoid compilation failure
26189         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
26190
26191 2009-11-13  Eric Blake  <ebb9@byu.net>
26192
26193         mgetgroups: new module, taken from coreutils
26194         * modules/mgetgroups: New file.
26195         * lib/mgetgroups.h: Likewise.
26196         * lib/mgetgroups.c (mgetgroups): Likewise.
26197         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
26198         * MODULES.html.sh (Users and groups): Mention it.
26199
26200         getgroups: don't expose GETGROUPS_T to user
26201         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
26202         an element at a time if GETGROUPS_T is wrong size.
26203         * lib/getugroups.h (getugroups): Change signature.
26204         * lib/unistd.in.h (getgroups): Likewise.
26205         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
26206         signature needs fixing.
26207         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
26208         AC_TYPE_GETGROUPS.
26209         * modules/group-member (Depends-on): Add getgroups.
26210         * lib/group-member.c (group_info, get_group_info): Use gid_t.
26211         (group_member): Rely on getgroups replacement.
26212         * lib/getugroups.c (getugroups): Use gid_t.
26213         * tests/test-getgroups.c (main): Likewise.
26214         * NEWS: Mention the signature change.
26215         * doc/posix-functions/getgroups.texi (getgroups): Mention the
26216         problem with signature.
26217         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
26218         GETGROUPS_T is still useful for setgroups.
26219
26220         getgroups, getugroups: provide stubs for mingw
26221         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
26222         * lib/getugroups.c (getugroups): Likewise.
26223         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
26224         function.  Modernize replacement scheme.
26225         (gl_PREREQ_GETGROUPS): Delete.
26226         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
26227         * modules/getgroups (configure.ac): Declare witness.
26228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
26229         * modules/unistd (Depends-on): Substitute witness.
26230         * lib/unistd.in.h (getgroups): Declare replacement.
26231
26232         getgroups: avoid calling exit
26233         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
26234         drop xalloc.
26235         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
26236         dependencies.
26237         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
26238         exiting, in the rare case of malloc failure.
26239
26240         getgroups: fix logic error
26241         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
26242         has more than 20 groups.
26243         * modules/getgroups-tests: New test.
26244         * tests/test-getgroups.c: New file.
26245
26246 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26247
26248         * tests/test-base64.c: Improve.
26249
26250 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26251
26252         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
26253         Blake <ebb9@byu.net>.
26254
26255 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26256
26257         * tests/test-xvasprintf.c: Add %s%s related checks.
26258
26259 2009-11-12  Eric Blake  <ebb9@byu.net>
26260
26261         version-etc: match standards.texi style
26262         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
26263         and use <> only for URLs.
26264
26265 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
26266
26267         fts: do not fail on a submount during traversal
26268         * lib/fts.c (fts_build): Read the stat info again after opening
26269         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
26270         Original report at http://bugzilla.redhat.com/501848.
26271
26272 2009-11-12  Jim Meyering  <meyering@redhat.com>
26273
26274         bootstrap: sync from coreutils
26275         * build-aux/bootstrap (bootstrap_epilogue): New function.
26276         Use git_modules_config in one more place.  This make bootstrap's
26277         --gnulib-srcdir option more useful for testing.
26278
26279         bootstrap: generalize autoheader check
26280         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
26281         AC_CONFIG_HEADERS.
26282
26283 2009-11-11  Eric Blake  <ebb9@byu.net>
26284
26285         mkfifoat: use new modules for Solaris and BSD bugs
26286         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
26287         * lib/mkfifoat.c (mknodat): Split...
26288         * lib/mknodat.c (mknodat): ...into new file.
26289         * modules/mkfifoat (Files): Ship new file.
26290         (Depends-on): Add mkfifo, mknod.
26291         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
26292         (Depends-on): Add symlink.
26293         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
26294         redundant with test_mkfifo.h.
26295         (do_mkfifoat, do_mknodat): New helpers.
26296
26297         mknod: new module
26298         * modules/mknod: New file.
26299         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
26300         * lib/mknod.c (mknod): Likewise.
26301         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
26302         defaults.
26303         * modules/sys_stat (Makefile.am): Substitute them.
26304         * lib/sys_stat.in.h (mknod): Declare replacement.
26305         * MODULES.html.sh (Support for systems lacking POSIX:2008):
26306         Document it.
26307         * doc/posix-functions/mknod.texi (mknod): Likewise.
26308         * modules/mknod-tests: New test.
26309         * tests/test-mknod.c: Likewise.
26310
26311         mkfifo: new module
26312         * modules/mkfifo: New file.
26313         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26314         * lib/mkfifo.c (mkfifo): Likewise.
26315         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
26316         defaults.
26317         * modules/sys_stat (Makefile.am): Substitute them.
26318         * lib/sys_stat.in.h (mkfifo): Declare replacement.
26319         * MODULES.html.sh (Support for systems lacking POSIX:2008):
26320         Document it.
26321         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
26322         * modules/mkfifo-tests: New test.
26323         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
26324         from test-mkfifoat.c.
26325         * tests/test-mkfifo.c: New file.
26326
26327         readlink: detect FreeBSD bug
26328         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
26329         slash on symlink.
26330         * doc/posix-functions/readlink.texi (readlink): Document the bug.
26331         * tests/test-readlink.h (test_readlink): Enhance test.
26332
26333         symlink: detect FreeBSD bug
26334         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
26335         slash on symlink.
26336         * doc/posix-functions/symlink.texi (symlink): Document the bug.
26337         * tests/test-symlink.h (test_symlink): Enhance test.
26338
26339 2009-11-10  Eric Blake  <ebb9@byu.net>
26340
26341         link: detect FreeBSD bug
26342         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
26343         symlink.
26344         * doc/posix-functions/link.texi (link): Document the bug.
26345         * tests/test-link.h (test_link): Enhance test.
26346         * tests/test-linkat.c (main): Update caller.
26347
26348         unlink, remove: detect FreeBSD bug
26349         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
26350         slash on symlink.
26351         * doc/posix-functions/unlink.texi (unlink): Document the bug.
26352         * doc/posix-functions/remove.texi (remove): Likewise.
26353         * tests/test-unlink.h (test_unlink): Enhance test.
26354         * tests/test-remove.c (main): Likewise.
26355
26356 2009-11-09  Eric Blake  <ebb9@byu.net>
26357
26358         rename: detect FreeBSD bug
26359         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
26360         slash on symlink.
26361         * modules/renameat-tests (Depends-on): Add filenamecat.
26362         * tests/test-rename.h (test_rename): Allow one more errno.
26363         * tests/test-renameat.c (main): Likewise.
26364         * doc/posix-functions/rename.texi (rename): Document the bug.
26365
26366         open: detect FreeBSD bug
26367         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
26368         symlink.
26369         * doc/posix-functions/open.texi (open): Document the bug.
26370         * doc/posix-functions/utimes.texi (utimes): Likewise.
26371         * tests/test-open.h (test_open): Add parameters, and test symlink
26372         handling.
26373         * tests/test-open.c (main): Adjust caller.
26374         * tests/test-fcntl-safer.c (main): Likewise.
26375         * modules/open-tests (Depends-on): Add stdbool, symlink.
26376         * modules/fcntl-safer-tests (Depends-on): Likewise.
26377         * tests/test-openat.c (main): Add test-open tests.
26378
26379         stat: detect FreeBSD bug
26380         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
26381         symlink.
26382         * doc/posix-functions/stat.texi (stat): Document the bug.
26383         * tests/test-stat.h (test_stat_func): Add argument.
26384         * tests/test-stat.c (main): Adjust caller.
26385         * tests/test-fstatat.c (main): Likewise.
26386         * modules/stat-tests (Depends-on): Add stdbool, symlink.
26387         Reported by Jim Meyering.
26388
26389 2009-11-09  James Youngman  <jay@gnu.org>
26390
26391         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
26392         * lib/strftime.c: Correct placement of #include "ignore-value.h".
26393
26394 2009-11-08  Jim Meyering  <meyering@redhat.com>
26395
26396         utimens: remove invalid futimesat call
26397         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
26398         It used the file descriptor of the target file as the DIR_FD
26399         parameter and NULL as the file name.  That caused failure with
26400         errno == EFAULT on FreeBSD-8.0-rc2
26401
26402 2009-11-07  Eric Blake  <ebb9@byu.net>
26403
26404         fflush, freadseek: use fseeko, not fseek
26405         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
26406         (clear_ungetc_buffer): Avoid potential problems on large files.
26407         * lib/freadseek.c (freadseek): Likewise.
26408         * modules/freadseek (Depends-on): Add fseeko.
26409         * modules/fseek (configure.ac): Set a witness.
26410         * tests/test-fflush.c (main): Use fseeko.
26411         * tests/test-fpurge.c (fseek): Disable link warning.
26412         * tests/test-freadable.c (fseek): Likewise.
26413         * tests/test-freading.c (fseek): Likewise.
26414         * tests/test-fseeko.c (fseek): Likewise.
26415         * tests/test-ftell.c (fseek): Likewise.
26416         * tests/test-ftello.c (fseek): Likewise.
26417         * tests/test-fwritable.c (fseek): Likewise.
26418         * tests/test-fwriting.c (fseek): Likewise.
26419
26420 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26421
26422         * modules/memchr (Depends-on): Drop getpagesize dependency.
26423
26424 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26425
26426         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
26427         Reported by Ludovic Courtès.
26428         * build-aux/pmccabe2html: Improve example usage.
26429         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
26430
26431 2009-11-06  Jim Meyering  <meyering@redhat.com>
26432
26433         do-release-commit-and-tag: New module.
26434         Automate the release-commit and tag process.
26435         * build-aux/do-release-commit-and-tag: New script, from coreutils.
26436         * modules/do-release-commit-and-tag: New file.
26437         * MODULES.html.sh (Support for maintaining and releasing): Add it.
26438
26439 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26440
26441         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
26442         because test-select.c uses inet_pton.
26443
26444 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26445
26446         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
26447         GETADDRINFO_LIB.  Bump serial number.
26448         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
26449         Suggested by Eric Blake <ebb9@byu.net>.
26450
26451 2009-11-05  Eric Blake  <ebb9@byu.net>
26452
26453         strtod: detect darwin bug
26454         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
26455         Reported by Leo Davis.
26456
26457         freopen-safer: new module
26458         * modules/freopen-safer: New module.
26459         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
26460         * lib/freopen-safer.c (freopen_safer): New file.
26461         * lib/stdio-safer.h (freopen_safer): New declaration.
26462         * lib/stdio--.h (freopen): New override.
26463         * MODULES.html.sh (File stream based Input/Output): Mention it.
26464         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
26465         freopen-safer module.
26466         * doc/posix-functions/stderr.texi (stderr): Likewise.
26467         * doc/posix-functions/stdin.texi (stdin): Likewise.
26468         * doc/posix-functions/stdout.texi (stdout): Likewise.
26469         * modules/freopen-safer-tests: New test.
26470         * tests/test-reopen-safer.c: New file.
26471
26472 2009-11-05  Jim Meyering  <meyering@redhat.com>
26473
26474         maint.mk: Prohibit inclusion of "close-stream.h" without use.
26475         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
26476
26477 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26478
26479         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
26480
26481 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26482
26483         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
26484
26485 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26486
26487         Fix link error.
26488         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
26489         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26490
26491 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26492
26493         * tests/test-func.c: Also test value of __func__.
26494
26495 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26496
26497         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
26498         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
26499
26500 2009-11-05  Bruno Haible  <bruno@clisp.org>
26501
26502         Fix link error.
26503         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
26504         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26505         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
26506
26507 2009-11-05  Bruno Haible  <bruno@clisp.org>
26508
26509         Tests for module 'inet_pton'.
26510         * modules/inet_pton-tests: New file.
26511         * tests/test-inet_pton.c: New file.
26512
26513 2009-11-05  Bruno Haible  <bruno@clisp.org>
26514
26515         Tests for module 'inet_ntop'.
26516         * modules/inet_ntop-tests: New file.
26517         * tests/test-inet_ntop.c: New file.
26518
26519 2009-11-04  Eric Blake  <ebb9@byu.net>
26520
26521         stdlib-safer: wrap all mkstemp variants
26522         * modules/mkostemp (configure.ac): Set witness.
26523         * modules/mkostemps (configure.ac): Likewise.
26524         * modules/mkstemps (configure.ac): Likewise.
26525         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
26526         (mkstemps_safer): Wrap more functions.
26527         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
26528         wrapping.
26529         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
26530         (mkstemps_safer): Implement the wrappers.
26531
26532         mkstemps, mkostemps: new modules
26533         * modules/mkostemps: New module.
26534         * modules/mkstemps: Likewise.
26535         * lib/mkostemps.c (mkostemps): New file.
26536         * lib/mkstemps.c (mkstemps): Likewise.
26537         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
26538         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
26539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
26540         * modules/stdlib (Makefile.am): Substitute them.
26541         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
26542         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
26543         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26544         * doc/gnulib.texi (Glibc stdlib.h): Include them.
26545         * MODULES.html.sh (File system functions): Mention them.
26546
26547         tempname: resync from glibc
26548         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
26549         same values for __GT_FILE as glibc.  Abort even when assertions
26550         are disabled.
26551         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
26552         match its value otherwise.  Allow idempotent inclusion.
26553         * lib/mkdtemp.c (mkdtemp): Adjust caller.
26554         * lib/mkostemp.c (mkostemp): Likewise.
26555         * lib/mkstemp.c (mkstemp): Likewise.
26556         * lib/tmpfile.c (tmpfile): Likewise.
26557         * NEWS: Document this.
26558
26559         utimens: fix use of futimens on older Linux
26560         * lib/utimens.c (fdutimens): Use updated, rather than original,
26561         timespec to avoid bug in older Linux kernel.
26562         Reported by Simon Josefsson.
26563
26564 2009-11-04  Bruno Haible  <bruno@clisp.org>
26565
26566         Make num_processors more flexible and consistent.
26567         * lib/nproc.h (enum nproc_query): New type.
26568         (num_processors): Add a 'query' argument.
26569         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
26570         (num_processors): Add a 'query' argument. Test the value of the
26571         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
26572         mingw, count the number of CPUs available for the current process.
26573         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
26574         Check for sched_getaffinity and sched_getaffinity_np.
26575         * modules/nproc (Depends-on): Add c-ctype, extensions.
26576         * NEWS: Mention the change.
26577
26578 2009-11-03  Bruno Haible  <bruno@clisp.org>
26579
26580         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
26581
26582 2009-11-03  Jim Meyering  <meyering@redhat.com>
26583
26584         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
26585         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
26586         if it is defined.
26587
26588 2009-11-02  Eric Blake  <ebb9@byu.net>
26589
26590         mktime, timegm: share common declaration
26591         * lib/mktime-internal.h: New file.
26592         * lib/mktime.c: Use it rather than open-coding a declaration.
26593         * lib/timegm.c: Likewise.
26594         * modules/mktime (Files): Ship it.
26595         * modules/timegm (Files): Likewise.
26596         Suggested by Bruno Haible.
26597
26598         test-update-copyright: update test to match script changes
26599         * tests/test-update-copyright.sh: Avoid hard-coding perl
26600         location.  Don't update *.bak created by earlier runs.
26601
26602 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
26603             Simon Josefsson  <simon@josefsson.org>
26604             Bruno Haible  <bruno@clisp.org>
26605
26606         Fix link error on Solaris 8.
26607         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
26608         also in libnsl. Define also INET_PTON_LIB.
26609         * modules/inet_pton (Link): New section.
26610
26611 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26612             Bruno Haible  <bruno@clisp.org>
26613
26614         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
26615         * modules/inet_ntop (Link): New section.
26616         Reported by Boyan Kasarov <bkasarov@gmail.com>.
26617
26618 2009-11-02  Eric Blake  <ebb9@byu.net>
26619
26620         maint: avoid compiler warnings in m4 macros
26621         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
26622         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
26623
26624 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26625
26626         * m4/pmccabe2html.m4: Remove file.
26627         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
26628         function.  Change maintainer.
26629         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
26630         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
26631         Courtès).
26632
26633 2009-10-31  Eric Blake  <ebb9@byu.net>
26634
26635         fseeko: fix m4 regression
26636         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
26637         regression from 2009-10-27.
26638         Reported by Ralf Wildenhues.
26639
26640 2009-10-31  Jim Meyering  <meyering@redhat.com>
26641
26642         inttostr: aesthetics and improved (compile-time) safety
26643         Define inttype_is_signed rather than inttype_is_unsigned,
26644         since the sole use is via "#if inttype_is_signed".
26645         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
26646         inttype_is_unsigned.
26647         * lib/offtostr.c (inttype_is_signed): Likewise.
26648         * lib/uinttostr.c (inttype_is_signed): Likewise.
26649         * lib/umaxtostr.c (inttype_is_signed): Likewise.
26650         * lib/inttostr.c (inttostr): Use verify to cross-check the
26651         inttype_is_signed value and the signedness of the actual type.
26652         * modules/inttostr (Depends-on): Add verify.
26653
26654 2009-10-30  Eric Blake  <ebb9@byu.net>
26655
26656         build: avoid compiler warnings
26657         * lib/fchmodat.c (lchmod): Mark unused variables.
26658         * lib/getopt.c (_getopt_initialize): Likewise.
26659         * lib/mktime.c (__mktime_internal): Provide prototype.
26660         * lib/inttostr.c (inttostr): Avoid compiler warning even with
26661         older gcc that do not understand #pragma GCC diagnostic.
26662         * lib/uinttostr.c (inttype_is_unsigned): Define.
26663         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
26664
26665 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
26666
26667         stat: fix compilation on AIX
26668         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
26669         only see struct stat64.
26670
26671 2009-10-30  Eric Blake  <ebb9@byu.net>
26672
26673         exclude: make more robust
26674         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
26675         rather than masking a coding bug.
26676         Suggested by Bruno Haible.
26677
26678 2009-10-30  Jim Meyering  <meyering@redhat.com>
26679
26680         perl scripts: remove #!/usr/bin/perl in favor of more portable...
26681         Rather than putting #!/usr/bin/perl on the first line,
26682         start with a variant of what's recommended by "man perlrun" that
26683         invokes the first "perl" program from your shell's search path.
26684         * build-aux/gitlog-to-changelog: Replace #!... as above.
26685         Add a "Local Variables" perl mode setting.
26686         Prompted by a patch from Ludovic Courtès.
26687         Improved by Eric Blake.
26688         * build-aux/useless-if-before-free: Likewise.
26689         * build-aux/announce-gen: Likewise.
26690         * build-aux/update-copyright: Likewise.
26691
26692 2009-10-29  Eric Blake  <ebb9@byu.net>
26693
26694         filenamecat-lgpl: adjust clients
26695         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
26696         filenamecat.
26697         * modules/renameat (Depends-on): Likewise.
26698
26699         filenamecat: split into filenamecat-lgpl
26700         * modules/filenamecat-lgpl: New module.
26701         * modules/filenamecat (Files): Move library-safe files into
26702         filenamecat-lgpl.
26703         (Depends-on): Add filenamecat-lgpl.
26704         (configure.ac): Declare witness.
26705         * lib/filenamecat.h (file_name_concat): Only declare when using
26706         GPL module.
26707         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
26708         Move...
26709         * lib/filenamecat-lgpl.c: ...into new file.
26710         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
26711         (gl_FILE_NAME_CONCAT): Use it.
26712         * MODULES.html.sh (File system functions): Mention new module.
26713
26714         argp: avoid memory leak
26715         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
26716         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
26717         base_name, since the latter malloc()s and can call exit().
26718         Leak introduced 2006-07-03.
26719
26720         dirname-lgpl: adjust clients that don't need full dirname
26721         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
26722         * modules/filenamecat (Depends-on): Likewise.
26723         * modules/linkat (Depends-on): Likewise.
26724         * modules/mkancesdirs (Depends-on): Likewise.
26725         * modules/mkdir (Depends-on): Likewise.
26726         * modules/openat (Depends-on): Likewise.
26727         * modules/savewd (Depends-on): Likewise.
26728         * modules/rename (Depends-on): Likewise.
26729         (License): Relax license.
26730         * modules/mkdir-tests (Depends-on): Drop progname.
26731         (Makefile.am): Delete unneeded LDADD.
26732         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
26733
26734         dirname: split into dirname-lgpl
26735         * modules/dirname-lgpl: New module.
26736         * modules/dirname (Files): Move library-safe files into
26737         dirname-lgpl.
26738         (Depends-on): Add dirname-lgpl.
26739         (configure.ac): Declare witness.
26740         * modules/double-slash-root (License): Relax license.
26741         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
26742         module.
26743         * lib/dirname.c (dir_len, mdir_name): Move...
26744         * lib/dirname-lgpl.c: ...into new file.
26745         * lib/basename.c (last_component, base_len): Move...
26746         * lib/basename-lgpl.c: ...into new file.
26747         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
26748         (gl_DIRNAME): Use it.
26749         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
26750         Mention new module.
26751         * modules/dirname-tests (Depends-on): Add progname.
26752         * tests/test-dirname.c (program_name): Delete.
26753
26754         mkdir: make safe for libraries
26755         * modules/mkdir (Depends-on): Drop xalloc.
26756         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
26757         exit.
26758
26759         tests: avoid some compiler warnings
26760         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
26761         literals.
26762         * tests/test-memchr.c (main): Avoid type mismatch.
26763         * tests/test-arpa_inet.c (main): Avoid unused parameters.
26764         * tests/test-base64.c (main): Likewise.
26765         * tests/test-getdelim.c (main): Likewise.
26766         * tests/test-gethostname.c (main): Likewise.
26767         * tests/test-getline.c (main): Likewise.
26768         * tests/test-netinet_in.c (main): Likewise.
26769         * tests/test-select.c (open_server_socket, main): Likewise.
26770         * tests/test-select-stdin.c (main): Likewise.
26771         * tests/test-sockets.c (main): Likewise.
26772         * tests/test-strsignal.c (main): Likewise.
26773         * tests/test-sys_select.c (main): Likewise.
26774         * tests/test-sys_socket.c (main): Likewise.
26775         * tests/test-u64.c (main): Likewise.
26776         * tests/test-xfprintf-posix.c (main): Likewise.
26777         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
26778
26779         sockets: avoid compiler warning
26780         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
26781
26782         maint: detect usage(1) and other suspicious exits
26783         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
26784
26785 2009-10-29  Jim Meyering  <meyering@redhat.com>
26786
26787         timespec: long-to-int truncation could make timespec_cmp malfunction
26788         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
26789         a multiple of 2^32 nanoseconds as no difference.
26790
26791 2009-10-28  Jim Meyering  <meyering@redhat.com>
26792
26793         fprintftime: wrap macro code argument in "do {...} while(0)"
26794         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
26795         cpy macro must be a statement that can be followed by a semicolon.
26796         Now that the else clause contains a comment and is hence longer
26797         than one line, I require curly braces.  That in turn requires
26798         that we wrap this code block in the standard do...while(0).
26799
26800         fprintftime: remove stray semicolon from previous change
26801         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
26802
26803         fprintftime: avoid a warning about ignored fwrite return value
26804         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
26805         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
26806         that is unsafe.
26807         * modules/fprintftime (Depends-on): Add ignore-value.
26808
26809         exclude: avoid an unwarranted warning
26810         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
26811
26812 2009-10-27  Eric Blake  <ebb9@byu.net>
26813
26814         fseek: avoid compilation failure when fflush is replaced
26815         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
26816         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
26817         module is in use.
26818         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
26819         module is not in use; since REPLACE_FSEEK worked otherwise.
26820         (GNULIB_FTELLO): Likewise for ftell.
26821         Reported by Ian Beckwith and others.
26822
26823 2009-10-27  Bruno Haible  <bruno@clisp.org>
26824
26825         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
26826         Reported by Jim Meyering.
26827
26828 2009-10-27  Jim Meyering  <jim@meyering.net>
26829             Bruno Haible  <bruno@clisp.org>
26830
26831         Avoid warning despite dropping the return value of fwrite.
26832         * lib/unicodeio.c: Include ignore-value.h.
26833         (fwrite_success_callback): Explicitly ignore fwrite's return value.
26834         * modules/unicodeio (Depends-on): Add ignore-value.
26835
26836 2009-10-26  Eric Blake  <ebb9@byu.net>
26837
26838         areadlinkat: fix fallback path
26839         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
26840         pointer and zero.
26841
26842 2009-10-22  Pádraig Brady  <P@draigBrady.com>
26843
26844         Use a better IO block size for modern systems
26845         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
26846         * lib/md2.c: Likewise.
26847         * lib/md4.c: Likewise.
26848         * lib/md5.c: Likewise.
26849         * lib/sha1.c: Likewise.
26850         * lib/sha256.c: Likewise.
26851         * lib/sha512.c: Likewise.
26852
26853 2009-10-22  Eric Blake  <ebb9@byu.net>
26854
26855         tests: avoid several compiler warnings
26856         * tests/test-getcwd.c (main): Avoid buffer underflow.
26857         * tests/test-getdate.c (main): String literals are not safe with
26858         putenv, so use setenv.  Declare unused argument.
26859         * modules/getdate-tests (Depends-on): Add setenv.
26860         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
26861         problems with string literals in char *.
26862         * tests/test-hash.c (main): Avoid shadowing declaration.
26863         (insert_new): Treat string literals as char const *.
26864         * tests/test-getopt.h (test_getopt): Likewise.
26865         (getopt_loop): Alter types to minimize casting elsewhere.
26866         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
26867         (test_getopt_long_posix): Likewise.
26868         (do_getopt_long): Add wrapper to minimize casting.
26869         * tests/test-atexit.c (clear_temp_file): Use void.
26870         * tests/test-areadlink-with-size.c (main): Declare unused
26871         arguments.
26872         * tests/test-areadlink.c (main): Likewise.
26873         * tests/test-areadlinkat-with-size.c (main): Likewise.
26874         * tests/test-areadlinkat.c (main): Likewise.
26875         * tests/test-canonicalize-lgpl.c (main): Likewise.
26876         * tests/test-canonicalize.c (main): Likewise.
26877         * tests/test-dirent-safer.c (main): Likewise.
26878         * tests/test-dirname.c (main): Likewise.
26879         * tests/test-dup2.c (main): Likewise.
26880         * tests/test-fchdir.c (main): Likewise.
26881         * tests/test-fcntl-h.c (main): Likewise.
26882         * tests/test-fcntl-safer.c (main): Likewise.
26883         * tests/test-fdopendir.c (main): Likewise.
26884         * tests/test-fdutimensat.c (main): Likewise.
26885         * tests/test-fflush.c (main): Likewise.
26886         * tests/test-filenamecat.c (main): Likewise.
26887         * tests/test-filevercmp.c (main): Likewise.
26888         * tests/test-fopen-safer.c (main): Likewise.
26889         * tests/test-fopen.c (main): Likewise.
26890         * tests/test-fpending.c (main): Likewise.
26891         * tests/test-fpurge.c (main): Likewise.
26892         * tests/test-freading.c (main): Likewise.
26893         * tests/test-fstatat.c (main): Likewise.
26894         * tests/test-fsync.c (main): Likewise.
26895         * tests/test-futimens.c (main): Likewise.
26896         * tests/test-getndelim2.c (main): Likewise.
26897         * tests/test-gettimeofday.c (main): Likewise.
26898         * tests/test-getopt.c (main): Likewise.
26899         * tests/test-i-ring.c (main): Likewise.
26900         * tests/test-inttypes.c (main): Likewise.
26901         * tests/test-link.c (main): Likewise.
26902         * tests/test-lstat.c (main): Likewise.
26903         * tests/test-math.c (main): Likewise.
26904         * tests/test-md5.c (main): Likewise.
26905         * tests/test-memchr2.c (main): Likewise.
26906         * tests/test-memrchr.c (main): Likewise.
26907         * tests/test-mkdir.c (main): Likewise.
26908         * tests/test-mkdirat.c (main): Likewise.
26909         * tests/test-mkfifoat.c (main): Likewise.
26910         * tests/test-open.c (main): Likewise.
26911         * tests/test-openat-safer.c (main): Likewise.
26912         * tests/test-openat.c (main): Likewise.
26913         * tests/test-quotearg.c (main): Likewise.
26914         * tests/test-rawmemchr.c (main): Likewise.
26915         * tests/test-readlink.c (main): Likewise.
26916         * tests/test-remove.c (main): Likewise.
26917         * tests/test-rename.c (main): Likewise.
26918         * tests/test-renameat.c (main): Likewise.
26919         * tests/test-rmdir.c (main): Likewise.
26920         * tests/test-sha1.c (main): Likewise.
26921         * tests/test-signal.c (main): Likewise.
26922         * tests/test-sigaction.c (main): Likewise.
26923         * tests/test-stat.c (main): Likewise.
26924         * tests/test-stat-time.c (main): Likewise.
26925         * tests/test-stddef.c (main): Likewise.
26926         * tests/test-stdint.c (main): Likewise.
26927         * tests/test-stdio.c (main): Likewise.
26928         * tests/test-stdlib.c (main): Likewise.
26929         * tests/test-strchrnul.c (main): Likewise.
26930         * tests/test-strerror.c (main): Likewise.
26931         * tests/test-string.c (main): Likewise.
26932         * tests/test-strtod.c (main): Likewise.
26933         * tests/test-strverscmp.c (main): Likewise.
26934         * tests/test-symlink.c (main): Likewise.
26935         * tests/test-symlinkat.c (main): Likewise.
26936         * tests/test-sys_stat.c (main): Likewise.
26937         * tests/test-sys_time.c (main): Likewise.
26938         * tests/test-time.c (main): Likewise.
26939         * tests/test-unistd.c (main): Likewise.
26940         * tests/test-unlink.c (main): Likewise.
26941         * tests/test-unlinkat.c (main): Likewise.
26942         * tests/test-utimens.c (main): Likewise.
26943         * tests/test-utimensat.c (main): Likewise.
26944         * tests/test-version-etc.c (main): Likewise.
26945         * tests/test-wchar.c (main): Likewise.
26946         * tests/test-wctype.c (main): Likewise.
26947         * tests/test-xprintf-posix.c (main): Likewise.
26948         * tests/test-posixtm.c (main): Likewise.
26949         (STREQ): Delete unused macro.
26950         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
26951         shadowed variables.
26952         * tests/test-memchr.c (main): Likewise.
26953
26954 2009-10-21  Eric Blake  <ebb9@byu.net>
26955
26956         areadlinkat: avoid failure on older glibc
26957         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
26958         rather than mis-comparing 0 against FUNC_RESULT of char*.
26959
26960 2009-10-21  Bruno Haible  <bruno@clisp.org>
26961
26962         * modules/stpncpy (License): Relicense under LGPLv2+.
26963         Reported by David Lutterkort <lutter@redhat.com>.
26964
26965 2009-10-20  Eric Blake  <ebb9@byu.net>
26966
26967         utimensat: work around Solaris 9 bug
26968         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
26969         has trailing slash bugs.
26970         * tests/test-lutimens.h (test_lutimens): Enhance test.
26971         * tests/test-utimens.h (test_utimens): Likewise.
26972         * doc/posix-functions/utime.texi (utime): Enhance documentation.
26973         * doc/posix-functions/utimes.texi (utimes): Likewise.
26974         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26975         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
26976         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
26977         * doc/posix-functions/futimens.texi (futimens): Likewise.
26978
26979         fdutimensat: new module
26980         * modules/fdutimensat: New file.
26981         * lib/fdutimensat.c (fdutimensat): Likewise.
26982         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
26983         * MODULES.html.sh (File system functions): Mention module.
26984         * modules/fdutimensat-tests: New test.
26985         * tests/test-fdutimensat.c: Likewise.
26986
26987         doc: regenerate INSTALL
26988         * doc/INSTALL: Reflect recent autoconf update.
26989         * doc/INSTALL.ISO: Likewise.
26990         * doc/INSTALL.UTF-8: Likewise.
26991
26992 2009-10-20  Pádraig Brady  <P@draigBrady.com>
26993
26994         acl: warn if ACL support is not detected
26995         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
26996
26997 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
26998
26999         * lib/nproc.h: Add extern "C" block for C++.
27000
27001 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
27002             Bruno Haible  <bruno@clisp.org>
27003
27004         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
27005         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
27006         * doc/posix-functions/isalpha.texi: Likewise.
27007         * doc/posix-functions/isblank.texi: Likewise.
27008         * doc/posix-functions/iscntrl.texi: Likewise.
27009         * doc/posix-functions/isdigit.texi: Likewise.
27010         * doc/posix-functions/isgraph.texi: Likewise.
27011         * doc/posix-functions/islower.texi: Likewise.
27012         * doc/posix-functions/isprint.texi: Likewise.
27013         * doc/posix-functions/ispunct.texi: Likewise.
27014         * doc/posix-functions/isspace.texi: Likewise.
27015         * doc/posix-functions/isupper.texi: Likewise.
27016         * doc/posix-functions/isxdigit.texi: Likewise.
27017
27018 2009-10-18  Bruno Haible  <bruno@clisp.org>
27019
27020         Tests for module 'isblank'.
27021         * modules/isblank-tests: New file.
27022         * tests/test-isblank.c: New file.
27023
27024         New module 'isblank'.
27025         * lib/isblank.c: New file.
27026         * m4/isblank.m4: New file.
27027         * modules/isblank: New file.
27028         * doc/posix-functions/isblank.texi: Mention the new module.
27029
27030 2009-10-18  Bruno Haible  <bruno@clisp.org>
27031
27032         New module 'ctype'.
27033         * lib/ctype.in.h: New file.
27034         * m4/ctype.m4: New file.
27035         * modules/ctype: New file.
27036         * doc/posix-headers/ctype.texi: Mention the new module.
27037
27038 2009-10-18  Jim Meyering  <meyering@redhat.com>
27039
27040         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
27041         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
27042         right after its initialization, rather than farther down.
27043         Keeping these in close proximity makes it easier to ensure
27044         that each such variable is initialized.  E.g.,
27045
27046             LIB_CLOCK_GETTIME=
27047             AC_SUBST([LIB_CLOCK_GETTIME])
27048
27049         This change also increments these serial numbers.
27050         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
27051         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
27052         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27053
27054 2009-10-18  Bruno Haible  <bruno@clisp.org>
27055
27056         Don't let environment variables perturb build.
27057         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
27058         (gl_PREREQ_GETHRXTIME): ... not here.
27059
27060 2009-10-18  Bruno Haible  <bruno@clisp.org>
27061
27062         Avoid symlink attack in localcharset module.
27063         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
27064         (O_NOFOLLOW): Define fallback.
27065         (get_charset_aliases): Don't open the file if it is a symbolic link.
27066         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
27067         gl_FCNTL_H.
27068         (gl_FCNTL_H): Require it.
27069         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
27070         * modules/localcharset (Files): Add m4/fcntl_h.m4.
27071         Reported by Fergal Glynn <fglynn@veracode.com>.
27072
27073 2009-10-18  Bruno Haible  <bruno@clisp.org>
27074
27075         Implement nproc for mingw.
27076         * lib/nproc.c: Include <windows.h>
27077         (num_processors): On native Windows platforms, try GetSystemInfo.
27078
27079 2009-10-18  Bruno Haible  <bruno@clisp.org>
27080
27081         Implement nproc for IRIX.
27082         * lib/nproc.c: Include <sys/sysmp.h>.
27083         (num_processors): On IRIX systems, try sysmp.
27084         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
27085
27086 2009-10-18  Bruno Haible  <bruno@clisp.org>
27087
27088         Implement nproc for HP-UX.
27089         * lib/nproc.c: Include <sys/pstat.h>
27090         (num_processors): On HP-UX systems, try pstat_getdynamic.
27091         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
27092         pstat_getdynamic.
27093
27094 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
27095             Bruno Haible  <bruno@clisp.org>
27096
27097         Implement nproc for NetBSD, OpenBSD.
27098         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
27099         (ARRAY_SIZE): New macro.
27100         (num_processors): On BSD systems, try sysctl of HW_NCPU.
27101         * m4/nproc.m4: New file.
27102         * modules/nproc (Files): Add m4/nproc.m4.
27103         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
27104         (Makefile.am): Instead, augment lib_SOURCES.
27105
27106 2009-10-18  Bruno Haible  <bruno@clisp.org>
27107
27108         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
27109         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
27110         sys/param.h.
27111
27112 2009-10-16  Eric Blake  <ebb9@byu.net>
27113
27114         utimensat: new module
27115         * modules/utimensat: New file.
27116         * lib/utimensat.c (utimensat): Likewise.
27117         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27118         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
27119         so we can work around Linux bugs.
27120         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27121         * modules/sys_stat (Makefile.am): Substitute them.
27122         * lib/sys_stat.in.h (utimensat): Declare it.
27123         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27124         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27125         * modules/utimensat-tests: New test.
27126         * tests/test-utimensat.c: Likewise.
27127
27128         utimens: let lutimens work on non-symlinks
27129         * lib/utimens.c (lutimens): Fall back to utimens rather than
27130         failing with ENOSYS, when file is not a symlink.
27131         (utimens): Reduce redirection.
27132         * tests/test-lutimens.h (test_lutimens): Update test to cover
27133         non-symlinks.
27134         * tests/test-utimens.h (test_utimens): Update test to cover
27135         symlinks.
27136         * tests/test-utimens.c (main): Update caller.
27137
27138         utimens: cache whether utimensat syscall works
27139         * lib/utimens.c (utimensat_works_really): New cache variable.
27140         (fdutimens, lutimens): Use it to avoid failing syscall.
27141
27142         test-stat-time, test-utimens: improve portability
27143         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
27144         ext4 on alpha, and for cygwin.
27145         * tests/test-utimens-common.h: New file.
27146         (nap): Factor delays into single function.
27147         * tests/test-lutimens.h (test_lutimens): Use new header.
27148         * tests/test-futimens.h (test_futimens): Likewise.
27149         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
27150         timestamps to occur from same machine, as was done previously for
27151         test_utimens.
27152         * modules/utimens-tests (Files): Ship new file.
27153         * modules/futimens-tests (Files): Likewise.
27154         Reported in part by Jim Meyering.
27155
27156         sys_stat: sort replacement declarations
27157         * lib/sys_stat.in.h: Sort declarations.
27158         * lib/futimens.c (futimens): Fix typo.
27159
27160 2009-10-15  Jim Meyering  <meyering@redhat.com>
27161
27162         don't let environment settings perturb build
27163         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
27164         could cause a configure-time and/or build-time malfunction.
27165         Typically, a configure-time function-in-library test is performed
27166         via code like this:
27167
27168           LIB_VAR=
27169           AC_SUBST([LIB_VAR])
27170           prefix_saved_LIBS=$LIBS
27171             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
27172                        [test "$ac_cv_search_FUNC" = "none required" ||
27173                         LIB_VAR=$ac_cv_search_FUNC])
27174           LIBS=$prefix_saved_LIBS
27175
27176         However, in each of the files affected by this change, the LIB_VAR=
27177         initialization was omitted.  Thus, when set in the environment, its
27178         value would propagate into generated Makefiles when FUNC is not found
27179         in LIB_NAME.
27180         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
27181         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
27182         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27183
27184 2009-10-14  Eric Blake  <ebb9@byu.net>
27185
27186         fchdir: avoid infinite recursion in mingw
27187         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
27188         recursing.
27189
27190         test-stat-time: port to mingw
27191         * tests/test-stat-time.c (force_unlink): Return a value.
27192         (test_ctime) [W32]: Fix compilation error.
27193         (nap): Don't call usleep with too large an argument.  Use
27194         force_unlink.
27195         * doc/pastposix-functions/usleep.texi (usleep): Document the
27196         portability issue.
27197
27198 2009-10-13  Jim Meyering  <meyering@redhat.com>
27199
27200         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
27201         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
27202         * modules/pipe-filter-ii: Likewise.
27203         * modules/sys_socket-tests: Likewise.
27204         * modules/tsearch-tests: Likewise.
27205         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
27206         (check): Depend on it.
27207
27208 2009-10-12  Eric Blake  <ebb9@byu.net>
27209
27210         utimens-tests: port to NFS file systems
27211         * tests/test-utimens.h (test_utimens): Refactor utimecmp
27212         comparisons to avoid spurious failures from timestamp drift
27213         between NFS machines.
27214
27215 2009-10-12  Eric Blake  <ebb9@byu.net>
27216
27217         stat-time-tests: minor cleanups
27218         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
27219         * tests/test-stat-time.c (nap): Separate assignment from call.
27220         Suggested by Paolo Bonzini and Bruno Haible.
27221
27222         sys_stat: guarantee struct timespec
27223         * lib/sys_stat.in.h (includes): Always include <time.h>
27224         * modules/sys_stat (Depends-on): Add time.
27225         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
27226         mode_t permission values.
27227         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
27228         get at subsecond timestamps.
27229
27230 2009-10-10  Eric Blake  <ebb9@byu.net>
27231
27232         futimens: new module
27233         * modules/futimens: New file.
27234         * lib/futimens.c (futimens): Likewise.
27235         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
27236         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
27237         we can work around Linux bugs.
27238         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27239         * modules/sys_stat (Makefile.am): Substitute them.
27240         * lib/sys_stat.in.h (futimens): Declare it.
27241         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27242         * doc/posix-functions/futimens.texi (futimens): Likewise.
27243         * modules/futimens-tests: New test.
27244         * tests/test-futimens.c: Likewise.
27245
27246         utimens: introduce fdutimens
27247         * lib/utimens.h (fdutimens): New prototype.
27248         * lib/utimens.c (gl_futimens): Move guts...
27249         (fdutimens): ...to new interface.
27250         * tests/test-utimens.c (do_fdutimens): Use it.
27251
27252         utimens: add UTIME_NOW and UTIME_OMIT support
27253         * lib/utimens.c (validate_timespec, update_timespec): New helper
27254         functions.
27255         (gl_futimens, lutimens): Use them.
27256         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
27257         stdbool, sys_stat.
27258         (Link): Mention resulting library dependency.
27259         * modules/utimecmp (Link): Likewise.
27260         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
27261         (Makefile.am): Pick up library dependency.
27262         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
27263         definition.
27264         * tests/test-sys_stat.c: Test the definitions.
27265         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
27266         * NEWS: Document library dependency.
27267
27268         utimecmp: support symlink timestamps
27269         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
27270         hashing when possible.  Use pathconf when available.
27271         (SYSCALL_RESOLUTION): Recognize tighter resolution.
27272         * modules/utimecmp (Depends-on): Add lstat.
27273
27274         utimens: add lutimens interface
27275         * lib/utimens.c (lutimens): New function.
27276         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
27277         * lib/utimens.h (lutimens): Declare new interface.
27278         * tests/test-utimens.c (main): Enhance test.
27279         * tests/test-lutimens.h (test_lutimens): New file.
27280         * modules/utimens-tests (Files): Distribute it.
27281         (Depends-on): Add symlink.
27282         (configure.ac): Check for usleep.
27283
27284         utimens: validate futimens usage
27285         * lib/utimens.c (gl_futimens): Require valid fd up front, using
27286         fewer syscalls on failure later on.  Avoid compiler warning on
27287         mingw.
27288         * modules/utimens (Depends-on): Add dup2.
27289
27290         utimens: add test
27291         * modules/utimens-tests: New test.
27292         * tests/test-utimens.h: New file.
27293         * tests/test-futimens.h: Likewise.
27294         * tests/test-utimens.c: Likewise.
27295
27296         doc: mention timestamp portability issues
27297         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
27298         instead.
27299         * doc/posix-functions/utime.texi (utime): Likewise.
27300         * doc/posix-functions/utimes.texi (utimes): Likewise.
27301         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
27302         instead.
27303         * doc/posix-functions/futimens.texi (futimens): Mention utimens
27304         module.
27305         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27306         Mention weakness with symlink timestamps.
27307         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
27308         to utimensat/futimens instead.
27309         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
27310
27311         test-dup2: enhance test
27312         * tests/test-dup2.c (main): Also check AT_FDCWD.
27313
27314         test-stat-time: avoid more spurious failures
27315         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
27316         xfs; and avoid race if the two timestamps cross quantization edge.
27317
27318         relocatable: prefer 'file system' over 'filesystem'
27319         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
27320         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
27321         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
27322         * doc/relocatable.texi (Enabling Relocatability): Likewise.
27323         * lib/relocatable.c (compute_curr_prefix): Likewise.
27324
27325 2009-10-10  Jim Meyering  <meyering@redhat.com>
27326
27327         stat-time-tests: check for the usleep function
27328         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
27329
27330 2009-10-10  Bruno Haible  <bruno@clisp.org>
27331
27332         * modules/xnanosleep: Put the Link section after the Include section.
27333
27334 2009-10-09  Eric Blake  <ebb9@byu.net>
27335
27336         dup2: work around FreeBSD 6.1 bug
27337         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
27338         * doc/posix-functions/dup2.texi (dup2): Document it.
27339         Reported by Nelson H. F. Beebe and Jim Meyering.
27340
27341         test-stat-time: port to buggy NFS clients
27342         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
27343         (test_ctime): Also skip test if mtime and ctime are skewed.
27344
27345         maint: prefer 'file system' over 'filesystem'
27346         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27347         * doc/posix-functions/lstat.texi (lstat): Likewise.
27348         * lib/file-has-acl.c (file_has_acl): Likewise.
27349         * lib/fwriteerror.c [TEST]: Likewise.
27350         * tests/test-areadlink.h (test_areadlink): Likewise.
27351         * tests/test-areadlinkat-with-size.c (main): Likewise.
27352         * tests/test-areadlinkat.c (main): Likewise.
27353         * tests/test-canonicalize-lgpl.c (main): Likewise.
27354         * tests/test-canonicalize.c (main): Likewise.
27355         * tests/test-fstatat.c (main): Likewise.
27356         * tests/test-linkat.c (main): Likewise.
27357         * tests/test-lstat.h (test_lstat_func): Likewise.
27358         * tests/test-mkdir.h (test_mkdir): Likewise.
27359         * tests/test-readlink.h (test_readlink): Likewise.
27360         * tests/test-remove.c (main): Likewise.
27361         * tests/test-rename.h (test_rename): Likewise.
27362         * tests/test-renameat.c (main): Likewise.
27363         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27364         * tests/test-symlink.h (test_symlink): Likewise.
27365         * tests/test-symlinkat.c (main): Likewise.
27366         * tests/test-unlink.h (test_unlink_func): Likewise.
27367         * tests/test-unlinkat.c (main): Likewise.
27368
27369         maint: make realtime library usage explicit
27370         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
27371         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
27372         * modules/settime (Link): Likewise.
27373         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
27374
27375         test-stat-time: speed up execution
27376         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
27377         warning on mingw.
27378         (nap): New helper function.
27379         (prepare_test): Use it to reduce sleep time.
27380         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
27381         execution.
27382         * modules/stat-time-tests (configure.ac): Check for usleep.
27383
27384 2009-10-09  Jim Meyering  <meyering@redhat.com>
27385
27386         selinux-h: always use getfilecon wrappers
27387         * lib/getfilecon.c: New file.
27388         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
27389         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
27390         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
27391         (fgetfilecon): Provide a stub.
27392         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
27393         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
27394         file unconditionally.
27395         When <selinux/selinux.h> is found, arrange to use wrappers.
27396         * modules/selinux-h (Files): Add getfilecon.c.
27397         (Makefile.am): Substitute include-next-related bits
27398         into the now-always-generated selinux/selinux.h file.
27399         * doc/glibc-functions/lgetfilecon.texi: New file.
27400         * doc/glibc-functions/fgetfilecon.texi: New file.
27401         * doc/glibc-functions/getfilecon.texi: New file.
27402         * doc/glibc-functions/getfilecon-desc.texi: New file.
27403         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
27404         which to pull in the new files.
27405         * MODULES.html.sh (Misc): Add selinux-h.
27406
27407 2009-10-08  Jim Meyering  <meyering@redhat.com>
27408
27409         unistd: fix comment typo
27410         * lib/unistd.in.h (euidaccess): Fix a comment typo.
27411
27412 2009-10-08  Eric Blake  <ebb9@byu.net>
27413
27414         areadlink: use SIZE_MAX consistently
27415         * modules/areadlink (Depends-on): Add stdint.
27416         * modules/areadlink-with-size (Depends-on): Likewise.
27417         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
27418         gives NULL; drop sys/types, since unistd gives size_t; and add
27419         stdint for SIZE_MAX.
27420         (SIZE_MAX): Rely on headers.
27421         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
27422         and add stdint.
27423         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
27424         (SIZE_MAX): Likewise.
27425         (INITIAL_BUF_SIZE): Turn into enum.
27426         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
27427
27428 2009-10-08  Jim Meyering  <meyering@redhat.com>
27429
27430         areadlinkat: avoid compilation failure
27431         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
27432         Fix typo in comment.
27433
27434 2009-10-07  Eric Blake  <ebb9@byu.net>
27435
27436         areadlinkat-with-size: new module
27437         * modules/areadlinkat-with-size: New module.
27438         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
27439         * lib/areadlink.h (areadlinkat): Declare it.
27440         * MODULES.html.sh (File system functions): Mention it.
27441         * modules/areadlinkat-with-size-tests: New test.
27442         * tests/test-areadlinkat-with-size.c: New file.
27443
27444         xreadlinkat: new module
27445         * modules/xreadlinkat: New module.
27446         * lib/xreadlinkat.c (xreadlinkat): New file.
27447         * lib/xreadlink.h (xreadlinkat): Declare it.
27448         * MODULES.html.sh (File system functions): Mention it.
27449
27450         areadlinkat: new module
27451         * lib/at-func.c (FUNC_FAIL): New define.
27452         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
27453         * modules/areadlinkat: New module.
27454         * lib/linkat.c (areadlinkat): Move...
27455         * lib/areadlinkat.c (areadlinkat): ...to new file.
27456         * lib/areadlink.h (areadlinkat): Declare it.
27457         * modules/linkat (Depends-on): Add areadlinkat.
27458         * MODULES.html.sh (File system functions): Mention it.
27459         * modules/areadlinkat-tests: New test.
27460         * tests/test-areadlinkat.c: New file.
27461
27462         areadlink, areadlink-with-size: add tests
27463         * modules/areadlink-tests: New test.
27464         * modules/areadlink-with-size-tests: Likewise.
27465         * tests/test-areadlink.h: New file.
27466         * tests/test-areadlink.c: Likewise.
27467         * tests/test-areadlink-with-size.c: Likewise.
27468
27469         maint: minor cleanups
27470         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
27471         _UNUSED_PARAMETER_ instead.
27472         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
27473         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
27474         * modules/linkat-tests (Files): Distribute test-link.h.
27475
27476         openat, utimens: whitespace cleanup
27477         * lib/openat.c: Prefer space throughout, rather than mix of 8
27478         spaces vs. tabs.
27479         * lib/at-func.c: Likewise.
27480         * lib/utimens.c: Likewise.
27481
27482         openat: avoid using wrong fd
27483         * lib/openat.c (openat_permissive): Reject user's fd if saving the
27484         working directory chooses same fd.
27485         * lib/at-func.c (AT_FUNC_NAME): Likewise.
27486
27487         mkdir, mkdirat: fix cygwin 1.5.x bug
27488         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
27489         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
27490         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
27491         bug.
27492         (gl_PREREQ_MKDIR): Delete unused macro.
27493         * modules/mkdir (Files): Track file rename.
27494         (configure.ac): Update macro name.
27495         * modules/openat (Depends-on): Add mkdir.
27496         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
27497
27498         mkdir, mkdirat: add tests
27499         * modules/mkdir-tests: New test.
27500         * tests/test-mkdir.h: New file.
27501         * tests/test-mkdir.c: Likewise.
27502         * tests/test-mkdirat.c: Likewise.
27503         * modules/openat-tests (Files): Add new files.
27504         (Makefile.am): Run new test.
27505
27506 2009-10-06  Eric Blake  <ebb9@byu.net>
27507
27508         doc: tweak *at function documentation
27509         * doc/posix-functions/faccessat.texi (faccessat): Mention
27510         known issue with replacement.
27511         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
27512         * doc/posix-functions/linkat.texi (linkat): Likewise.
27513         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27514         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27515         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27516         * doc/posix-functions/renameat.texi (renameat): Likewise.
27517         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27518
27519         openat: fix GNU/Hurd bug in unlinkat
27520         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
27521         broken.
27522         * doc/posix-functions/unlink.texi (unlink): Document this.
27523         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
27524
27525         fdopendir: fix GNU/Hurd bug
27526         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
27527         allowing non-directory fds.
27528         * lib/fdopendir.c (rpl_fdopendir): Work around it.
27529         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27530         * modules/dirent (Makefile.am): Substitute it.
27531         * lib/dirent.in.h (fdopendir): Declare replacement.
27532         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
27533         * tests/test-fdopendir.c (main): Test something other than
27534         /dev/null, since on Hurd that behaves like a directory.
27535
27536         test-symlink: port to GNU/Hurd
27537         * tests/test-symlink.h (test_symlink): Relax expected errno.
27538
27539         doc: tweak more cygwin information
27540         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
27541         now compatible with glibc.
27542         * doc/posix-functions/getopt.texi (getopt): Likewise.
27543
27544         getopt-gnu: add another test
27545         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
27546         guarantee behavior relied on by m4.
27547         * tests/test-getopt.c (main): Use it.
27548         * modules/getopt-posix-tests (Depends-on): Add setenv.
27549         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
27550
27551         getopt: fix compilation on darwin
27552         * lib/getopt.in.h (includes): Leave breadcrumbs during system
27553         include.
27554         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
27555         Reported by Ludovic Courtès.
27556
27557 2009-10-06  Bruno Haible  <bruno@clisp.org>
27558
27559         * modules/size_max (Description): Discourage its use.
27560         Reported by Simon Josefsson.
27561
27562 2009-10-06  Jim Meyering  <meyering@redhat.com>
27563
27564         linkat: avoid compilation failure
27565         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
27566
27567 2009-10-05  Eric Blake  <ebb9@byu.net>
27568
27569         linkat: support Linux 2.6.17
27570         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
27571         linkat on Linux, but allow cache variable override.
27572         * lib/linkat.c (rpl_linkat): Define override.
27573         * modules/linkat (Depends-on): Add symlinkat.
27574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
27575         * modules/unistd (Makefile.am): Substitute it.
27576         * lib/unistd.in.h (linkat): Declare replacement.
27577         Reported by Pádraig Brady.
27578
27579         quotearg: port test to systems with C.UTF-8 locale
27580         * tests/test-quotearg.c (struct result_strings): Add another
27581         member, differentiating between C.ASCII and C.UTF-8 handling.
27582         (compare_strings): Add parameter.
27583         (main): Adjust all callers.
27584
27585         getopt: avoid clash with FreeBSD _getopt_internal
27586         * lib/getopt.in.h (_getopt_internal): Override the name.
27587         * lib/getopt_int.h (includes): Pick up any overrides.
27588         Reported by Reuben Thomas.
27589
27590         hash: allow C89 compilation
27591         * lib/hash.c (check_tuning): Move declaration before statement.
27592         Reported by Reuben Thomas.
27593
27594 2009-10-05  Karl Berry  <karl@gnu.org>
27595
27596         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
27597
27598 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
27599             Bruno Haible  <bruno@clisp.org>
27600
27601         * lib/uname.c (uname): Use a table-driven algorithm to compute
27602         Windows NT versions.
27603
27604 2009-10-04  Bruno Haible  <bruno@clisp.org>
27605
27606         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
27607         program_invocation_short_name.
27608         * modules/progname (configure.ac): Test for presence of
27609         program_invocation_short_name.
27610         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
27611
27612 2009-10-04  Bruno Haible  <bruno@clisp.org>
27613
27614         * lib/progname.c (set_program_name): Fix comment.
27615         Reported by Jim Meyering.
27616
27617 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27618             Bruno Haible  <bruno@clisp.org>
27619
27620         * lib/uname.c: Include <string.h>.
27621         (uname): Do only one call to GetVersionEx in the common case.
27622
27623 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27624             Bruno Haible  <bruno@clisp.org>
27625
27626         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
27627         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
27628         (uname): Add support for Windows CE and various non-x86 CPU types.
27629
27630 2009-10-03  Bruno Haible  <bruno@clisp.org>
27631
27632         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
27633         invocation to tests/configure.ac.
27634         Reported by Ian Beckwith <ianb@erislabs.net>.
27635
27636 2009-10-02  Eric Blake  <ebb9@byu.net>
27637
27638         fchdir: avoid compiler warning
27639         * lib/fchdir.c (canonicalize_file_name)
27640         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
27641
27642         test-open: support mingw errno values
27643         * tests/test-open.h (test_open): Relax test.
27644         * tests/test-fopen.h (test_fopen): Likewise.
27645         * tests/test-openat-safer.c (main): Likewise.
27646
27647         open: fix opening directory on mingw
27648         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
27649
27650         test-open: on GNU/Hurd, /dev/null is a directory
27651         * tests/test-fopen.h (main): Rename...
27652         (test_fopen): ...to this.  Use a guaranteed non-directory when
27653         confirming open behavior on trailing slash.
27654         * tests/test-openat-safer.c (main): Likewise.
27655         * tests/test-open.h (main): Likewise....
27656         (test_open): ...to this.
27657         * tests/test-fopen.c (main): Adjust caller.
27658         * tests/test-fopen-safer.c (main): Likewise.
27659         * tests/test-open.c (main): Likewise.
27660         * tests/test-fcntl-safer.c (main): Likewise.
27661         Reported by Samuel Thibault.
27662
27663         rename, fchdir: don't ignore chdir failure
27664         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
27665         * lib/rename.c (rpl_rename) [W32]: Likewise.
27666         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
27667         an empty destination directory if source cannot be renamed,
27668         although there is still possibility for failure.
27669         * doc/posix-functions/rename.texi (rename): Document the race.
27670         Reported by Jim Meyering.
27671
27672         maint: cleanup whitespace in recent commits
27673         * lib/rename.c (rpl_rename): Remove tabs.
27674         * tests/test-link.h (test_link): Likewise.
27675         * lib/fchdir.c (get_name): Likewise.
27676         Reported by Jim Meyering.
27677
27678 2009-10-02  Ben Pfaff  <blp@gnu.org>
27679
27680         relocatable-prog-wrapper: Add missing dependency on
27681         double-slash-root.
27682         * modules/relocatable-prog-wrapper: Add dependency.
27683         Reported by Ian Beckwith <ianb@erislabs.net>.
27684
27685 2009-10-02  Eric Blake  <ebb9@byu.net>
27686
27687         renameat: fix Solaris bugs
27688         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
27689         needed fixing.
27690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
27691         * modules/stdio (Makefile.am): Substitute it.
27692         * lib/stdio.in.h (renameat): Declare replacement.
27693         * lib/renameat.c (rpl_renameat): Implement fix.
27694
27695         renameat: new module
27696         * modules/renameat: New file.
27697         * lib/renameat.c (renameat): Likewise.
27698         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
27699         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27700         * modules/stdio (Makefile.am): Substitute them.
27701         * lib/stdio.in.h (renameat): Declare it.
27702         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27703         * doc/posix-functions/renameat.texi (renameat): Likewise.
27704         * modules/renameat-tests: New test.
27705         * tests/test-renameat.c: Likewise.
27706
27707         rename: fix mingw bugs
27708         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
27709         directory overwrite bugs.
27710
27711         rename: fix another cygwin 1.5 bug
27712         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
27713         checks.
27714         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
27715         unnecessary cygwin workarounds.  Also work around bug with moving
27716         full directory onto an empty one.
27717         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
27718
27719         rename-dest-slash: merge into rename module
27720         * modules/rename-dest-slash (Status): Mark obsolete.
27721         (Depends-on): Add rename.
27722         (Files): Let rename do it all.
27723         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
27724         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
27725         * m4/rename-dest-slash.m4: ...so this file can be deleted.
27726         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
27727         * lib/rename.c (rpl_rename): Update comments.
27728
27729         rename: fix cygwin 1.5.x bugs
27730         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
27731         * lib/rename.c (rpl_rename): Work around them.
27732         * modules/rename (Depends-on): Add same-inode.
27733
27734         rename: fix Solaris 10 bug
27735         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27736         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
27737         was the only bug.
27738
27739         rename: fix Solaris 9 bug
27740         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
27741         on non-directory.  Avoid calling exit.
27742         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
27743         strdup.
27744         * modules/rename-tests (Depends-on): Drop lstat.
27745         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27746         (gl_PREREQ_RENAME): Delete unused macro.
27747
27748         rename-dest-slash: fix NetBSD bug
27749         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
27750         links.
27751         * modules/rename-dest-slash (Depends-on): Add same-inode.
27752
27753         rename-tests: new test, exposes several platform bugs
27754         * modules/rename-tests: New file.
27755         * tests/test-rename.h: Likewise.
27756         * tests/test-rename.c: Likewise.
27757         * doc/posix-functions/rename.texi (rename): Improve documentation,
27758         including bugs that will eventually be fixed in gnulib.
27759
27760 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
27761
27762         * lib/uname.c: Include <stdlib.h>
27763         (uname): Assume version info is available.
27764
27765 2009-10-02  Jim Meyering  <meyering@redhat.com>
27766
27767         gnu-web-doc-update: correct --help output
27768         * build-aux/gnu-web-doc-update: Make --help output relevant.
27769
27770         gnu-web-doc-update: add standard options
27771         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
27772
27773         gnu-web-doc-update: New module.
27774         Use this script to automatically update the on-line web documentation
27775         for your GNU project at http://www.gnu.org/software/$pkg/manual/
27776         * modules/gnu-web-doc-update: New file, from coreutils.
27777         * build-aux/gnu-web-doc-update: New script.
27778
27779 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
27780
27781         link: LoadLibrary is not needed.
27782         * lib/link.c: Use GetModuleHandle.
27783
27784 2009-10-01  Eric Blake  <ebb9@byu.net>
27785
27786         getopt: bump serial number
27787         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
27788         change.
27789
27790         tests: tighten link, rmdir, and remove tests
27791         * tests/test-link.h (includes): No need to use <config.h> here.
27792         Clean up if directory hard link was created, otherwise test for
27793         trailing '.'.
27794         * tests/test-linkat.c (main): Simplify.
27795         * tests/test-remove.c (main): Enhance test for trailing '.'.
27796         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27797
27798 2009-10-01  Jim Meyering  <meyering@redhat.com>
27799
27800         maint.mk: requiring "make major" was annoying, for a "minor" release.
27801         What is intended is "stable", to contrast with alpha and beta,
27802         so require "make stable", not "make major".
27803         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
27804         (get_tool_versions): Likewise.
27805         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
27806
27807 2009-09-30  Ben Pfaff  <blp@gnu.org>
27808
27809         Fix broken build of replacement for Windows tmpfile().
27810         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
27811         flags argument added along with the 'mkostemp' module.
27812
27813 2009-09-28  Bruno Haible  <bruno@clisp.org>
27814
27815         Avoid identifier clash with POSIX function 'remove' defined as a macro.
27816         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
27817         to 'remove_elt'.
27818         (gl_list_remove): Update.
27819         * lib/gl_list.c (gl_list_remove): Update.
27820         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
27821         to 'remove_elt'.
27822         (gl_oset_remove): Update.
27823         * lib/gl_list.c (gl_oset_remove): Update.
27824         Reported by Eric Blake.
27825
27826 2009-09-28  Eric Blake  <ebb9@byu.net>
27827
27828         doc: mention yet more cygwin 1.7 status
27829         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
27830         cygwin.
27831         * doc/glibc-functions/execvpe.texi (execvpe): New file.
27832         * doc/gnulib.texi (Glibc unistd.h): Mention it.
27833
27834         argp: fix test failure
27835         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
27836         that are not upper-case.  Pass correct range to tolower.
27837
27838 2009-09-27  Jim Meyering  <meyering@redhat.com>
27839
27840         test-yesno: work around sparc-dash here-document infelicity
27841         Without this change, the literal \177 byte in a here document
27842         would make dash 0.5.5.1-3 access uninitialized memory.
27843         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
27844         Instead, use a marker, "@", and filter through tr to create the desired
27845         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
27846
27847 2009-09-27  Bruno Haible  <bruno@clisp.org>
27848
27849         Disable untested support for new flavours of ACLs on AIX.
27850         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
27851         progress.
27852         * lib/set-mode-acl.c (qset_acl): Likewise.
27853
27854 2008-12-07  Bruno Haible  <bruno@clisp.org>
27855
27856         Add support for new flavours of ACLs on AIX. (Untested.)
27857         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
27858         (file_has_acl): Add support for newer AIX.
27859         * lib/set-mode-acl.c (qset_acl): Likewise.
27860         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
27861         Rainer Tammer <tammer@tammer.net>.
27862
27863 2009-09-26  Eric Blake  <ebb9@byu.net>
27864
27865         argp: fix compilation of getopt
27866         * lib/getopt.in.h (includes): Use different guard than glibc.
27867         Reported by Sergey Poznyakoff.
27868
27869         doc: mention more cygwin 1.7 status
27870         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
27871         bug.
27872         * doc/posix-functions/execl.texi (execl): Likewise.
27873         * doc/posix-functions/execle.texi (execle): Likewise.
27874         * doc/posix-functions/execlp.texi (execlp): Likewise.
27875         * doc/posix-functions/execv.texi (execv): Likewise.
27876         * doc/posix-functions/execve.texi (execve): Likewise.
27877         * doc/posix-functions/execvp.texi (execvp): Likewise.
27878         * doc/glibc-functions/canonicalize_file_name.texi
27879         (canonicalize_file_name): Cygwin 1.7 now provides this.
27880         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
27881         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
27882         on AT_SYMLINK_NOFOLLOW.
27883
27884 2009-09-24  Eric Blake  <ebb9@byu.net>
27885
27886         test-linkat: make test more robust
27887         * tests/test-linkat.c (main): Avoid collision with EEXIST.
27888
27889         getopt: fix inclusion guards for cygwin
27890         * modules/getopt-posix (Depends-on): Add include-next.
27891         (Makefile.am): Substitute more items in replacement header.
27892         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
27893         <getopt.h>.
27894         * lib/getopt.in.h (includes): Use split inclusion guard, and
27895         prefer <getopt.h> over include <unistd.h> when one is present.
27896         (option): Also override name of 'struct option'.
27897
27898         same-inode: revert prior change; it is not yet ready
27899         * NEWS: Undo mention of this change.
27900         * lib/same-inode.h (same-inode.h): Undo tri-state change.
27901         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27902         * lib/cycle-check.c (cycle_check): Likewise.
27903         * lib/same.c (same_name): Likewise.
27904         * lib/at-func2.c (at_func2): Likewise.
27905
27906 2009-09-23  Eric Blake  <ebb9@byu.net>
27907
27908         linkat: new module
27909         * modules/linkat: New file.
27910         * lib/at-func2.c (at_func2): Likewise.
27911         * lib/linkat.c (linkat): Likewise.
27912         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27913         * lib/openat-priv.h (at_func2): Add declaration.
27914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27915         * modules/unistd (Makefile.am): Substitute them.
27916         * lib/unistd.in.h (linkat): Declare it.
27917         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27918         * doc/posix-functions/linkat.texi (linkat): Likewise.
27919         * doc/posix-functions/link.texi (link): Tweak wording.
27920         * tests/test-link.c (main): Move guts...
27921         * tests/test-link.h (test_link): ...into new file.
27922         * modules/linkat-tests: New test.
27923         * tests/test-linkat.c: Likewise.
27924         * modules/link-tests (Files): Ship new file.
27925         (Depends-on): Add stdbool.
27926
27927         dirname: add library-safe mdir_name
27928         * lib/dirname.h (mdir_name): New prototype.
27929         * lib/dirname.c (dir_name): Move guts...
27930         (mdir_name): ...to new function that avoids xalloc_die.
27931
27932         fchdir: another mingw fix
27933         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
27934         * lib/fchdir.c (get_name): New helper method; skips canonicalize
27935         on mingw (where it has not yet been ported), and make it optional
27936         elsewhere.
27937         (_gl_register_fd): Use it.
27938
27939         same-inode: make SAME_INODE tri-state, to port to mingw
27940         * NEWS: Mention this change.
27941         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
27942         st_ino always being 0.
27943         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27944         * lib/cycle-check.c (cycle_check): Likewise.
27945         * lib/same.c (same_name): Likewise.
27946
27947         lstat: avoid mingw compilation error
27948         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
27949         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
27950         lstat ourselves.
27951         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
27952         was adequate.
27953         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
27954         the checks for lstat.
27955         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
27956
27957         link: fix test failure on Solaris 9
27958         * lib/link.c (rpl_link): Don't assume link will catch bogus
27959         trailing slash on source.
27960
27961         test-symlinkat: enhance test
27962         * tests/test-readlink.c (main): Move guts...
27963         * tests/test-readlink.h (test_readlink): ...into new file.
27964         * tests/test-symlink.c (main): Move guts...
27965         * tests/test-symlink.h (test_symlink): ...into new file.
27966         * tests/test-symlinkat.c (main): Use new files for further
27967         coverage.
27968         (do_symlink, do_readlink): New helper functions.
27969         * modules/symlink-tests (Files): Ship new file.
27970         (Depends-on): Add stdbool.
27971         * modules/readlink-tests (Files): Ship new file.
27972         (Depends-on): Add stdbool.
27973         * modules/symlinkat-tests (Files): Use new files.
27974
27975 2009-09-23  Eric Blake  <ebb9@byu.net>
27976
27977         readlink: document portability issue with symlink length
27978         * doc/posix-functions/lstat.texi (lstat): Mention that some file
27979         systems have bogus st_size on symlinks, and mention the
27980         areadlink-with-size module.
27981         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27982         * doc/posix-functions/readlink.texi (readlink): Mention the
27983         areadlink module, and ERANGE failure.
27984         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27985         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
27986
27987         readlink: fix Solaris 9 bug with trailing slash
27988         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
27989         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
27990         * doc/posix-functions/readlink.texi (readlink): Document this.
27991         * modules/readlink-tests: New test.
27992         * tests/test-readlink.c: Likewise.
27993
27994         readlink: fix cygwin 1.5.x bug with return type
27995         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
27996         * lib/unistd.in.h (readlink): Use ssize_t.
27997         * lib/readlink.c (readlink): Likewise.
27998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27999         * modules/unistd (Makefile.am): Substitute it.
28000         * lib/unistd.in.h (readlink): Declare replacement.
28001         * doc/posix-functions/readlink.texi (readlink): Document this.
28002
28003         symlink: use throughout gnulib
28004         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
28005         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
28006         symlink is not used.
28007         * modules/symlinkat (Depends-on): Add symlink.
28008         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28009         * modules/canonicalize-tests (Depends-on): Likewise.
28010         * modules/lstat-tests (Depends-on): Likewise.
28011         * modules/openat-tests (Depends-on): Likewise.
28012         * modules/remove-tests (Depends-on): Likewise.
28013         * modules/rmdir-tests (Depends-on): Likewise.
28014         * modules/unlink-tests (Depends-on): Likewise.
28015         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
28016         * tests/test-canonicalize.c (symlink): Likewise.
28017         * tests/test-fstatat.c (symlink): Likewise.
28018         * tests/test-lstat.c (symlink): Likewise.
28019         * tests/test-remove.c (symlink): Likewise.
28020         * tests/test-rmdir.c (symlink): Likewise.
28021         * tests/test-unlink.c (symlink): Likewise.
28022         * tests/test-unlinkat.c (symlink): Likewise.
28023
28024         symlink: new module, for Solaris 9 bug
28025         * modules/symlink: New file.
28026         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28027         * lib/symlink.c: Likewise.
28028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
28029         * modules/unistd (Makefile.am): Substitute them.
28030         * lib/unistd.in.h (symlink): Declare replacement.
28031         * MODULES.html.sh (File system functions): Mention it.
28032         * doc/posix-functions/symlink.texi (symlink): Likewise.
28033         * modules/symlink-tests: New test.
28034         * tests/test-symlink.c: Likewise.
28035
28036 2009-09-23  Bruno Haible  <bruno@clisp.org>
28037
28038         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
28039         when needed.
28040         Test case: gnulib-tool --import --with-tests atexit inttypes.
28041         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
28042
28043 2009-09-23  Bruno Haible  <bruno@clisp.org>
28044
28045         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
28046         subcommand, not in a subshell.
28047
28048 2009-09-22  Eric Blake  <ebb9@byu.net>
28049
28050         unistd: sort replacement declarations
28051         * lib/unistd.in.h: Sort declarations.
28052
28053         open, openat: minor optimization
28054         * lib/open.c (open): If open succeeded, len is non-zero.
28055         * lib/openat.c (rpl_openat): Likewise.
28056
28057         link-follow: ensure correct result
28058         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
28059         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
28060         distinguish between possible failures.
28061
28062 2009-09-21  Eric Blake  <ebb9@byu.net>
28063
28064         fts: avoid compiler warning
28065         * lib/fts.c (dirent_inode_sort_may_be_useful)
28066         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
28067
28068 2009-09-19  Bruno Haible  <bruno@clisp.org>
28069
28070         * lib/progreloc.c (canonicalize_file_name): New declaration.
28071
28072 2009-09-19  Eric Blake  <ebb9@byu.net>
28073
28074         link: fix quoting
28075         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
28076
28077         openat: fix openat bugs on Solaris 9
28078         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
28079         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
28080         * modules/openat (Depends-on): Add open.
28081         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
28082         * modules/fcntl-h (Makefile.am): Substitute it.
28083         * lib/fcntl.in.h (openat): Declare replacement.
28084         * doc/posix-functions/openat.texi (openat): Document this.
28085
28086         openat: move fstatat and unlinkat into correct files
28087         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
28088         compiled.
28089         * lib/openat.c (fstatat, unlinkat): Move...
28090         * lib/fstatat.c (fstatat): ...into correct files.
28091         * lib/unlinkat.c (unlinkat): Likewise.
28092
28093         openat: fix unlinkat bugs on Solaris 9
28094         * lib/unlinkat.c (unlinkat): New file.
28095         * modules/openat (Depends-on): Add unlink.
28096         (Files): Distribute it.
28097         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
28098         trailing slash behavior is broken.
28099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28100         * modules/unistd (Makefile.am): Substitute it.
28101         * lib/unistd.in.h (unlinkat): Declare replacement.
28102         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
28103
28104         openat: fix fstatat bugs on Solaris 9
28105         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
28106         stat.
28107         * doc/posix-functions/fstatat.texi (fstatat): Document this.
28108
28109         test-unlinkat: enhance test, to expose Solaris 9 bug
28110         * tests/test-unlink.c (main): Factor guts...
28111         * tests/test-unlink.h (test_rmdir_func): ...into new file.
28112         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
28113         * tests/test-rmdir.c (main): Adjust caller.
28114         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
28115         (unlinker): New helper function.
28116         (rmdirat): Enhance check.
28117         * modules/rmdir-tests (Depends-on): Add stdbool.
28118         * modules/unlink-tests (Depends-on): Likewise.
28119         (Files): Add test-unlink.h.
28120         * modules/openat-tests (Files): Likewise.
28121         (Depends-on): Add unlinkdir.
28122
28123         test-fstatat: new test, to expose Solaris 9 bugs
28124         * tests/test-stat.c (main): Factor guts...
28125         * tests/test-stat.h (test_stat_func): ...into new file.
28126         * tests/test-lstat.c (main): Factor guts...
28127         * tests/test-lstat.h (test_lstat_func): ...into new file.
28128         * tests/test-fstatat.c: New file.
28129         * modules/stat-tests (Files): Add test-stat.h.
28130         * modules/lstat-tests (Files): Add test-lstat.h.
28131         (Depends-on): Add stdbool.
28132         * modules/openat-tests (Depends-on): Add pathmax.
28133         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
28134         (Makefile.am): Run new test.
28135
28136         remove: new module, for mingw and Solaris 9 bugs
28137         * modules/remove: New file.
28138         * lib/remove.c: Likewise.
28139         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
28140         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
28141         * modules/stdio (Makefile.am): Use them.
28142         * lib/stdio.in.h (remove): Declare replacement.
28143         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28144         * doc/posix-functions/remove.texi (remove): Likewise.
28145         * modules/remove-tests: New test.
28146         * tests/test-remove.c: Likewise.
28147
28148         unlink: new module, for Solaris 9 bug
28149         * modules/unlink: New file.
28150         * lib/unlink.c: Likewise.
28151         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28153         * modules/unistd (Makefile.am): Use them.
28154         * lib/unistd.in.h (stat): Declare replacement.
28155         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28156         * doc/posix-functions/unlink.texi (unlink): Likewise.
28157         * modules/unlink-tests: New test.
28158         * tests/test-unlink.c: Likewise.
28159
28160         lstat: fix Solaris 9 bug
28161         * lib/lstat.c (lstat): Also check for trailing slash on
28162         non-symlink, non-directories.  Use stat module to simplify logic.
28163         * doc/posix-functions/lstat.texi (lstat): Document it.
28164         * modules/lstat-tests (Depends-on): Add errno, same-inode.
28165         (configure.ac): Check for symlink.
28166         * tests/test-lstat.c (main): Add more tests.
28167
28168         stat: add as dependency to other modules
28169         * modules/chown (Depends-on): Add stat.
28170         * modules/euidaccess (Depends-on): Likewise.
28171         * modules/fchdir (Depends-on): Likewise.
28172         * modules/isdir (Depends-on): Likewise.
28173         * modules/link (Depends-on): Likewise.
28174         * modules/lstat (Depends-on): Likewise.
28175         * modules/mkdir-p (Depends-on): Likewise.
28176         * modules/modechange (Depends-on): Likewise.
28177         * modules/open (Depends-on): Likewise.
28178         * modules/readlink (Depends-on): Likewise.
28179         * modules/same (Depends-on): Likewise.
28180
28181         stat: fix Solaris 9 bug
28182         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
28183         slash.
28184         * lib/stat.c (rpl_stat): Work around it.
28185         * doc/posix-functions/stat.texi (stat): Update documentation.
28186
28187         stat: new module, for mingw bug
28188         * modules/stat: New file.
28189         * lib/stat.c: Likewise.
28190         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28191         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28192         * modules/sys_stat (Makefile.am): Use them.
28193         * lib/sys_stat.in.h (stat): Declare replacement.
28194         * lib/openat.c (fstatat): Deal with lstat and stat being function
28195         macros.
28196         * modules/openat (Depends-on): Add inline.
28197         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28198         * doc/posix-functions/stat.texi (stat): Likewise.
28199         * modules/stat-tests: New test.
28200         * tests/test-stat.c: Likewise.
28201
28202 2009-09-19  Jim Meyering  <meyering@redhat.com>
28203
28204         syntax-check: detect unnecessary inclusion of canonicalize.h
28205         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
28206
28207 2009-09-19  Eric Blake  <ebb9@byu.net>
28208
28209         canonicalize-lgpl: adjust clients to use correct header
28210         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28211         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
28212         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
28213         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
28214         * lib/progreloc.c (includes): Likewise.
28215
28216 2009-09-19  Jim Meyering  <meyering@redhat.com>
28217
28218         test-posixtm.c: correct a comment
28219         * tests/test-posixtm.c: Correct first-line comment.
28220         Spotted by Eric Blake.
28221
28222 2009-09-16  Jim Meyering  <meyering@redhat.com>
28223
28224         posixtm-tests: make T const-correct; add a test case
28225         * tests/test-posixtm.c (T): Declare const.
28226         Add a test for -(2^31+1).
28227         Remove useless can-succeed-only-in-2002 test.
28228
28229         posixtm-tests: adjust the sole failing test
28230         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
28231         expected output matches what mktime now produces.  Cross-checked via
28232         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
28233
28234         posixtm: move #ifdef'd tests into a new module
28235         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
28236         * tests/test-posixtm.c: ... this new file.
28237         * modules/posixtm-tests: New module.
28238
28239 2009-09-19  Eric Blake  <ebb9@byu.net>
28240
28241         openat: simplify use of at-func.c
28242         * lib/at-func.c (includes): Include prerequisites here, to
28243         simplify requirements on client files.
28244         * lib/openat-priv.h: Add double-inclusion guard.
28245         * lib/faccessat.c (includes): Simplify.
28246         * lib/fchmodat.c (includes): Likewise.
28247         * lib/fchownat.c (includes): Likewise.
28248         * lib/mkdirat.c (includes): Likewise.
28249         * lib/mkfifoat.c (includes): Likewise.
28250         * lib/symlinkat.c (includes): Likewise.
28251
28252         openat: allow return of fd 0
28253         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
28254         * modules/save-cwd (Depends-on): Replace fcntl-safer with
28255         unistd-safer.
28256         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
28257         <fcntl.h>; this module does not leak fds.
28258         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
28259         must be allowed to return 0, leaving openat_safer to add the
28260         safety.
28261         (openat_permissive): Avoid writing to just-opened fd 2 if
28262         restoring the current directory fails.
28263         * lib/openat-die.c (openat_restore_fail): Add comment.
28264         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
28265         (save_cwd): Guarantee safe fd, but without use of open_safer.
28266         * tests/test-openat.c: New test.
28267         * modules/openat-tests (Files, Makefile.am): Distribute and build
28268         new file.
28269
28270         relocatable-prog-wrapper: fix build
28271         * modules/relocatable-prog-wrapper (Files): Update name of
28272         canonicalize m4 file, broken on 2009-09-17.
28273         Reported by emad hajjar <aleppos@hotmail.com>.
28274
28275 2009-09-19  Bruno Haible  <bruno@clisp.org>
28276
28277         * lib/safe-alloc.h: Use the standard header with GPL copyright.
28278         * lib/safe-alloc.c: Likewise.
28279         Reported by Ian Beckwith <ianb@erislabs.net>.
28280
28281 2009-09-18  Bruno Haible  <bruno@clisp.org>
28282
28283         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
28284         Reported by <erobles@sensacd.com.mx>.
28285
28286 2009-09-17  Eric Blake  <ebb9@byu.net>
28287
28288         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
28289         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
28290         slashes when checking if last component is missing.
28291         * tests/test-canonicalize.c (main): Test this.
28292
28293         canonicalize, canonicalize-lgpl: honor // if distinct from /
28294         * modules/canonicalize (Files): Add double-slash-root.m4.
28295         * modules/canonicalize-lgpl (Files): Likewise.
28296         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28297         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
28298         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
28299         fallback definition.
28300         (canonicalize_filename_mode): Use it to protect //.
28301         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
28302         (__realpath): Likewise.
28303         * tests/test-canonicalize.c (main): Test this.
28304         * tests/test-canonicalize-lgpl.c (main): Likewise.
28305         * modules/canonicalize-tests (Depends-on): Add same-inode.
28306         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28307
28308         canonicalize-lgpl: fix glibc bug with trailing slash
28309         * m4/canonicalize-lgpl.m4: Move contents...
28310         * m4/canonicalize.m4: ...here.
28311         (gl_CANONICALIZE_LGPL): Factor realpath check...
28312         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
28313         glibc 2.3.5 bug, fixed 2005-04-27.
28314         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
28315         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
28316         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
28317         * modules/canonicalize-lgpl (Files): Manage file rename.
28318         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
28319         * modules/stdlib (Makefile.am): Substitute witness.
28320         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
28321         is needed.
28322         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
28323         replacement is required.
28324         * lib/canonicalize.c (canonicalize_file_name): Likewise.
28325         * doc/glibc-functions/canonicalize_file_name.texi
28326         (canonicalize_file_name): Document this.
28327         * doc/posix-functions/realpath.texi (realpath): Likewise.
28328
28329         canonicalize-lgpl: reject non-directory with trailing slash
28330         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
28331         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
28332         catches failures in glibc 2.3.5.
28333         * tests/test-canonicalize.c (main): Likewise.
28334
28335         canonicalize-lgpl: use native realpath if it works
28336         * lib/canonicalize-lgpl.c (realpath): Guard with
28337         FUNC_REALPATH_WORKS.
28338         * lib/stdlib.in.h (realpath): Make declaration optional based on
28339         HAVE_REALPATH.
28340         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
28341         native realpath works.
28342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
28343         * modules/stdlib (Makefile.am): Substitute witness.
28344
28345         canonicalize, canonicalize-lgpl: use <stdlib.h>
28346         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
28347         (Include): Mention <stdlib.h>.
28348         (configure.ac): Mention functions we provide.
28349         * modules/canonicalize (configure.ac): Likewise.
28350         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
28351         realpath if canonicalize_file_name is missing.
28352         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
28353         * modules/stdlib (Makefile.am): Substitute witnesses.
28354         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
28355         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
28356         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
28357         * NEWS: Document this.
28358         * doc/glibc-functions/canonicalize_file_name.texi
28359         (canonicalize_file_name): Likewise.
28360         * doc/posix-functions/realpath.texi (realpath): Likewise.
28361         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
28362
28363         test-canonicalize: consolidate into single C program
28364         * tests/test-canonicalize.sh: Delete; move setup into...
28365         * tests/test-canonicalize.c (main): ...the program, making it
28366         easier to run in debugger.  Add some tests.
28367         * modules/canonicalize-tests (Files): Remove unused file.
28368         (Depends-on): Add progname.
28369         (configure.ac, Makefile.am): Simplify.
28370
28371         test-canonicalize-lgpl: consolidate into single C program
28372         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
28373         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
28374         easier to run in debugger.  Add some tests.
28375         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
28376         (configure.ac, Makefile.am): Simplify.
28377
28378         canonicalize: avoid resolvepath
28379         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
28380         unnecessary checks.
28381         * lib/canonicalize.c (includes): Simplify.
28382         (canonicalize_file_name): Drop resolvepath implementation.
28383         * modules/canonicalize (Depends-on): Drop filenamecat.
28384
28385         canonicalize: don't lose errno
28386         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
28387         over calls to free.
28388
28389         canonicalize: simplify errno handling
28390         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
28391         assignment.
28392
28393         canonicalize, canonicalize-lgpl: update module dependencies
28394         * modules/canonicalize (Depends-on): Add extensions, lstat,
28395         pathmax, stdlib.
28396         (Files): Drop pathmax.h.
28397         (configure.ac): Adjust macro name.
28398         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
28399         lstat, stdlib, sys_stat.
28400         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
28401         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
28402         extensions.
28403         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
28404         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
28405         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
28406         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
28407         declaration, if available.
28408         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
28409         we can rely on the readlink module.
28410         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
28411         (includes): Use <unistd.h> unconditionally.
28412
28413 2009-09-17  Eric Blake  <ebb9@byu.net>
28414
28415         maint: make Include sections of modules consistent
28416         * modules/alloca: Use only header name; no need to list #include.
28417         * modules/alloca-opt: Likewise.
28418         * modules/arpa_inet: Likewise.
28419         * modules/canon-host: Likewise.
28420         * modules/configmake: Likewise.
28421         * modules/dirent: Likewise.
28422         * modules/eealloc: Likewise.
28423         * modules/environ: Likewise.
28424         * modules/fchdir: Likewise.
28425         * modules/fcntl: Likewise.
28426         * modules/fcntl-h: Likewise.
28427         * modules/gethrxtime: Likewise.
28428         * modules/gettime: Likewise.
28429         * modules/ignore-value: Likewise.
28430         * modules/inet_ntop: Likewise.
28431         * modules/inet_pton: Likewise.
28432         * modules/inttypes: Likewise.
28433         * modules/isnand-nolibm: Likewise.
28434         * modules/isnanf-nolibm: Likewise.
28435         * modules/mbchar: Likewise.
28436         * modules/mbfile: Likewise.
28437         * modules/mbiter: Likewise.
28438         * modules/mbuiter: Likewise.
28439         * modules/netdb: Likewise.
28440         * modules/netinet_in: Likewise.
28441         * modules/nproc: Likewise.
28442         * modules/pagealign_alloc: Likewise.
28443         * modules/poll: Likewise.
28444         * modules/printf-frexp: Likewise.
28445         * modules/pthread: Likewise.
28446         * modules/putenv: Likewise.
28447         * modules/random_r: Likewise.
28448         * modules/relocatable-prog: Likewise.
28449         * modules/search: Likewise.
28450         * modules/select: Likewise.
28451         * modules/selinux-h: Likewise.
28452         * modules/settime: Likewise.
28453         * modules/signal: Likewise.
28454         * modules/size_max: Likewise.
28455         * modules/socklen: Likewise.
28456         * modules/ssize_t: Likewise.
28457         * modules/stdarg: Likewise.
28458         * modules/stdbool: Likewise.
28459         * modules/stddef: Likewise.
28460         * modules/stdint: Likewise.
28461         * modules/stdio: Likewise.
28462         * modules/stdlib: Likewise.
28463         * modules/string: Likewise.
28464         * modules/strings: Likewise.
28465         * modules/sys_file: Likewise.
28466         * modules/sys_ioctl: Likewise.
28467         * modules/sys_select: Likewise.
28468         * modules/sys_socket: Likewise.
28469         * modules/sys_stat: Likewise.
28470         * modules/sys_time: Likewise.
28471         * modules/sys_times: Likewise.
28472         * modules/sys_utsname: Likewise.
28473         * modules/sys_wait: Likewise.
28474         * modules/sysexits: Likewise.
28475         * modules/time: Likewise.
28476         * modules/times: Likewise.
28477         * modules/tmpfile: Likewise.
28478         * modules/trim: Likewise.
28479         * modules/unistd: Likewise.
28480         * modules/wchar: Likewise.
28481         * modules/wctype: Likewise.
28482
28483 2009-09-17  Bruno Haible  <bruno@clisp.org>
28484
28485         Make getdate.y compile on QNX and NetBSD 5 / i386.
28486         * m4/getdate.m4 (gl_GETDATE): Conditionally define
28487         TIME_T_FITS_IN_LONG_INT.
28488         * lib/getdate.y (long_time_t): New type.
28489         (relative_time): Change type of 'seconds' field to long_time_t.
28490         (get_date): Update types of local variables. Check against overflow
28491         during conversion from long_time_t to time_t.
28492         Reported by Matt Kraai <kraai@ftbfs.org>
28493         and Hasso Tepper <hasso@netbsd.org>.
28494
28495 2009-09-17  Bruno Haible  <bruno@clisp.org>
28496
28497         * modules/COPYING: Update copyright years.
28498         * modules/README: Likeiwse.
28499         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
28500         Reported by Ian Beckwith <ianb@erislabs.net>.
28501
28502 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
28503
28504         * users.txt: Update references for gnuit package.
28505
28506 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
28507
28508         * m4/getdelim.m4: Fix typo in copyright line.
28509
28510 2009-09-17  Bruno Haible  <bruno@clisp.org>
28511
28512         * lib/atoll.c: Use the standard header with GPL copyright.
28513         * lib/argz.in.h: Likewise.
28514         * lib/glob.c: Likewise.
28515         * lib/glob-libc.h: Likewise.
28516         * lib/random_r.c: Likewise.
28517         * lib/siglist.h: Likewise.
28518         * lib/strsignal.c: Likewise.
28519         Reported by Ian Beckwith <ianb@erislabs.net>.
28520
28521 2009-09-17  Eric Blake  <ebb9@byu.net>
28522
28523         rmdir: ensure correct dependency order
28524         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
28525
28526 2009-09-17  Bruno Haible  <bruno@clisp.org>
28527
28528         Disable assertion that fails on NetBSD 5 / i386.
28529         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
28530         Reported by Sam Steingold <sds@gnu.org>
28531         and Hasso Tepper <hasso@netbsd.org>.
28532
28533 2009-09-16  Eric Blake  <ebb9@byu.net>
28534
28535         unlinkdir: port to mingw
28536         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
28537         on which no one can unlink a directory.
28538
28539         stdlib: sort witness names
28540         * modules/stdlib (Makefile.am): Sort replacements.
28541         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
28542         * lib/stdlib.in.h: Likewise.
28543
28544         parse-duration-tests: avoid link failure
28545         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
28546         LIBINTL.
28547         Reported by Tom G. Christensen.
28548
28549         openat-tests: ensure unlinkat behaves like rmdir
28550         * tests/test-rmdir.c (main): Factor guts...
28551         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
28552         * modules/rmdir-tests (Files): Ship new file.
28553         * modules/openat-tests: New test.
28554         * tests/test-unlinkat.c: Likewise.
28555
28556         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
28557         * modules/rmdir-errno (Status, Notice): Now obsolete.
28558
28559         rmdir: work around cygwin 1.5.x and mingw bugs
28560         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
28561         * lib/rmdir.c (rmdir): Work around it.
28562         * modules/rmdir (Status, Notice): No longer obsolete.
28563         (Files): Add dos.m4.
28564         (Depends-on): Add unistd.
28565         (configure.ac): Set witnesses.
28566         (License): Relax to LGPLv2+.
28567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
28568         * modules/unistd (Makefile.am): Substitute witnesses.
28569         * lib/unistd.in.h (rmdir): Declare replacement.
28570         * doc/posix-functions/rmdir.texi (rmdir): Document this.
28571         * modules/rmdir-tests: New tests.
28572         * tests/test-rmdir.c: Likewise.
28573
28574 2009-09-15  Eric Blake  <ebb9@byu.net>
28575
28576         fchdir: improve use of replacement functions
28577         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
28578         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
28579         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
28580         REPLACE_CLOSEDIR.
28581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
28582         * modules/sys_stat (Makefile.am): Substitute correct witness.
28583         * modules/dirent (Makefile.am): Likewise.
28584         * modules/unistd (Makefile.am): Likewise.
28585         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
28586         * lib/unistd.in.h (dup): Likewise.
28587         * lib/sys_stat.in.h (fstat): Likewise.
28588
28589         maint: ignore gnulib-tool temp files
28590         * .gitignore: Ignore files created during gnulib-tool --test.
28591
28592 2009-09-13  Jim Meyering  <meyering@redhat.com>
28593
28594         posixtm: don't reject a time that specify "60" as the number of seconds
28595         * lib/posixtm.c (posixtime): The code to reject invalid dates
28596         would also reject a time specified with the .60 suffix.
28597         But POSIX allows that, in order to accommodate leap seconds.
28598         So don't reject it.
28599         (main): Adjust tests accordingly.
28600         * modules/posixtm (Depends-on): Add stpcpy.
28601
28602 2009-09-11  Jim Meyering  <meyering@redhat.com>
28603
28604         announce-gen: include [$release_type] in emitted Subject:
28605         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
28606         e.g., [stable] in the emitted Subject: line.
28607
28608 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28609
28610         Remove obsolete macros from several modules.
28611         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
28612         obsolete Autoconf macros with their modern counterparts.
28613         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
28614         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
28615         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
28616         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
28617         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
28618         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28619         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28620         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28621         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28622         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
28623         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
28624         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
28625         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
28626         * m4/sockets.m4 (gl_SOCKETS): Likewise.
28627         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
28628         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
28629         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
28630         * m4/time_r.m4 (gl_TIME_R): Likewise.
28631         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28632         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
28633         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
28634
28635         Fix copyright header in build-aux scripts.
28636         * build-aux/git-version-gen: Fix copyright header to match GPLv3
28637         recommendation.
28638         * build-aux/ncftpput-ftp: Likewise.
28639         * build-aux/update-copyright: Likewise.
28640
28641 2009-09-09  Eric Blake  <ebb9@byu.net>
28642
28643         test-link: allow Linux choice of errno
28644         * tests/test-link.c (main): Relax test for alternate error.
28645
28646         strndup: fix improper m4 caching
28647         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
28648         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
28649         (gl_PREREQ_STRNDUP): Delete.
28650         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
28651         * modules/string (Makefile.am): Substitute it.
28652         * lib/string.in.h (strndup): Modernize prototype.
28653
28654         getcwd: port to mingw
28655         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
28656         different from the POSIX assumptions made throughout the getcwd
28657         module; fortunately, the mingw getcwd does not need replacement.
28658         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
28659         * modules/getcwd-tests: New test.
28660         * tests/test-getcwd.c: Likewise.
28661
28662         link: fix platform bugs
28663         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
28664         * lib/link.c (link): Work around them.  Fix related mingw bug.
28665         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
28666         * modules/unistd (Makefile.am): Substitute it.
28667         * lib/unistd.in.h (link): Declare replacement.
28668         * doc/posix-functions/link.texi (link): Document this.
28669         * modules/link (Depends-on): Add strdup-posix, sys_stat.
28670
28671         test-link: consolidate into single C program, test more cases
28672         * tests/test-link.sh: Delete.
28673         * tests/test-link.c: Test more error conditions.  Exposes bugs on
28674         at least Cygwin and Solaris.
28675         * modules/link-tests (Files): Remove unused file.
28676         (Depends-on): Add errno, sys_stat.
28677         (Makefile.am): Simplify.
28678
28679 2009-09-08  Bruno Haible  <bruno@clisp.org>
28680
28681         Work around towlower, towupper bug on mingw.
28682         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
28683         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
28684         * doc/posix-functions/towlower.texi: Mention the mingw bug.
28685         * doc/posix-functions/towupper.texi: Likewise.
28686         Reported by Eric Blake.
28687
28688 2009-09-08  Jim Meyering  <meyering@redhat.com>
28689
28690         build: don't try to run autoheader if we don't use it
28691         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
28692         is not used in configure.ac.
28693
28694 2009-09-08  Eric Blake  <ebb9@byu.net>
28695
28696         euidaccess: fix compilation error
28697         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
28698
28699         rawmemchr: relax license
28700         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
28701         okay.
28702         Reported by Jim Meyering.
28703
28704         mkfifoat: new module
28705         * modules/mkfifoat: New file.
28706         * lib/mkfifoat.c: Likewise.
28707         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
28708         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28709         * modules/sys_stat (Makefile.am): Use them.
28710         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
28711         * MODULES.html.sh (File system functions): Mention module.
28712         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28713         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28714         * modules/mkfifoat-tests: New test.
28715         * tests/test-mkfifoat.c: Likewise.
28716
28717         strchrnul: relax license
28718         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
28719         okay.
28720         Reported by Jim Meyering.
28721
28722 2009-09-08  Eric Blake  <ebb9@byu.net>
28723
28724         fstatat: fix compilation on Solaris
28725         * lib/fstatat.c (includes): Add fcntl.h.
28726         Reported by Pádraig Brady.
28727
28728 2009-09-07  Eric Blake  <ebb9@byu.net>
28729
28730         rename: modernize replacement
28731         * modules/rename (Depends-on): Add stdio.
28732         (configure.ac): Declare witness.
28733         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
28734         stdio take care of replacement.
28735         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28736         * modules/stdio (Makefile.am): Substitute them.
28737         * lib/stdio.in.h (rename): Declare replacement.
28738         * lib/rename.c (includes): Allow cross-compilation to non-windows
28739         machines.
28740         * doc/posix-functions/rename.texi (rename): Improve
28741         documentation.
28742
28743         stdio: sort witness names
28744         * modules/stdio (Makefile.am): Sort replacements.
28745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28746         * lib/stdio.in.h: Likewise.
28747
28748         getcwd: minor cleanups
28749         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
28750         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
28751
28752         openat: provide more convenience names
28753         * modules/faccessat (configure.ac): Add C witness.
28754         * lib/unistd.in.h (readlinkat): Fix typo.
28755         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
28756         convenience wrappers.
28757         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
28758         wrappers in syntax checks.
28759
28760 2009-09-06  Eric Blake  <ebb9@byu.net>
28761
28762         doc: fix comments in recent patches
28763         * lib/faccessat.c: Mention correct function.
28764         * lib/fchmodat.c: Likewise.
28765         * lib/fchownat.c: Likewise.
28766         * lib/symlinkat.c: Likewise.
28767         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
28768         constants.
28769
28770         faccessat, symlinkat: continue cleanup of previous patch
28771         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
28772         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28773         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
28774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
28775         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
28776         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
28777         set.
28778
28779 2009-09-06  Bruno Haible  <bruno@clisp.org>
28780
28781         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
28782         (fstatat): Declare if GNULIB_FSTATAT is set.
28783         (mkdirat): Declare if GNULIB_MKDIRAT is set.
28784         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
28785         (unlinkat): Declare if GNULIB_UNLINKAT is set.
28786         * modules/fcntl-h (Files): Remove m4/openat.m4.
28787         * modules/sys_stat (Files): Remove m4/openat.m4.
28788         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
28789         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
28790         * modules/unistd (Files): Remove m4/openat.m4.
28791         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
28792         GNULIB_OPENAT.
28793         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
28794         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
28795         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
28796         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
28797         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
28798         gl_OPENAT_DEFAULTS.
28799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
28800         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
28801         Don't require gl_OPENAT_DEFAULTS.
28802         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
28803         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
28804         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
28805         (gl_OPENAT_DEFAULTS): Remove macro.
28806
28807 2009-09-06  Bruno Haible  <bruno@clisp.org>
28808
28809         * modules/openat (configure.ac): Remove unneeded witness.
28810
28811 2009-09-06  Bruno Haible  <bruno@clisp.org>
28812
28813         Set errno to ENOSYS when a function is entirely unsupported.
28814         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
28815         EOPNOTSUPP.
28816         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28817         * modules/chown (Depends-on): Remove errno.
28818
28819 2009-09-06  Bruno Haible  <bruno@clisp.org>
28820
28821         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
28822
28823 2009-09-06  Bruno Haible  <bruno@clisp.org>
28824
28825         * lib/sys_stat.in.h: Fix preprocessor command indentation.
28826
28827 2009-09-06  Ben Pfaff  <blp@gnu.org>
28828             Bruno Haible  <bruno@clisp.org>
28829
28830         Work around a glibc bug in strtok_r.
28831         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
28832         Undefine if UNDEFINE_STRTOK_R is set.
28833         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
28834         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28835         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
28836         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
28837         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
28838         UNDEFINE_STRTOK_R.
28839         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
28840
28841 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28842
28843         exclude: minor fix
28844         * lib/exclude.c: Include wctype.h
28845
28846 2009-09-06  Akim Demaille  <demaille@gostai.com>
28847
28848         bootstrap: improve error message
28849         * build-aux/bootstrap (find_tool): Upon failure, report the list
28850         of candidates.
28851         Honor the initial value of the envvar.
28852
28853 2009-09-05  Eric Blake  <ebb9@byu.net>
28854
28855         symlinkat: new module
28856         * modules/symlinkat: New file.
28857         * lib/symlinkat.c: Likewise.
28858         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
28859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28860         * modules/unistd (Makefile.am): Use them.
28861         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
28862         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
28863         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
28864         * MODULES.html.sh (File system functions): Mention module.
28865         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28866         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28867         * modules/symlinkat-tests: New test.
28868         * tests/test-symlinkat.c: Likewise.
28869
28870         test-openat-safer: add more checks
28871         * tests/test-openat-safer.c (main): Check more code paths.
28872
28873 2009-09-05  Jim Meyering  <meyering@redhat.com>
28874
28875         syntax-check: detect unnecessary inclusion of openat.h
28876         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
28877
28878 2009-09-05  Bruno Haible  <bruno@clisp.org>
28879
28880         Support towlower, towupper.
28881         * doc/posix-functions/towlower.texi: Mention module wctype.
28882         * doc/posix-functions/towupper.texi: Likewise.
28883         * lib/wctype.in.h (towlower, towupper): New functions.
28884         * tests/test-wctype.c: Include stdio.h, stdlib.h.
28885         (ASSERT): New macro.
28886         (e): New variable.
28887         (main): Test also towlower, towupper. Test WEOF argument.
28888         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28889
28890 2009-09-05  Bruno Haible  <bruno@clisp.org>
28891
28892         Fix conversion behaviour when the input is invalid.
28893         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
28894         mark occurring in first pass of indirect conversion.
28895         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
28896         input.
28897         Found by clang's static analyzer.
28898
28899 2009-09-05  Bruno Haible  <bruno@clisp.org>
28900
28901         * tests/test-striconveh.c (main): Test indirect conversion on platforms
28902         where direct conversion is possible.
28903
28904 2009-09-04  Eric Blake  <ebb9@byu.net>
28905
28906         openat: fail with ENOENT on empty name
28907         * lib/openat-proc.c (openat_proc_name): Special-case the empty
28908         buffer.
28909
28910         link-follow: fix logic bug in prior patch
28911         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
28912         reversed sense of yes and no in prior patch.  Avoid confusing
28913         compilation failure with desired semantics.
28914
28915         link-follow: accomodate mingw and cross-compilation
28916         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
28917         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
28918         cross-compilation results to -1, to make linkat easier to
28919         implement when cross-compiling.  Trivially support mingw.
28920         * modules/link-follow (configure.ac): Call new name.
28921         * NEWS: Mention this.
28922
28923 2009-09-03  Eric Blake  <ebb9@byu.net>
28924
28925         faccessat: compile replacement
28926         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
28927         needed.
28928
28929         fts: fix compilation error
28930         * lib/fts.c (includes): Re-add "openat.h", for
28931         openat_needs_fchdir.
28932
28933         faccessat: new module
28934         * modules/faccessat: New file.
28935         * lib/faccessat.c: Likewise.
28936         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28938         * modules/unistd (Makefile.am): Use it.
28939         * lib/unistd.in.h (faccessat): Declare it.
28940         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
28941         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
28942         * MODULES.html.sh (File system functions): Mention it.
28943         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
28944         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28945
28946         euidaccess: prefer POSIX over non-standard implementation
28947         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
28948         * lib/euidaccess.c (euidaccess): Use it if available.
28949
28950         openat: make template easier to use
28951         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
28952         AT_FUNC_F2 to be undefined.
28953         (VALIDATE_FLAG): New macro; use it to reject bad flags.
28954         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
28955         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
28956         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
28957         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
28958         Likewise.
28959         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
28960         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
28961         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
28962         Likewise.
28963
28964         openat: declare in POSIX headers
28965         * NEWS: Mention this.
28966         * modules/openat (configure.ac): Declare witnesses.
28967         (Depends-on): Add fcntl-h, sys_stat, unistd.
28968         (Include): Mention correct headers.
28969         * modules/fcntl-h (Depends-on): Add link-warning.
28970         (Files): Add openat.m4.
28971         (Makefile.am): Substitute witnesses.
28972         * modules/sys_stat (Files, Makefile.am): Likewise.
28973         * modules/unistd (Files, Makefile.am): Likewise.
28974         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
28975         (gl_OPENAT_DEFAULTS): New macro.
28976         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
28977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
28978         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
28979         (SYS_STAT_H): Remove unused variable.
28980         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
28981         * lib/fcntl--.h (includes): Remove unneeded header.
28982         * lib/openat-safer.c (includes): Likewise.
28983         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
28984         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
28985         appropriate headers.
28986         (__OPENAT_PREFIX): Delete.
28987         * lib/fcntl.in.h (openat): Provide declaration.
28988         (AT_FDCWD): Fix Solaris bug.
28989         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
28990         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
28991         * lib/fchmodat.c (includes):  Adjust to find declaration.
28992         * lib/fchownat.c (includes): Likewise.
28993         * lib/mkdirat.c (includes): Likewise.
28994         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
28995         still visible.
28996
28997 2009-09-02  Eric Blake  <ebb9@byu.net>
28998
28999         errno: use consistently
29000         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
29001         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
29002         * lib/canonicalize.c (ELOOP): Likewise.
29003         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
29004         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
29005         * lib/lchown.c (EOPNOTSUPP): Likewise.
29006         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
29007         * lib/savewd.c (ESTALE): Likewise.
29008         * lib/settime.c (ENOSYS): Likewise.
29009         * lib/utimens.c (ENOSYS): Likewise.
29010         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
29011         * lib/chdir-safer.c (ELOOP): Likewise.
29012         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
29013         * modules/c-stack (Depends-on): Add errno.
29014         * modules/canonicalize (Depends-on): Likewise.
29015         * modules/chdir-safer (Depends-on): Likewise.
29016         * modules/fdopendir (Depends-on): Likewise.
29017         * modules/inet_ntop (Depends-on): Likewise.
29018         * modules/inet_pton (Depends-on): Likewise.
29019         * modules/lchown (Depends-on): Likewise.
29020         * modules/openat (Depends-on): Likewise.
29021         * modules/savewd (Depends-on): Likewise.
29022         * modules/settime (Depends-on): Likewise.
29023         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
29024
29025         fts: avoid leaking fds
29026         * modules/fts (Depends-on): Add cloexec.
29027         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
29028         flag.
29029
29030         fts: make directory fds more robust
29031         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
29032         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
29033
29034         backupfile, chdir-long, fts, savedir: make safer
29035         * lib/backupfile.c (includes): Use "dirent--.h", since
29036         numbered_backup can write to stderr during readdir.
29037         * lib/savedir.c (includes): Likewise.
29038         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
29039         emulation can write to stderr on failure.
29040         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
29041         * lib/getcwd.c: Document why opendir_safer is unused.
29042         * lib/glob.c: Likewise.
29043         * lib/scandir.c: Likewise.
29044         * lib/openat-proc.c: Likewise, for open_safer.
29045         * modules/backupfile (Depends-on): Add dirent-safer.
29046         * modules/savedir (Depends-on): Likewise.
29047         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
29048         * modules/chdir-long (Depends-on): Add openat-safer.
29049
29050         openat-safer: new module
29051         * modules/openat-safer: New file.
29052         * lib/openat-safer.c: Likewise.
29053         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
29054         * lib/fcntl-safer.h (openat_safer): Declare.
29055         * lib/fcntl--.h (openat): Override.
29056         * MODULES.html.sh (File descriptor based I/O): Mention it.
29057         * lib/openat.h: Add double-inclusion guards.
29058         * lib/openat.c (includes): Only include "fcntl-safer.h", not
29059         "fcntl--.h", so we can implement openat.
29060         * modules/openat-safer-tests: New test.
29061         * tests/test-openat-safer.c: New file.
29062
29063         dirent-safer: new module
29064         * modules/dirent-safer: New file.
29065         * lib/dirent--.h: Likewise.
29066         * lib/dirent-safer.h: Likewise.
29067         * lib/opendir-safer.c: Likewise.
29068         * m4/dirent-safer.m4: Likewise.
29069         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
29070         * modules/dirent-safer-tests: New test.
29071         * tests/test-dirent-safer.c: New file.
29072         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
29073
29074         fdopendir: optimize on mingw
29075         * lib/unistd.in.h (_gl_directory_name): New prototype.
29076         * lib/fchdir.c (_gl_directory_name): Implement it.
29077         (fchdir): Use it to simplify implementation.
29078         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
29079         fchdir, when available, to avoid calling [f]chdir().
29080
29081         fdopendir: split into its own module
29082         * lib/openat.c (fdopendir): Move...
29083         * lib/fdopendir.c: ...into new file.
29084         * modules/fdopendir: New module.
29085         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
29086         * modules/openat (Depends-on): Add fdopendir.
29087         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
29088         fdopendir here.
29089         * modules/savedir (Depends-on): Only need fdopendir, not full
29090         openat.
29091         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
29092         * lib/openat.h (fdopendir): Drop prototype.
29093         * lib/dirent.in.h (fdopendir): Provide prototype.
29094         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
29095         * modules/dirent (Makefile.am): Substitute them.
29096         * MODULES.html.sh (File system functions): Mention it.
29097         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
29098         * modules/fdopendir-tests: New file.
29099         * tests/test-fdopendir.c: Likewise.
29100
29101         fchdir: use more consistent macro convention
29102         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
29103         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
29104         REPLACE_FCHDIR, rather than relying on config.h macros.
29105         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
29106         inside a single make-time REPLACE_FCHDIR block, rather than using
29107         the config.h FCHDIR_REPLACEMENT.
29108         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
29109         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
29110         Manage fstat replacement.
29111         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
29112         REPLACE_FCHDIR.
29113         * modules/sys_stat (Files): Add m4/unistd_h.m4.
29114         (Makefile.am): Substitute REPLACE_FCHDIR.
29115         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
29116         FCHDIR_REPLACEMENT.
29117         * lib/dup-safer.c (dup_safer): Likewise.
29118         * lib/dup2.c (rpl_dup2): Likewise.
29119         * lib/dup3.c (rpl_dup3): Likewise.
29120         * lib/open.c (rpl_open): Likewise.
29121
29122         fchdir: simplify error handling, and support dup3
29123         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
29124         stdbool, malloc-posix, realloc-posix.
29125         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
29126         (ensure_dirs_slot): Return false on allocation failure.
29127         (rpl_dup2): Delete.
29128         (_gl_register_dup): New function.
29129         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
29130         (_gl_register_fd): Close fd on allocation failure.
29131         * lib/fcntl.in.h (_gl_register_fd): Update signature.
29132         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
29133         prototype.
29134         (rpl_dup2_fchdir): Delete prototype.
29135         * lib/open.c (open): Update caller.
29136         * lib/dup2.c (dup2): Track fchdir metadata.
29137         * lib/dup3.c (dup3): Likewise.
29138         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
29139         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
29140
29141 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29142
29143         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
29144         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
29145         don't pass arguments to AC_OUTPUT.
29146
29147 2009-09-02  Bruno Haible  <bruno@clisp.org>
29148
29149         * modules/mkdtemp (License): Relicense under LGPLv2+.
29150         Reported by Paolo Bonzini.
29151
29152 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29153
29154         Replace uses of obsolete autoconf macros in Jim's modules.
29155         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
29156         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
29157         can evoke a warning from autoconf when run with -Wobsolete
29158         enabled.  They were declared obsolete for good reasons (see
29159         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
29160         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
29161         should not continue using the deprecated macros.
29162         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
29163         obsolete Autoconf macros with modern counterparts.
29164         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29165         * m4/dos.m4 (gl_AC_DOS): Likewise.
29166         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
29167         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29168         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
29169         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
29170         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
29171         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
29172         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
29173         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
29174         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
29175         Likewise.
29176         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
29177         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
29178         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
29179         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
29180         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
29181         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
29182
29183 2009-09-01  Eric Blake  <ebb9@byu.net>
29184
29185         fchdir: fix off-by-one bug in previous patch
29186         * lib/fchdir.c (rpl_fstat): Use correct bounds.
29187         (_gl_unregister_fd): Delete useless if.
29188
29189 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
29190
29191         maint.mk: sort the list of syntax-check rules
29192         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
29193         easier to get a sense of progress when the rules are run sequentially
29194         and take a long time.
29195
29196 2009-09-01  Simon Josefsson  <simon@josefsson.org>
29197
29198         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
29199         * modules/netinet_in: Likewise.
29200         * modules/sys_file: Likewise.
29201         * modules/sys_ioctl: Likewise.
29202         * modules/sys_select: Likewise.
29203         * modules/sys_socket: Likewise.
29204         * modules/sys_stat: Likewise.
29205         * modules/sys_time: Likewise.
29206         * modules/sys_times: Likewise.
29207         * modules/sys_utsname: Likewise.
29208         * modules/sys_wait: Likewise.
29209
29210 2009-09-01  Jim Meyering  <meyering@redhat.com>
29211
29212         fts: help ensure that return values are not ignored
29213         * lib/fts_.h (__GNUC_PREREQ): Define.
29214         (__attribute_warn_unused_result__): Define.
29215         (fts_children, fts_close, fts_open, fts_read): Declare with
29216         __attribute_warn_unused_result__.
29217
29218         fts: fts_close now fails also when closing a dir file descriptor fails
29219         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
29220         and propagate to caller, along with errno.
29221
29222         announce-gen: correct formatting in --help output
29223         * build-aux/announce-gen (usage): Move the one-line description in
29224         --help output "up", to where it belongs, just after Usage:.
29225
29226 2009-08-31  Eric Blake  <ebb9@byu.net>
29227
29228         fchdir: port to mingw
29229         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
29230         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
29231         opened, then use a substitute.
29232         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
29233         replacement.
29234         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
29235         (_gl_register_fd): No need to check stat if open already filters
29236         all directories.
29237         (fchdir): Fix error condition to match POSIX.
29238         * modules/fchdir (Depends-on): Add sys_stat.
29239         * doc/posix-functions/open.texi (open): Document the limitation.
29240         * modules/fchdir-tests: New file.
29241         * tests/test-fchdir.c: Likewise.
29242
29243         canonicalize: allow cross-testing from cygwin to mingw
29244         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
29245         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
29246         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
29247         Likewise.
29248         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
29249         target does not support symlinks.
29250         * tests/test-canonicalize-lgpl.sh: Likewise.
29251
29252         chown: avoid compilation warning on mingw
29253         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
29254         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
29255         mingw.
29256         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
29257         * modules/chown (Depends-on): Add errno.
29258
29259 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29260
29261         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
29262         command.
29263
29264 2009-08-31  Jim Meyering  <meyering@redhat.com>
29265
29266         canonicalize: remove useless initialization
29267         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
29268         initialization of local, "end".
29269
29270 2009-08-30  Bruno Haible  <bruno@clisp.org>
29271
29272         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
29273         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
29274         ENOSYS.
29275
29276 2009-08-30  Bruno Haible  <bruno@clisp.org>
29277
29278         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
29279         /usr/xpg4/bin/tr when it exists.
29280         * tests/test-pipe-filter-gi1.sh: Likewise.
29281
29282 2009-08-30  Bruno Haible  <bruno@clisp.org>
29283
29284         Work around deficient /usr/bin/id program on Solaris.
29285         * tests/test-file-has-acl.sh (ID): New variable.
29286         * tests/test-set-mode-acl.sh (ID): Likewise.
29287         * tests/test-copy-acl.sh (ID): Likewise.
29288         * tests/test-copy-file.sh (ID): Likewise.
29289
29290 2009-08-30  Bruno Haible  <bruno@clisp.org>
29291
29292         New module 'xstriconveh'.
29293         * lib/xstriconveh.h: New file.
29294         * lib/xstriconveh.c: New file.
29295         * modules/xstriconveh: New file.
29296
29297 2009-08-30  Bruno Haible  <bruno@clisp.org>
29298
29299         Make it easier to use mem_cd_iconveh.
29300         * lib/striconveh.h (iconveh_t): New type.
29301         (iconveh_open, iconveh_close): New declarations.
29302         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
29303         with a single 'const iconveh_t *' argument.
29304         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
29305         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
29306         with a single 'const iconveh_t *' argument.
29307         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
29308         * tests/test-striconveh.c (main): Update.
29309         * NEWS: Mention the change.
29310
29311 2009-08-30  Bruno Haible  <bruno@clisp.org>
29312
29313         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
29314         problem.
29315
29316 2009-08-30  Bruno Haible  <bruno@clisp.org>
29317
29318         Work around iconv_open problem on Solaris.
29319         * lib/iconv_open-solaris.gperf: New file.
29320         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
29321         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
29322         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
29323         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
29324         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
29325         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
29326
29327 2009-08-29  Jim Meyering  <meyering@redhat.com>
29328
29329         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
29330         * top/maint.mk (cvs-check): Remove target; it was just an alias
29331         to the better-named vc-diff-check.
29332         (maintainer-distcheck): Remove rule.  It was used only from
29333         the (alpha/beta/major) target, and all of its commands but one
29334         were coreutils-specific.
29335         (vc-dist): Remove rule.
29336         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
29337         Run vc-diff-check, not vc-dist.
29338         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
29339
29340 2009-08-27  Bruno Haible  <bruno@clisp.org>
29341
29342         * tests/test-bitrotate.c (main): Remove test that uses a shift count
29343         of 0.
29344
29345 2009-08-27  Bruno Haible  <bruno@clisp.org>
29346
29347         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
29348         compilers.
29349         * doc/func.texi: Document the SunPRO C bug.
29350
29351 2009-08-27  Bruno Haible  <bruno@clisp.org>
29352
29353         Fix link error on Solaris.
29354         * tests/test-parse-duration.c (xstrdup): Remove function.
29355
29356 2009-08-26  Pádraig Brady  <P@draigbrady.com>
29357
29358         ignore-value: handle pointer types, too
29359         * lib/ignore-value.h (__attribute__): Remove definition.
29360         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
29361         of a more concise and more-often effective "(void) i" statement.
29362         (ignore_ptr): New function to suppress warnings from functions that
29363         return pointers, and to make it explicit that one function doesn't
29364         handle all cases.
29365
29366 2009-08-25  Bruno Haible  <bruno@clisp.org>
29367
29368         dup2: work around a Linux bug.
29369         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
29370         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
29371         * doc/posix-functions/dup2.texi: Mention the Linux bug.
29372         Reported by Simon Josefsson.
29373
29374 2009-08-25  Jim Meyering  <meyering@redhat.com>
29375
29376         libguestfs uses gnulib
29377         * users.txt: Add libguestfs.
29378
29379 2009-08-24  Eric Blake  <ebb9@byu.net>
29380
29381         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
29382         * lib/pipe2.c (includes): Add binary-io.h.
29383         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
29384
29385 2009-08-24  Bruno Haible  <bruno@clisp.org>
29386
29387         Tolerate declared but missing accept4 syscall.
29388         * lib/accept4.c (accept4): Invoke original accept4 function first, if
29389         available.
29390         * lib/sys_socket.in.h (accept4): If the function is already present,
29391         override it.
29392         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
29393         * modules/accept4 (Makefile.am): Compile accept4.c always.
29394         Reported by Paolo Bonzini and Eric Blake.
29395
29396 2009-08-23  Bruno Haible  <bruno@clisp.org>
29397
29398         New module 'accept4'.
29399         * lib/sys_socket.in.h (accept4): New declaration.
29400         * lib/accept4.c: New file.
29401         * m4/accept4.m4: New file.
29402         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29403         GNULIB_ACCEPT4, HAVE_ACCEPT4.
29404         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
29405         HAVE_ACCEPT4.
29406         * modules/accept4: New file.
29407         * doc/glibc-functions/accept4.texi: Mention the new module.
29408
29409 2009-08-24  Jim Meyering  <meyering@redhat.com>
29410
29411         progname: also set global program_invocation_name, when possible
29412         Before this change, a libtool-enabled program that calls glibc's
29413         error function would report the program name as
29414         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
29415         * modules/progname (configure.ac): Check for a declaration of
29416         program_invocation_name.
29417         * lib/progname.c:  Include <errno.h>.
29418         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
29419         Set program_invocation_name.
29420
29421 2009-08-23  Bruno Haible  <bruno@clisp.org>
29422
29423         * lib/dup3.c: Include <string.h>.
29424
29425 2009-08-23  Bruno Haible  <bruno@clisp.org>
29426
29427         * lib/dup3.c (dup3): Test only once whether the system actually exists.
29428         * lib/pipe2.c (pipe2): Likewise.
29429         Suggested by Eric Blake.
29430
29431 2009-08-23  Bruno Haible  <bruno@clisp.org>
29432
29433         Tolerate declared but missing dup3 syscall.
29434         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
29435         * lib/unistd.in.h (dup3): If the function is already present,
29436         override it.
29437         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
29438         * modules/dup3 (Makefile.am): Compile dup3.c always.
29439         Reported by Paolo Bonzini.
29440
29441 2009-08-23  Bruno Haible  <bruno@clisp.org>
29442
29443         Tolerate declared but missing pipe2 syscall.
29444         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
29445         available.
29446         * lib/unistd.in.h (pipe2): If the function is already present,
29447         override it.
29448         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
29449         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
29450         Reported by Paolo Bonzini.
29451
29452 2009-08-23  Bruno Haible  <bruno@clisp.org>
29453
29454         * lib/pipe2.c (pipe2): Move #ifs inside function.
29455
29456 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29457
29458         quotearg: document limitations of quote_these_too
29459         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
29460         those limitations are created.
29461         * lib/quotearg.h (set_char_quoting): Document that digits and
29462         letters that are special after backslash are not permitted.
29463         (quotearg_char): Cross-reference set_char_quoting documentation.
29464
29465 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
29466
29467         quotearg: implement custom_quoting_style
29468         * lib/quotearg.c: (struct quoting_options): Add left_quote and
29469         right_quote fields.
29470         (set_custom_quoting): New public function.
29471         (quotearg_buffer_restyled): Add left_quote and right_quote
29472         arguments, handle them very much like locale quoting, and update
29473         all uses.
29474         (quotearg_n_custom): New public function.
29475         (quotearg_n_custom_mem): New public function.
29476         (quotearg_custom): New public function.
29477         (quotearg_custom_mem): New public function.
29478         * lib/quotearg.h: Prototype and document new public functions.
29479         (enum quoting_style): For escape_quoting_style and
29480         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
29481         ignored even though they're otherwise like c_quoting_style.
29482         Add custom_quoting_style member and document with comparison to
29483         clocale_quoting_style.
29484         * tests/test-quotearg.c (custom_quotes): New array.
29485         (custom_results): New array.
29486         (main): Extend to test custom quoting.
29487
29488 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29489
29490         quotearg: fix right quote escaping when it's in quote_these_too
29491         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
29492         quote, be sure to prepend only one backslash.
29493         * tests/test-quotearg.c (use_quote_double_quotes): New function.
29494         (main): Test it.
29495
29496 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29497
29498         quotearg-tests: test escaping of embedded locale quotes
29499         * tests/test-quotearg.c (struct result_strings): Add member for
29500         new input.
29501         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
29502         (inputs): Add new input.
29503         (results_g): Add expected results.
29504         (flag_results): Likewise.
29505         (locale_results): Likewise.
29506         (compare_strings): Check those.
29507
29508 2009-08-23  Bruno Haible  <bruno@clisp.org>
29509
29510         Tests for module 'dup3'.
29511         * modules/dup3-tests: New file.
29512         * tests/test-dup3.c: New file.
29513
29514         New module 'dup3'.
29515         * lib/unistd.in.h (dup3): New declaration.
29516         * lib/dup3.c: New file.
29517         * m4/dup3.m4: New file.
29518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
29519         HAVE_DUP3.
29520         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
29521         * modules/dup3: New file.
29522         * doc/glibc-functions/dup3.texi: Mention the new module.
29523
29524 2009-08-23  Bruno Haible  <bruno@clisp.org>
29525
29526         Tweak the dup2 test.
29527         * tests/test-dup2.c (main): Create the test file empty. Verify that an
29528         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
29529         the test file is still empty. Fix argument order of lseek.
29530
29531 2009-08-23  Bruno Haible  <bruno@clisp.org>
29532
29533         Avoid test link errors when the modules getopt-gnu, gettext are used.
29534         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
29535         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29536
29537 2009-08-23  Bruno Haible  <bruno@clisp.org>
29538
29539         Fix getdtablesize() on mingw.
29540         * lib/getdtablesize.c (getdtablesize): Implement differently.
29541         * lib/unistd.in.h (getdtablesize): Improve comment.
29542
29543 2009-08-23  Bruno Haible  <bruno@clisp.org>
29544
29545         New module 'mkostemp'.
29546         Based on Ulrich Drepper's 2007-08-10 change in glibc.
29547         * lib/stdlib.in.h (mksotemp): New declaration.
29548         * lib/mkostemp.c: New file, from glibc with modifications.
29549         * lib/tempname.h (GT_FILE): Remove outdated comment.
29550         (gen_tempname): Add flags argument.
29551         * lib/tempname.c (__GT_BIGFILE): Remove macro.
29552         (__GT_FILE): Map to 1.
29553         (small_open, large_open): Remove macros.
29554         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
29555         * lib/mkstemp.c (mkstemp): Update.
29556         * lib/mkdtemp.c (mkdtemp): Likewise.
29557         * m4/mkostemp.m4: New file.
29558         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
29559         HAVE_MKOSTEMP.
29560         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
29561         HAVE_MKOSTEMP.
29562         * modules/mkostemp: New file, based on modules/mkstemp.
29563         * doc/glibc-functions/mkostemp.texi: Mention the new module.
29564         * NEWS: Mention the change.
29565
29566 2009-08-23  Bruno Haible  <bruno@clisp.org>
29567
29568         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
29569         Reported by Eric Blake.
29570
29571 2009-08-23  Bruno Haible  <bruno@clisp.org>
29572
29573         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
29574         Reported by Eric Blake.
29575
29576 2009-08-23  Bruno Haible  <bruno@clisp.org>
29577
29578         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
29579         * modules/pipe2 (Depends-on): Likewise.
29580
29581 2009-08-23  Eric Blake  <ebb9@byu.net>
29582
29583         fcntl-h: add O_TTY_INIT support
29584         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
29585         * tests/test-fcntl-h.c (o): Test it.
29586         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29587
29588         fcntl-h: rename from fcntl, in preparation for fcntl(2)
29589         * modules/fcntl: Move <fcntl.h> header replacement...
29590         * modules/fcntl-h: ...to new name, so as not to collide with
29591         like-named function.
29592         * tests/test-fcntl.c: Rename...
29593         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
29594         * modules/fcntl-tests: Rename...
29595         * modules/fcntl-h-tests: ...to this.  Update test file name.
29596         * modules/chdir-long (Depends-on): Update clients.
29597         * modules/chdir-safer (Depends-on): Likewise.
29598         * modules/fcntl-safer (Depends-on): Likewise.
29599         * modules/fts (Depends-on): Likewise.
29600         * modules/mkancesdirs (Depends-on): Likewise.
29601         * modules/mkdir-p (Depends-on): Likewise.
29602         * modules/open (Depends-on): Likewise.
29603         * modules/savewd (Depends-on): Likewise.
29604         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
29605         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29606
29607 2009-08-22  Bruno Haible  <bruno@clisp.org>
29608
29609         * modules/binary-io (License): Relicense under LGPL.
29610         * modules/pipe2 (License): Likewise.
29611
29612 2009-08-22  Bruno Haible  <bruno@clisp.org>
29613
29614         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
29615         return value.
29616         * lib/pipe-filter-gi.c (filter_init): Likewise.
29617         Reported by Eric Blake.
29618
29619 2009-08-22  Bruno Haible  <bruno@clisp.org>
29620
29621         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
29622         * modules/pipe (Depends-on): Add pipe2.
29623
29624 2009-08-22  Bruno Haible  <bruno@clisp.org>
29625
29626         Tests for module 'pipe2'.
29627         * modules/pipe2-tests: New file.
29628         * tests/test-pipe2.c: New file.
29629
29630         New module 'pipe2'.
29631         * lib/unistd.in.h (pipe2): New declaration.
29632         * lib/pipe2.c: New file.
29633         * m4/pipe2.m4: New file.
29634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
29635         HAVE_PIPE2.
29636         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
29637         * modules/pipe2: New file.
29638         * doc/glibc-functions/pipe2.texi: Mention the new module.
29639
29640 2009-08-22  Bruno Haible  <bruno@clisp.org>
29641
29642         Reference some new glibc functions.
29643         * doc/glibc-functions/accept4.texi: New file.
29644         * doc/glibc-functions/dup3.texi: New file.
29645         * doc/glibc-functions/mkostemp.texi: New file.
29646         * doc/glibc-functions/pipe2.texi: New file.
29647         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
29648         (Glibc sys/socket.h): Refer to accept4.
29649         (Glibc unistd.h): Refer to dup3, pipe2.
29650         Reported by Eric Blake.
29651
29652 2009-08-22  Jim Meyering  <meyering@redhat.com>
29653             Bruno Haible  <bruno@clisp.org>
29654
29655         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
29656         This makes it so packages using automake-1.11's silent-rules option
29657         can print e.g., a single "GEN    configmake.h" line, rather than
29658         the 30+ statements that perform the job.  If you want to see the
29659         actual commands, you can still run "make V=1".
29660         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
29661         so that make output is abbreviated when those variables are defined
29662         appropriately.
29663         * modules/argz: Likewise.
29664         * modules/arpa_inet: Likewise.
29665         * modules/byteswap: Likewise.
29666         * modules/configmake: Likewise.
29667         * modules/dirent: Likewise.
29668         * modules/errno: Likewise.
29669         * modules/fcntl: Likewise.
29670         * modules/float: Likewise.
29671         * modules/fnmatch: Likewise.
29672         * modules/getopt-posix: Likewise.
29673         * modules/glob: Likewise.
29674         * modules/iconv_open: Likewise.
29675         * modules/inttypes: Likewise.
29676         * modules/localcharset: Likewise.
29677         * modules/locale: Likewise.
29678         * modules/math: Likewise.
29679         * modules/netdb: Likewise.
29680         * modules/netinet_in: Likewise.
29681         * modules/poll: Likewise.
29682         * modules/posix_spawnp-tests: Likewise.
29683         * modules/sched: Likewise.
29684         * modules/search: Likewise.
29685         * modules/selinux-h: Likewise.
29686         * modules/signal: Likewise.
29687         * modules/spawn: Likewise.
29688         * modules/stdarg: Likewise.
29689         * modules/stdbool: Likewise.
29690         * modules/stddef: Likewise.
29691         * modules/stdint: Likewise.
29692         * modules/stdio: Likewise.
29693         * modules/stdlib: Likewise.
29694         * modules/string: Likewise.
29695         * modules/strings: Likewise.
29696         * modules/sys_file: Likewise.
29697         * modules/sys_ioctl: Likewise.
29698         * modules/sys_select: Likewise.
29699         * modules/sys_socket: Likewise.
29700         * modules/sys_stat: Likewise.
29701         * modules/sys_time: Likewise.
29702         * modules/sys_times: Likewise.
29703         * modules/sys_utsname: Likewise.
29704         * modules/sys_wait: Likewise.
29705         * modules/sysexits: Likewise.
29706         * modules/time: Likewise.
29707         * modules/unistd: Likewise.
29708         * modules/wchar: Likewise.
29709         * modules/wctype: Likewise.
29710
29711 2009-08-22  Jim Meyering  <meyering@redhat.com>
29712
29713         announce-gen: detect write failure
29714         * build-aux/announce-gen: Add Coda at end.
29715         Remove equivalent-but-more-verbose block at top.
29716
29717 2009-08-19  Akim Demaille  <demaille@gostai.com>
29718
29719         bootstrap: --help to stdout.
29720         * bootstrap (usage): Don't send --help to stderr.
29721         Use a here doc instead of a long string.
29722
29723 2009-08-21  Eric Blake  <ebb9@byu.net>
29724
29725         test-popen-safer: split from test-popen
29726         * tests/test-popen.c (main): Move...
29727         * tests/test-popen.h: ...into new file.
29728         * tests/test-popen-safer2.c: New file.
29729         * modules/popen-tests (Files): Add test-popen.h.
29730         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
29731         Suggested by Bruno Haible.
29732
29733         test-fcntl-safer: split from test-open
29734         * tests/test-open.c (main): Move...
29735         * tests/test-open.h: ...into new file.
29736         * tests/test-fcntl-safer.c: New file.
29737         * modules/open-tests (Files): Add test-open.h.
29738         * modules/fcntl-safer-tests: New file.
29739         Suggested by Bruno Haible.
29740
29741         test-fopen-safer: split from test-fopen
29742         * tests/test-fopen.c (main): Move...
29743         * tests/test-fopen.h: ...into new file.
29744         * tests/test-fopen-safer.c: New file.
29745         * modules/fopen-tests (Files): Add test-fopen.h.
29746         * modules/fopen-safer-tests: New file.
29747         Suggested by Bruno Haible.
29748
29749 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29750
29751         popen-safer: test O_CLOEXEC at run-time.
29752         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
29753
29754 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29755
29756         fcntl: move more flags to the header
29757         * lib/cloexec.c: Do not define FD_CLOEXEC here.
29758         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
29759         * lib/fcntl.in.h: Do both things here.
29760
29761 2009-08-21  Jim Meyering  <meyering@redhat.com>
29762
29763         consistently remove $@-t before redirecting to it
29764         * modules/argz: Remove $@-t and $@ before redirecting to the former.
29765         * modules/alloca-opt: Likewise.
29766         * modules/byteswap: Likewise.
29767         * modules/fnmatch: Likewise.
29768         * modules/getopt-posix: Likewise.
29769         * modules/glob: Likewise.
29770         * modules/poll: Likewise.
29771         * modules/posix_spawnp-tests: Likewise.
29772         * modules/sys_socket: Likewise.
29773         * modules/sysexits: Likewise.
29774
29775 2009-08-21  Eric Blake  <ebb9@byu.net>
29776
29777         popen: simplify access to original popen
29778         * lib/popen.c (rpl_popen): No need to worry about popen being a
29779         macro.
29780         Reported by Bruno Haible.
29781
29782 2009-08-20  Eric Blake  <ebb9@byu.net>
29783
29784         build: avoid some compiler warnings
29785         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
29786         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
29787         type.
29788         (new_exclude_segment, excluded_file_pattern_p)
29789         (excluded_file_name_p): Reduce scope.
29790         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
29791         old-style declaration.
29792
29793 2009-08-20  Simon Josefsson  <simon@josefsson.org>
29794
29795         * tests/test-exclude1.sh: Handle Windows EOL.
29796         * tests/test-exclude2.sh: Likewise.
29797         * tests/test-exclude3.sh: Likewise.
29798         * tests/test-exclude4.sh: Likewise.
29799         * tests/test-exclude5.sh: Likewise.
29800         * tests/test-exclude6.sh: Likewise.
29801         * tests/test-exclude7.sh: Likewise.
29802
29803 2009-08-19  Akim Demaille  <demaille@gostai.com>
29804
29805         bootstrap: find sha1sum when named gsha1sum.
29806         * bootstrap (find_tool): New.
29807         ($SHA1SUM): New.
29808         Use it.
29809
29810 2009-08-20  Jim Meyering  <meyering@redhat.com>
29811
29812         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
29813         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
29814         expression that converts "." in a file name to "\." in the resulting
29815         regexp.  Start with a dummy statement, so that prior shell variable
29816         definitions are expanded portably.  Reported by Simon Josefsson.
29817
29818 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
29819
29820         Fix polling for writeability of a screen buffer.
29821         * lib/poll.c: Distinguish input and screen buffers for the
29822         Win32 implementation.
29823         * lib/select.c: Likewise.
29824
29825 2009-08-19  Eric Blake  <ebb9@byu.net>
29826
29827         popen-safer: prevent popen from clobbering std descriptors
29828         * modules/popen-safer: New file.
29829         * lib/popen-safer.c: Likewise.
29830         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
29831         * lib/stdio--.h (popen): Provide override.
29832         * lib/stdio-safer.h (popen_safer): Provide declaration.
29833         * tests/test-popen.c (includes): Partially test this.
29834         * modules/popen-safer-tests: New file, for more tests.
29835         * tests/test-popen-safer.c: Likewise.
29836         * MODULES.html.sh (file stream based Input/Output): Mention it.
29837
29838         tests: test some of the *-safer modules
29839         * modules/fopen-safer (Depends-on): Add fopen.
29840         * modules/fcntl-safer (Depends-on): Add fcntl.
29841         * modules/stdlib-safer (Depends-on): Add stdlib.
29842         (configure.ac): Set indicator.
29843         * modules/unistd-safer (configure.ac): Likewise.
29844         * modules/tmpfile-safer (configure.ac): Likewise.
29845         (Depends-on): Add tmpfile.
29846         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
29847         active.
29848         * tests/test-fopen.c (includes): Test safer versions when they are
29849         in use.
29850         * tests/test-open.c (includes): Likewise.
29851
29852         popen: fix cygwin 1.5 bug when stdin closed
29853         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
29854         * modules/popen: New file.
29855         * modules/popen-tests: Likewise.
29856         * tests/test-popen.c: Likewise.
29857         * m4/popen.m4: Likewise.
29858         * lib/popen.c: Likewise.
29859         * lib/stdio.in.h (popen): New declaration.
29860         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
29861         * modules/stdio (Makefile.am): Likewise.
29862         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
29863
29864 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
29865
29866         maint.mk: give full control over update-copyright exclusions
29867         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
29868         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
29869         (update-copyright): Don't force inclusion of top-level
29870         ChangeLog.  Don't force exclusion of all COPYING files, but make
29871         them the default exclusion instead.
29872
29873 2009-08-16  Bruno Haible  <bruno@clisp.org>
29874
29875         Fix test failures on Solaris 10.
29876         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
29877         tests when Solaris iconv() is used.
29878         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
29879         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
29880         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
29881         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
29882         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
29883
29884 2009-08-16  Bruno Haible  <bruno@clisp.org>
29885
29886         Fix test failures on Solaris 10.
29887         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
29888         'tr' program and pass it as first argument.
29889         * tests/test-pipe-filter-gi1.sh: Likewise.
29890         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
29891         program as first argument.
29892         * tests/test-pipe-filter-gi1.c (main): Likewise.
29893
29894 2009-08-16  Eric Blake  <ebb9@byu.net>
29895
29896         fpurge: fix previous commits
29897         * modules/fpurge (Makefile.am): Make replacement conditional,
29898         partially reverting 2007-04-29 change; missed in previous
29899         attempt.
29900         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
29901         is missing.
29902
29903 2009-08-16  Bruno Haible  <bruno@clisp.org>
29904
29905         Clarify fpurge's effect on the file position.
29906         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
29907         * tests/test-fpurge.c (main): Make a second pass for checking the file
29908         position.
29909
29910 2009-08-16  Bruno Haible  <bruno@clisp.org>
29911
29912         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
29913         declaration of fpurge is missing.
29914         * tests/test-fpurge.c (main): Check that the file has not more contents
29915         than expected. Close the file before removing it.
29916
29917 2009-08-15  Eric Blake  <ebb9@byu.net>
29918
29919         fpurge: don't wrap working cygwin implementation
29920         * lib/fpurge.c (fpurge): Fix comment typo.
29921         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
29922         1.7 to avoid replacement.
29923         * tests/test-fpurge.c (main): Enhance test.
29924
29925 2009-08-15  Eric Blake  <ebb9@byu.net>
29926         and Jim Meyering  <meyering@redhat.com>
29927
29928         test-update-copyright: skip if perl is insufficient
29929         * tests/test-update-copyright.sh: Failure to run maintainer tool
29930         should not cause testsuite failure on cygwin 1.5.
29931
29932 2009-08-14  Eric Blake  <ebb9@byu.net>
29933
29934         doc: mention more functions added in cygwin 1.7.0
29935         * doc/posix-headers/limits.texi (limits.h): Update for recent
29936         cygwin additions.
29937         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
29938         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
29939         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
29940         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
29941         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
29942
29943 2009-08-14  Eric Blake  <ebb9@byu.net>
29944
29945         maint.mk: simplify update-copyright rule
29946         * top/maint.mk (update-copyright-local): Delete, and document how
29947         to do it in cfg.mk instead.
29948         (update-copyright-exclude-regexp): Delete, and document how to do
29949         it in .x-update-copyright instead.
29950         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
29951         exclude ChangeLog.
29952
29953 2009-08-14  Bruno Haible  <bruno@clisp.org>
29954
29955         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
29956
29957 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29958
29959         maint.mk: support update-copyright-env
29960         * top/maint.mk (update-copyright-env): Define place-holder.
29961         (update-copyright): Expand $(update-copyright-env) before
29962         invoking update-copyright.
29963
29964 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29965
29966         update-copyright: implement forced reformatting
29967         * build-aux/update-copyright: Implement and document
29968         UPDATE_COPYRIGHT_FORCE.
29969         * tests/test-update-copyright.sh: Test it.
29970
29971 2009-08-14  Eric Blake  <ebb9@byu.net>
29972         and Bruno Haible  <bruno@clisp.org>
29973
29974         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
29975         * tests/test-locale.c: Revert previous patch related to NULL.
29976         * tests/test-stdio.c: Likewise.
29977         * tests/test-stdlib.c: Likewise.
29978         * tests/test-string.c: Likewise.
29979         * tests/test-unistd.c: Likewise.
29980         * modules/time-tests (Depends-on): Add verify.
29981         * modules/wchar-tests (Depends-on): Likewise.
29982         * tests/test-time.c: Test for NULL compliance.
29983         * tests/test-wchar.c: Likewise.
29984         * modules/locale (Depends-on): Add stddef.
29985         * modules/stdio (Depends-on): Likewise.
29986         * modules/stdlib (Depends-on): Likewise.
29987         * modules/string (Depends-on): Likewise.
29988         * modules/time (Depends-on): Likewise.
29989         * modules/unistd (Depends-on): Likewise.
29990         * modules/wchar (Depends-on): Likewise.
29991         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
29992         * lib/stdlib.in.h (includes): Likewise.
29993         * lib/string.in.h (includes): Likewise.
29994         * lib/time.in.h (includes): Likewise.
29995         * lib/unistd.in.h (includes): Likewise.
29996         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
29997         replaced.
29998         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29999         * m4/stddef_h.m4: New file.
30000         * modules/stddef: Likewise.
30001         * lib/stddef.in.h: Likewise.
30002         * modules/stddef-tests: Likewise.
30003         * tests/test-stddef.c: Likewise.
30004         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
30005         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
30006         * doc/posix-headers/locale.texi (locale.h): Likewise.
30007         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
30008         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30009         * doc/posix-headers/string.texi (string.h): Likewise.
30010         * doc/posix-headers/time.texi (time.h): Likewise.
30011         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
30012         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
30013
30014 2009-08-14  Eric Blake  <ebb9@byu.net>
30015
30016         doc: improve git diff of texinfo files
30017         * .gitattributes: Add rule for *.texi files, with hint on how to
30018         use it.
30019         Copied from m4, and based on a report by Bruno Haible.
30020
30021 2009-08-14  Bruno Haible  <bruno@clisp.org>
30022
30023         Disable multithread support by default on Cygwin 1.5.x for real.
30024         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
30025
30026 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30027
30028         update-copyright: much ado about intervals
30029         * build-aux/update-copyright: Implement and document
30030         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
30031         of copyright year intervals.
30032         Also, document UPDATE_COPYRIGHT_YEAR.
30033         * tests/test-update-copyright.sh: Test it.
30034
30035         update-copyright: convert 2-digit to 4-digit years
30036         * build-aux/update-copyright: Implement and document.
30037         * tests/test-update-copyright.sh: Update.
30038
30039 2009-08-14  Jim Meyering  <meyering@redhat.com>
30040
30041         test-exclude: avoid coreutils "make check" failure
30042         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
30043         just as in test-argmatch.c.
30044
30045 2009-08-13  Eric Blake  <ebb9@byu.net>
30046
30047         test-dup2: fix bad assumption
30048         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
30049         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
30050
30051         test-version-etc: fix CRLF portability issue
30052         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
30053         recognize \r.
30054         * tests/test-argp-version-etc-1.sh: Likewise.
30055
30056         getopt: update client modules
30057         * modules/argp (Depends-on): Use getopt-gnu.
30058         * modules/git-merge-changelog (Depends-on): Likewise.
30059         * modules/long-options (Depends-on): Likewise.
30060         * modules/xstrtol (Depends-on): Likewise.
30061
30062 2009-08-13  Simon Josefsson  <simon@josefsson.org>
30063
30064         * tests/test-version-etc.sh: Don't fail on different
30065         project/version.  Don't fail on CRLF differences.  Rewrite to use
30066         multiple -e instead of multiple sed forks, suggested by Eric Blake
30067         <ebb9@byu.net>.
30068         * tests/test-argp-version-etc-1.sh: Likewise.
30069
30070 2009-08-13  Simon Josefsson  <simon@josefsson.org>
30071
30072         * tests/test-version-etc.sh: Don't fail on different
30073         project/version.
30074
30075 2009-08-12  Bruno Haible  <bruno@clisp.org>
30076
30077         Tests for modules 'getopt-posix', 'getopt-gnu'.
30078         * modules/getopt-posix-tests: New file.
30079         * tests/test-getopt.c: New file.
30080         * tests/test-getopt.h: New file.
30081         * tests/test-getopt_long.h: New file.
30082
30083         New modules 'getopt-posix', 'getopt-gnu'.
30084         * modules/getopt-gnu: New file, renamed from modules/getopt.
30085         * modules/getopt-posix: New file.
30086         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
30087         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
30088         (gl_GETOPT): Remove macro.
30089         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
30090         Disable the test against BSD systems that declare optreset. Test
30091         against mingw bug. Test against lack of support of optional arguments
30092         on many platforms.
30093         * doc/glibc-headers/getopt.texi: Update module name and list of
30094         relevant platforms.
30095         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
30096         'getopt-gnu' and more portability problems.
30097         * NEWS: Mention the changes.
30098
30099 2009-08-12  Bruno Haible  <bruno@clisp.org>
30100
30101         Ensure that optarg etc. get declared by <unistd.h>.
30102         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
30103         AC_USE_SYSTEM_EXTENSIONS.
30104         * modules/getopt (Depends-on): Add 'extensions'.
30105
30106 2009-08-12  Bruno Haible  <bruno@clisp.org>
30107
30108         Avoid test link errors.
30109         * modules/pipe-filter-ii-tests (Makefile.am): Define
30110         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
30111         * modules/pipe-filter-gi-tests (Makefile.am): Define
30112         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
30113         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30114
30115 2009-08-12  Bruno Haible  <bruno@clisp.org>
30116
30117         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
30118         gl_GETOPT_SUBSTITUTE before.
30119         (gl_GETOPT): Use it.
30120         * m4/argp.m4 (gl_ARGP): Update.
30121         Reported by Sergey Poznyakoff.
30122
30123         * m4/getopt.m4: Reorder macros.
30124         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
30125         (gl_GETOPT_SUBSTITUTE): Remove macro.
30126
30127 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30128
30129         Minor improvement in gitlog-to-changelog
30130
30131         * build-aux/gitlog-to-changelog: New option `--format' makes
30132         output format string configurable.
30133
30134 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30135
30136         Optimize exclude: use hash tables for non-wildcard patterns.
30137
30138         * lib/exclude.c: Include hash.h and mbuiter.h
30139         (struct exclude_pattern, exclude_segment): New data types.
30140         (struct exclude): Rewrite.
30141         (fnmatch_pattern_has_wildcards): New function.
30142         (new_exclude_segment, free_exclude_segment): New functions.
30143         (excluded_file_pattern_p, excluded_file_name_p): New functions.
30144         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
30145         * lib/exclude.h (is_fnmatch_pattern): New prototype.
30146         * modules/exclude: Depend on hash and mbuiter.
30147
30148         * modules/exclude-tests: New file.
30149         * tests/test-exclude.c: New file.
30150         * tests/test-exclude1.sh: New file.
30151         * tests/test-exclude2.sh: New file.
30152         * tests/test-exclude3.sh: New file.
30153         * tests/test-exclude4.sh: New file.
30154         * tests/test-exclude5.sh: New file.
30155         * tests/test-exclude6.sh: New file.
30156         * tests/test-exclude7.sh: New file.
30157
30158 2009-08-12  Bruno Haible  <bruno@clisp.org>
30159
30160         Ensure that getopt() gets declared by <unistd.h>.
30161         * lib/unistd.in.h: Conditionally include getopt.h.
30162         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
30163         Set GNULIB_UNISTD_H_GETOPT.
30164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30165         GNULIB_UNISTD_H_GETOPT.
30166         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
30167
30168 2009-08-12  Bruno Haible  <bruno@clisp.org>
30169
30170         Clarify logic.
30171         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
30172         gl_replace_getopt instead of GETOPT_H.
30173
30174 2009-08-12  Bruno Haible  <bruno@clisp.org>
30175
30176         * m4/getopt.m4: Add comments.
30177
30178 2009-08-12  Bruno Haible  <bruno@clisp.org>
30179
30180         Disable multithread support by default on Cygwin 1.5.x.
30181         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
30182         set gl_use_threads=no if not specified otherwise.
30183
30184 2009-08-11  Bruno Haible  <bruno@clisp.org>
30185
30186         Avoid compilation error on NetBSD 5.0.
30187         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
30188         * tests/test-stdio.c: Likewise.
30189         * tests/test-stdlib.c: Likewise.
30190         * tests/test-string.c: Likewise.
30191         * tests/test-unistd.c: Likewise.
30192         Reported by Greg Troxel <gdt@ir.bbn.com>
30193         at <https://savannah.gnu.org/support/?106973>.
30194
30195 2009-08-11  Bruno Haible  <bruno@clisp.org>
30196
30197         * modules/dup2-tests (Depends-on): Remove close.
30198
30199         Undo 2009-07-19 commit.
30200         * modules/acl-tests (Depends-on): Remove close.
30201         * modules/binary-io-tests (Depends-on): Likewise.
30202         * modules/closein-tests (Depends-on): Likewise.
30203         * modules/flock-tests (Depends-on): Likewise.
30204         * modules/fsync-tests (Depends-on): Likewise.
30205         * modules/lseek-tests (Depends-on): Likewise.
30206         * modules/pipe-tests (Depends-on): Likewise.
30207         * modules/posix_spawn-tests (Depends-on): Likewise.
30208         * modules/posix_spawnp-tests (Depends-on): Likewise.
30209         * modules/stat-time-tests (Depends-on): Likewise.
30210         * modules/yesno-tests (Depends-on): Likewise.
30211
30212 2009-08-10  Bruno Haible  <bruno@clisp.org>
30213
30214         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
30215
30216 2009-08-10  Bruno Haible  <bruno@clisp.org>
30217
30218         Fix a gcc warning.
30219         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
30220
30221 2009-08-10  Bruno Haible  <bruno@clisp.org>
30222
30223         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
30224         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
30225         not only the first time.
30226         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
30227         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
30228         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
30229         is 1, not only the the first time.
30230
30231 2009-08-10  Bruno Haible  <bruno@clisp.org>
30232
30233         Make it possible to use module 'gethostname' without module 'close'.
30234         * lib/unistd.in.h (close): Evoke a link error only if
30235         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
30236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30237         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30238         * modules/unistd (Makefile.am): Substitute
30239         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30240         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
30241         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
30242         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30243         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30244         * modules/sys_ioctl (Makefile.am): Substitute
30245         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30246         * modules/socket (configure.ac): On native Windows, set
30247         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
30248         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30249         Reported by Sam Steingold <sds@gnu.org>.
30250
30251 2009-08-10  Bruno Haible  <bruno@clisp.org>
30252
30253         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
30254         * modules/ioctl (configure.ac): Likewise.
30255
30256 2009-08-10  Bruno Haible  <bruno@clisp.org>
30257
30258         Avoid collision between gnulib wrapper and libintl wrapper.
30259         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
30260         already defined in intl/printf.c.
30261         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
30262         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
30263
30264 2009-08-09  Bruno Haible  <bruno@clisp.org>
30265
30266         Make <sys/select.h> really self-contained, also on Solaris 10.
30267         * lib/sys_select.in.h: Include <string.h>.
30268         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
30269         Solaris 10 problem.
30270         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
30271         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
30272         Reported by Jim Meyering.
30273
30274 2009-08-09  Bruno Haible  <bruno@clisp.org>
30275
30276         Avoid warnings from 'aclocal' that are due to a use of macro name
30277         AM_XGETTEXT_OPTION that is not defined in automake.
30278         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
30279         automake.
30280         * modules/error (configure.ac): Likewise.
30281         * modules/propername (configure.ac): Likewise.
30282         * modules/vasprintf (configure.ac): Likewise.
30283         * modules/verror (configure.ac): Likewise.
30284         * modules/xprintf (configure.ac): Likewise.
30285         * modules/xvasprintf (configure.ac): Likewise.
30286
30287 2009-08-08  Bruno Haible  <bruno@clisp.org>
30288
30289         Avoid compilation error in C++ mode.
30290         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
30291         Reported by Sam Steingold <sds@gnu.org>.
30292
30293 2009-08-08  Bruno Haible  <bruno@clisp.org>
30294
30295         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
30296         for the various Unix platforms.
30297         * doc/posix-headers/limits.texi: Update platforms list regarding
30298         HOST_NAME_MAX.
30299         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30300
30301 2009-08-07  Jim Meyering  <meyering@redhat.com>
30302
30303         selinux-at: fix typo in a comment
30304         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
30305         Spotted by Paolo Bonzini.
30306
30307         selinux-at: remove redundant m4 code, add documentation
30308         * modules/selinux-at (configure.ac): Remove redundant code.
30309         LIB_SELINUX is already set via the dependent module, selinux-h.
30310         (Include): Add quotes around selinux-at.h.
30311         * lib/selinux-at.h: Add documentation.
30312         Reported by Bruno Haible in
30313         http://marc.info/?l=gnulib-bug&m=124958988300749
30314
30315 2009-08-07  Bruno Haible  <bruno@clisp.org>
30316
30317         Avoid link error on MacOS X 10.3 and 10.4.
30318         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
30319         on non-ELF systems.
30320         * lib/argp-pv.c (argp_program_version): Likewise.
30321         Reported by Simon Josefsson.
30322
30323 2009-08-07  Simon Josefsson  <simon@josefsson.org>
30324
30325         * tests/test-version-etc.sh: Use $EXEEXT.
30326
30327 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
30328
30329         update-copyright: update documentation to point to maint.mk
30330         * build-aux/update-copyright: Here.
30331
30332 2009-08-06  Jim Meyering  <meyering@redhat.com>
30333
30334         maint.mk: support update-copyright-local
30335         * top/maint.mk (update-copyright-local): Define place-holder.
30336         (update-copyright): Depend on $(update-copyright-local).
30337
30338 2009-08-06  Jim Meyering  <meyering@redhat.com>
30339
30340         selinux-at: new module
30341         Initially written for coreutils, this module will soon be
30342         used by findutils, too.
30343         * MODULES.html.sh [Misc]: Add selinux-at.
30344         * lib/selinux-at.h: New file, from coreutils.
30345         * lib/selinux-at.c: Likewise.
30346         * modules/selinux-at: Likewise.
30347         (License): Change from LGPL to GPL, since it depends
30348         on the GPL'd openat module.
30349
30350         doc: update README
30351         * README: Remove references to cogito.
30352         Remove cvs-repo-updating instructions from 2007.
30353         Don't imply that CVS is better if you have limited disk space.
30354
30355 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30356
30357         update-copyright: support C-style comments
30358         * build-aux/update-copyright: Implement and document.
30359         * tests/test-update-copyright.sh: Test.
30360
30361 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30362
30363         update-copyright: support omitted "(C)"
30364         * build-aux/update-copyright: Implement and document.  Also,
30365         allow variable whitespace before "(C)".
30366         * tests/test-update-copyright.sh: Test.
30367
30368 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30369
30370         update-copyright: don't trip on non-FSF copyright statements
30371         * build-aux/update-copyright: Fix so that the first correctly
30372         formatted FSF copyright statement is recognized no matter what
30373         appears before it.  Update documentation.
30374         * tests/test-update-copyright.sh: Test that.
30375
30376 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30377
30378         update-copyright: clean up code a little
30379         * build-aux/update-copyright: Append "_re" to the name of any
30380         variable holding a regular expression.
30381         Replace "old" and "new" with "stmt" in variable names.
30382         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
30383         handled correctly.
30384         Format code more consistently.
30385
30386 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30387
30388         update-copyright-tests: improve portability
30389         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
30390         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
30391
30392 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
30393
30394         update-copyright: support @copyright{} and &copy;
30395         * build-aux/update-copyright: Implement and document.
30396         * tests/test-update-copyright.sh: Test.
30397
30398 2009-08-04  Jim Meyering  <meyering@redhat.com>
30399
30400         update-copyright-tests: correctly test EOL=\r\n handling
30401         * tests/test-update-copyright.sh: Put \r at the end of some lines
30402         for the dos-eol tests.  Based on a patch by Joel E. Denny.
30403
30404         maint.mk: make update-copyright exclusion list more configurable
30405         * top/maint.mk (update-copyright): Default to excluding COPYING,
30406         but allow an override, in case someone does want to update that file.
30407
30408         maint.mk: don't update copyright date in COPYING
30409         * top/maint.mk (update-copyright): Exclude COPYING.
30410
30411         maint.mk: add a copyright-updating rule
30412         * top/maint.mk (update-copyright): New rule.
30413         Derived from coreutils/Makefile.am.
30414
30415         update-copyright: rename some variables
30416         * build-aux/update-copyright: Rename a few variables for clarity.
30417         Tweak syntax.  List Joel E. Denny as coauthor.
30418
30419 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
30420
30421         update-copyright: fix bug for 2-digit last year and add tests
30422         * build-aux/update-copyright: Fix bug.
30423         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
30424         specified.
30425         * modules/update-copyright-tests: New
30426         * tests/test-update-copyright.sh: New.
30427
30428 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30429
30430         update-copyright: handle leading tabs in line prefix
30431         * build-aux/update-copyright: Count leading tabs as 8 spaces
30432         when computing margin.  This helps with the formatting of
30433         ChangeLogs, for example.
30434         Fix documentation a little.
30435
30436 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30437
30438         update-copyright: support EOL=\r\n
30439         * build-aux/update-copyright: Implement that.
30440
30441 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30442
30443         update-copyright: automatically format copyright statements
30444         * build-aux/update-copyright: Implement that.
30445         Also, be a little more predictable and safer by always failing
30446         when the full copyright format is not perfectly recognized as an
30447         unbroken whole.  Discussed at
30448         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
30449         Rewrite documentation.
30450
30451 2009-08-03  Bruno Haible  <bruno@clisp.org>
30452
30453         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
30454
30455 2009-08-02  Bruno Haible  <bruno@clisp.org>
30456
30457         Tests for module 'uname'.
30458         * modules/uname-tests: New file.
30459         * tests/test-uname.c: New file.
30460
30461         New module 'uname'.
30462         * lib/uname.c: New file.
30463         * m4/uname.m4: New file.
30464         * modules/uname: New file.
30465         * doc/posix-functions/uname.texi: Mention the new module.
30466
30467 2009-08-02  Bruno Haible  <bruno@clisp.org>
30468
30469         Tests for module 'sys_utsname'.
30470         * modules/sys_utsname-tests: New file.
30471         * tests/test-sys_utsname.c: New file.
30472
30473         New module 'sys_utsname'.
30474         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
30475         * m4/sys_utsname_h.m4: New file.
30476         * modules/sys_utsname: New file.
30477         * doc/posix-headers/sys_utsname.texi: Mention the new module.
30478
30479 2009-08-02  Bruno Haible  <bruno@clisp.org>
30480
30481         Implicitly initialize the sockets library.
30482         * lib/gethostname.c: Include sockets.h.
30483         (rpl_gethostname): Invoke gl_sockets_startup.
30484         * lib/socket.c: Include sockets.h.
30485         (rpl_socket): Invoke gl_sockets_startup.
30486         * modules/gethostname (Depends-on): Add sockets.
30487         * modules/socket (Depends-on): Likewise.
30488         * tests/test-poll.c: Don't include sockets.h.
30489         (main): Don't invoke gl_sockets_startup.
30490         * tests/test-select.c: Don't include sockets.h.
30491         (main): Don't invoke gl_sockets_startup.
30492
30493 2009-08-02  Bruno Haible  <bruno@clisp.org>
30494
30495         Allow multiple calls to gl_sockets_startup.
30496         * lib/sockets.c (initialized_sockets_version): New variable.
30497         (gl_sockets_startup): Do nothing if already called for this or a higher
30498         version.
30499         (gl_sockets_cleanup): Reset initialized_sockets_version.
30500
30501 2009-08-03  Simon Josefsson  <simon@josefsson.org>
30502
30503         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
30504         different project/version.
30505
30506 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
30507             Bruno Haible  <bruno@clisp.org>
30508
30509         Tests for module 'pipe-filter-gi'.
30510         * modules/pipe-filter-gi-tests: New file.
30511         * tests/test-pipe-filter-gi1.sh: New file.
30512         * tests/test-pipe-filter-gi1.c: New file.
30513         * tests/test-pipe-filter-gi2.sh: New file.
30514         * tests/test-pipe-filter-gi2-main.c: New file.
30515         * tests/test-pipe-filter-gi2-child.c: New file.
30516
30517         New module 'pipe-filter-gi'.
30518         * lib/pipe-filter-gi.c: New file.
30519         * modules/pipe-filter-gi: New file.
30520
30521 2009-08-02  Bruno Haible  <bruno@clisp.org>
30522             Paolo Bonzini  <bonzini@gnu.org>
30523
30524         Tests for module 'pipe-filter-ii'.
30525         * modules/pipe-filter-ii-tests: New file.
30526         * tests/test-pipe-filter-ii1.sh: New file.
30527         * tests/test-pipe-filter-ii1.c: New file.
30528         * tests/test-pipe-filter-ii2.sh: New file.
30529         * tests/test-pipe-filter-ii2-main.c: New file.
30530         * tests/test-pipe-filter-ii2-child.c: New file.
30531
30532         New module 'pipe-filter-ii'.
30533         * lib/pipe-filter.h: New file.
30534         * lib/pipe-filter-ii.c: New file.
30535         * lib/pipe-filter-aux.h: New file.
30536         * modules/pipe-filter-ii: New file.
30537
30538 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30539
30540         * lib/gc-libgcrypt.c: Change copyright to FSF.
30541         * lib/gc-gnulib.c: Likewise.
30542
30543 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
30544
30545         * lib/gethostname.c: Include limits.h.
30546
30547 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30548             Bruno Haible  <bruno@clisp.org>
30549
30550         Ensure HOST_NAME_MAX as part of the gethostname module.
30551         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
30552         define also HOST_NAME_MAX.
30553         * tests/test-gethostname.c: Include <limits.h>.
30554         (main): Check also HOST_NAME_MAX.
30555         * doc/posix-headers/limits.texi: Document the mingw problem.
30556
30557 2009-08-02  Bruno Haible  <bruno@clisp.org>
30558
30559         * lib/gethostname.c (gethostname): Fix handling of large len argument.
30560         Add comments.
30561
30562 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30563
30564         * lib/gethostname.c: Add Windows wrapper.
30565         * m4/gethostname.m4: Look for gethostname in -lws2_32.
30566         * modules/gethostname: Depend on sys_socket & errno, for also
30567         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
30568         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
30569
30570 2009-07-31  Jim Meyering  <meyering@redhat.com>
30571
30572         getloadavg: fix symbol name in comment
30573         * lib/getloadavg.c: Correct a typo I introduced when adding
30574         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
30575         Matt Kraai spotted the problem.
30576
30577 2009-07-29  Matt Kraai  <mkraai@beckman.com>
30578
30579         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
30580         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
30581         code also if ! defined N_NAME_POINTER.
30582         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
30583         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
30584         but the n_name member is a 12-byte array.
30585
30586 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
30587
30588         update-copyright: generalize comment handling
30589         * build-aux/update-copyright: Handle copyright statements
30590         within more comment styles.
30591         Document usage.
30592         Report any file with an external copyright holder or parse failure.
30593
30594 2009-07-29  Jim Meyering  <meyering@redhat.com>
30595
30596         mktime: correct setting of REPLACE_MKTIME
30597         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
30598
30599         update-copyright: new module
30600         * modules/update-copyright: New file.
30601         * build-aux/update-copyright: New file.
30602         * MODULES.html.sh (maint+release support): Add update-copyright.
30603
30604 2009-07-27  Bruno Haible  <bruno@clisp.org>
30605
30606         Fix compilation error when <ctime> is used and mktime is replaced.
30607         * lib/time.in.h (mktime): New declaration.
30608         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
30609         REPLACE_MKTIME instead of defining mktime in config.h.
30610         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
30611         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
30612         Reported by Ross McFarland <rwmcfa1@neces.com>.
30613
30614 2009-07-27  Bruno Haible  <bruno@clisp.org>
30615
30616         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
30617         Reported by Matt Kraai <mkraai@beckman.com>.
30618
30619 2009-07-25  Jim Meyering  <meyering@redhat.com>
30620
30621         maint.mk: avoid warnings about missing files
30622         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
30623         diagnostic when .prev-version does not exist.
30624         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
30625         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
30626         nonexistent cfg.mk.
30627         Suggestions from Simon Josefsson.
30628
30629 2009-07-25  Bruno Haible  <bruno@clisp.org>
30630
30631         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
30632         defined as macros. Needed on QNX 6.4.1.
30633         Reported by Matt Kraai <mkraai@beckman.com>.
30634
30635 2009-07-23  Jim Meyering  <meyering@redhat.com>
30636
30637         maint.mk: invoke "make dist" with a working value of XZ_OPT
30638         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
30639
30640 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
30641
30642         Make fseeko.c compile on QNX.
30643         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
30644
30645 2009-07-22  Peter Simons  <simons@cryp.to>
30646
30647         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
30648         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
30649         * lib/md4.h: Likewise.
30650         * lib/md5.h: Likewise.
30651         * lib/sha1.h: Likewise.
30652         * lib/sha256.h: Likewise.
30653         * lib/sha512.h: Likewise.
30654
30655         tests-sha1: don't assign literal string to 'char *' variable
30656         * tests/test-sha1.c (main): Declare locals with "const" to match
30657         attributes of the right hand side.
30658
30659 2009-07-21  Eric Blake  <ebb9@byu.net>
30660
30661         dup2: fix more mingw problems
30662         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
30663         fd to itself.
30664         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30665         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
30666         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
30667         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
30668         care of mingw bugs.
30669
30670 2009-07-21  Jim Meyering  <meyering@redhat.com>
30671
30672         vc-list-files: avoid failure when /bin/sh is dash
30673         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
30674         On some Debian based systems, /bin/sh is a symlink to dash, and running
30675         this command would omit the "/" following each 'tests' prefix:
30676           dash -x build-aux/vc-list-files -C . tests
30677         That is because bash and dash work differently:
30678           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
30679           bash ok
30680           dash odd
30681
30682 2009-07-21  Eric Blake  <ebb9@byu.net>
30683
30684         dup2-tests: test previous patch
30685         * modules/dup2-tests: New file.
30686         * tests/test-dup2.c: Likewise.
30687         * tests/test-open.c (main): Avoid unspecified behavior.
30688         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
30689         test.
30690
30691         dup2: work around mingw and cygwin 1.5 bug
30692         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
30693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30694         * modules/unistd (Makefile.am): Substitute it.
30695         * lib/unistd.in.h (dup2): Declare the replacement.
30696         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
30697         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
30698         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
30699         * modules/execute (Depends-on): Add dup2.
30700         * modules/fseterr (Depends-on): Likewise.
30701         * modules/pipe (Depends-on): Likewise.
30702         * modules/posix_spawn-internal (Depends-on): Likewise.
30703
30704 2009-07-21  Bruno Haible  <bruno@clisp.org>
30705
30706         * modules/.gitattributes: New file.
30707
30708 2009-07-20  Bruno Haible  <bruno@clisp.org>
30709
30710         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
30711         (main): Use it.
30712
30713 2009-07-20  Eric Blake  <ebb9@byu.net>
30714
30715         test-pipe: make a bit more robust.
30716         * tests/test-pipe.c (myerr): Allow error messages regardless of
30717         what we do to stderr.
30718         (test_pipe): Rearrange to avoid deadlock.
30719         (child_main): Try a larger read, to ensure we avoided deadlock.
30720         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
30721         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
30722         if misused.
30723
30724 2009-07-19  Jim Meyering  <meyering@redhat.com>
30725
30726         fts: avoid false-positive cycle-detection
30727         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
30728         for each new command line argument.
30729
30730 2009-07-19  Bruno Haible  <bruno@clisp.org>
30731
30732         Fix build error on mingw with the modules sys_select and unistd.
30733         * modules/acl-tests (Depends-on): Add close.
30734         * modules/binary-io-tests (Depends-on): Likewise.
30735         * modules/closein-tests (Depends-on): Likewise.
30736         * modules/flock-tests (Depends-on): Likewise.
30737         * modules/fsync-tests (Depends-on): Likewise.
30738         * modules/lseek-tests (Depends-on): Likewise.
30739         * modules/pipe-tests (Depends-on): Likewise.
30740         * modules/posix_spawn-tests (Depends-on): Likewise.
30741         * modules/posix_spawnp-tests (Depends-on): Likewise.
30742         * modules/stat-time-tests (Depends-on): Likewise.
30743         * modules/yesno-tests (Depends-on): Likewise.
30744
30745 2009-07-19  Bruno Haible  <bruno@clisp.org>
30746
30747         Unify conditionals.
30748         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
30749         macros, not at the compiler macros.
30750         * lib/pipe.c: Likewise.
30751         * lib/execute.c: Likewise.
30752         * lib/spawni.c: Likewise.
30753
30754 2009-07-19  Bruno Haible  <bruno@clisp.org>
30755
30756         Fix handling of closed stdin/stdout/stderr on mingw.
30757         * lib/w32spawn.h: Include unistd.h.
30758         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
30759         file descriptor with O_NOINHERIT flag.
30760         (fd_safer_noinherit): New function, based on fd-safer.c.
30761         (dup_safer_noinherit): New function, based on dup-safer.c.
30762         (undup_safer_noinherit): New function.
30763         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
30764         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
30765         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
30766         instead of fd_safer.
30767         * tests/test-pipe.c: Include <windows.h>.
30768         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
30769         result.
30770
30771         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
30772         from main.
30773         (test_pipe): Pass an extra argument for disambiguation.
30774         (main): Invoke parent_main or child_main.
30775
30776         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
30777         consistently.
30778
30779 2009-07-18  Eric Blake  <ebb9@byu.net>
30780
30781         test-pipe: fix mingw build
30782         * tests/test-pipe.c (main): Avoid fcntl on mingw.
30783
30784 2009-07-18  Bruno Haible  <bruno@clisp.org>
30785
30786         * modules/pipe-tests (Makefile.am): Fix typo.
30787
30788 2009-07-18  Eric Blake  <ebb9@byu.net>
30789
30790         error: fix mingw build
30791         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
30792         Reported by Bruno Haible.
30793
30794         error: avoid undefined use of stdout
30795         * lib/error.c (error, error_at_line): Check that fd 1 is open
30796         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
30797         is handling faults and the close_stdout module wants to report the
30798         detection of closed stdout as an error.
30799
30800 2009-07-17  Eric Blake  <ebb9@byu.net>
30801
30802         pipe: be robust in face of closed fds
30803         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
30804         should cause child to misbehave.
30805         * modules/pipe-tests: New module.
30806         * tests/test-pipe.c: New file.
30807         * tests/test-pipe.sh: New file.
30808         Reported by Akim Demaille.
30809
30810 2009-07-14  Bruno Haible  <bruno@clisp.org>
30811
30812         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
30813         Reported by anonymous kc.
30814
30815 2009-07-07  Jim Meyering  <meyering@redhat.com>
30816
30817         maint.mk: don't look for translatable strings in *.m4 or *.mk
30818         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
30819         when searching for translatable strings.
30820
30821 2009-07-05  Jim Meyering  <meyering@redhat.com>
30822
30823         remove superfluous parentheses in STREQ definition
30824         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
30825         * lib/getugroups.c (STREQ): Likewise.
30826         * lib/fnmatch.c (STREQ): Likewise.
30827         Spotted by Bruno Haible.
30828
30829 2009-07-04  Jim Meyering  <meyering@redhat.com>
30830
30831         argv-iter: new module
30832         * MODULES.html.sh: Add argv-iter.
30833         * lib/argv-iter.c, lib/argv-iter.h: New files.
30834         * modules/argv-iter: New file.
30835         * modules/argv-iter-tests: New file.
30836         * tests/test-argv-iter.c: Test it.
30837
30838 2009-07-04  Bruno Haible  <bruno@clisp.org>
30839
30840         Fix assertion.
30841         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
30842         contains more exact copies of a given entry than file2, leave the extra
30843         copies unpaired rather than aborting.
30844         Reported by Eric Blake.
30845
30846 2009-07-02  Bruno Haible  <bruno@clisp.org>
30847
30848         Speedup git-merge-changelog for git cherry-pick.
30849         * lib/git-merge-changelog.c (struct entries_mapping): New type.
30850         (entries_mapping_get): New function, extracted from compute_mapping.
30851         (entries_mapping_reverse_get): New function.
30852         (compute_mapping): Add a 'full' argument. Return the result in a
30853         'struct entries_mapping'.
30854         (main): Update. Access the mappings through entries_mapping_get.
30855         Reported by Eric Blake.
30856
30857 2009-07-02  Bruno Haible  <bruno@clisp.org>
30858
30859         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
30860         best_i.
30861
30862 2009-07-02  Bruno Haible  <bruno@clisp.org>
30863
30864         Speed up approximate search for matching ChangeLog entries.
30865         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
30866         argument. Call fstrcmp_bounded instead of fstrcmp.
30867         (compute_mapping, try_split_merged_entry, main): Update callers.
30868
30869 2009-07-02  Bruno Haible  <bruno@clisp.org>
30870
30871         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
30872
30873 2009-06-30  Bruno Haible  <bruno@clisp.org>
30874
30875         Reduce the number of uc_is_cased calls.
30876         * lib/unicase.h (casing_suffix_context_t): Add
30877         'first_char_except_ignorable' field.
30878         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
30879         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
30880         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
30881         Update initializer.
30882         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
30883         case-ignorable characters.
30884         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
30885         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
30886         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
30887         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
30888         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
30889
30890 2009-06-30  Bruno Haible  <bruno@clisp.org>
30891
30892         Tests for module 'unicase/ignorable'.
30893         * modules/unicase/ignorable-tests: New file.
30894         * tests/unicase/test-ignorable.c: New file, generated by
30895         gen-uni-tables.
30896
30897         Tests for module 'unicase/cased'.
30898         * modules/unicase/cased-tests: New file.
30899         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
30900         * tests/unicase/test-predicate-part1.h: New file, derived from
30901         tests/unictype/test-predicate-part1.h.
30902         * tests/unicase/test-predicate-part2.h: New file, same as
30903         tests/unictype/test-predicate-part2.h.
30904
30905         Fix evaluation of "Before C" condition of FINAL_SIGMA.
30906         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
30907         (output_casing_properties): New function.
30908         (main): Call it.
30909         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
30910         * lib/unicase/cased.c: Include unictype/bitmap.h.
30911         (uc_is_cased): Define through a bitmap lookup.
30912         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
30913         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
30914         (uc_is_case_ignorable): Define through a bitmap lookup.
30915         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
30916         lib/unictype/bitmap.h.
30917         (Depends-on): Add inline. Clean up.
30918         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
30919         lib/unictype/bitmap.h.
30920         (Depends-on): Add inline. Clean up.
30921         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
30922         recognition.
30923         * tests/unicase/test-u16-tolower.c (main): Likewise.
30924         * tests/unicase/test-u32-tolower.c (main): Likewise.
30925
30926 2009-06-30  Bruno Haible  <bruno@clisp.org>
30927
30928         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
30929         * lib/unicase/u16-casemap.c: Likewise.
30930         * lib/unicase/u32-casemap.c: Likewise.
30931
30932 2009-06-29  Bruno Haible  <bruno@clisp.org>
30933
30934         Define u32_casefold as a wrapper around u32_ct_casefold.
30935         * lib/unicase/u32-casefold.c: Update.
30936         * modules/unicase/u32-casefold (Depends-on): Add
30937         unicase/u32-ct-casefold, unicase/empty-prefix-context,
30938         unicase/empty-suffix-context. Clean up.
30939
30940         Define u16_casefold as a wrapper around u16_ct_casefold.
30941         * lib/unicase/u16-casefold.c: Update.
30942         * modules/unicase/u16-casefold (Depends-on): Add
30943         unicase/u16-ct-casefold, unicase/empty-prefix-context,
30944         unicase/empty-suffix-context. Clean up.
30945
30946         Define u8_casefold as a wrapper around u8_ct_casefold.
30947         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
30948         * lib/unicase/u8-casefold.c: Update.
30949         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
30950         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30951
30952         Define u32_totitle as a wrapper around u32_ct_totitle.
30953         * lib/unicase/u32-totitle.c: Update.
30954         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
30955         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30956
30957         Define u16_totitle as a wrapper around u16_ct_totitle.
30958         * lib/unicase/u16-totitle.c: Update.
30959         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
30960         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30961
30962         Define u8_totitle as a wrapper around u8_ct_totitle.
30963         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
30964         functions.
30965         (FUNC): Delegate to U_CT_TOTITLE.
30966         * lib/unicase/u8-totitle.c: Update.
30967         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
30968         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30969
30970         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
30971         invocation.
30972         * modules/unicase/u32-tolower (Depends-on): Add
30973         unicase/empty-prefix-context, unicase/empty-suffix-context.
30974
30975         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
30976         invocation.
30977         * modules/unicase/u16-tolower (Depends-on): Add
30978         unicase/empty-prefix-context, unicase/empty-suffix-context.
30979
30980         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
30981         * modules/unicase/u8-tolower (Depends-on): Add
30982         unicase/empty-prefix-context, unicase/empty-suffix-context.
30983
30984         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
30985         invocation.
30986         * modules/unicase/u32-toupper (Depends-on): Add
30987         unicase/empty-prefix-context, unicase/empty-suffix-context.
30988
30989         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
30990         invocation.
30991         * modules/unicase/u16-toupper (Depends-on): Add
30992         unicase/empty-prefix-context, unicase/empty-suffix-context.
30993
30994         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
30995         * modules/unicase/u8-toupper (Depends-on): Add
30996         unicase/empty-prefix-context, unicase/empty-suffix-context.
30997
30998         New module 'unicase/u32-ct-casefold'.
30999         * lib/unicase/u32-ct-casefold.c: New file.
31000         * modules/unicase/u32-ct-casefold: New file.
31001
31002         New module 'unicase/u16-ct-casefold'.
31003         * lib/unicase/u16-ct-casefold.c: New file.
31004         * modules/unicase/u16-ct-casefold: New file.
31005
31006         New module 'unicase/u8-ct-casefold'.
31007         * lib/unicase/u8-ct-casefold.c: New file.
31008         * lib/unicase/u-ct-casefold.h: New file, derived from
31009         lib/unicase/u-casefold.h.
31010         * modules/unicase/u8-ct-casefold: New file.
31011
31012         New module 'unicase/u32-ct-totitle'.
31013         * lib/unicase/u32-ct-totitle.c: New file.
31014         * modules/unicase/u32-ct-totitle: New file.
31015
31016         New module 'unicase/u16-ct-totitle'.
31017         * lib/unicase/u16-ct-totitle.c: New file.
31018         * modules/unicase/u16-ct-totitle: New file.
31019
31020         New module 'unicase/u8-ct-totitle'.
31021         * lib/unicase/u8-ct-totitle.c: New file.
31022         * lib/unicase/u-ct-totitle.h: New file, derived from
31023         lib/unicase/u-totitle.h.
31024         * modules/unicase/u8-ct-totitle: New file.
31025
31026         New module 'unicase/u32-ct-tolower'.
31027         * lib/unicase/u32-ct-tolower.c: New file.
31028         * modules/unicase/u32-ct-tolower: New file.
31029
31030         New module 'unicase/u16-ct-tolower'.
31031         * lib/unicase/u16-ct-tolower.c: New file.
31032         * modules/unicase/u16-ct-tolower: New file.
31033
31034         New module 'unicase/u8-ct-tolower'.
31035         * lib/unicase/u8-ct-tolower.c: New file.
31036         * modules/unicase/u8-ct-tolower: New file.
31037
31038         New module 'unicase/u32-ct-toupper'.
31039         * lib/unicase/u32-ct-toupper.c: New file.
31040         * modules/unicase/u32-ct-toupper: New file.
31041
31042         New module 'unicase/u16-ct-toupper'.
31043         * lib/unicase/u16-ct-toupper.c: New file.
31044         * modules/unicase/u16-ct-toupper: New file.
31045
31046         New module 'unicase/u8-ct-toupper'.
31047         * lib/unicase/u8-ct-toupper.c: New file.
31048         * modules/unicase/u8-ct-toupper: New file.
31049
31050         Add context arguments to u*_casemap functions.
31051         * lib/unicase/unicasemap.h: Include unicase.h.
31052         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
31053         suffix_context arguments.
31054         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
31055         functions.
31056         (FUNC): Add prefix_context and suffix_context arguments. Use
31057         uc_is_cased and uc_is_case_ignorable.
31058         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
31059         * lib/unicase/u16-casemap.c: Likewise.
31060         * lib/unicase/u32-casemap.c: Likewise.
31061         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
31062         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31063         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
31064         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31065         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
31066         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31067
31068         New module 'unicase/u32-suffix-context'.
31069         * lib/unicase/u32-suffix-context.c: New file.
31070         * modules/unicase/u32-suffix-context: New file.
31071
31072         New module 'unicase/u16-suffix-context'.
31073         * lib/unicase/u16-suffix-context.c: New file.
31074         * modules/unicase/u16-suffix-context: New file.
31075
31076         New module 'unicase/u8-suffix-context'.
31077         * lib/unicase/u8-suffix-context.c: New file.
31078         * lib/unicase/u-suffix-context.h: New file.
31079         * modules/unicase/u8-suffix-context: New file.
31080
31081         New module 'unicase/empty-suffix-context'.
31082         * lib/unicase/empty-suffix-context.c: New file.
31083         * modules/unicase/empty-suffix-context: New file.
31084
31085         New module 'unicase/u32-prefix-context'.
31086         * lib/unicase/u32-prefix-context.c: New file.
31087         * modules/unicase/u32-prefix-context: New file.
31088
31089         New module 'unicase/u16-prefix-context'.
31090         * lib/unicase/u16-prefix-context.c: New file.
31091         * modules/unicase/u16-prefix-context: New file.
31092
31093         New module 'unicase/u8-prefix-context'.
31094         * lib/unicase/u8-prefix-context.c: New file.
31095         * lib/unicase/u-prefix-context.h: New file.
31096         * lib/unicase/context.h: New file.
31097         * modules/unicase/u8-prefix-context: New file.
31098
31099         New module 'unicase/empty-prefix-context'.
31100         * lib/unicase/empty-prefix-context.c: New file.
31101         * modules/unicase/empty-prefix-context: New file.
31102
31103         New module 'unicase/ignorable'.
31104         * lib/unicase/ignorable.c: New file.
31105         * modules/unicase/ignorable: New file.
31106
31107         New module 'unicase/cased'.
31108         * lib/unicase/caseprop.h: New file.
31109         * lib/unicase/cased.c: New file.
31110         * modules/unicase/cased: New file.
31111
31112         New functions for case mapping of substrings.
31113         * lib/unicase.h (casing_prefix_context_t): New type.
31114         (unicase_empty_prefix_context): New variable.
31115         (u8_casing_prefix_context, u16_casing_prefix_context,
31116         u32_casing_prefix_context, u8_casing_prefixes_context,
31117         u16_casing_prefixes_context, u32_casing_prefixes_context): New
31118         declarations.
31119         (casing_suffix_context_t): New type.
31120         (unicase_empty_suffix_context): New variable.
31121         (u8_casing_suffix_context, u16_casing_suffix_context,
31122         u32_casing_suffix_context, u8_casing_suffixes_context,
31123         u16_casing_suffixes_context, u32_casing_suffixes_context,
31124         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
31125         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
31126         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
31127         declarations.
31128
31129 2009-06-28  Jim Meyering  <meyering@redhat.com>
31130
31131         boostrap: indent only with spaces
31132         * build-aux/bootstrap: Indent only with spaces, never TABs.
31133
31134         bootstrap: split long lines
31135         * build-aux/bootstrap: Keep line length < 80.
31136
31137         bootstrap: sync from coreutils
31138         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
31139         just as autoreconf does.  Verify a list of prerequisite
31140         package-name,version-number pairs if defined in bootstrap.conf.
31141         Refer to README-prereq, if prerequisites are not satisfied.
31142
31143 2009-06-27  Eric Blake  <ebb9@byu.net>
31144
31145         tests: add test for bogus NULL definition
31146         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
31147         * tests/test-stdlib.c: Likewise.
31148         * tests/test-string.c: Likewise.
31149         * tests/test-locale.c: Likewise.
31150         * tests/test-unistd.c: Likewise.
31151         * modules/stdio-tests (Depends-on): Add verify.
31152         * modules/stdlib-tests (Depends-on): Likewise.
31153         * modules/string-tests (Depends-on): Likewise.
31154         * modules/locale-tests (Depends-on): Likewise.
31155         * modules/unistd-tests (Depends-on): Likewise.
31156
31157 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
31158
31159         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
31160         self-explaining comment.
31161         * m4/selinux-selinux-h: Update serial.
31162         (gl_LIBSELINUX): New macro, adding a warning for missing development
31163         packages to code extracted from...
31164         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
31165         Add warning for missing development packages here, too.
31166
31167 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
31168
31169         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
31170
31171 2009-06-25  Eric Blake  <ebb9@byu.net>
31172
31173         version-etc: fix regression
31174         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
31175         gcc.
31176         (version_etc): Use it, to catch bugs with trailing NULL.
31177         * lib/version-etc.c (version_etc_arn): Delete unused argument.
31178         (version_etc_va): Fix logic bug.
31179         * modules/version-etc-tests: Add test.
31180         * tests/test-version-etc.c: New file.
31181         * tests/test-version-etc.sh: Likewise.
31182
31183 2009-06-25  Sam Steingold  <sds@gnu.org>
31184
31185         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
31186         mbtowc declaration.
31187
31188 2009-06-25  Eric Blake  <ebb9@byu.net>
31189
31190         fpurge: migrate into <stdio.h>
31191         * lib/fpurge.h: Delete...
31192         * lib/stdio.in.h (fpurge): ...and declare here, instead.
31193         * lib/fpurge.c (fpurge): Change declaring header.
31194         * modules/fpurge (Files): Drop deleted file.
31195         (Depends-on): Add stdio.
31196         (configure.ac): Set witness.
31197         * modules/stdio (Makefile.am): Support fpurge macros.
31198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31199         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
31200         * lib/fflush.c: Update client.
31201         * tests/test-fpurge.c: Likewise.
31202         * NEWS: Mention the change.
31203
31204 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31205
31206         * lib/argp-version-etc.c (program_authors): Add const
31207         qualifier.
31208         * lib/version-etc.c: Fix typos in the comments.
31209         * modules/argp-version-etc: Depends on version-etc.
31210
31211 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31212
31213         argp-version-etc: new module.
31214
31215         * lib/argp-version-etc.c: New file.
31216         * lib/argp-version-etc.h: New file.
31217         * modules/argp-version-etc: New file.
31218         * modules/argp-version-etc-tests: New file.
31219         * tests/test-argp-version-etc.c: New test.
31220         * tests/test-argp-version-etc-1.sh: New test.
31221
31222 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31223
31224         Provide additional interfaces and documentation for version-etc
31225         module.
31226
31227         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
31228         interfaces.
31229         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
31230         prototypes.
31231
31232 2009-06-24  Bruno Haible  <bruno@clisp.org>
31233
31234         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
31235         HAVE_LIB${NAME} macro.
31236         Reported by Sam Steingold <sds@gnu.org>.
31237
31238 2009-06-23  Simon Josefsson  <simon@josefsson.org>
31239
31240         * modules/hash-tests (test_hash_LDADD): Link to libintl when
31241         needed.
31242
31243 2009-06-21  Bruno Haible  <bruno@clisp.org>
31244
31245         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
31246         work.
31247         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
31248         together with LIB${NAME}, LTLIB${NAME}.
31249         Reported by Sam Steingold <sds@gnu.org>.
31250
31251 2009-06-20  Jim Meyering  <meyering@redhat.com>
31252
31253         tests: make sc_require_test_exit_idiom more generic
31254         * top/maint.mk (Exit_witness_file): New overridable variable.
31255         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
31256         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
31257
31258 2009-06-19  Jim Meyering  <meyering@redhat.com>
31259
31260         hash: reverse order of src/dst parameters in an internal interface
31261         * lib/hash.c (transfer_entries): Reverse order of parameters to
31262         put DST before SRC.  Adjust callers.
31263
31264         tests: test-hash: avoid wholesale duplication
31265         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
31266         Instead, use a loop and add a single conditional.
31267
31268         tests: test-hash: allow seed selection via a command line argument
31269         * tests/test-hash.c (get_seed): New function.
31270         (main): Use it.
31271
31272 2009-06-19  Eric Blake  <ebb9@byu.net>
31273
31274         hash: avoid memory leak on allocation failure
31275         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
31276         failure.  Factor repeated algorithm...
31277         (transfer_entries): ...into new helper routine.
31278         (hash_delete): React to hash_rehash return value.
31279
31280         hash: reduce memory pressure in hash_rehash no-op case
31281         * lib/hash.c (next_prime): Avoid overflow.
31282         (hash_initialize): Factor bucket size computation...
31283         (compute_bucket_size): ...into new helper function.
31284         (hash_rehash): Use new function and open coding to reduce memory
31285         pressure, and avoid a memory leak in USE_OBSTACK code.
31286         Reported by Jim Meyering.
31287
31288 2009-06-18  Eric Blake  <ebb9@byu.net>
31289
31290         hash: make rotation more obvious
31291         * modules/hash (Depends-on): Add bitrotate and stdint.
31292         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
31293         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
31294         (SIZE_MAX): Rely on headers for definition.
31295         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
31296         (raw_hasher): Use rotr_sz.
31297         Suggested by Jim Meyering.
31298
31299         hash: fix memory leak in last patch
31300         * lib/hash.c (hash_rehash): Avoid memory leak.
31301
31302         hash: avoid no-op rehashing
31303         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
31304
31305         hash: provide default callback functions
31306         * lib/hash.c (raw_hasher, raw_comparator): New functions.
31307         (hash_initialize): Use them as defaults.
31308         * tests/test-hash.c (main): Test this.
31309
31310         hash: minor optimization
31311         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
31312         when possible.
31313         (hash_initialize): Document this promise.
31314         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
31315         * tests/test-hash.c (hash_compare_strings): Test this.
31316
31317 2009-06-18  Bruno Haible  <bruno@clisp.org>
31318
31319         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
31320         going to be replaced anyway.
31321
31322 2009-06-18  Bruno Haible  <bruno@clisp.org>
31323
31324         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
31325         in one place.
31326         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
31327         be replaced anyway.
31328
31329 2009-06-18  Eric Blake  <ebb9@byu.net>
31330
31331         hash: check for resize before insertion
31332         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
31333         threshold before insertion, so that a pathological hash_rehash
31334         that fills every bucket can still trigger another rehash.
31335
31336 2009-06-18  Jim Meyering  <meyering@redhat.com>
31337
31338         hash-tests: add a loop around the small tests
31339         * tests/test-hash.c (main): Repeat small tests with selected
31340         small initial table sizes.
31341
31342 2009-06-17  Eric Blake  <ebb9@byu.net>
31343
31344         hash: minor cleanups
31345         * lib/hash.h (hash_entry): Make opaque, by moving...
31346         * lib/hash.c (hash_entry): ...here.
31347         (hash_insert): Clarify restrictions on what can be inserted.
31348         (hash_get_next): Clarify when it is safe to remove an element
31349         during traversal.
31350         (check_tuning): Skip verification when tuning is known safe.
31351         (hash_initialize): Clarify restrictions on tuning.
31352
31353 2009-06-17  Jim Meyering  <jim@meyering.net>
31354         and Eric Blake  <ebb9@byu.net>
31355
31356         hash-tests: new module
31357         * modules/hash-tests: New file.
31358         * tests/test-hash.c: New file.
31359
31360 2009-06-17  Eric Blake  <ebb9@byu.net>
31361
31362         strstr-simple: document new module
31363         * MODULES.html.sh: Document new module.
31364
31365         strstr, strcasestr: replace on platforms with broken memchr
31366         * modules/strstr: Split into...
31367         * modules/strstr-simple: ...new module that does not care about
31368         performance, but does care about glibc bug.
31369         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
31370         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
31371         if platform memchr is broken, per Debian bug 521737.
31372         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
31373         memchr.
31374         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
31375         * doc/posix-functions/strstr.texi (strstr): Document the fix.
31376         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
31377         * modules/mountlist (Depends-on): Add strstr-simple.
31378         * modules/gen-uni-tables (Depends-on): Likewise.
31379         * modules/argz (Depends-on): Add strstr.
31380
31381 2009-06-17  Bruno Haible  <bruno@clisp.org>
31382
31383         * modules/posix_spawn-internal (Depends-on): Add errno.
31384
31385 2009-06-17  Bruno Haible  <bruno@clisp.org>
31386
31387         Define missing ESTALE on Interix 3.5.
31388         * lib/errno.in.h (ESTALE): Assign a value if missing.
31389         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
31390         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
31391         missing.
31392         * doc/posix-headers/errno.texi: Mention the Interix bug.
31393         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
31394
31395 2009-06-15  Eric Blake  <ebb9@byu.net>
31396
31397         memchr, memchr2: add valgrind exception
31398         * lib/memchr.valgrind: New file.
31399         * lib/memchr2.valgrind: New file.
31400         * modules/memchr (Files): Distribute valgrind file.
31401         * modules/memchr2 (Files): Likewise.
31402
31403         docs: memchr is no longer obsolete
31404         * MODULES.html.sh: Move memchr from obsolete to string.h section.
31405         * lib/string.in.h (memchr): Simplify logic.
31406
31407 2009-06-14  Jim Meyering  <meyering@redhat.com>
31408
31409         link-follow: fix the "checking..." message to not mention trailing slash
31410         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
31411         never considered trailing slashes.
31412
31413 2009-06-14  Bruno Haible  <bruno@clisp.org>
31414
31415         * m4/memchr.m4: Mention also the bug on IA-64.
31416         * doc/posix-functions/memchr.texi: Likewise.
31417
31418 2009-06-12  Eric Blake  <ebb9@byu.net>
31419
31420         memchr: detect broken x86_64 and alpha implementations
31421         * modules/memchr-tests (Depends-on): Move mmap detection...
31422         * modules/memchr (Depends-on): ...here.
31423         (configure.ac): Set indicator.
31424         * lib/string.in.h (memchr): Declare replacement.
31425         * modules/string (Makefile.am): Trigger replacement.
31426         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
31427         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
31428         bugs.
31429         * doc/posix-functions/memchr.texi (memchr): Document the bug.
31430         * modules/getpagesize (License): Relax license.
31431
31432 2009-06-11  Bruno Haible  <bruno@clisp.org>
31433
31434         * lib/idpriv.h: Add more references.
31435
31436 2009-06-08  Bruno Haible  <bruno@clisp.org>
31437
31438         Tests for module 'idpriv-droptemp'.
31439         * modules/idpriv-droptemp-tests: New file.
31440         * tests/test-idpriv-droptemp.sh: New file.
31441         * tests/test-idpriv-droptemp.su.sh: New file.
31442         * tests/test-idpriv-droptemp.c: New file.
31443
31444         New module 'idpriv-droptemp'.
31445         * lib/idpriv-droptemp.c: New file.
31446         * modules/idpriv-droptemp: New file.
31447
31448 2009-06-08  Bruno Haible  <bruno@clisp.org>
31449
31450         Tests for module 'idpriv-drop'.
31451         * modules/idpriv-drop-tests: New file.
31452         * tests/test-idpriv-drop.sh: New file.
31453         * tests/test-idpriv-drop.su.sh: New file.
31454         * tests/test-idpriv-drop.c: New file.
31455
31456         New module 'idpriv-drop'.
31457         * lib/idpriv.h: New file.
31458         * lib-idpriv-drop.c: New file.
31459         * m4/idpriv.m4: New file.
31460         * modules/idpriv-drop: New file.
31461
31462 2009-06-08  Bruno Haible  <bruno@clisp.org>
31463
31464         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
31465         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31466         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31467         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31468         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31469         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31470         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31471
31472 2009-06-08  Eric Blake  <ebb9@byu.net>
31473
31474         test-strstr: use memory fence, when possible
31475         * tests/test-strstr.c (main): Use memory fence, in order to be
31476         more likely to trigger Debian bug 521737.
31477         * modules/strstr-tests (Files): Pull in additional files.
31478
31479         memchr: no longer obsolete, for wider field testing
31480         * modules/memchr (Status, Notice): Delete, this module is no
31481         longer obsolete.
31482         * modules/vasnprintf (Depends-on): Add memchr.
31483
31484 2009-06-07  Jim Meyering  <meyering@redhat.com>
31485
31486         hash: declare some functions with the warn_unused_result attribute
31487         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
31488
31489 2009-06-07  Bruno Haible  <bruno@clisp.org>
31490
31491         * tests/test-alignof.c: Don't test int64_t if it does not exist.
31492         Reported by Eric Blake.
31493
31494 2009-06-06  Eric Blake  <ebb9@byu.net>
31495
31496         test-alignof: fix typo with long double
31497         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
31498         compiler error.
31499
31500 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
31501
31502         Escape non-texinfo { and }s.
31503         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
31504         markup error.
31505
31506 2009-06-04  Jim Meyering  <meyering@redhat.com>
31507
31508         gitlog-to-changelog: don't infloop on an empty commit log
31509         * build-aux/gitlog-to-changelog: Warn about an empty log message.
31510         Reported by Boris Petersen <transacid@centerim.org>.
31511
31512 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
31513
31514         version-etc: extend for packagers
31515         Add three new configure options, intended for packagers:
31516           --with-packager="packager name"
31517           --with-packager-version="packager-specific version"
31518           --with-packager-bug-reports="packager bug reporting"
31519         An example with coreutils:
31520           $ ./configure \
31521             --with-packager=Gentoo \
31522             --with-packager-bug-report=http://bugs.gentoo.org/ \
31523             --with-packager-version="patchset 1.6"
31524           $ ./src/ls --version | head -n2
31525           ls (GNU coreutils) 7.1-dirty
31526           Packaged by Gentoo (patchset 1.6)
31527         Note that the bug reporting info via --help doesn't show up because
31528         coreutils uses its own custom emit_bug_reporting_address() implementation
31529         in src/system.h.  If it didn't, it'd look like:
31530           $ ./src/ls --help | tail -n4
31531           Report bugs to <bug-coreutils@gnu.org>.
31532           Report Gentoo bugs to <http://bugs.gentoo.org/>.
31533           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
31534           General help using GNU software: <http://www.gnu.org/gethelp/>.
31535         * lib/version-etc.c: Print new information, if provided.
31536         * m4/version-etc.m4: New file.
31537         * modules/version-etc (Files): Add m4/version-etc.m4.
31538         (configure.ac): Add gl_VERSION_ETC.
31539
31540 2009-05-31  Bruno Haible  <bruno@clisp.org>
31541
31542         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
31543         and 'int64_t'.
31544         * modules/alignof-tests (Dependencies): Add stdint.
31545         Reported by Eric Blake.
31546
31547 2009-05-31  Bruno Haible  <bruno@clisp.org>
31548
31549         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
31550         restriction due to compiler bugs.
31551         Reported by Eric Blake.
31552
31553 2009-05-31  Simon Josefsson  <simon@josefsson.org>
31554             Bruno Haible  <bruno@clisp.org>
31555
31556         Fix test-alignof failure.
31557         * lib/alignof.h (alignof_slot): New macro.
31558         (alignof_type): New macro, with the same semantics as the previous
31559         'alignof'.
31560         (alignof): Alias to alignof_slot.
31561         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
31562         check that the results are usable as constant expressions.
31563
31564 2009-05-31  Bruno Haible  <bruno@clisp.org>
31565
31566         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
31567         * tests/test-memchr.c (main): Check that memchr does not read past the
31568         first occurrence of the byte.
31569         * tests/test-strstr.c (main): Update comment.
31570         Suggested by Eric Blake.
31571
31572 2009-05-30  Bruno Haible  <bruno@clisp.org>
31573
31574         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
31575         detail how to use dumpbin.
31576         Reported by David Byron <dbyron@dbyron.com>.
31577
31578 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31579
31580         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
31581
31582 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31583
31584         * m4/manywarnings.m4: Add GCC 4.4 warnings.
31585
31586 2009-05-28  Bruno Haible  <bruno@clisp.org>
31587
31588         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
31589         build-aux/ files.
31590
31591 2009-05-28  Simon Josefsson  <simon@josefsson.org>
31592
31593         * gnulib-tool (func_import): Transform license on build-aux/ files too.
31594
31595 2009-05-27  Simon Josefsson  <simon@josefsson.org>
31596
31597         * gnulib-tool (sed_transform_main_lib_file)
31598         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
31599         regexps.
31600
31601 2009-05-26  Simon Josefsson  <simon@josefsson.org>
31602
31603         * tests/test-strstr.c: Add another self-test.
31604         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
31605         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
31606
31607 2009-05-23  Bruno Haible  <bruno@clisp.org>
31608
31609         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
31610         change.
31611
31612 2009-05-21  Bruno Haible  <bruno@clisp.org>
31613
31614         Simplify use of mode_t varargs.
31615         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
31616         uses 'mode_t' or 'int'.
31617         * lib/openat.c (openat): Likewise.
31618         * lib/open-safer.c (open_safer): Likewise.
31619         * m4/mode_t.m4: New file.
31620         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
31621         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
31622         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
31623         * modules/open (Files): Add m4/mode_t.m4.
31624         * modules/openat (Files): Likewise.
31625         * modules/fcntl-safer (Files): Likewise.
31626         Suggested by Eric Blake.
31627
31628 2009-05-21  Pádraig Brady  <P@draigbrady.com>
31629
31630         * doc/glibc-functions/fallocate.texi: New file.
31631         * doc/gnulib.texi: Include it.
31632
31633 2009-05-21  Eric Blake  <ebb9@byu.net>
31634             Bruno Haible  <bruno@clisp.org>
31635
31636         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
31637         invocations.
31638         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31639
31640 2009-05-21  Eric Blake  <ebb9@byu.net>
31641             Bruno Haible  <bruno@clisp.org>
31642
31643         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
31644         include_next. Fix of 2008-11-20 commit.
31645         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
31646         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
31647         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
31648         NEXT_MATH_H.
31649         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
31650         instead of NEXT_MATH_H.
31651
31652 2009-05-21  Bruno Haible  <bruno@clisp.org>
31653
31654         Avoid redefinition warnings for SIZE_MAX.
31655         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
31656         Reported by Simon Josefsson.
31657
31658 2009-05-21  Bruno Haible  <bruno@clisp.org>
31659
31660         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
31661         AC_CACHE_VAL.
31662
31663 2009-05-20  Bruno Haible  <bruno@clisp.org>
31664
31665         Make zeroptr.h work on mingw.
31666         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
31667         mprotect.
31668         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
31669         * modules/memchr2-tests (configure.ac): Likewise.
31670         * modules/memcmp-tests (configure.ac): Likewise.
31671         * modules/memmem-tests (configure.ac): Likewise.
31672         * modules/memrchr-tests (configure.ac): Likewise.
31673         Reported by Simon Josefsson.
31674
31675 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31676
31677         * tests/test-glob.c: Include string.h for strcmp prototype.
31678
31679 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31680
31681         * modules/getdelim (Depends-on): Add explicit stdint, although it
31682         was implicitly already pulled in via realloc-posix.
31683         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
31684
31685 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31686
31687         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
31688         G. Christensen" <tgc@jupiterrise.com>.
31689         * m4/sys_socket_h.m4: Check for sa_family_t.
31690         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
31691         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
31692         * tests/test-sys_socket.c: Check that sa_family_t works.
31693
31694 2009-05-18  Eric Blake  <ebb9@byu.net>
31695
31696         maint.mk: allow gnulib_dir in VPATH build
31697         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
31698
31699 2009-05-15  Jim Meyering  <meyering@redhat.com>
31700
31701         maint.mk: Give gnulib_dir a default definition.
31702         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
31703         Thus, most packages no longer need to specify this variable in cfg.mk
31704
31705 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
31706
31707         rename.m4: fix typos that would make non-mingw cross-configure fail
31708         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
31709
31710 2009-05-13  Eric Blake  <ebb9@byu.net>
31711
31712         mmap-anon: avoid out-of-order autoconf expansion
31713         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
31714         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
31715         * modules/memchr-tests (Depends-on): Add extensions.
31716         * modules/memchr2-tests (Depends-on): Add extensions.
31717         * modules/memcmp-tests (Depends-on): Add extensions.
31718         * modules/memmem-tests (Depends-on): Add extensions.
31719         * modules/memrchr-tests (Depends-on): Add extensions.
31720
31721 2009-05-13  Bruno Haible  <bruno@clisp.org>
31722
31723         Make some tests ISO C 99 compliant.
31724         * tests/zerosize-ptr.h: New file.
31725         * tests/test-memchr.c: Include zerosize-ptr.h.
31726         (main): Use a zero-size object pointer instead of NULL.
31727         * tests/test-memchr2.c: Include zerosize-ptr.h.
31728         (main): Use a zero-size object pointer instead of NULL.
31729         * tests/test-memcmp.c: Include zerosize-ptr.h.
31730         (main): Use a zero-size object pointer instead of NULL.
31731         * tests/test-memmem.c: Include zerosize-ptr.h.
31732         (main): Use a zero-size object pointer instead of NULL.
31733         * tests/test-memrchr.c: Include zerosize-ptr.h.
31734         (main): Use a zero-size object pointer instead of NULL.
31735         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
31736         m4/mmap-anon.m4.
31737         (Depends-on): Add getpagesize.
31738         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31739         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
31740         m4/mmap-anon.m4.
31741         (Depends-on): Add getpagesize.
31742         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31743         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
31744         m4/mmap-anon.m4.
31745         (Depends-on): Add getpagesize.
31746         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31747         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
31748         m4/mmap-anon.m4.
31749         (Depends-on): Add getpagesize.
31750         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31751         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
31752         m4/mmap-anon.m4.
31753         (Depends-on): Add getpagesize.
31754         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31755
31756 2009-05-12  Bruno Haible  <bruno@clisp.org>
31757
31758         Tests for module 'alignof'.
31759         * modules/alignof-tests: New file.
31760         * tests/test-alignof.c: New file.
31761
31762 2009-05-12  Bruno Haible  <bruno@clisp.org>
31763
31764         Fix alignof macro.
31765         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
31766         vendor compilers that are always correct.
31767
31768 2009-05-12  Bruno Haible  <bruno@clisp.org>
31769
31770         Make the MAP_ANONYMOUS detection work on HP-UX 11.
31771         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
31772         not whether its fully works.
31773
31774 2009-05-12  Bruno Haible  <bruno@clisp.org>
31775
31776         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
31777
31778 2009-05-12  Jim Meyering  <meyering@redhat.com>
31779
31780         * top/maint.mk: Adjust backslash alignment.
31781
31782 2009-05-11  Simon Josefsson  <simon@josefsson.org>
31783
31784         * top/maint.mk: Make $(srcdir)/build-aux configurable.
31785
31786 2009-05-11  Eric Blake  <ebb9@byu.net>
31787
31788         argp: avoid undefined behavior
31789         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
31790         macros.
31791
31792 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31793
31794         * tests/test-vc-list-files-git.sh: Do git config of user.email and
31795         user.name to prevent git commit from complaining.
31796
31797 2009-05-10  Bruno Haible  <bruno@clisp.org>
31798
31799         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
31800         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
31801         it rewrites every file name only once.
31802         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
31803
31804 2009-05-08  Bruno Haible  <bruno@clisp.org>
31805
31806         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
31807         instead of 'max'.
31808
31809 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31810
31811         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
31812         sockaddr_storage test.
31813
31814 2009-05-07  Simon Josefsson  <simon@josefsson.org>
31815
31816         * modules/sys_socket (Makefile.am): Substitute
31817         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
31818         * m4/sys_socket_h.m4: Check for sockaddr_storage.
31819         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
31820         * tests/test-sys_socket.c: Check sockaddr_storage.
31821
31822 2009-05-08  Bruno Haible  <bruno@clisp.org>
31823
31824         New module 'alignof'.
31825         * lib/alignof.h: New file.
31826         * modules/alignof: New file.
31827
31828 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31829             Bruno Haible  <bruno@clisp.org>
31830
31831         Fix test-file-has-acl on FreeBSD.
31832         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
31833         mask is implicitly added.
31834         * tests/test-file-has-acl.c: Include <signal.h>.
31835         (main): Terminate the test after 5 seconds.
31836         * modules/acl-tests (configure.ac): Check for alarm function.
31837
31838 2009-05-04  Bruno Haible  <bruno@clisp.org>
31839
31840         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
31841         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
31842         * modules/errno (configure.ac): Drop AC_REQUIRE.
31843         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
31844         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
31845
31846 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31847
31848         * modules/glob-tests: New module.
31849         * tests/test-glob.c: Add.
31850
31851 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31852
31853         * modules/fnmatch-tests: New module.
31854         * tests/test-fnmatch.c: Add.
31855
31856 2009-05-04  Eric Blake  <ebb9@byu.net>
31857
31858         maint: make the new no-submodule-changes rule VPATH-safe
31859         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
31860
31861 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31862             Bruno Haible  <bruno@clisp.org>
31863
31864         acl: Fix infinite loop on FreeBSD.
31865         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
31866         of return value from acl_get_entry.
31867         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
31868         Likewise.
31869
31870 2009-05-03  Bruno Haible  <bruno@clisp.org>
31871
31872         * lib/acl-internal.h (acl_entries): Clarify return value.
31873         * lib/acl_entries.c (acl_entries): Likewise.
31874
31875 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31876
31877         Bug fix in acl module.
31878         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
31879
31880 2009-05-03  Bruno Haible  <bruno@clisp.org>
31881
31882         Create gperf-generated file in the source dir, not in the build dir.
31883         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
31884         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
31885         * modules/unicase/locale-language (unicase/locale-languages.h):
31886         Likewise.
31887         * modules/unicase/special-casing (unicase/special-casing-table.h):
31888         Likewise.
31889         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
31890         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
31891         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
31892         Reported by Ralf Wildenhues.
31893
31894 2009-05-03  Bruno Haible  <bruno@clisp.org>
31895
31896         * modules/fnmatch (Description, configure.ac): Taken from
31897         fnmatch-posix.
31898         * modules/fnmatch-posix: Turn into a symbolic reference to the
31899         'fnmatch' module, and deprecate.
31900         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
31901
31902 2009-05-03  Bruno Haible  <bruno@clisp.org>
31903
31904         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
31905         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
31906         Reported by Ralf Wildenhues.
31907
31908 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31909
31910         * m4/fnmatch.m4: Fix fnmatch re-define.
31911
31912 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31913
31914         priv-set: new module and tests; adapt write-any-file
31915         * lib/priv-set.c: New file.
31916         * lib/priv-set.h: New file.
31917         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
31918         * lib/write-any-file.c: Simplify by using priv-set module.
31919         * m4/priv-set.m4: New file.
31920         * modules/priv-set: New file.
31921         * modules/unlinkdir: Add dependency on priv-set module.
31922         * modules/write-any-file: Likewise.
31923
31924         Tests for module 'priv-set'.
31925         * modules/priv-set-tests: New file.
31926         * tests/test-priv-set.c: New file.
31927
31928 2009-05-03  Jim Meyering  <meyering@redhat.com>
31929             Bruno Haible  <bruno@clisp.org>
31930
31931         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
31932         use the converted UTF-8 variant of the name instead.
31933
31934 2009-05-03  Jim Meyering  <meyering@redhat.com>
31935
31936         tests: tighten some getdate tests
31937         * tests/test-getdate.c (main): Tighten tests: require equality,
31938         not just greater than.  Set TZ envvar to UTC0.
31939
31940 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31941
31942         getdate: correctly interpret "next monday" when run on a Monday
31943         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
31944         that e.g., "next tues" (when run on a tuesday) results in a date
31945         that is one week in the future, and not today's date.
31946         I.e., add a week when the wday is the same as the current one.
31947         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
31948         and earlier by Martin Bernreuther and Jan Minář.
31949         * tests/test-getdate.c (main): Check that "next DAY" is always in
31950         the future and that "last DAY" is always in the past.
31951
31952 2009-05-02  Jim Meyering  <meyering@redhat.com>
31953
31954         build: ensure that a release build fails when a submodule is unclean
31955         * top/maint.mk (no-submodule-changes): New rule.
31956         (alpha beta major): Depend on it.
31957
31958 2009-05-02  Bruno Haible  <bruno@clisp.org>
31959
31960         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
31961         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
31962         shell variable gl_fnmatch_required to detect which variant is
31963         requested.
31964         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
31965         gl_FUNC_FNMATCH_POSIX.
31966         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
31967         exclude fnmatch-posix.
31968
31969 2009-05-02  Bruno Haible  <bruno@clisp.org>
31970
31971         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
31972         * modules/mbsrtowcs (License): Change to LGPLv2+.
31973         * modules/strnlen1 (License): Likewise.
31974         Reported by Simon Josefsson.
31975
31976 2009-05-02  Bruno Haible  <bruno@clisp.org>
31977
31978         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
31979         "cross".
31980         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
31981         gnulib-tool was called with option --source-base=lib.
31982
31983 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31984
31985         Use automake *-local hooks without commands, for extensibility.
31986         * modules/localcharset (Makefile.am): Rename install-exec-local
31987         rule to install-exec-localcharset, and make it a prerequisite of
31988         install-exec-local.  Likewise, rename the uninstall-local rule to
31989         uninstall-localcharset, and make it a prerequisite of the former.
31990
31991 2009-05-01  Bruno Haible  <bruno@clisp.org>
31992
31993         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
31994         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31995         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
31996         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
31997         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
31998         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31999         m4/locale-zh.m4, m4/codeset.m4.
32000
32001         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
32002         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
32003         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
32004         m4/locale-zh.m4.
32005
32006         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
32007         REPLACE_WCRTOMB if mbstate_t must be replaced.
32008         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
32009         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
32010
32011 2009-05-01  Bruno Haible  <bruno@clisp.org>
32012
32013         Avoid compiler warnings when redefining macros defined by <libintl.h>.
32014         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
32015         dngettext, dcngettext, textdomain, bindtextdomain,
32016         bind_textdomain_codeset): Undefine before redefining.
32017
32018 2009-04-30  Bruno Haible  <bruno@clisp.org>
32019
32020         Fix bug introduced on 2009-04-25.
32021         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
32022         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
32023         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
32024         is defined.
32025         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
32026         is defined.
32027         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
32028         is defined.
32029         Reported by Elbert_Pol <elbert.pol@gmail.com>.
32030
32031 2009-04-28  Bruno Haible  <bruno@clisp.org>
32032
32033         Comment tweaks.
32034         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
32035         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
32036         * lib/unicase.h (u*_casexfrm): Likewise.
32037         Reported by Paolo Bonzini.
32038
32039 2009-04-28  Bruno Haible  <bruno@clisp.org>
32040
32041         Fix a compilation error.
32042         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
32043         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32044         Reported by Jim Meyering.
32045
32046 2009-04-27  Bruno Haible  <bruno@clisp.org>
32047
32048         New module 'libunistring'.
32049         * modules/libunistring: New file.
32050         * m4/libunistring.m4: New file.
32051         * MODULES.html.sh (Unicode string functions): Add it.
32052
32053 2009-04-27  Eric Blake  <ebb9@byu.net>
32054
32055         maint.mk: allow package-specific header to provide <config.h>
32056         * top/maint.mk (sc_require_config_h): New variable.
32057         (sc_require_config_h, sc_require_config_h_first): Use it.
32058
32059 2009-04-27  Simon Josefsson  <simon@josefsson.org>
32060
32061         * top/maint.mk (sc_avoid_if_before_free): Except
32062         useless-if-before-free script.
32063
32064 2009-04-27  Eric Blake  <ebb9@byu.net>
32065
32066         maintainer-makefile: depend on all required helper scripts
32067         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
32068         useless-if-before-free.
32069         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
32070         version, rather than assuming gnulib checkout is available.
32071         Reported by Simen Josefsson.
32072
32073 2009-04-26  Bruno Haible  <bruno@clisp.org>
32074
32075         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
32076         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
32077         "../" or "..".
32078
32079 2009-04-26  Bruno Haible  <bruno@clisp.org>
32080
32081         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
32082         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
32083         AC_LIB_HAVE_LINKFLAGS.
32084
32085 2009-04-26  Bruno Haible  <bruno@clisp.org>
32086
32087         Simplify calling convention of u*_conv_from_encoding.
32088         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
32089         u32_conv_from_encoding): Expect a resultbuf argument and return the
32090         result directly as a pointer.
32091         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
32092         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
32093         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
32094         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
32095         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
32096         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
32097         Update.
32098         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
32099         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
32100         * lib/vasnprintf.c (VASNPRINTF): Update.
32101         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
32102         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
32103         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
32104         * NEWS: Mention the change.
32105
32106 2009-04-26  Bruno Haible  <bruno@clisp.org>
32107
32108         Simplify calling convention of u*_conv_to_encoding.
32109         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32110         u32_conv_to_encoding): Expect a resultbuf argument and return the
32111         result directly as a pointer.
32112         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
32113         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
32114         freeing scaled_offsets if mem_iconveha failed.
32115         * lib/unicase/u-casexfrm.h (FUNC): Update.
32116         * lib/uninorm/u-normxfrm.h (FUNC): Update.
32117         * lib/vasnprintf.c (VASNPRINTF): Update.
32118         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
32119         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
32120         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
32121         * NEWS: Mention the change.
32122
32123 2009-04-26  Bruno Haible  <bruno@clisp.org>
32124
32125         Avoid test failures on AIX and OSF/1.
32126         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
32127         malloc(0).
32128         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
32129         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
32130         Likewise.
32131         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
32132         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
32133         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
32134         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
32135         * doc/posix-functions/malloc.texi: Document the portability problem
32136         related to malloc(0).
32137
32138 2009-04-26  Bruno Haible  <bruno@clisp.org>
32139
32140         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
32141         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
32142         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
32143
32144 2009-04-25  Bruno Haible  <bruno@clisp.org>
32145
32146         Avoid link error when creating a namespace clean library.
32147         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
32148         as macro with arguments if already defined as an alias.
32149         * lib/signbitf.c (gl_signbitf): Don't undefine.
32150         * lib/signbitd.c (gl_signbitd): Don't undefine.
32151         * lib/signbitl.c (gl_signbitl): Don't undefine.
32152
32153 2009-04-25  Jim Meyering  <meyering@redhat.com>
32154
32155         vc-list-files: fix another quoting bug
32156         * build-aux/vc-list-files: Avoid sed backslash expansion
32157         of pathological directory names.
32158
32159 2009-04-25  Eric Blake  <ebb9@byu.net>
32160
32161         vc-list-files: fix shell quoting error
32162         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
32163         timestamp.
32164
32165 2009-04-25  Jim Meyering  <meyering@redhat.com>
32166
32167         vc-list-files: restore lost functionality with subdir argument
32168         * build-aux/vc-list-files: When given a non-"." sub-directory
32169         argument, substitute the $dir/ prefix back onto each resulting name.
32170         Otherwise, coreutils' root_tests check would fail.
32171
32172 2009-04-24  Eric Blake  <ebb9@byu.net>
32173
32174         vc-list-files: ignore git symlinks
32175         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
32176         than ls-files, to ignore git symlinks.
32177
32178         maint.mk: import improvements from m4
32179         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
32180         (move_if_change): Delete unused macro.
32181         (news-date-check, vc-diff-check): Support VPATH builds.
32182         (announcement): Likewise.  Split --bootstrap-tools list...
32183         (boostrap-tools): ...into separate list, which can be overridden
32184         in cfg.mk.
32185         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
32186         requiring dependency on useless-if-before-free module.
32187         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
32188         Support VPATH builds.
32189
32190 2009-04-24  Jim Meyering  <meyering@redhat.com>
32191
32192         maint.mk: remove coreutils-specific rules and variables
32193         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
32194         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
32195         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
32196
32197         maint.mk: remove obsolete rule
32198         * top/maint.mk (rel-check): Remove rule.
32199         (WGET, WGETFLAGS): Remove now-unused variables.
32200
32201 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32202
32203         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
32204         consistency.
32205
32206         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
32207         '$(PATH_SEPARATOR)' instead of ':'.
32208
32209 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32210
32211         * lib/getopt1.c (main): Use 'const' for static array.
32212
32213 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32214
32215         * top/maint.mk: Sync with coreutils.
32216         * NEWS: Explain incompatibilities.
32217
32218 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32219             Bruno Haible  <bruno@clisp.org>
32220
32221         Fix cross-compilation results.
32222         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
32223         statement, as third argument of AC_TRY_RUN.
32224         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
32225         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
32226         Likewise.
32227         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
32228         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
32229         Likewise.
32230         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
32231         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
32232         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
32233
32234 2009-04-20  Bruno Haible  <bruno@clisp.org>
32235
32236         Avoid test failure on mingw.
32237         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
32238
32239 2009-04-20  Bruno Haible  <bruno@clisp.org>
32240
32241         Avoid compilation error on mingw.
32242         * modules/localename-tests (Depends-on): Add locale.
32243
32244 2009-04-19  Bruno Haible  <bruno@clisp.org>
32245
32246         Support for building a shared library on Windows platforms.
32247         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
32248         (main): Test the presence of UNINORM_NFC here.
32249         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
32250         (main): Test the presence of UNINORM_NFD here.
32251         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
32252         (main): Test the presence of UNINORM_NFKC here.
32253         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
32254         (main): Test the presence of UNINORM_NFKD here.
32255
32256 2009-04-19  Bruno Haible  <bruno@clisp.org>
32257
32258         Avoid a compiler warning.
32259         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
32260         Change type of variable 'sequence'.
32261
32262 2009-04-19  Bruno Haible  <bruno@clisp.org>
32263
32264         * modules/configmake (Makefile.am): When the contents of configmake.h
32265         does not change, arrange to preserve its modification time.
32266
32267 2009-04-17  Simon Josefsson  <simon@josefsson.org>
32268
32269         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
32270         gettext domain.
32271
32272 2009-04-16  Jim Meyering  <meyering@redhat.com>
32273
32274         useless-if-before-free: improve conversion code
32275         * build-aux/useless-if-before-free: Adjust code-in-comment to match
32276         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
32277
32278 2009-04-14  Bruno Haible  <bruno@clisp.org>
32279
32280         * modules/fcntl (Depends-on): Add extensions.
32281         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
32282
32283 2009-04-12  Ben Pfaff  <blp@gnu.org>
32284
32285         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
32286         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
32287
32288 2009-03-20  Ben Pfaff  <blp@gnu.org>
32289
32290         Make rename replace existing destinations on Windows.
32291         * m4/rename.m4: Add test for Mingw.
32292         * lib/rename.c: Add rename replacement that uses MoveFileEx with
32293         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
32294         * doc/posix-functions/rename.texi: Document.
32295
32296 2009-04-10  Bruno Haible  <bruno@clisp.org>
32297
32298         New include file "iconveh.h".
32299         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
32300         * lib/striconveh.h: Include it.
32301         (enum iconv_ilseq_handler): Remove definition.
32302         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
32303         striconveh.h.
32304         * lib/striconveha.c: Include striconveh.h.
32305         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
32306         * modules/striconveh (Files): Add lib/iconveh.h.
32307         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
32308         lib/striconveh.h.
32309
32310 2009-04-10  Bruno Haible  <bruno@clisp.org>
32311
32312         * lib/uniconv.h: Update comment.
32313
32314 2009-04-10  Bruno Haible  <bruno@clisp.org>
32315
32316         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
32317         always.
32318         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
32319         * lib/unistr/u16-mbtouc-aux.c: Likewise.
32320         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
32321         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
32322         "unistring-notinline.h", so that the function gets defined always.
32323         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
32324         * lib/unistr/u8-uctomb.c: Likewise.
32325         * lib/unistr/u16-mbtouc.c: Likewise.
32326         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
32327         * lib/unistr/u16-uctomb.c: Likewise.
32328         * lib/unistr/u32-mbtouc.c: Likewise.
32329         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
32330         * lib/unistr/u32-uctomb.c: Likewise.
32331
32332 2009-04-10  Bruno Haible  <bruno@clisp.org>
32333
32334         Mark 'utime' obsolete.
32335         * modules/utime (Status, Notice): New sections.
32336         Suggested by Jim Meyering.
32337
32338         Fix cross-compile guess for utime test.
32339         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
32340         autoconf.
32341         * doc/posix-functions/utime.texi: Give more precisions.
32342         Reported by Jan <ipif@ymail.com>.
32343
32344 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
32345
32346         filevercmp: correct today's change
32347         * lib/filevercmp.c: Also handle coreutils' test inputs.
32348         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
32349
32350         Fix regression in 'filevercmp' module. Thanks Sven Joachim
32351         for reporting it.
32352         * lib/filevercmp.c: Special handle for "", "." and "..".
32353         * tests/test-filevercmp.c: Enlarge the set suite.
32354
32355 2009-04-07  Jim Meyering  <meyering@redhat.com>
32356
32357         useless-if-before-free: show how to remove braced useless free, too
32358         * build-aux/useless-if-before-free: still only in a comment, though.
32359
32360 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
32361
32362         maint.mk: import changes to syntax-check macros from coreutils
32363         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
32364         Use them in the relevant macros.
32365
32366 2009-04-06  Bruno Haible  <bruno@clisp.org>
32367
32368         Fix unportable use of bit-fields.
32369         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
32370         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
32371         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
32372
32373 2009-04-06  Bruno Haible  <bruno@clisp.org>
32374
32375         Avoid test failures on AIX and OSF/1.
32376         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
32377         that malloc(0) = NULL.
32378         * tests/unicase/test-u8-tolower.c (check): Likewise.
32379         * tests/unicase/test-u8-totitle.c (check): Likewise.
32380         * tests/unicase/test-u8-toupper.c (check): Likewise.
32381         * tests/unicase/test-u16-casefold.c (check): Likewise.
32382         * tests/unicase/test-u16-tolower.c (check): Likewise.
32383         * tests/unicase/test-u16-totitle.c (check): Likewise.
32384         * tests/unicase/test-u16-toupper.c (check): Likewise.
32385         * tests/unicase/test-u32-casefold.c (check): Likewise.
32386         * tests/unicase/test-u32-tolower.c (check): Likewise.
32387         * tests/unicase/test-u32-totitle.c (check): Likewise.
32388         * tests/unicase/test-u32-toupper.c (check): Likewise.
32389         * tests/uninorm/test-u8-nfc.c (check): Likewise.
32390         * tests/uninorm/test-u8-nfd.c (check): Likewise.
32391         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
32392         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
32393         * tests/uninorm/test-u16-nfc.c (check): Likewise.
32394         * tests/uninorm/test-u16-nfd.c (check): Likewise.
32395         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
32396         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
32397         * tests/uninorm/test-u32-nfc.c (check): Likewise.
32398         * tests/uninorm/test-u32-nfd.c (check): Likewise.
32399         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
32400         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
32401
32402 2009-04-05  Bruno Haible  <bruno@clisp.org>
32403
32404         Work around an autoconf limitation.
32405         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
32406         comment line if it would be longer than 3 KB.
32407
32408 2009-04-05  Bruno Haible  <bruno@clisp.org>
32409
32410         Avoid test failure with libiconv-1.13.
32411         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
32412         of the expected test results.
32413
32414 2009-04-05  Bruno Haible  <bruno@clisp.org>
32415
32416         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
32417         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
32418         that it should be installed.
32419
32420 2009-04-05  Bruno Haible  <bruno@clisp.org>
32421
32422         * gnulib-tool: New option --copy-file.
32423         (func_usage): Document it.
32424         (func_dest_tmpfilename): Moved out of func_import.
32425         (func_add_file, func_update_file): New functions, extracted from
32426         func_import.
32427         (func_import): Update.
32428
32429 2009-04-05  Karl Berry  <karl@gnu.org>
32430
32431         * README: prominently mention gnulib-tool.
32432         Rearrange sections so getting the code is near the top.
32433
32434 2009-04-05  Bruno Haible  <bruno@clisp.org>
32435
32436         * lib/unicase.h: Mention u*_cmp2.
32437         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
32438         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
32439         * lib/unicase/ulc-casecmp.c: Likewise.
32440         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
32441         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
32442         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
32443         unistr/u8-cmp.
32444         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
32445         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
32446         unistr/u16-cmp.
32447         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
32448         unistr/u32-cmp.
32449
32450         * lib/uninorm.h: Mention u*_cmp2.
32451         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
32452         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
32453         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
32454         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
32455         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
32456         unistr/u8-cmp.
32457         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
32458         unistr/u16-cmp.
32459         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
32460         unistr/u32-cmp.
32461
32462         New module 'unistr/u32-cmp2'.
32463         * lib/unistr/u32-cmp2.c: New file.
32464         * modules/unistr/u32-cmp2: New file.
32465
32466         New module 'unistr/u16-cmp2'.
32467         * lib/unistr/u16-cmp2.c: New file.
32468         * modules/unistr/u16-cmp2: New file.
32469
32470         New module 'unistr/u8-cmp2'.
32471         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
32472         * lib/unistr/u8-cmp2.c: New file.
32473         * lib/unistr/u-cmp2.h: New file.
32474         * modules/unistr/u8-cmp2: New file.
32475
32476 2009-04-05  Bruno Haible  <bruno@clisp.org>
32477
32478         * lib/unictype.h (uc_property_is_valid): New macro.
32479         * tests/unictype/test-pr_byname.c (main): Use it.
32480
32481         * lib/unistr.h: Doc fixes.
32482         * lib/uniconv.h: Doc fixes.
32483         * lib/unictype.h: Doc fixes.
32484
32485 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
32486
32487         Port coreutils 7.2 to Solaris 8.
32488
32489         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
32490         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
32491         for Solaris 8.  This is a bit of a hack, as it means it's the
32492         caller's responsibility to add -lnsl if needed, but most likely it
32493         won't be needed since only getaddrinfo uses this and getaddrinfo
32494         isn't needed on Solaris 8.
32495
32496         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
32497         problem to Solaris 8 encountered with coreutils 7.2, which
32498         resulted in a message "fnmatch.c:292: warning: passing argument 4
32499         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
32500         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
32501
32502 2009-04-03  Simon Josefsson  <simon@josefsson.org>
32503
32504         * m4/ld-version-script.m4: Add FIXME comment.
32505
32506 2009-04-02  Simon Josefsson  <simon@josefsson.org>
32507
32508         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
32509         SOVERSION variable.
32510
32511 2009-04-02  Bruno Haible  <bruno@clisp.org>
32512
32513         * Makefile (info, html, dvi, pdf): Combine the rules.
32514         Suggested by Jim Meyering.
32515
32516 2009-04-01  Bruno Haible  <bruno@clisp.org>
32517
32518         * Makefile (info, html, dvi, pdf): New targets.
32519         Reported by Reuben Thomas <rrt@sc3d.org>.
32520
32521 2009-04-01  Bruno Haible  <bruno@clisp.org>
32522
32523         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
32524         can be put into PATH.
32525         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
32526
32527 2009-04-01  Bruno Haible  <bruno@clisp.org>
32528
32529         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
32530
32531 2009-04-01  Bruno Haible  <bruno@clisp.org>
32532
32533         Rename module 'visibility'.
32534         * modules/lib-symbol-visibility: Renamed from modules/visibility.
32535         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
32536         * doc/gnulib.texi: Update.
32537         * MODULES.html.sh (Misc): Update.
32538         * NEWS: Mention the change.
32539
32540 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32541
32542         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
32543         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
32544         Eric Blake <ebb9@byu.net> for review.
32545         * MODULES.html.sh: Add lib-msvc-compat.
32546         * doc/gnulib.texi: Link to new section.
32547         * m4/ld-output-def.m4: New file.
32548         * doc/ld-output-def.texi: New file.
32549
32550 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32551
32552         Rename ld-version-script to lib-symbol-versions.  Suggested by
32553         Bruno Haible <bruno@clisp.org>.
32554         * modules/ld-version-script: Renamed to lib-symbol-versions.
32555         * doc/ld-version-script.texi: Fix module name.
32556         * MODULES.html.sh: Add lib-symbol-versions.
32557
32558 2009-03-31  Simon Josefsson  <simon@josefsson.org>
32559
32560         * modules/u64-tests: New file.
32561         * tests/test-u64.c: New file.
32562
32563 2009-03-04  Simon Josefsson  <simon@josefsson.org>
32564
32565         * MODULES.html.sh: Mention u64.
32566         * modules/u64: New module.
32567         * modules/crypto/sha512: Depend on u64 module instead of providing
32568         u64.h.
32569
32570 2009-03-27  Eric Blake  <ebb9@byu.net>
32571
32572         test-strerror: make debugging EAI_SYSTEM easier
32573         * modules/getaddrinfo-tests (Depends-on): Add strerror.
32574         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
32575         failure was EAI_SYSTEM.
32576
32577 2009-03-25  Bruno Haible  <bruno@clisp.org>
32578
32579         Fix a problem with --enable-relocatable on Solaris 7.
32580         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
32581         since 2008-02-24.
32582
32583 2009-03-25  Eric Blake  <ebb9@byu.net>
32584
32585         test-sockets: avoid gcc warning
32586         * tests/test-sockets.c (main): Silence compiler warning.
32587
32588 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
32589
32590         New modules nproc, pthread, contributed by Glen Lenker.
32591
32592         * MODULES.html.sh: Add pthread, nproc.
32593         * lib/nproc.c: New file.
32594         * lib/nproc.h: New file.
32595         * lib/pthread.in.h: New file.
32596         * m4/pthread.m4: New file.
32597         * modules/nproc: New file.
32598         * modules/pthread: New file.
32599
32600 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32601
32602         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
32603         New variable.
32604
32605 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
32606
32607         filevercmp: handle simple~ and numbered.~3~ backup suffixes
32608         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
32609         * tests/test-filevercmp.c: Add tests for backup suffixes.
32610
32611 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32612
32613         * modules/stdlib (Depends-on): Add stdint, needed when defining
32614         struct random_data on, for example, HP-UX 10.20.  Reported by
32615         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32616
32617 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32618
32619         * lib/readline.c (readline): Call fflush on stdout after printing
32620         prompt.
32621
32622 2009-03-20  Bruno Haible  <bruno@clisp.org>
32623
32624         Remove dependency from 'close' module to -lws2_32 on native Windows.
32625         * lib/close-hook.h: New file.
32626         * lib/close-hook.c: New file.
32627         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
32628         w32sock.h.
32629         (_gl_close_fd_maybe_socket): Remove function.
32630         (rpl_close): Invoke execute_all_close_hooks instead of
32631         _gl_close_fd_maybe_socket.
32632         * lib/sockets.c: Include close-hook.h, w32sock.h.
32633         (close_fd_maybe_socket): New function, essentially from lib/close.c.
32634         (close_sockets_hook): New variable.
32635         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
32636         (gl_sockets_cleanup): Unregister it.
32637         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
32638         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
32639         * modules/close-hook: New file.
32640         * modules/close (Files): Remove lib/w32sock.h.
32641         (Depends-on): Add close-hook.
32642         (Link): Remove section.
32643         * modules/sockets (Files): Add lib/w32sock.h.
32644         (Depends-on): Add close-hook.
32645         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
32646         invocation.
32647         * NEWS: Mention that LIB_CLOSE is gone.
32648
32649 2009-03-23  Eric Blake  <ebb9@byu.net>
32650
32651         signal-tests: test previous patch
32652         * tests/test-signal.c: New file.
32653         * modules/signal-tests: Likewise.
32654
32655         signal.h: always support 'volatile sig_atomic_t'
32656         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
32657         (gl_SIGNAL_H_DEFAULTS): Add a default.
32658         * modules/signal (Makefile.am): Substitute if needed.
32659         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
32660         users can blindly add volatile.
32661         * doc/posix-headers/signal.texi (signal.h): Document it.
32662         Reported by Matthew Woehlke.
32663
32664 2009-03-23  Jim Meyering  <meyering@redhat.com>
32665
32666         pathmax: PATH_MAX: use pathconf only when available
32667         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
32668         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
32669         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
32670         This avoids a link failure in a PSP cross-compilation environment
32671         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
32672
32673         * lib/vasnprintf.c (divide): Fix typo in comment.
32674
32675 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32676
32677         * gnulib-tool (func_filter_filelist): Fix comment.
32678
32679 2009-03-20  Bruno Haible  <bruno@clisp.org>
32680
32681         Make sockets.h self-contained.
32682         * lib/sockets.c: Include sockets.h first.
32683         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
32684
32685 2009-03-19  Eric Blake  <ebb9@byu.net>
32686
32687         doc: mention more functions added in cygwin 1.7.0
32688         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
32689         addition.
32690         * doc/posix-functions/log2f.texi: Likewise.
32691
32692 2009-03-19  Jim Meyering  <meyering@redhat.com>
32693
32694         fsusage: avoid syntax error due to statement-before-declaration
32695         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
32696         after all declarations.  Reported by Matthew Woehlke in
32697         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
32698
32699 2009-03-18  Eric Blake  <ebb9@byu.net>
32700
32701         build-aux/compile: sync from automake
32702         * build-aux/compile: New file, from automake.
32703         * config/srclist.txt: Mention build-aux/compile.
32704
32705 2009-03-17  Bruno Haible  <bruno@clisp.org>
32706
32707         * lib/git-merge-changelog.c: Fix typo in comment.
32708         Reported by Reuben Thomas <rrt@sc3d.org>.
32709
32710 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
32711
32712         * m4/regex.m4: update and improve help for
32713         --without-included-regex.
32714
32715 2009-03-17  Simon Josefsson  <simon@josefsson.org>
32716
32717         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
32718         failure on missing include files.
32719
32720 2009-03-17  Eric Blake  <ebb9@byu.net>
32721
32722         doc: mention more functions added in cygwin 1.7.0
32723         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
32724         addition.
32725         * doc/posix-functions/fwscanf.texi: Likewise.
32726         * doc/posix-functions/swprintf.texi: Likewise.
32727         * doc/posix-functions/swscanf.texi: Likewise.
32728         * doc/posix-functions/vfwprintf.texi: Likewise.
32729         * doc/posix-functions/vfwscanf.texi: Likewise.
32730         * doc/posix-functions/vswprintf.texi: Likewise.
32731         * doc/posix-functions/vswscanf.texi: Likewise.
32732         * doc/posix-functions/vwprintf.texi: Likewise.
32733         * doc/posix-functions/vwscanf.texi: Likewise.
32734         * doc/posix-functions/wcscasecmp.texi: Likewise.
32735         * doc/posix-functions/wcsdup.texi: Likewise.
32736         * doc/posix-functions/wcsftime.texi: Likewise.
32737         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32738         * doc/posix-functions/wprintf.texi: Likewise.
32739         * doc/posix-functions/wscanf.texi: Likewise.
32740         * doc/glibc-functions/gethostbyname2.texi: Likewise.
32741
32742 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32743
32744         maint.mk: really add $(AM_MAKEFLAGS)
32745         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
32746         was inadvertently omitted in the last commit.
32747         Spotted by Bruno Haible.
32748
32749         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
32750         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
32751         $(AM_MAKEFLAGS)' rather than plain `make'.
32752
32753         gnulib-tool: execute $MAKE not make
32754         * gnulib-tool: Default $MAKE to 'make'.
32755         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
32756         than make.  Initialize $MAKE in the do-autobuild script.
32757
32758         gnulib-tool: use $MAKE not make in generated files
32759         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
32760         make, in generated files.  Initialize $MAKE in the do-autobuild
32761         script.
32762
32763         * top/GNUmakefile (_have-git-version-gen): Fix typo.
32764
32765         GNUmakefile: disable parallelism only for multiple, recursive targets
32766         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
32767         additions in the Makefile.
32768         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
32769         by Automake.
32770         (.NOTPARALLEL): Only disable parallel builds if multiple targets
32771         are listed on the command line and at least one of them is
32772         listed in $(ALL_RECURSIVE_TARGETS).
32773
32774 2009-03-14  Bruno Haible  <bruno@clisp.org>
32775
32776         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
32777         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
32778         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
32779         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
32780         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
32781         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
32782         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
32783         unistr/u8-uctomb.
32784         * modules/unistr/u8-strchr (Depends-on): Likewise.
32785         * modules/unistr/u8-strrchr (Depends-on): Likewise.
32786         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
32787         unistr/u16-uctomb.
32788         * modules/unistr/u16-strchr (Depends-on): Likewise.
32789         * modules/unistr/u16-strrchr (Depends-on): Likewise.
32790
32791 2009-03-12  Bruno Haible  <bruno@clisp.org>
32792
32793         Work around select() bug on Interix 3.5.
32794         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
32795         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
32796         * m4/select.m4: New file.
32797         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
32798         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
32799         * modules/select (Files): Add m4/select.m4.
32800         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
32801         * modules/nanosleep (Depends-on): Add select.
32802         * modules/poll (Depends-on): Likewise.
32803         * doc/posix-functions/select.texi: Mention the Interix bug.
32804         Reported by Markus Duft <mduft@gentoo.org>.
32805
32806         * lib/select.c: Renamed from lib/winsock-select.c.
32807         * modules/select (Files): Add lib/select.c, remove
32808         lib/winsock-select.c.
32809         (configure.ac): Update.
32810
32811 2009-03-12  Jim Meyering  <meyering@redhat.com>
32812
32813         avoid gcc warnings about unused macro definitions
32814         * lib/readtokens.c (STREQ): Remove unused definition.
32815         * lib/xmalloc.c (SIZE_MAX): Likewise.
32816         * lib/openat-die.c (N_): Likewise.
32817         * lib/mountlist.c (SIZE_MAX): Remove definition.
32818         Instead, include <stdint.h>.
32819         * lib/readutmp.c: Likewise.
32820         * modules/readutmp (Depends-on): Add stdint.
32821         * modules/mountlist (Depends-on): Add stdint.
32822         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
32823
32824 2009-03-10  Bruno Haible  <bruno@clisp.org>
32825
32826         Tests for module 'mbmemcasecoll'.
32827         * modules/mbmemcasecoll-tests: New file.
32828         * tests/test-mbmemcasecoll1.sh: New file.
32829         * tests/test-mbmemcasecoll2.sh: New file.
32830         * tests/test-mbmemcasecoll3.sh: New file.
32831         * tests/test-mbmemcasecoll.c: New file.
32832
32833         New module 'mbmemcasecoll'.
32834         * lib/mbmemcasecoll.h: New file.
32835         * lib/mbmemcasecoll.c: New file.
32836         * modules/mbmemcasecoll: New file.
32837
32838         * tests/test-mbmemcasecmp.h: New file, extracted from
32839         tests/test-mbmemcasecmp.c.
32840         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
32841         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
32842         (main): Update.
32843         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
32844
32845 2009-03-09  Bruno Haible  <bruno@clisp.org>
32846
32847         Tests for module 'mbmemcasecmp'.
32848         * modules/mbmemcasecmp-tests: New file.
32849         * tests/test-mbmemcasecmp1.sh: New file.
32850         * tests/test-mbmemcasecmp2.sh: New file.
32851         * tests/test-mbmemcasecmp3.sh: New file.
32852         * tests/test-mbmemcasecmp.c: New file.
32853
32854         New module 'mbmemcasecmp'.
32855         * lib/mbmemcasecmp.h: New file.
32856         * lib/mbmemcasecmp.c: New file.
32857         * modules/mbmemcasecmp: New file.
32858
32859 2009-03-09  Bruno Haible  <bruno@clisp.org>
32860
32861         Tests for module 'unicase/ulc-casecoll'.
32862         * modules/unicase/ulc-casecoll-tests: New file.
32863         * tests/unicase/test-ulc-casecoll1.sh: New file.
32864         * tests/unicase/test-ulc-casecoll2.sh: New file.
32865         * tests/unicase/test-ulc-casecoll.c: New file.
32866
32867         New module 'unicase/ulc-casecoll'.
32868         * lib/unicase.h (ulc_casecoll): New declaration.
32869         * lib/unicase/ulc-casecoll.c: New file.
32870         * modules/unicase/ulc-casecoll: New file.
32871
32872         New module 'unicase/ulc-casexfrm'.
32873         * lib/unicase.h (ulc_casexfrm): New declaration.
32874         * lib/unicase/ulc-casexfrm.c: New file.
32875         * modules/unicase/ulc-casexfrm: New file.
32876
32877 2009-03-09  Bruno Haible  <bruno@clisp.org>
32878
32879         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
32880         invocations.
32881
32882         * m4/mbscasecmp.m4: Remove file.
32883         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
32884         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
32885
32886         * m4/mbscasestr.m4: Remove file.
32887         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
32888         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
32889
32890         * m4/mbschr.m4: Remove file.
32891         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
32892         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
32893
32894         * m4/mbscspn.m4: Remove file.
32895         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
32896         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
32897
32898         * m4/mbslen.m4: Remove file.
32899         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
32900         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
32901
32902         * m4/mbsncasecmp.m4: Remove file.
32903         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
32904         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
32905
32906         * m4/mbsnlen.m4: Remove file.
32907         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
32908         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
32909
32910         * m4/mbspbrk.m4: Remove file.
32911         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
32912         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
32913
32914         * m4/mbspcasecmp.m4: Remove file.
32915         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
32916         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
32917
32918         * m4/mbsrchr.m4: Remove file.
32919         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
32920         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
32921
32922         * m4/mbssep.m4: Remove file.
32923         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
32924         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
32925
32926         * m4/mbsspn.m4: Remove file.
32927         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
32928         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
32929
32930         * m4/mbsstr.m4: Remove file.
32931         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
32932         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
32933
32934         * m4/mbstok_r.m4: Remove file.
32935         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
32936         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
32937
32938         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
32939
32940         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
32941         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
32942
32943         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
32944
32945 2009-03-08  Bruno Haible  <bruno@clisp.org>
32946
32947         Tests for module 'unicase/ulc-casecmp'.
32948         * modules/unicase/ulc-casecmp-tests: New file.
32949         * tests/unicase/test-ulc-casecmp1.sh: New file.
32950         * tests/unicase/test-ulc-casecmp2.sh: New file.
32951         * tests/unicase/test-ulc-casecmp.c: New file.
32952
32953         New module 'unicase/ulc-casecmp'.
32954         * lib/unicase.h (ulc_casecmp): New declaration.
32955         * lib/unicase/ulc-casecmp.c: New file.
32956         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
32957         'const SRC_UNIT *'.
32958         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
32959         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
32960         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
32961         * modules/unicase/ulc-casecmp: New file.
32962
32963         Tests for module 'unicase/u32-is-cased'.
32964         * modules/unicase/u32-is-cased-tests: New file.
32965         * tests/unicase/test-u32-is-cased.c: New file.
32966
32967         Tests for module 'unicase/u16-is-cased'.
32968         * modules/unicase/u16-is-cased-tests: New file.
32969         * tests/unicase/test-u16-is-cased.c: New file.
32970
32971         Tests for module 'unicase/u8-is-cased'.
32972         * modules/unicase/u8-is-cased-tests: New file.
32973         * tests/unicase/test-u8-is-cased.c: New file.
32974         * tests/unicase/test-is-cased.h: New file.
32975
32976         New module 'unicase/u32-is-cased'.
32977         * lib/unicase/u32-is-cased.c: New file.
32978         * modules/unicase/u32-is-cased: New file.
32979
32980         New module 'unicase/u16-is-cased'.
32981         * lib/unicase/u16-is-cased.c: New file.
32982         * modules/unicase/u16-is-cased: New file.
32983
32984         New module 'unicase/u8-is-cased'.
32985         * lib/unicase/u8-is-cased.c: New file.
32986         * lib/unicase/u-is-cased.h: New file.
32987         * modules/unicase/u8-is-cased: New file.
32988
32989         Tests for module 'unicase/u32-is-casefolded'.
32990         * modules/unicase/u32-is-casefolded-tests: New file.
32991         * tests/unicase/test-u32-is-casefolded.c: New file.
32992
32993         Tests for module 'unicase/u16-is-casefolded'.
32994         * modules/unicase/u16-is-casefolded-tests: New file.
32995         * tests/unicase/test-u16-is-casefolded.c: New file.
32996
32997         Tests for module 'unicase/u8-is-casefolded'.
32998         * modules/unicase/u8-is-casefolded-tests: New file.
32999         * tests/unicase/test-u8-is-casefolded.c: New file.
33000         * tests/unicase/test-is-casefolded.h: New file.
33001
33002         New module 'unicase/u32-is-casefolded'.
33003         * lib/unicase/u32-is-casefolded.c: New file.
33004         * modules/unicase/u32-is-casefolded: New file.
33005
33006         New module 'unicase/u16-is-casefolded'.
33007         * lib/unicase/u16-is-casefolded.c: New file.
33008         * modules/unicase/u16-is-casefolded: New file.
33009
33010         New module 'unicase/u8-is-casefolded'.
33011         * lib/unicase/u8-is-casefolded.c: New file.
33012         * modules/unicase/u8-is-casefolded: New file.
33013
33014         Tests for module 'unicase/u32-is-titlecase'.
33015         * modules/unicase/u32-is-titlecase-tests: New file.
33016         * tests/unicase/test-u32-is-titlecase.c: New file.
33017
33018         Tests for module 'unicase/u16-is-titlecase'.
33019         * modules/unicase/u16-is-titlecase-tests: New file.
33020         * tests/unicase/test-u16-is-titlecase.c: New file.
33021
33022         Tests for module 'unicase/u8-is-titlecase'.
33023         * modules/unicase/u8-is-titlecase-tests: New file.
33024         * tests/unicase/test-u8-is-titlecase.c: New file.
33025         * tests/unicase/test-is-titlecase.h: New file.
33026
33027         New module 'unicase/u32-is-titlecase'.
33028         * lib/unicase/u32-is-titlecase.c: New file.
33029         * modules/unicase/u32-is-titlecase: New file.
33030
33031         New module 'unicase/u16-is-titlecase'.
33032         * lib/unicase/u16-is-titlecase.c: New file.
33033         * modules/unicase/u16-is-titlecase: New file.
33034
33035         New module 'unicase/u8-is-titlecase'.
33036         * lib/unicase/u8-is-titlecase.c: New file.
33037         * modules/unicase/u8-is-titlecase: New file.
33038
33039         Tests for module 'unicase/u32-is-lowercase'.
33040         * modules/unicase/u32-is-lowercase-tests: New file.
33041         * tests/unicase/test-u32-is-lowercase.c: New file.
33042
33043         Tests for module 'unicase/u16-is-lowercase'.
33044         * modules/unicase/u16-is-lowercase-tests: New file.
33045         * tests/unicase/test-u16-is-lowercase.c: New file.
33046
33047         Tests for module 'unicase/u8-is-lowercase'.
33048         * modules/unicase/u8-is-lowercase-tests: New file.
33049         * tests/unicase/test-u8-is-lowercase.c: New file.
33050         * tests/unicase/test-is-lowercase.h: New file.
33051
33052         New module 'unicase/u32-is-lowercase'.
33053         * lib/unicase/u32-is-lowercase.c: New file.
33054         * modules/unicase/u32-is-lowercase: New file.
33055
33056         New module 'unicase/u16-is-lowercase'.
33057         * lib/unicase/u16-is-lowercase.c: New file.
33058         * modules/unicase/u16-is-lowercase: New file.
33059
33060         New module 'unicase/u8-is-lowercase'.
33061         * lib/unicase/u8-is-lowercase.c: New file.
33062         * modules/unicase/u8-is-lowercase: New file.
33063
33064         Tests for module 'unicase/u32-is-uppercase'.
33065         * modules/unicase/u32-is-uppercase-tests: New file.
33066         * tests/unicase/test-u32-is-uppercase.c: New file.
33067
33068         Tests for module 'unicase/u16-is-uppercase'.
33069         * modules/unicase/u16-is-uppercase-tests: New file.
33070         * tests/unicase/test-u16-is-uppercase.c: New file.
33071
33072         Tests for module 'unicase/u8-is-uppercase'.
33073         * modules/unicase/u8-is-uppercase-tests: New file.
33074         * tests/unicase/test-u8-is-uppercase.c: New file.
33075         * tests/unicase/test-is-uppercase.h: New file.
33076
33077         New module 'unicase/u32-is-uppercase'.
33078         * lib/unicase/u32-is-uppercase.c: New file.
33079         * modules/unicase/u32-is-uppercase: New file.
33080
33081         New module 'unicase/u16-is-uppercase'.
33082         * lib/unicase/u16-is-uppercase.c: New file.
33083         * modules/unicase/u16-is-uppercase: New file.
33084
33085         New module 'unicase/u8-is-uppercase'.
33086         * lib/unicase/u8-is-uppercase.c: New file.
33087         * modules/unicase/u8-is-uppercase: New file.
33088
33089         New module 'unicase/u32-is-invariant'.
33090         * lib/unicase/u32-is-invariant.c: New file.
33091         * modules/unicase/u32-is-invariant: New file.
33092
33093         New module 'unicase/u16-is-invariant'.
33094         * lib/unicase/u16-is-invariant.c: New file.
33095         * modules/unicase/u16-is-invariant: New file.
33096
33097         New module 'unicase/u8-is-invariant'.
33098         * lib/unicase/u8-is-invariant.c: New file.
33099         * lib/unicase/invariant.h: New file.
33100         * lib/unicase/u-is-invariant.h: New file.
33101         * modules/unicase/u8-is-invariant: New file.
33102
33103         Tests for module 'unicase/u32-casecoll'.
33104         * modules/unicase/u32-casecoll-tests: New file.
33105         * tests/unicase/test-u32-casecoll.c: New file.
33106
33107         Tests for module 'unicase/u16-casecoll'.
33108         * modules/unicase/u16-casecoll-tests: New file.
33109         * tests/unicase/test-u16-casecoll.c: New file.
33110
33111         Tests for module 'unicase/u8-casecoll'.
33112         * modules/unicase/u8-casecoll-tests: New file.
33113         * tests/unicase/test-u8-casecoll.c: New file.
33114
33115         New module 'unicase/u32-casecoll'.
33116         * lib/unicase/u32-casecoll.c: New file.
33117         * modules/unicase/u32-casecoll: New file.
33118
33119         New module 'unicase/u16-casecoll'.
33120         * lib/unicase/u16-casecoll.c: New file.
33121         * modules/unicase/u16-casecoll: New file.
33122
33123         New module 'unicase/u8-casecoll'.
33124         * lib/unicase/u8-casecoll.c: New file.
33125         * lib/unicase/u-casecoll.h: New file.
33126         * modules/unicase/u8-casecoll: New file.
33127
33128         New module 'unicase/u32-casexfrm'.
33129         * lib/unicase/u32-casexfrm.c: New file.
33130         * modules/unicase/u32-casexfrm: New file.
33131
33132         New module 'unicase/u16-casexfrm'.
33133         * lib/unicase/u16-casexfrm.c: New file.
33134         * modules/unicase/u16-casexfrm: New file.
33135
33136         New module 'unicase/u8-casexfrm'.
33137         * lib/unicase/u8-casexfrm.c: New file.
33138         * lib/unicase/u-casexfrm.h: New file.
33139         * modules/unicase/u8-casexfrm: New file.
33140
33141         Tests for module 'unicase/u32-casecmp'.
33142         * modules/unicase/u32-casecmp-tests: New file.
33143         * tests/unicase/test-u32-casecmp.c: New file.
33144
33145         Tests for module 'unicase/u16-casecmp'.
33146         * modules/unicase/u16-casecmp-tests: New file.
33147         * tests/unicase/test-u16-casecmp.c: New file.
33148
33149         Tests for module 'unicase/u8-casecmp'.
33150         * modules/unicase/u8-casecmp-tests: New file.
33151         * tests/unicase/test-u8-casecmp.c: New file.
33152         * tests/unicase/test-casecmp.h: New file.
33153
33154         New module 'unicase/u32-casecmp'.
33155         * lib/unicase/u32-casecmp.c: New file.
33156         * modules/unicase/u32-casecmp: New file.
33157
33158         New module 'unicase/u16-casecmp'.
33159         * lib/unicase/u16-casecmp.c: New file.
33160         * modules/unicase/u16-casecmp: New file.
33161
33162         New module 'unicase/u8-casecmp'.
33163         * lib/unicase/u8-casecmp.c: New file.
33164         * lib/unicase/u-casecmp.h: New file.
33165         * modules/unicase/u8-casecmp: New file.
33166
33167         Tests for module 'unicase/u32-casefold'.
33168         * modules/unicase/u32-casefold-tests: New file.
33169         * tests/unicase/test-u32-casefold.c: New file.
33170
33171         Tests for module 'unicase/u16-casefold'.
33172         * modules/unicase/u16-casefold-tests: New file.
33173         * tests/unicase/test-u16-casefold.c: New file.
33174
33175         Tests for module 'unicase/u8-casefold'.
33176         * modules/unicase/u8-casefold-tests: New file.
33177         * tests/unicase/test-u8-casefold.c: New file.
33178
33179         New module 'unicase/u32-casefold'.
33180         * lib/unicase/u32-casefold.c: New file.
33181         * modules/unicase/u32-casefold: New file.
33182
33183         New module 'unicase/u16-casefold'.
33184         * lib/unicase/u16-casefold.c: New file.
33185         * modules/unicase/u16-casefold: New file.
33186
33187         New module 'unicase/u8-casefold'.
33188         * lib/unicase/u8-casefold.c: New file.
33189         * lib/unicase/u-casefold.h: New file.
33190         * modules/unicase/u8-casefold: New file.
33191
33192         New module 'unicase/tocasefold'.
33193         * lib/unicase/casefold.h: New file.
33194         * lib/unicase/tocasefold.c: New file.
33195         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
33196         * modules/unicase/tocasefold: New file.
33197
33198         Tests for module 'unicase/u32-totitle'.
33199         * modules/unicase/u32-totitle-tests: New file.
33200         * tests/unicase/test-u32-totitle.c: New file.
33201
33202         Tests for module 'unicase/u16-totitle'.
33203         * modules/unicase/u16-totitle-tests: New file.
33204         * tests/unicase/test-u16-totitle.c: New file.
33205
33206         Tests for module 'unicase/u8-totitle'.
33207         * modules/unicase/u8-totitle-tests: New file.
33208         * tests/unicase/test-u8-totitle.c: New file.
33209
33210         New module 'unicase/u32-totitle'.
33211         * lib/unicase/u32-totitle.c: New file.
33212         * modules/unicase/u32-totitle: New file.
33213
33214         New module 'unicase/u16-totitle'.
33215         * lib/unicase/u16-totitle.c: New file.
33216         * modules/unicase/u16-totitle: New file.
33217
33218         New module 'unicase/u8-totitle'.
33219         * lib/unicase/u8-totitle.c: New file.
33220         * lib/unicase/u-totitle.h: New file.
33221         * modules/unicase/u8-totitle: New file.
33222
33223         Tests for module 'unicase/u32-tolower'.
33224         * modules/unicase/u32-tolower-tests: New file.
33225         * tests/unicase/test-u32-tolower.c: New file.
33226
33227         Tests for module 'unicase/u16-tolower'.
33228         * modules/unicase/u16-tolower-tests: New file.
33229         * tests/unicase/test-u16-tolower.c: New file.
33230
33231         Tests for module 'unicase/u8-tolower'.
33232         * modules/unicase/u8-tolower-tests: New file.
33233         * tests/unicase/test-u8-tolower.c: New file.
33234
33235         New module 'unicase/u32-tolower'.
33236         * lib/unicase/u32-tolower.c: New file.
33237         * modules/unicase/u32-tolower: New file.
33238
33239         New module 'unicase/u16-tolower'.
33240         * lib/unicase/u16-tolower.c: New file.
33241         * modules/unicase/u16-tolower: New file.
33242
33243         New module 'unicase/u8-tolower'.
33244         * lib/unicase/u8-tolower.c: New file.
33245         * modules/unicase/u8-tolower: New file.
33246
33247         Tests for module 'unicase/u32-toupper'.
33248         * modules/unicase/u32-toupper-tests: New file.
33249         * tests/unicase/test-u32-toupper.c: New file.
33250
33251         Tests for module 'unicase/u16-toupper'.
33252         * modules/unicase/u16-toupper-tests: New file.
33253         * tests/unicase/test-u16-toupper.c: New file.
33254
33255         Tests for module 'unicase/u8-toupper'.
33256         * modules/unicase/u8-toupper-tests: New file.
33257         * tests/unicase/test-u8-toupper.c: New file.
33258
33259         New module 'unicase/u32-toupper'.
33260         * lib/unicase/u32-toupper.c: New file.
33261         * modules/unicase/u32-toupper: New file.
33262
33263         New module 'unicase/u16-toupper'.
33264         * lib/unicase/u16-toupper.c: New file.
33265         * modules/unicase/u16-toupper: New file.
33266
33267         New module 'unicase/u8-toupper'.
33268         * lib/unicase/u8-toupper.c: New file.
33269         * modules/unicase/u8-toupper: New file.
33270
33271         New module 'unicase/u32-casemap'.
33272         * lib/unicase/u32-casemap.c: New file.
33273         * modules/unicase/u32-casemap: New file.
33274
33275         New module 'unicase/u16-casemap'.
33276         * lib/unicase/u16-casemap.c: New file.
33277         * modules/unicase/u16-casemap: New file.
33278
33279         New module 'unicase/u8-casemap'.
33280         * lib/unicase/unicasemap.h: New file.
33281         * lib/unicase/u8-casemap.c: New file.
33282         * lib/unicase/u-casemap.h: New file.
33283         * modules/unicase/u8-casemap: New file.
33284
33285         New module 'unicase/special-casing'.
33286         * lib/unicase/special-casing.h: New file.
33287         * lib/unicase/special-casing.c: New file.
33288         * lib/unicase/special-casing-table.gperf: New file, generated by
33289         gen-uni-tables.c.
33290         * modules/unicase/special-casing: New file.
33291
33292         Tests for module 'unicase/locale-language'.
33293         * modules/unicase/locale-language-tests: New file.
33294         * tests/unicase/test-locale-language.sh: New file.
33295         * tests/unicase/test-locale-language.c: New file.
33296
33297         New module 'unicase/locale-language'.
33298         * lib/unicase/locale-language.c: New file.
33299         * lib/unicase/locale-languages.gperf: New file.
33300         * modules/unicase/locale-language: New file.
33301
33302         Generate more tables for case conversion and case folding.
33303         * lib/gen-uni-tables.c (SCC_*): New enum items.
33304         (struct special_casing_rule): New type.
33305         (casing_rules, num_casing_rules, allocated_casing_rules): New
33306         variables.
33307         (add_casing_rule, fill_casing_rules): New functions.
33308         (struct casefold_rule): New type.
33309         (casefolding_rules, num_casefolding_rules,
33310         allocated_casefolding_rules): New variables.
33311         (fill_casefolding_rules): New function.
33312         (unicode_casefold): New variable.
33313         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
33314         sort_casing_rules, output_casing_rules): New functions.
33315         (main): Accept to more arguments: SpecialCasing.txt and
33316         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
33317         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
33318         Output mapping for casefolding.
33319
33320         * lib/unicase.h: Include stdbool.h, uninorm.h.
33321         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
33322         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
33323         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
33324         arguments.
33325         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
33326         resultp arguments.
33327         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
33328         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
33329         resultp arguments.
33330         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
33331         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
33332         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
33333         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
33334         declarations.
33335         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
33336
33337 2009-03-08  Bruno Haible  <bruno@clisp.org>
33338
33339         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
33340         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
33341         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
33342         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
33343
33344 2009-03-07  Bruno Haible  <bruno@clisp.org>
33345
33346         Adjust u*_normcmp, u*_normcoll API.
33347         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
33348         u16_normcoll, u32_normcoll): Change failure conventions.
33349         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
33350         errno and return -1.
33351         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
33352
33353 2009-03-07  Bruno Haible  <bruno@clisp.org>
33354
33355         Tests for module 'uninorm/u32-normcoll'.
33356         * modules/uninorm/u32-normcoll-tests: New file.
33357         * tests/uninorm/test-u32-normcoll.c: New file.
33358
33359         Tests for module 'uninorm/u16-normcoll'.
33360         * modules/uninorm/u16-normcoll-tests: New file.
33361         * tests/uninorm/test-u16-normcoll.c: New file.
33362
33363         Tests for module 'uninorm/u8-normcoll'.
33364         * modules/uninorm/u8-normcoll-tests: New file.
33365         * tests/uninorm/test-u8-normcoll.c: New file.
33366
33367 2009-03-07  Bruno Haible  <bruno@clisp.org>
33368
33369         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
33370         tests/uninorm/test-u32-normcmp.c.
33371         * tests/uninorm/test-u32-normcmp.c: Include it.
33372         (test_nonascii): New function, extracted from main. Add some more
33373         tests.
33374         (main): Invoke test_ascii and test_nonascii.
33375         * modules/uninorm/u32-normcmp-tests (Files): Add
33376         tests/uninorm/test-u32-normcmp.h.
33377         (Depends-on): Remove uninorm/u32-normcmp.
33378
33379         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
33380         tests/uninorm/test-u16-normcmp.c.
33381         * tests/uninorm/test-u16-normcmp.c: Include it.
33382         (test_nonascii): New function, extracted from main. Add some more
33383         tests.
33384         (main): Invoke test_ascii and test_nonascii.
33385         * modules/uninorm/u16-normcmp-tests (Files): Add
33386         tests/uninorm/test-u16-normcmp.h.
33387         (Depends-on): Remove uninorm/u16-normcmp.
33388
33389         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
33390         tests/uninorm/test-u8-normcmp.c.
33391         * tests/uninorm/test-u8-normcmp.c: Include it.
33392         (test_nonascii): New function, extracted from main. Add some more
33393         tests.
33394         (main): Invoke test_ascii and test_nonascii.
33395         * modules/uninorm/u8-normcmp-tests (Files): Add
33396         tests/uninorm/test-u8-normcmp.h.
33397         (Depends-on): Remove uninorm/u8-normcmp.
33398
33399 2009-03-07  Bruno Haible  <bruno@clisp.org>
33400
33401         New module 'uninorm/u32-normcoll'.
33402         * lib/uninorm/u32-normcoll.c: New file.
33403         * modules/uninorm/u32-normcoll: New file.
33404
33405         New module 'uninorm/u16-normcoll'.
33406         * lib/uninorm/u16-normcoll.c: New file.
33407         * modules/uninorm/u16-normcoll: New file.
33408
33409         New module 'uninorm/u8-normcoll'.
33410         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
33411         declarations.
33412         * lib/uninorm/u8-normcoll.c: New file.
33413         * lib/uninorm/u-normcoll.h: New file.
33414         * modules/uninorm/u8-normcoll: New file.
33415
33416         New module 'uninorm/u32-normxfrm'.
33417         * lib/uninorm/u32-normxfrm.c: New file.
33418         * modules/uninorm/u32-normxfrm: New file.
33419
33420         New module 'uninorm/u16-normxfrm'.
33421         * lib/uninorm/u16-normxfrm.c: New file.
33422         * modules/uninorm/u16-normxfrm: New file.
33423
33424         New module 'uninorm/u8-normxfrm'.
33425         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
33426         declarations.
33427         * lib/uninorm/u8-normxfrm.c: New file.
33428         * lib/uninorm/u-normxfrm.h: New file.
33429         * modules/uninorm/u8-normxfrm: New file.
33430
33431 2009-03-07  Bruno Haible  <bruno@clisp.org>
33432
33433         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
33434         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
33435         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
33436
33437 2009-03-07  Bruno Haible  <bruno@clisp.org>
33438
33439         New module 'memxfrm'.
33440         * lib/memxfrm.h: New file.
33441         * lib/memxfrm.c: New file.
33442         * modules/memxfrm: New file.
33443
33444 2009-03-07  Bruno Haible  <bruno@clisp.org>
33445
33446         New module 'memcmp2'.
33447         * lib/memcmp2.h: New file.
33448         * lib/memcmp2.c: New file.
33449         * modules/memcmp2: New file.
33450
33451 2009-03-07  Bruno Haible  <bruno@clisp.org>
33452
33453         Tests for module 'uninorm/decomposing-form'.
33454         * modules/uninorm/decomposing-form-tests: New file.
33455         * tests/uninorm/test-decomposing-form.c: New file.
33456
33457         New module 'uninorm/decomposing-form'.
33458         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
33459         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
33460         Add 'decomposing_variant' field.
33461         * lib/uninorm/decomposing-form.c: New file.
33462         * lib/uninorm/nfc.c (uninorm_nfc): Update.
33463         * lib/uninorm/nfd.c (uninorm_nfd): Update.
33464         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
33465         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
33466         * modules/uninorm/decomposing-form: New file.
33467         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
33468         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
33469
33470 2009-03-07  Bruno Haible  <bruno@clisp.org>
33471
33472         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
33473         strings.
33474
33475 2009-03-06  Bruno Haible  <bruno@clisp.org>
33476
33477         Tests for module 'uninorm/u32-normcmp'.
33478         * tests/uninorm/test-u32-normcmp.c: New file.
33479         * modules/uninorm/u32-normcmp-tests: New file.
33480
33481         Tests for module 'uninorm/u16-normcmp'.
33482         * tests/uninorm/test-u16-normcmp.c: New file.
33483         * modules/uninorm/u16-normcmp-tests: New file.
33484
33485         Tests for module 'uninorm/u8-normcmp'.
33486         * tests/uninorm/test-u8-normcmp.c: New file.
33487         * modules/uninorm/u8-normcmp-tests: New file.
33488
33489         New module 'uninorm/u32-normcmp'.
33490         * lib/uninorm/u32-normcmp.c: New file.
33491         * modules/uninorm/u32-normcmp: New file.
33492
33493         New module 'uninorm/u16-normcmp'.
33494         * lib/uninorm/u16-normcmp.c: New file.
33495         * modules/uninorm/u16-normcmp: New file.
33496
33497         New module 'uninorm/u8-normcmp'.
33498         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
33499         declarations.
33500         * lib/uninorm/u8-normcmp.c: New file.
33501         * lib/uninorm/u-normcmp.h: New file.
33502         * modules/uninorm/u8-normcmp: New file.
33503
33504 2009-03-06  Bruno Haible  <bruno@clisp.org>
33505
33506         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
33507         Reported by Eric Blake.
33508
33509 2009-03-06  Eric Blake  <ebb9@byu.net>
33510             Bruno Haible  <bruno@clisp.org>
33511
33512         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
33513         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
33514         condition.
33515         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
33516         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
33517         condition.
33518         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
33519
33520 2009-03-06  Eric Blake  <ebb9@byu.net>
33521
33522         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
33523         to avoid compiler warnings.
33524         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
33525
33526 2009-03-05  Bruno Haible  <bruno@clisp.org>
33527
33528         * tests/test-ftell.c (main): Disable test beyond end of file on
33529         FreeMiNT.
33530         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33531
33532 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
33533
33534         * lib/filevercmp.c: Move hidden files up in ordering.
33535         * tests/test-filevercmp.c: Add tests for hidden files.
33536
33537 2009-03-04  Bruno Haible  <bruno@clisp.org>
33538
33539         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
33540         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
33541         AM_CFLAGS.
33542         Reported by Simon Josefsson.
33543
33544 2009-03-03  Bruno Haible  <bruno@clisp.org>
33545
33546         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
33547         Reported by Simon Josefsson.
33548
33549         * doc/ld-version-script.texi: Update node reference.
33550
33551 2009-03-03  Bruno Haible  <bruno@clisp.org>
33552
33553         * modules/visibility (License): Change to 'unlimited'.
33554         Suggested by Simon Josefsson.
33555
33556 2009-03-03  Jim Meyering  <meyering@redhat.com>
33557
33558         unlinkdir: cannot_unlink_dir may modify process state
33559         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
33560         it's neither thread-safe nor appropriate for use in a library.
33561
33562 2009-03-03  Eric Blake  <ebb9@byu.net>
33563
33564         test-closein: silence test under Darwin
33565         * tests/test-closein.sh: Ignore stderr from cat, since we don't
33566         care if it dies from EPIPE or EBADF.
33567
33568 2009-03-03  Bruno Haible  <bruno@clisp.org>
33569
33570         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
33571         earlier.
33572         * doc/visibility.texi: Fix @node and @section.
33573
33574 2009-03-03  Simon Josefsson  <simon@josefsson.org>
33575
33576         * doc/gnulib.texi: Link to sections for ld version script and
33577         visibility.
33578         * doc/visibility.texi: Add @node and @section.
33579         * modules/ld-version-script: New module.
33580         * m4/ld-version-script.m4: New file.
33581         * doc/ld-version-script.texi: New file.
33582
33583 2009-03-02  David Lutterkort  <lutter@redhat.com>
33584
33585         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
33586         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33587
33588 2009-03-02  Bruno Haible  <bruno@clisp.org>
33589
33590         * doc/visibility.texi: Mention libtool's -export-symbols option.
33591
33592 2009-03-02  Jim Meyering  <meyering@redhat.com>
33593
33594         announce-gen: new option: --no-print-checksums
33595         * build-aux/announce-gen (usage): Describe it.
33596         (print_checksums): Print a newline here, not in the [*] footnote.
33597         (main): Honor it.
33598
33599 2009-03-01  Bruno Haible  <bruno@clisp.org>
33600
33601         Use socklen_t in the native Windows replacements prototypes.
33602         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
33603         instead of 'int'.
33604         * lib/getsockopt.c (rpl_getsockopt): Likewise.
33605         * lib/setsockopt.c (rpl_setsockopt): Likewise.
33606         * modules/getsockopt (Depends-on): Add socklen.
33607         * modules/setsockopt (Depends-on): Add socklen.
33608
33609 2009-03-01  Bruno Haible  <bruno@clisp.org>
33610
33611         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
33612         least 4.2.
33613
33614 2009-03-01  Eric Blake  <ebb9@byu.net>
33615             Bruno Haible  <bruno@clisp.org>
33616
33617         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
33618         error messages.
33619         * lib/wait-process.c (wait_subprocess): Omit error message about
33620         deadly signal sent to the child of termsigp != NULL.
33621
33622 2009-03-01  Eric Blake  <ebb9@byu.net>
33623
33624         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
33625
33626 2009-03-01  Bruno Haible  <bruno@clisp.org>
33627
33628         Avoid a gcc warning.
33629         * tests/test-sched.c (b): Make global.
33630         Reported by Eric Blake.
33631
33632 2009-01-19  Martin Lambers  <marlam@marlam.de>
33633
33634         Provide POSIX semantics for socket timeout options on W32.
33635         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
33636         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
33637         * modules/setsockopt: Depend on sys_time module for struct timeval.
33638         * modules/getsockopt: Depend on sys_time module for struct timeval.
33639
33640 2009-03-01  Simon Josefsson  <simon@josefsson.org>
33641
33642         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
33643         __USE_GNU, for consistency with netdb.in.h.
33644         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33645
33646 2009-03-01  Bruno Haible  <bruno@clisp.org>
33647
33648         More support for FreeMiNT.
33649         * lib/fseeko.c (rpl_fseeko): Complete last commit.
33650         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33651
33652 2009-03-01  Bruno Haible  <bruno@clisp.org>
33653
33654         More support for FreeMiNT.
33655         * lib/fpurge.c (fpurge): Correct last commit.
33656         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33657
33658 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33659
33660         Fix unportable awk script in vc-list-files.
33661         * build-aux/vc-list-files: In the replacement awk script, use
33662         substr with a second argument of 1, not zero.
33663         Report by Simon Josefsson.
33664
33665 2009-02-28  Bruno Haible  <bruno@clisp.org>
33666
33667         More support for FreeMiNT.
33668         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
33669         to FreeMiNT today.
33670         * lib/fwriting.c (fwriting): Likewise.
33671         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
33672
33673 2009-02-28  Bruno Haible  <bruno@clisp.org>
33674
33675         * tests/test-freadseek.c (main): Disable test beyond end of file on
33676         FreeMiNT.
33677         * tests/test-ftello.c (main): Likewise.
33678         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33679
33680 2009-02-28  Bruno Haible  <bruno@clisp.org>
33681
33682         Add tentative support for FreeMiNT.
33683         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
33684         * lib/fpurge.c (fpurge): Likewise.
33685         * lib/freadable.c (freadable): Likewise.
33686         * lib/freading.c (freading): Likewise.
33687         * lib/freadptr.c (freadptr): Likewise.
33688         * lib/freadseek.c (freadptrinc): Likewise.
33689         * lib/fseeko.c (rpl_fseeko): Likewise.
33690         * lib/fseterr.c (fseterr): Likewise.
33691         * lib/fwritable.c (fwritable): Likewise.
33692         * lib/fwriting.c (fwriting): Likewise.
33693         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
33694         Hourihane.
33695         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33696
33697 2009-02-28  Bruno Haible  <bruno@clisp.org>
33698
33699         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
33700         SIGCHLD.
33701         Reported by Jim Meyering.
33702
33703 2009-02-28  Bruno Haible  <bruno@clisp.org>
33704
33705         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
33706         Mention the results of these tests on various platforms.
33707         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
33708         order.
33709         * doc/posix-functions/printf.texi: Likewise.
33710         * doc/posix-functions/snprintf.texi: Likewise.
33711         * doc/posix-functions/sprintf.texi: Likewise.
33712         * doc/posix-functions/vfprintf.texi: Likewise.
33713         * doc/posix-functions/vprintf.texi: Likewise.
33714         * doc/posix-functions/vsnprintf.texi: Likewise.
33715         * doc/posix-functions/vsprintf.texi: Likewise.
33716         * doc/glibc-functions/obstack_printf.texi: Likewise.
33717         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33718
33719 2009-02-28  Bruno Haible  <bruno@clisp.org>
33720
33721         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
33722         Reported by Loïc Minier <lool@dooz.org>.
33723
33724 2009-02-27  Bruno Haible  <bruno@clisp.org>
33725
33726         * gnulib-tool (func_import): Make the sed expression used to create the
33727         sed script for updating the .gitignore file POSIX compliant.
33728         Reported by Eric Blake.
33729
33730 2009-02-27  Bruno Haible  <bruno@clisp.org>
33731
33732         * gnulib-tool (sed): Don't alias as "sed --posix".
33733         Reported by Eric Blake.
33734
33735 2009-02-27  Bruno Haible  <bruno@clisp.org>
33736
33737         Avoid test link errors.
33738         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
33739         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
33740         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
33741         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
33742         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33743
33744 2009-02-27  Bruno Haible  <bruno@clisp.org>
33745
33746         Avoid spurious "(cached)" in configure output.
33747         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
33748         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
33749         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33750         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33751         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33752         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
33753         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33754         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
33755         Reported by Eric Blake.
33756
33757 2009-02-27  Eric Blake  <ebb9@byu.net>
33758
33759         printf: fix regression in previous patch
33760         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
33761
33762 2009-02-27  Bruno Haible  <bruno@clisp.org>
33763
33764         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
33765         value.
33766         * lib/stdint.in.h: Likewise.
33767         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
33768
33769 2009-02-27  Eric Blake  <ebb9@byu.net>
33770
33771         doc: mention more functions added in cygwin 1.7.0
33772         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
33773         addition.
33774         * doc/posix-functions/open_wmemstream.texi: Likewise.
33775         * doc/posix-functions/wcsnlen.texi: Likewise.
33776         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33777         * doc/posix-functions/wcstod.texi: Likewise.
33778         * doc/posix-functions/wcstof.texi: Likewise.
33779         * doc/posix-functions/wcstoimax.texi: Likewise.
33780         * doc/posix-functions/wcstok.texi: Likewise.
33781         * doc/posix-functions/wcstoumax.texi: Likewise.
33782
33783         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
33784         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
33785         * doc/posix-functions/fprintf.texi: Update.
33786         * doc/posix-functions/printf.texi: Update.
33787         * doc/posix-functions/snprintf.texi: Update.
33788         * doc/posix-functions/sprintf.texi: Update.
33789         * doc/posix-functions/vfprintf.texi: Update.
33790         * doc/posix-functions/vprintf.texi: Update.
33791         * doc/posix-functions/vsnprintf.texi: Update.
33792         * doc/posix-functions/vsprintf.texi: Update.
33793         * doc/glibc-functions/obstack_printf.texi: Update.
33794         * doc/glibc-functions/obstack_vprintf.texi: Update.
33795
33796 2009-02-26  Eric Blake  <ebb9@byu.net>
33797
33798         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
33799         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
33800         compilation bug by using runtime conversion.
33801         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33802         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
33803         * modules/ceill-tests (Files): Use nan.h.
33804         * modules/floorl-tests (Files): Likewise.
33805         * modules/frexpl-tests (Files): Likewise.
33806         * modules/isnanl-tests (Files): Likewise.
33807         * modules/ldexpl-tests (Files): Likewise.
33808         * modules/roundl-tests (Files): Likewise.
33809         * modules/truncl-tests (Files): Likewise.
33810         * tests/test-ceill.c (main): Use a working NaN.
33811         * tests/test-floorl.c (main): Likewise.
33812         * tests/test-frexpl.c (main): Likewise.
33813         * tests/test-isnan.c (test_long_double): Likewise.
33814         * tests/test-isnanl.h (main): Likewise.
33815         * tests/test-ldexpl.h (main): Likewise.
33816         * tests/test-roundl.h (main): Likewise.
33817         * tests/test-truncl.h (main): Likewise.
33818         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
33819
33820 2009-02-26  Eric Blake  <ebb9@byu.net>
33821             Bruno Haible  <bruno@clisp.org>
33822
33823         Work around a *printf bug with %ls on Solaris.
33824         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
33825         precision is specified, sprintf stops converting the wide string
33826         argument when the number of bytes that have been produced by this
33827         conversion equals or exceeds the precision.
33828         * doc/posix-functions/fprintf.texi: Update.
33829         * doc/posix-functions/printf.texi: Update.
33830         * doc/posix-functions/snprintf.texi: Update.
33831         * doc/posix-functions/sprintf.texi: Update.
33832         * doc/posix-functions/vfprintf.texi: Update.
33833         * doc/posix-functions/vprintf.texi: Update.
33834         * doc/posix-functions/vsnprintf.texi: Update.
33835         * doc/posix-functions/vsprintf.texi: Update.
33836         * doc/glibc-functions/obstack_printf.texi: Update.
33837         * doc/glibc-functions/obstack_vprintf.texi: Update.
33838
33839 2009-02-26  Eric Blake  <ebb9@byu.net>
33840
33841         stdlib: favor compiler check of random.h
33842         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
33843         to avoid an ObjC random.h installed by Swarm.
33844
33845 2009-02-26  Bruno Haible  <bruno@clisp.org>
33846
33847         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
33848         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
33849         Reported by Gary V. Vaughan <gary@gnu.org>.
33850
33851 2009-02-26  Bruno Haible  <bruno@clisp.org>
33852
33853         Fix *printf behaviour regarding the %ls directive.
33854         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
33855         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
33856         NEED_PRINTF_DIRECTIVE_LS.
33857         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
33858         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33859         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33860         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
33861         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
33862         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
33863         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33864         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33865         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33866         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33867         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33868         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
33869         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33870         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33871         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33872         * doc/posix-functions/fprintf.texi: Update.
33873         * doc/posix-functions/printf.texi: Update.
33874         * doc/posix-functions/snprintf.texi: Update.
33875         * doc/posix-functions/sprintf.texi: Update.
33876         * doc/posix-functions/vfprintf.texi: Update.
33877         * doc/posix-functions/vprintf.texi: Update.
33878         * doc/posix-functions/vsnprintf.texi: Update.
33879         * doc/posix-functions/vsprintf.texi: Update.
33880         * doc/glibc-functions/obstack_printf.texi: Update.
33881         * doc/glibc-functions/obstack_vprintf.texi: Update.
33882         Reported by Eric Blake.
33883
33884 2009-02-25  Bruno Haible  <bruno@clisp.org>
33885
33886         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
33887         with known value.
33888         Reported by Gary V. Vaughan <gary@gnu.org>.
33889
33890 2009-02-25  Bruno Haible  <bruno@clisp.org>
33891
33892         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
33893         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
33894         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
33895         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
33896         Reported by Gary V. Vaughan <gary@gnu.org>.
33897
33898 2009-02-25  Bruno Haible  <bruno@clisp.org>
33899
33900         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
33901         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
33902         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
33903         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
33904         Reported by Gary V. Vaughan <gary@gnu.org>.
33905
33906 2009-02-25  Eric Blake  <ebb9@byu.net>
33907
33908         tests: skip fseek/ftell tests if ungetc is broken
33909         * m4/ungetc.m4: New file.
33910         * modules/fseek-tests: Split test, so ungetc dependency is
33911         separate from rest of test.
33912         * modules/fseeko-tests: Likewise.
33913         * modules/ftell-tests: Likewise.
33914         * modules/ftello-tests: Likewise.
33915         * tests/test-fseek.c (main): Isolate ungetc dependency.
33916         * tests/test-fseeko.c (main): Likewise.
33917         * tests/test-ftell.c (main): Likewise.
33918         * tests/test-ftello.c (main): Likewise.
33919         * tests/test-fseek2.sh: New file.
33920         * tests/test-fseeko2.sh: Likewise.
33921         * tests/test-ftell2.sh: Likewise.
33922         * tests/test-ftello2.sh: Likewise.
33923
33924 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
33925
33926         test-getaddrinfo: fix usage of skip return code 77
33927         * tests/test-gettaddrinfo.c: Return skip code 77 only
33928         for first occurance of skip (4x77 is not 77)
33929
33930 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
33931
33932         strtod: avoid C99 decl-after-statement
33933         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
33934
33935 2009-02-24  Eric Blake  <ebb9@byu.net>
33936
33937         strtod: detect HP-UX 11.31 bug
33938         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
33939         Reported by Gary V. Vaughan.
33940
33941 2009-02-23  Bruno Haible  <bruno@clisp.org>
33942
33943         Fix invalid read past end of memory block.
33944         * lib/vasnprintf.c (DCHAR_SET): Define.
33945         (local_wcslen): Define only when needed.
33946         (local_strnlen, local_wcsnlen): New functions.
33947         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
33948         directives that involve a conversion ourselves.
33949         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
33950         wcsnlen, mbrtowc, wcrtomb.
33951         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
33952         * tests/test-vasprintf-posix.c (test_function): Likewise.
33953         * tests/test-snprintf-posix.h (test_function): Likewise.
33954         * tests/test-sprintf-posix.h (test_function): Likewise.
33955         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33956
33957 2009-02-22  Bruno Haible  <bruno@clisp.org>
33958
33959         Implement new clarified decomposition of Hangul syllables.
33960         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
33961         of type LTV, return only a pairwise decomposition.
33962         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
33963         Likewise.
33964         * tests/uninorm/test-decomposition.c (main): Updated expected result.
33965         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
33966         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
33967
33968 2009-02-22  Bruno Haible  <bruno@clisp.org>
33969
33970         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
33971         zero-length results and shrink excess allocated memory.
33972         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
33973         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
33974         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
33975         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
33976         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
33977         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
33978         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
33979         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
33980         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
33981         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
33982         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
33983         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
33984
33985 2009-02-21  Bruno Haible  <bruno@clisp.org>
33986
33987         * doc/gnulib.texi: Include safe-alloc.texi earlier.
33988         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
33989         spaces after a period. Put a space between a macro name and its
33990         argument list. Trivial rewordings.
33991         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
33992         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
33993         (main): Return 0 explicitly.
33994
33995 2009-02-21  Bruno Haible  <bruno@clisp.org>
33996
33997         Tests for module 'uninorm/filter'.
33998         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
33999         * modules/uninorm/filter-tests: New file.
34000
34001         New module 'uninorm/filter'.
34002         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
34003         uninorm_filter_flush, uninorm_filter_free): New declarations.
34004         * lib/uninorm/uninorm-filter.c: New file.
34005         * modules/uninorm/filter: New file.
34006
34007 2009-02-21  Bruno Haible  <bruno@clisp.org>
34008
34009         Tests for module 'uninorm/nfkc'.
34010         * tests/uninorm/test-nfkc.c: New file.
34011         * tests/uninorm/test-u8-nfkc.c: New file.
34012         * tests/uninorm/test-u16-nfkc.c: New file.
34013         * tests/uninorm/test-u32-nfkc.c: New file.
34014         * tests/uninorm/test-u32-nfkc-big.sh: New file.
34015         * tests/uninorm/test-u32-nfkc-big.c: New file.
34016         * modules/uninorm/nfkc-tests: New file.
34017
34018         New module 'uninorm/nfkc'.
34019         * lib/uninorm/nfkc.c: New file.
34020         * modules/uninorm/nfkc: New file.
34021
34022         Tests for module 'uninorm/nfkd'.
34023         * tests/uninorm/test-nfkd.c: New file.
34024         * tests/uninorm/test-u8-nfkd.c: New file.
34025         * tests/uninorm/test-u16-nfkd.c: New file.
34026         * tests/uninorm/test-u32-nfkd.c: New file.
34027         * tests/uninorm/test-u32-nfkd-big.sh: New file.
34028         * tests/uninorm/test-u32-nfkd-big.c: New file.
34029         * modules/uninorm/nfkd-tests: New file.
34030
34031         New module 'uninorm/nfkd'.
34032         * lib/uninorm/nfkd.c: New file.
34033         * modules/uninorm/nfkd: New file.
34034
34035         Tests for module 'uninorm/nfc'.
34036         * tests/uninorm/test-nfc.c: New file.
34037         * tests/uninorm/test-u8-nfc.c: New file.
34038         * tests/uninorm/test-u16-nfc.c: New file.
34039         * tests/uninorm/test-u32-nfc.c: New file.
34040         * tests/uninorm/test-u32-nfc-big.sh: New file.
34041         * tests/uninorm/test-u32-nfc-big.c: New file.
34042         * modules/uninorm/nfc-tests: New file.
34043
34044         New module 'uninorm/nfc'.
34045         * lib/uninorm/nfc.c: New file.
34046         * modules/uninorm/nfc: New file.
34047
34048         Tests for module 'uninorm/nfd'.
34049         * tests/uninorm/test-nfd.c: New file.
34050         * tests/uninorm/test-u8-nfd.c: New file.
34051         * tests/uninorm/test-u16-nfd.c: New file.
34052         * tests/uninorm/test-u32-nfd.c: New file.
34053         * tests/uninorm/test-u32-nfd-big.sh: New file.
34054         * tests/uninorm/test-u32-nfd-big.c: New file.
34055         * tests/uninorm/test-u32-normalize-big.h: New file.
34056         * tests/uninorm/test-u32-normalize-big.c: New file.
34057         * tests/uninorm/NormalizationTest.txt: New file, created from
34058         Unicode 5.1.0 NormalizationTest.txt.
34059         * modules/uninorm/nfd-tests: New file.
34060
34061         New module 'uninorm/nfd'.
34062         * lib/uninorm/nfd.c: New file.
34063         * modules/uninorm/nfd: New file.
34064
34065         New module 'uninorm/u32-normalize'.
34066         * lib/uninorm/u32-normalize.c: New file.
34067         * modules/uninorm/u32-normalize: New file.
34068
34069         New module 'uninorm/u16-normalize'.
34070         * lib/uninorm/u16-normalize.c: New file.
34071         * modules/uninorm/u16-normalize: New file.
34072
34073         New module 'uninorm/u8-normalize'.
34074         * lib/uninorm/u8-normalize.c: New file.
34075         * lib/uninorm/normalize-internal.h: New file.
34076         * lib/uninorm/u-normalize-internal.h: New file.
34077         * modules/uninorm/u8-normalize: New file.
34078
34079         New module 'uninorm/decompose-internal'.
34080         * lib/uninorm/decompose-internal.c: New file.
34081         * modules/uninorm/decompose-internal: New file.
34082
34083         Tests for module 'uninorm/composition'.
34084         * tests/uninorm/test-composition.c: New file.
34085         * modules/uninorm/composition-tests: New file.
34086
34087         New module 'uninorm/composition'.
34088         * lib/uninorm/composition.c: New file.
34089         * lib/uninorm/composition-table.gperf: New file, generated by
34090         gen-uni-tables.
34091         * modules/uninorm/composition: New file.
34092
34093         Tests for module 'uninorm/compat-decomposition'.
34094         * tests/uninorm/test-compat-decomposition.c: New file.
34095         * modules/uninorm/compat-decomposition-tests: New file.
34096
34097         New module 'uninorm/compat-decomposition'.
34098         * lib/uninorm/decompose-internal.h: New file.
34099         * lib/uninorm/compat-decomposition.c: New file.
34100         * modules/uninorm/compat-decomposition: New file.
34101
34102         Tests for module 'uninorm/canonical-decomposition'.
34103         * tests/uninorm/test-canonical-decomposition.c: New file.
34104         * modules/uninorm/canonical-decomposition-tests: New file.
34105
34106         New module 'uninorm/canonical-decomposition'.
34107         * lib/uninorm/canonical-decomposition.c: New file.
34108         * modules/uninorm/canonical-decomposition: New file.
34109
34110         Tests for module 'uninorm/decomposition'.
34111         * tests/uninorm/test-decomposition.c: New file.
34112         * modules/uninorm/decomposition-tests: New file.
34113
34114         New module 'uninorm/decomposition'.
34115         * lib/uninorm/decomposition.c: New file.
34116         * modules/uninorm/decomposition: New file.
34117
34118         New module 'uninorm/decomposition-table'.
34119         * lib/uninorm/decomposition-table.h: New file.
34120         * lib/uninorm/decomposition-table.c: New file.
34121         * lib/uninorm/decomposition-table1.h: New file, generated by
34122         gen-uni-tables.
34123         * lib/uninorm/decomposition-table2.h: New file, generated by
34124         gen-uni-tables.
34125         * modules/uninorm/decomposition-table: New file.
34126
34127         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
34128         (UC_DECOMP_*): New enumeration items.
34129         (get_decomposition): New function.
34130         (struct decomp_table): New type.
34131         (output_decomposition, output_decomposition_tables): New functions.
34132         (unicode_composition_exclusions): New variable.
34133         (fill_composition_exclusions, debug_output_composition_tables): New
34134         functions.
34135         (main): Accept one more argument. Invoke fill_composition_exclusions.
34136         Output decomposition and composition tables.
34137
34138         New module 'uninorm/base'.
34139         * lib/uninorm.h: New file.
34140         * lib/unictype.h: Update comment.
34141         * modules/uninorm/base: New file.
34142
34143 2009-02-21  David Lutterkort  <lutter@redhat.com>
34144
34145         Tests for module 'safe-alloc'.
34146         * tests/test-safe-alloc.c: New file.
34147         * modules/safe-alloc-tests: New file.
34148
34149         New module 'safe-alloc'.
34150         * lib/safe-alloc.h: New file.
34151         * lib/safe-alloc.c: New file.
34152         * m4/safe-alloc.m4: New file.
34153         * modules/safe-alloc: New file.
34154         * doc/safe-alloc.texi: New file.
34155         * doc/gnulib.texi: Include it.
34156         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
34157         safe-alloc.
34158
34159 2009-02-18  Bruno Haible  <bruno@clisp.org>
34160
34161         Fix link error on non-glibc systems.
34162         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
34163         variable.
34164         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34165
34166 2009-02-18  Jim Meyering  <meyering@redhat.com>
34167
34168         fts: avoid used-uninitialized error due to recent change
34169         * lib/fts.c (fts_read): Guard uses of the new member,
34170         parent->fts_n_dirs_remaining, since it's not relevant for
34171         the parent of a directory specified on the command-line.
34172
34173 2009-02-17  James Youngman  <jay@gnu.org>
34174             Bruno Haible  <bruno@clisp.org>
34175
34176         * m4/include_next.m4: Reformulate comment.
34177
34178 2009-02-16  Jim Meyering  <meyering@redhat.com>
34179
34180         fts: add #if guards so that the fts_lgpl module still builds
34181         * lib/fts.c: Guard just-added hash-table-using parts with
34182         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
34183         Reported by Simon Josefsson.
34184
34185 2009-02-15  Bruno Haible  <bruno@clisp.org>
34186
34187         * modules/array-mergesort-tests: New file.
34188         * tests/test-array-mergesort.c: New file.
34189
34190         New module 'array-mergesort'.
34191         * modules/array-mergesort: New file.
34192         * lib/array-mergesort.h: New file.
34193
34194 2009-02-15  Bruno Haible  <bruno@clisp.org>
34195
34196         Fix 2009-02-07 commit.
34197         * lib/gen-uni-tables.c (output_predicate, output_category,
34198         output_combclass, output_bidi_category, output_decimal_digit,
34199         output_digit, output_numeric, output_mirror, output_scripts,
34200         output_ident_category, output_simple_mapping): Fix format directives.
34201         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
34202
34203 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
34204
34205         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
34206         fixes are available from IBM.
34207
34208 2009-02-13  Jim Meyering  <meyering@redhat.com>
34209
34210         fts: arrange not to stat non-directories in more cases
34211         This makes GNU find (when it doesn't need to stat each file)
34212         *much* more efficient at traversing reiserfs file systems.
34213         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
34214         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
34215         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
34216         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
34217         (leaf_optimization_applies): New function.
34218         (LCO_hash, LCO_compare): New helper functions.
34219         (link_count_optimize_ok): New function.
34220         (fts_stat): Initialize new member (if dir).
34221         (fts_read): Decrement parent's fts_n_dirs_remaining count if
34222         we've just stat'ed a directory.  Skip the stat call when possible.
34223         ---
34224         Note this AFS-related exchange:
34225         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
34226         and note find's pioctl call in find/fstype.c.
34227         But that is necessary only if you want to enable the
34228         optimization for AFS, and for now, I don't.
34229
34230         fts: move a function definition "up" (no semantic change)
34231         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
34232         "up" to precede upcoming use of a related function.
34233
34234 2009-02-11  Jim Meyering  <meyering@redhat.com>
34235
34236         fts: correct internal computation of nlinks (optimization-related)
34237         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
34238         whether the current entry is a directory, so don't test it.
34239
34240 2009-02-10  Bruno Haible  <bruno@clisp.org>
34241
34242         Tests for module 'uniwbrk/ulc-wordbreaks'.
34243         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
34244         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
34245         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
34246
34247         Tests for module 'uniwbrk/u32-wordbreaks'.
34248         * modules/uniwbrk/u32-wordbreaks-tests: New file.
34249         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
34250
34251         Tests for module 'uniwbrk/u16-wordbreaks'.
34252         * modules/uniwbrk/u16-wordbreaks-tests: New file.
34253         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
34254
34255         Tests for module 'uniwbrk/u8-wordbreaks'.
34256         * modules/uniwbrk/u8-wordbreaks-tests: New file.
34257         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
34258
34259 2009-02-10  Bruno Haible  <bruno@clisp.org>
34260
34261         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
34262         property.
34263         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
34264         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
34265         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
34266
34267 2009-02-10  Simon Josefsson  <simon@josefsson.org>
34268
34269         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
34270         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
34271
34272 2009-02-10  Bruno Haible  <bruno@clisp.org>
34273
34274         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
34275         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
34276         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
34277         * lib/unilbrk/u8-possible-linebreaks.c: Update.
34278         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
34279         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
34280
34281 2009-02-09  Simon Josefsson  <simon@josefsson.org>
34282
34283         * lib/sockets.h (gl_fd_to_handle): New function.
34284
34285         * tests/test-sockets.c: Call gl_fd_to_handle.
34286
34287 2009-02-09  Bruno Haible  <bruno@clisp.org>
34288
34289         * doc/havelib.texi: Document the conventions on bi-arch systems.
34290
34291 2009-02-08  Bruno Haible  <bruno@clisp.org>
34292
34293         Document the AC_LIB_LINKFLAGS macro.
34294         * doc/havelib.texi: New file, mostly written on 2005-05-24.
34295         * doc/gnulib.texi: Include it.
34296
34297 2009-02-08  Bruno Haible  <bruno@clisp.org>
34298
34299         Fix wrong order of sections, compared to TOC.
34300         * doc/gnulib.texi: Include relocatable-maint.texi after the
34301         "Regular expressions" node, not before.
34302
34303 2009-02-08  Bruno Haible  <bruno@clisp.org>
34304
34305         Tests for module 'unicase/totitle'.
34306         * modules/unicase/totitle-tests: New file.
34307
34308         Tests for module 'unicase/tolower'.
34309         * modules/unicase/tolower-tests: New file.
34310
34311         Tests for module 'unicase/toupper'.
34312         * modules/unicase/toupper-tests: New file.
34313         * tests/unicase/test-mapping-part1.h: New file.
34314         * tests/unicase/test-mapping-part2.h: New file.
34315
34316         New module 'unicase/totitle'.
34317         * modules/unicase/totitle: New file.
34318         * lib/unicase/totitle.c: New file.
34319
34320         New module 'unicase/tolower'.
34321         * modules/unicase/tolower: New file.
34322         * lib/unicase/tolower.c: New file.
34323
34324         New module 'unicase/toupper'.
34325         * modules/unicase/toupper: New file.
34326         * lib/unicase/toupper.c: New file.
34327         * lib/unicase/simple-mapping.h: New file.
34328
34329         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
34330         (mapping_table): New structure.
34331         (output_simple_mapping): New function.
34332         (main): Invoke output_simple_mapping_test and output_simple_mapping.
34333         * modules/gen-uni-tables (Description): Update.
34334         * lib/unicase/toupper.h: New file, automatically generated by
34335         gen-uni-tables.
34336         * lib/unicase/tolower.h: New file, automatically generated by
34337         gen-uni-tables.
34338         * lib/unicase/totitle.h: New file, automatically generated by
34339         gen-uni-tables.
34340         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
34341         gen-uni-tables.
34342         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
34343         gen-uni-tables.
34344         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
34345         gen-uni-tables.
34346
34347         New module 'unicase/base'.
34348         * modules/unicase/base: New file.
34349         * lib/unicase.h: New file.
34350
34351 2009-02-08  Bruno Haible  <bruno@clisp.org>
34352
34353         New module 'uniwbrk/ulc-wordbreaks'.
34354         * modules/uniwbrk/ulc-wordbreaks: New file.
34355         * lib/uniwbrk/ulc-wordbreaks.c: New file.
34356
34357         New module 'uniwbrk/u32-wordbreaks'.
34358         * modules/uniwbrk/u32-wordbreaks: New file.
34359         * lib/uniwbrk/u32-wordbreaks.c: New file.
34360
34361         New module 'uniwbrk/u16-wordbreaks'.
34362         * modules/uniwbrk/u16-wordbreaks: New file.
34363         * lib/uniwbrk/u16-wordbreaks.c: New file.
34364
34365         New module 'uniwbrk/u8-wordbreaks'.
34366         * modules/uniwbrk/u8-wordbreaks: New file.
34367         * lib/uniwbrk/u8-wordbreaks.c: New file.
34368         * lib/uniwbrk/u-wordbreaks.h: New file.
34369
34370         New module 'uniwbrk/table'.
34371         * modules/uniwbrk/table: New file.
34372         * lib/uniwbrk/wbrktable.h: New file.
34373         * lib/uniwbrk/wbrktable.c: New file.
34374
34375         New module 'uniwbrk/wordbreak-property'.
34376         * modules/uniwbrk/wordbreak-property: New file.
34377         * lib/uniwbrk/wordbreak-property.c: New file.
34378
34379         * lib/gen-uni-tables.c (WBP_*): New enum items.
34380         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
34381         (unicode_org_wbp): New variable.
34382         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
34383         New functions.
34384         (wbp_table): New structure.
34385         (output_wbp, output_wbrk_tables): New functions.
34386         (main): Accept additional argument. Invoke fill_org_wbp,
34387         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
34388         output_wbrk_tables.
34389         * modules/gen-uni-tables (Description): Update.
34390         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
34391         gen-uni-tables.
34392
34393         New module 'uniwbrk/base'.
34394         * modules/uniwbrk/base: New file.
34395         * lib/uniwbrk.h: New file.
34396
34397 2009-02-08  Bruno Haible  <bruno@clisp.org>
34398
34399         Update to Unicode 5.1.0.
34400         * lib/gen-uni-tables.c (is_property_alphabetic): Include
34401         U+2185..U+2188.
34402         (is_property_default_ignorable_code_point): Don't include characters
34403         of category Cc or Cs and not-a-characters.
34404         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
34405         U+0D79, U+109E, U+109F, U+A60C.
34406         * lib/unictype/bidi_of.h: Regenerated.
34407         * lib/unictype/blocks.h: Regenerated.
34408         * lib/unictype/categ_C.h: Regenerated.
34409         * lib/unictype/categ_Cf.h: Regenerated.
34410         * lib/unictype/categ_Cn.h: Regenerated.
34411         * lib/unictype/categ_L.h: Regenerated.
34412         * lib/unictype/categ_Ll.h: Regenerated.
34413         * lib/unictype/categ_Lm.h: Regenerated.
34414         * lib/unictype/categ_Lo.h: Regenerated.
34415         * lib/unictype/categ_Lu.h: Regenerated.
34416         * lib/unictype/categ_M.h: Regenerated.
34417         * lib/unictype/categ_Mc.h: Regenerated.
34418         * lib/unictype/categ_Me.h: Regenerated.
34419         * lib/unictype/categ_Mn.h: Regenerated.
34420         * lib/unictype/categ_N.h: Regenerated.
34421         * lib/unictype/categ_Nd.h: Regenerated.
34422         * lib/unictype/categ_Nl.h: Regenerated.
34423         * lib/unictype/categ_No.h: Regenerated.
34424         * lib/unictype/categ_P.h: Regenerated.
34425         * lib/unictype/categ_Pd.h: Regenerated.
34426         * lib/unictype/categ_Pe.h: Regenerated.
34427         * lib/unictype/categ_Pf.h: Regenerated.
34428         * lib/unictype/categ_Pi.h: Regenerated.
34429         * lib/unictype/categ_Po.h: Regenerated.
34430         * lib/unictype/categ_Ps.h: Regenerated.
34431         * lib/unictype/categ_S.h: Regenerated.
34432         * lib/unictype/categ_Sk.h: Regenerated.
34433         * lib/unictype/categ_Sm.h: Regenerated.
34434         * lib/unictype/categ_So.h: Regenerated.
34435         * lib/unictype/categ_of.h: Regenerated.
34436         * lib/unictype/combining.h: Regenerated.
34437         * lib/unictype/ctype_alnum.h: Regenerated.
34438         * lib/unictype/ctype_alpha.h: Regenerated.
34439         * lib/unictype/ctype_graph.h: Regenerated.
34440         * lib/unictype/ctype_lower.h: Regenerated.
34441         * lib/unictype/ctype_print.h: Regenerated.
34442         * lib/unictype/ctype_punct.h: Regenerated.
34443         * lib/unictype/ctype_upper.h: Regenerated.
34444         * lib/unictype/decdigit.h: Regenerated.
34445         * lib/unictype/digit.h: Regenerated.
34446         * lib/unictype/mirror.h: Regenerated.
34447         * lib/unictype/numeric.h: Regenerated.
34448         * lib/unictype/pr_alphabetic.h: Regenerated.
34449         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
34450         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
34451         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
34452         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
34453         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
34454         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
34455         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
34456         * lib/unictype/pr_combining.h: Regenerated.
34457         * lib/unictype/pr_dash.h: Regenerated.
34458         * lib/unictype/pr_decimal_digit.h: Regenerated.
34459         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
34460         * lib/unictype/pr_deprecated.h: Regenerated.
34461         * lib/unictype/pr_diacritic.h: Regenerated.
34462         * lib/unictype/pr_extender.h: Regenerated.
34463         * lib/unictype/pr_format_control.h: Regenerated.
34464         * lib/unictype/pr_grapheme_base.h: Regenerated.
34465         * lib/unictype/pr_grapheme_extend.h: Regenerated.
34466         * lib/unictype/pr_grapheme_link.h: Regenerated.
34467         * lib/unictype/pr_id_continue.h: Regenerated.
34468         * lib/unictype/pr_id_start.h: Regenerated.
34469         * lib/unictype/pr_ideographic.h: Regenerated.
34470         * lib/unictype/pr_ignorable_control.h: Regenerated.
34471         * lib/unictype/pr_lowercase.h: Regenerated.
34472         * lib/unictype/pr_math.h: Regenerated.
34473         * lib/unictype/pr_numeric.h: Regenerated.
34474         * lib/unictype/pr_other_alphabetic.h: Regenerated.
34475         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
34476         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
34477         * lib/unictype/pr_other_id_continue.h: Regenerated.
34478         * lib/unictype/pr_other_lowercase.h: Regenerated.
34479         * lib/unictype/pr_other_math.h: Regenerated.
34480         * lib/unictype/pr_punctuation.h: Regenerated.
34481         * lib/unictype/pr_sentence_terminal.h: Regenerated.
34482         * lib/unictype/pr_soft_dotted.h: Regenerated.
34483         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
34484         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
34485         * lib/unictype/pr_unified_ideograph.h: Regenerated.
34486         * lib/unictype/pr_uppercase.h: Regenerated.
34487         * lib/unictype/pr_xid_continue.h: Regenerated.
34488         * lib/unictype/pr_xid_start.h: Regenerated.
34489         * lib/unictype/pr_zero_width.h: Regenerated.
34490         * lib/unictype/scripts.h: Regenerated.
34491         * lib/unictype/scripts_byname.gperf: Regenerated.
34492         * lib/unictype/sy_java_ident.h: Regenerated.
34493         * lib/unilbrk/lbrkprop1.h: Regenerated.
34494         * lib/unilbrk/lbrkprop2.h: Regenerated.
34495         * tests/unictype/test-categ_C.c: Regenerated.
34496         * tests/unictype/test-categ_Cf.c: Regenerated.
34497         * tests/unictype/test-categ_Cn.c: Regenerated.
34498         * tests/unictype/test-categ_L.c: Regenerated.
34499         * tests/unictype/test-categ_Ll.c: Regenerated.
34500         * tests/unictype/test-categ_Lm.c: Regenerated.
34501         * tests/unictype/test-categ_Lo.c: Regenerated.
34502         * tests/unictype/test-categ_Lu.c: Regenerated.
34503         * tests/unictype/test-categ_M.c: Regenerated.
34504         * tests/unictype/test-categ_Mc.c: Regenerated.
34505         * tests/unictype/test-categ_Me.c: Regenerated.
34506         * tests/unictype/test-categ_Mn.c: Regenerated.
34507         * tests/unictype/test-categ_N.c: Regenerated.
34508         * tests/unictype/test-categ_Nd.c: Regenerated.
34509         * tests/unictype/test-categ_Nl.c: Regenerated.
34510         * tests/unictype/test-categ_No.c: Regenerated.
34511         * tests/unictype/test-categ_P.c: Regenerated.
34512         * tests/unictype/test-categ_Pd.c: Regenerated.
34513         * tests/unictype/test-categ_Pe.c: Regenerated.
34514         * tests/unictype/test-categ_Pf.c: Regenerated.
34515         * tests/unictype/test-categ_Pi.c: Regenerated.
34516         * tests/unictype/test-categ_Po.c: Regenerated.
34517         * tests/unictype/test-categ_Ps.c: Regenerated.
34518         * tests/unictype/test-categ_S.c: Regenerated.
34519         * tests/unictype/test-categ_Sk.c: Regenerated.
34520         * tests/unictype/test-categ_Sm.c: Regenerated.
34521         * tests/unictype/test-categ_So.c: Regenerated.
34522         * tests/unictype/test-ctype_alnum.c: Regenerated.
34523         * tests/unictype/test-ctype_alpha.c: Regenerated.
34524         * tests/unictype/test-ctype_graph.c: Regenerated.
34525         * tests/unictype/test-ctype_lower.c: Regenerated.
34526         * tests/unictype/test-ctype_print.c: Regenerated.
34527         * tests/unictype/test-ctype_punct.c: Regenerated.
34528         * tests/unictype/test-ctype_upper.c: Regenerated.
34529         * tests/unictype/test-decdigit.h: Regenerated.
34530         * tests/unictype/test-digit.h: Regenerated.
34531         * tests/unictype/test-numeric.h: Regenerated.
34532         * tests/unictype/test-pr_alphabetic.c: Regenerated.
34533         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
34534         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
34535         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
34536         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
34537         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
34538         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
34539         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
34540         * tests/unictype/test-pr_combining.c: Regenerated.
34541         * tests/unictype/test-pr_dash.c: Regenerated.
34542         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
34543         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
34544         * tests/unictype/test-pr_deprecated.c: Regenerated.
34545         * tests/unictype/test-pr_diacritic.c: Regenerated.
34546         * tests/unictype/test-pr_extender.c: Regenerated.
34547         * tests/unictype/test-pr_format_control.c: Regenerated.
34548         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
34549         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
34550         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
34551         * tests/unictype/test-pr_id_continue.c: Regenerated.
34552         * tests/unictype/test-pr_id_start.c: Regenerated.
34553         * tests/unictype/test-pr_ideographic.c: Regenerated.
34554         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
34555         * tests/unictype/test-pr_lowercase.c: Regenerated.
34556         * tests/unictype/test-pr_math.c: Regenerated.
34557         * tests/unictype/test-pr_numeric.c: Regenerated.
34558         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
34559         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
34560         Regenerated.
34561         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
34562         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
34563         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
34564         * tests/unictype/test-pr_other_math.c: Regenerated.
34565         * tests/unictype/test-pr_punctuation.c: Regenerated.
34566         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
34567         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
34568         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
34569         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
34570         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
34571         * tests/unictype/test-pr_uppercase.c: Regenerated.
34572         * tests/unictype/test-pr_xid_continue.c: Regenerated.
34573         * tests/unictype/test-pr_xid_start.c: Regenerated.
34574         * tests/unictype/test-pr_zero_width.c: Regenerated.
34575
34576         Update to Unicode 5.1.0.
34577         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
34578         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
34579         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
34580         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
34581         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
34582         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
34583         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
34584         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
34585         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
34586         (nonspacing_table_ind): Update.
34587         * tests/uniwidth/test-uc_width2.sh: Update expected result.
34588
34589         Update to Unicode 5.1.0.
34590         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
34591         code transform.
34592         * lib/uniname/uniname.c (unicode_character_name,
34593         unicode_name_character): Add the range 0x1Fxxx to the code transform.
34594         * lib/uniname/uninames.h: Regenerated.
34595         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
34596
34597 2009-02-07  Bruno Haible  <bruno@clisp.org>
34598
34599         Merge gen-ctype and gen-lbrk into a single program.
34600         * lib/gen-uni-tables.c: New file, incorporating
34601         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
34602         Add directory prefixes to the names of the generated files.
34603         * lib/unictype/gen-ctype.c: Remove file.
34604         * lib/unilbrk/gen-lbrk.c: Remove file.
34605         * modules/gen-uni-tables: New file.
34606         * modules/unictype/gen-ctype: Remove file.
34607         * modules/unilbrk/gen-lbrk: Remove file.
34608
34609 2009-02-07  Bruno Haible  <bruno@clisp.org>
34610
34611         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
34612
34613         New module 'unistr/u32-strcoll'.
34614         * modules/unistr/u32-strcoll: New file.
34615         * lib/unistr/u32-strcoll.c: New file.
34616
34617         New module 'unistr/u16-strcoll'.
34618         * modules/unistr/u16-strcoll: New file.
34619         * lib/unistr/u16-strcoll.c: New file.
34620
34621         New module 'unistr/u8-strcoll'.
34622         * modules/unistr/u8-strcoll: New file.
34623         * lib/unistr/u8-strcoll.c: New file.
34624         * lib/unistr/u-strcoll.h: New file.
34625
34626 2009-02-07  Bruno Haible  <bruno@clisp.org>
34627
34628         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
34629         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34630         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34631         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
34632         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
34633         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
34634
34635 2009-02-07  Bruno Haible  <bruno@clisp.org>
34636
34637         Make 64-bit clean.
34638         * lib/unictype/gen-ctype.c (output_predicate, output_category,
34639         output_combclass, output_bidi_category, output_decimal_digit,
34640         output_digit, output_numeric, output_mirror, output_scripts,
34641         output_ident_category): Use proper width specifier in format strings.
34642
34643 2009-02-07  Bruno Haible  <bruno@clisp.org>
34644
34645         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
34646         failure behaviour.
34647
34648 2009-02-07  Jim Meyering  <meyering@redhat.com>
34649
34650         regex: avoid compilation failure with upcoming gcc-4.4
34651         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
34652         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
34653         "... error: integer overflow in preprocessor expression".
34654
34655 2009-02-05  Ben Pfaff  <blp@gnu.org>
34656
34657         Fix link errors on Windows when close module is used.
34658         * modules/close: Add $(LIB_CLOSE) to Link section.
34659         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
34660         $(LIB_CLOSE) on Windows.
34661
34662 2009-02-05  Jim Meyering  <meyering@redhat.com>
34663
34664         still avoid unused-parameter warnings, but do it cleanly
34665         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
34666         (get_fs_usage): Cast to void instead.
34667         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
34668         (dev_from_mount_options, read_file_system_list): Cast to void.
34669         Prompted by Bruno Haible.
34670
34671 2009-02-04  Jim Meyering  <meyering@redhat.com>
34672
34673         fsusage.c: correct copyright year
34674         * lib/fsusage.c: Reflect year in which the change is pushed into
34675
34676         avoid misc. warnings
34677         * lib/fsusage.c (UNUSED_PARAM): Define.
34678         (get_fs_usage): Mark parameter "disk" as unused.
34679         * lib/getugroups.c (getgrent): Use "void" in prototype.
34680         * lib/mountlist.c: Mark unused parameters.
34681         (read_file_system_list): Declare a local with "const".
34682         * lib/nanosleep.c (getnow): Declare static.
34683         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
34684
34685         dirfd: set errno upon failure
34686         * lib/dirfd.c: Include <errno.h>.
34687         Set errno to ENOTSUP when returning -1.
34688         * modules/dirfd (Depends-on): Add errno.
34689         Suggested by John Kodis <kodis@comcast.net>.
34690
34691 2009-02-01  Bruno Haible  <bruno@clisp.org>
34692
34693         Don't assume sizeof (long) >= sizeof (void *).
34694         * lib/memcmp.c: Include stdint.h.
34695         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
34696         srcp2 to 'const byte *'.
34697         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
34698         types to uintptr_t.
34699         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
34700         * modules/memcmp (Depends-on): Add stdint.
34701         Reported by Ozkan Sezer <sezeroz@gmail.com>.
34702
34703 2009-01-30  Eric Blake  <ebb9@byu.net>
34704
34705         fix more require-before-expand issues
34706         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
34707         expand, AC_PROG_AWK.
34708         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
34709
34710 2009-01-28  Eric Blake  <ebb9@byu.net>
34711
34712         version-etc: use consistent URL formatting
34713         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
34714         Improve formatting.  Use fputs for string without %.
34715
34716 2009-01-28  Jim Meyering  <meyering@redhat.com>
34717
34718         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
34719         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
34720         "underquoted definition of NAME" from autoconf-2.59.
34721
34722 2009-01-28  Bruno Haible  <bruno@clisp.org>
34723
34724         * doc/gnulib.texi: Add "Obsolete modules" to index.
34725
34726 2009-01-28  Jim Meyering  <meyering@redhat.com>
34727
34728         useless-if-before-free: recognize more variants
34729         * build-aux/useless-if-before-free: Also recognize e.g.,
34730         if (NULL != p) free (p);
34731
34732 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
34733
34734         test-getaddrinfo: skip (don't fail) this test when there's no network
34735         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
34736         on the presumption that it means you lack network access.
34737
34738 2009-01-26  Jim Meyering  <meyering@redhat.com>
34739
34740         fflush: avoid warnings on modern systems
34741         * lib/fflush.c (rpl_fflush): Move declarations of locals,
34742         pos and result, into scopes where they're used.
34743
34744 2009-01-26  Eric Blake  <ebb9@byu.net>
34745
34746         Silence warning reintroduced by recent extensions patch.
34747         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
34748         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
34749         autoconf.
34750
34751         Backport improved autoconf semantics of AC_DEFUN_ONCE.
34752         * m4/00gnulib.m4: New file.
34753         * gnulib-tool (func_get_filelist): Always use it.
34754         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
34755         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
34756
34757 2009-01-25  Bruno Haible  <bruno@clisp.org>
34758
34759         Make test-quotearg work on MacOS X and AIX.
34760         * tests/test-quotearg.sh: New file.
34761         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
34762         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
34763         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
34764         include <libintl.h>.
34765         (fake_locale): Remove variable.
34766         (gettext, dgettext, dcgettext): Remove functions.
34767         (main): Instead of setting a fake locale, set a real locale. Call
34768         textdomain and bindtextdomain.
34769         * modules/quotearg-tests (Files): Add the new files.
34770         (Depends-on): Add gettext, setenv, unsetenv.
34771         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
34772         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
34773         Augment TESTS_ENVIRONMENT.
34774
34775 2009-01-25  Bruno Haible  <bruno@clisp.org>
34776
34777         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
34778         fr_FR.ISO8859-1 locale on MacOS X.
34779         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
34780         ja_JP.eucJP locale on MacOS X.
34781         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
34782         zh_CN.GB18030 locale on MacOS X.
34783
34784 2009-01-25  Bruno Haible  <bruno@clisp.org>
34785
34786         Avoid link errors on MacOS X 10.3.
34787         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
34788         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34789
34790 2009-01-25  Bruno Haible  <bruno@clisp.org>
34791
34792         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34793         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
34794         * modules/pipe (Files): Remove m4/posix_spawn.m4.
34795         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34796         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
34797         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34798         posix_spawnattr_init, posix_spawnattr_setsigmask,
34799         posix_spawnattr_setflags, posix_spawnattr_destroy.
34800
34801         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34802         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
34803         * modules/execute (Files): Remove m4/posix_spawn.m4.
34804         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34805         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34806         posix_spawnattr_init, posix_spawnattr_setsigmask,
34807         posix_spawnattr_setflags, posix_spawnattr_destroy.
34808
34809 2009-01-25  Bruno Haible  <bruno@clisp.org>
34810
34811         * lib/glthread/threadlib.c: Include <stdlib.h>.
34812
34813 2009-01-25  Bruno Haible  <bruno@clisp.org>
34814
34815         * lib/glthread/threadlib.c (dummy): New declaration.
34816
34817 2009-01-25  Bruno Haible  <bruno@clisp.org>
34818
34819         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
34820         multibyte characters also for the GB18030 encoding. Don't crash when
34821         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
34822
34823 2009-01-25  Bruno Haible  <bruno@clisp.org>
34824
34825         Avoid redefining 'struct random_data' on OSF/1 5.1.
34826         * lib/stdlib.in.h: Include <random.h> if it exists.
34827         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
34828         HAVE_RANDOM_H. Include <random.h> when testing whether
34829         'struct random_data' exists.
34830         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
34831
34832 2009-01-25  Bruno Haible  <bruno@clisp.org>
34833
34834         Don't install charset.alias on MacOS X >= 10.3.
34835         * lib/localcharset.c (DARWIN7): New macro.
34836         (get_charset_aliases): Hardcode the result for Darwin7.
34837         * modules/localcharset (install-exec-local): Don't install
34838         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
34839
34840 2009-01-25  Bruno Haible  <bruno@clisp.org>
34841
34842         Don't install charset.alias on mingw and Cygwin.
34843         * modules/localcharset (install-exec-local): Don't install
34844         charset.alias on mingw and Cygwin, if the file does not yet exist.
34845         The result for these platforms is hardcoded in localcharset.c.
34846
34847 2009-01-25  Bruno Haible  <bruno@clisp.org>
34848
34849         Make it possible again to use AC_GNU_SOURCE together with gnulib.
34850         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
34851         before requiring AC_USE_SYSTEM_EXTENSIONS.
34852
34853 2009-01-25  Jim Meyering  <meyering@redhat.com>
34854
34855         c-strtod: avoid warnings
34856         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
34857         "assignment discards qualifiers from pointer target type" warnings.
34858
34859 2009-01-24  Bruno Haible  <bruno@clisp.org>
34860
34861         Add support for non-UTF-8 locales on MacOS X.
34862         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
34863         canonical encodings. For Darwin 7 and newer, don't map traditional
34864         encodings to UTF-8.
34865         Reported by Vincent Lefevre <vincent@vinc17.org>
34866         at <http://savannah.gnu.org/bugs/?25235>.
34867
34868 2009-01-24  Bruno Haible  <bruno@clisp.org>
34869
34870         * doc/gnulib.texi (Obsolete modules): New section.
34871         Reported by Mike Frysinger <vapier@gentoo.org>.
34872
34873 2009-01-24  Bruno Haible  <bruno@clisp.org>
34874
34875         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
34876         (%.dvi): New rule.
34877
34878 2009-01-24  Bruno Haible  <bruno@clisp.org>
34879
34880         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
34881         Reported by Eric Blake.
34882
34883 2009-01-24  Bruno Haible  <bruno@clisp.org>
34884
34885         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
34886         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
34887         Reported by Gary V. Vaughan <gary@gnu.org>.
34888
34889 2009-01-24  Bruno Haible  <bruno@clisp.org>
34890
34891         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
34892
34893 2009-01-23  Bruno Haible  <bruno@clisp.org>
34894
34895         Make c-strtod, c-strtold usable in libraries.
34896         * lib/c-strtod.c: Include string.h instead of xalloc.h.
34897         (C_STRTOD): Call strdup instead of xstrdup.
34898         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
34899         * modules/c-strtold (Depends-on): Likewise.
34900         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
34901         * NEWS: Mention the change.
34902         Reported by Michael Gold <mgold@ncf.ca>.
34903
34904 2009-01-23  Jim Meyering  <meyering@redhat.com>
34905
34906         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
34907         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
34908         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
34909
34910 2009-01-23  Simon Josefsson  <simon@josefsson.org>
34911
34912         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
34913         GNU CoreUtils.
34914         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
34915         * modules/version-etc (Description): Update.
34916
34917 2009-01-22  Bruno Haible  <bruno@clisp.org>
34918
34919         Cache the C locale object.
34920         * lib/c-strtod.c (c_locale_cache): New variable.
34921         (c_locale): New function.
34922         (C_STRTOD): Use it, and don't call freelocale.
34923         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
34924         Suggested by Paolo Bonzini.
34925
34926 2009-01-21  Bruno Haible  <bruno@clisp.org>
34927
34928         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
34929         conditions other than overflow.
34930
34931 2009-01-21  Bruno Haible  <bruno@clisp.org>
34932
34933         * lib/c-strtod.c: Include errno.h.
34934         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
34935         value from STRTOD_L and STRTOD.
34936
34937 2009-01-21  Bruno Haible  <bruno@clisp.org>
34938         and Jim Meyering  <meyering@redhat.com>
34939
34940         nanosleep: skip configure test (fail it) for apple universal builds
34941         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
34942         universal builds, assume that nanosleep does not work.
34943         * modules/nanosleep (Depends-on): Add multiarch.
34944
34945         mktime: skip configure test (fail it) for apple universal builds
34946         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
34947         universal builds, assume that mktime does not work.
34948         * modules/mktime (Depends-on): Add multiarch.
34949
34950 2009-01-21  Eric Blake  <ebb9@byu.net>
34951
34952         multiarch: avoid expand-before-require warning
34953         * modules/multiarch (configure.ac): Require, rather than expand,
34954         gl_MULTIARCH.
34955         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
34956         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
34957         enforce that all clients require it.  Partial reversion of
34958         2008-12-29 patch.
34959
34960         error: avoid expand-before-require warning
34961         * modules/errno (configure.ac): Require, rather than expand,
34962         gl_HEADER_ERRNO_H.
34963         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
34964         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
34965         enforce that all clients require it.
34966
34967         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
34968         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
34969         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
34970         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
34971
34972 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
34973
34974         Revert:
34975         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34976
34977         regex: do not depend on obsolete modules.
34978         * modules/regex: Remove memcmp and memmove.
34979
34980 2009-01-20  Bruno Haible  <bruno@clisp.org>
34981
34982         Make the 'link' module link on Windows NT 4.
34983         * lib/link.c (_WIN32_WINNT): Don't define.
34984         (CreateHardLinkFuncType): New type.
34985         (CreateHardLinkFunc, initialized): New variables.
34986         (initialize): New function.
34987         (link): Invoke CreateHardLink indirectly through the function pointer.
34988
34989 2009-01-20  Bruno Haible  <bruno@clisp.org>
34990
34991         Fix compilation failure on mingw.
34992         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
34993
34994 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
34995
34996         * doc/c-strtod.texi: Mention a couple of restrictions.
34997
34998 2009-01-20  Jim Meyering  <meyering@redhat.com>
34999
35000         gettimeofday: move more declarations out of functions
35001         * lib/gettimeofday.c: Move extern declarations of tzset and
35002         gmtime out of containing functions.  Prompted by Bruno Haible.
35003
35004 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
35005
35006         regex: do not depend on obsolete modules.
35007         * modules/regex: Remove memcmp and memmove.
35008
35009 2009-01-19  Bruno Haible  <bruno@clisp.org>
35010
35011         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
35012         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
35013         gl_BIGENDIAN, not AC_C_BIGENDIAN.
35014         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
35015         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
35016
35017 2009-01-19  Bruno Haible  <bruno@clisp.org>
35018
35019         * tests/test-link.c: Include <errno.h>.
35020         (main): Exit with code 77 when a hard link cannot be created due to
35021         the file system.
35022         * tests/test-link.sh: Skip test when a hard link cannot be created due
35023         to the file system.
35024         Suggested by Eric Blake.
35025
35026 2009-01-19  Martin Lambers  <marlam@marlam.de>
35027
35028         * modules/link-tests: New file.
35029         * tests/test-link.sh: New file.
35030         * tests/test-link.c: New file.
35031
35032 2009-01-19  Eric Blake  <ebb9@byu.net>
35033
35034         doc: mention another function added in cygwin 1.7.0
35035         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
35036         Another new function in cygwin 1.7.
35037
35038 2009-01-19  Bruno Haible  <bruno@clisp.org>
35039
35040         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
35041         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
35042         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
35043         gl_BIGENDIAN, not AC_C_BIGENDIAN.
35044         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35045         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
35046         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
35047         * m4/md4.m4 (gl_MD4): Likewise.
35048         * m4/md5.m4 (gl_MD5): Likewise.
35049         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
35050         * m4/sha1.m4 (gl_SHA1): Likewise.
35051         * m4/sha256.m4 (gl_SHA256): Likewise.
35052         * m4/sha512.m4 (gl_SHA512): Likewise.
35053
35054 2009-01-19  Bruno Haible  <bruno@clisp.org>
35055
35056         * modules/uniname/uniname-tests (Depends-on): Add progname.
35057         * tests/uniname/test-uninames.c: Include progname.h.
35058         (main): Call set_program_name.
35059
35060         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
35061         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
35062         (main): Call set_program_name.
35063
35064         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
35065         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
35066         (main): Call set_program_name.
35067
35068         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
35069         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
35070         (main): Call set_program_name.
35071
35072         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
35073         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
35074         (main): Call set_program_name.
35075
35076         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
35077         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
35078         (main): Call set_program_name.
35079
35080         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
35081         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
35082         (main): Call set_program_name.
35083
35084         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
35085         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
35086         (main): Call set_program_name.
35087
35088         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
35089         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
35090         (main): Call set_program_name.
35091
35092 2009-01-19  Eric Blake  <ebb9@byu.net>
35093
35094         test-unistd: test previous patch
35095         * tests/test-unistd.c: Test *_FILENO macros.
35096
35097         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
35098         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35099         Guarantee a definition.
35100         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
35101         * modules/unistd-safer (Depends-on): Add dependency on unistd.
35102         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
35103         * lib/dup-safer.c (STDERR_FILENO): Likewise.
35104         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35105         Likewise.
35106         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
35107         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
35108         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35109         Likewise.
35110         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
35111         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
35112         (STDERR_FILENO): Likewise.
35113         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
35114         (STDERR_FILENO): Likewise.
35115         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
35116         (STDERR_FILENO): Likewise.
35117         Reported by Elbert Pol.
35118
35119 2009-01-19  Eric Blake  <ebb9@byu.net>
35120
35121         doc: mention more functions added in cygwin 1.7.0
35122         * doc/posix-functions/abort.texi (abort): Update wording related
35123         to cygwin.
35124         * doc/posix-functions/daylight.texi (daylight): Likewise.
35125         * doc/posix-functions/optarg.texi (optarg): Likewise.
35126         * doc/posix-functions/optarg.texi (opterr): Likewise.
35127         * doc/posix-functions/optarg.texi (optind): Likewise.
35128         * doc/posix-functions/optarg.texi (optopt): Likewise.
35129         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
35130         worked in 1.5.x, and was withdrawn in 1.7.
35131         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
35132         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
35133         cygwin versions.
35134         * doc/posix-functions/perror.texi (perror): Likewise.
35135         * doc/posix-functions/printf.texi (printf): Likewise.
35136         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
35137         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
35138         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
35139         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
35140         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
35141         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
35142         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
35143         Likewise.
35144         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
35145         Likewise.
35146         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
35147         this function.
35148         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
35149         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
35150         Likewise.
35151         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
35152         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
35153         * doc/posix-functions/confstr.texi (confstr): Likewise.
35154         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
35155         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
35156         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
35157         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
35158         * doc/posix-functions/fputws.texi (fputws): Likewise.
35159         * doc/posix-functions/fwide.texi (fwide): Likewise.
35160         * doc/posix-functions/getwc.texi (getwc): Likewise.
35161         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
35162         * doc/posix-functions/putwc.texi (putwc): Likewise.
35163         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
35164         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
35165         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
35166         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
35167         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
35168         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
35169         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
35170         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
35171         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
35172         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
35173         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
35174
35175 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
35176
35177         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
35178         * lib/ioctl.c: Include <sys/ioctl.h>.
35179
35180 2009-01-19  Simon Josefsson  <simon@josefsson.org>
35181
35182         * modules/getdate-tests (Depends-on): Add progname.
35183         * tests/test-getdate.c: Use progname module, to avoid link errors
35184         on non-glibc systems.
35185
35186 2009-01-18  Simon Josefsson  <simon@josefsson.org>
35187
35188         * modules/filenamecat-tests (Depends-on): Add progname.
35189         * modules/fstrcmp-tests (Depends-on): Likewise.
35190
35191         * tests/test-filenamecat.c: Use progname module, to avoid link
35192         errors on non-glibc systems.
35193         * tests/test-fstrcmp.c: Likewise.
35194
35195 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
35196
35197         gettimeofday: avoid warning: nested extern declaration of 'localtime'
35198         * lib/gettimeofday.c: Move extern declaration out of function.
35199
35200 2009-01-18  Bruno Haible  <bruno@clisp.org>
35201
35202         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
35203         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
35204         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
35205
35206 2009-01-18  Bruno Haible  <bruno@clisp.org>
35207
35208         * lib/strftime.c (MEMPCPY): Remove unused macro.
35209         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
35210
35211 2009-01-18  Martin Lambers  <marlam@marlam.de>
35212
35213         New module 'link'.
35214         * lib/unistd.in.h (link): New declaration.
35215         * lib/link.c: New file.
35216         * m4/link.m4: New file.
35217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
35218         HAVE_LINK.
35219         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
35220         * modules/link: New file.
35221         * doc/posix-functions/link.texi: Mention the new module.
35222
35223 2009-01-18  Bruno Haible  <bruno@clisp.org>
35224
35225         * tests/test-avltree_list.c (main): Call set_program_name.
35226         * tests/test-avltree_oset.c (main): Likewise.
35227         * tests/test-obstack-printf.c: Include progname.h.
35228         (main): Call set_program_name.
35229         * tests/test-quotearg.c: Include progname.h.
35230         (main): Call set_program_name.
35231         * tests/test-xmemdup0.c: Include progname.h.
35232         (main): Call set_program_name.
35233
35234 2009-01-18  Bruno Haible  <bruno@clisp.org>
35235
35236         New module 'alphasort'.
35237         * lib/dirent.in.h (alphasort): New declaration.
35238         * lib/alphasort.c: New file, from glibc with modifications.
35239         * m4/alphasort.m4: New file.
35240         * modules/alphasort: New file.
35241         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
35242         HAVE_ALPHASORT.
35243         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
35244         HAVE_ALPHASORT.
35245         * doc/posix-functions/alphasort.texi: Mention the new module and the
35246         portability problems.
35247
35248 2009-01-18  Bruno Haible  <bruno@clisp.org>
35249
35250         New module 'scandir'.
35251         * lib/dirent.in.h (scandir): New declaration.
35252         * lib/scandir.c: New file, from glibc with modifications.
35253         * m4/scandir.m4: New file.
35254         * modules/scandir: New file.
35255         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
35256         HAVE_SCANDIR.
35257         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
35258         HAVE_SCANDIR.
35259         * doc/posix-functions/scandir.texi: Mention the new module and the
35260         portability problems.
35261
35262 2009-01-17  Bruno Haible  <bruno@clisp.org>
35263
35264         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
35265         Update documentation.
35266         (func_remove_suffix): Escape all dots in the suffix. Update
35267         documentation.
35268         (func_filter_filelist): Update documentation.
35269         Reported by Ralf Wildenhues.
35270
35271 2009-01-17  Bruno Haible  <bruno@clisp.org>
35272
35273         * modules/dprintf-posix-tests: New file.
35274         * tests/test-dprintf-posix.sh: New file.
35275         * tests/test-dprintf-posix.c: New file.
35276
35277         New modules 'dprintf', 'dprintf-posix'.
35278         * lib/stdio.in.h (dprintf): New declaration.
35279         * lib/dprintf.c: New file.
35280         * m4/dprintf.m4: New file.
35281         * m4/dprintf-posix.m4: New file.
35282         * modules/dprintf: New file.
35283         * modules/dprintf-posix: New file.
35284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
35285         HAVE_DPRINTF, REPLACE_DPRINTF.
35286         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
35287         HAVE_DPRINTF, REPLACE_DPRINTF.
35288         * doc/posix-functions/dprintf.texi: Mention the new modules.
35289
35290 2009-01-17  Bruno Haible  <bruno@clisp.org>
35291
35292         * modules/vdprintf-posix-tests: New file.
35293         * tests/test-vdprintf-posix.sh: New file.
35294         * tests/test-vdprintf-posix.c: New file.
35295
35296         New modules 'vdprintf', 'vdprintf-posix'.
35297         * lib/stdio.in.h (vdprintf): New declaration.
35298         * lib/vdprintf.c: New file.
35299         * m4/vdprintf.m4: New file.
35300         * m4/vdprintf-posix.m4: New file.
35301         * modules/vdprintf: New file.
35302         * modules/vdprintf-posix: New file.
35303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
35304         HAVE_VDPRINTF, REPLACE_VDPRINTF.
35305         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
35306         HAVE_VDPRINTF, REPLACE_VDPRINTF.
35307         * doc/posix-functions/vdprintf.texi: Mention the new modules.
35308
35309 2009-01-17  Bruno Haible  <bruno@clisp.org>
35310
35311         Fix replacement of fopen on mingw.
35312         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
35313         mingw.
35314
35315 2009-01-17  Bruno Haible  <bruno@clisp.org>
35316
35317         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
35318         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
35319
35320 2009-01-17  Bruno Haible  <bruno@clisp.org>
35321
35322         Avoid test-fflush2.sh failure on mingw.
35323         * tests/test-fflush2.c: Include binary-io.h.
35324         (main): Put standard input into binary mode.
35325         * modules/fflush-tests (Depends-on): Add binary-io.
35326
35327 2009-01-17  Bruno Haible  <bruno@clisp.org>
35328
35329         * lib/wchar.in.h: In another particular situation, include only the
35330         system's <wchar.h> file.
35331         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
35332         Reported by Albert Chin-A-Young <china@thewrittenword.com>
35333         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
35334
35335 2009-01-17  Bruno Haible  <bruno@clisp.org>
35336
35337         Support for stripping executables in --enable-relocatable.
35338         * build-aux/install-reloc: Expect one more argument, or an environment
35339         variable RELOC_STRIP_PROG. If set, strip the destination program and
35340         its wrapper.
35341         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
35342         RELOC_STRIP_PROG.
35343         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
35344         to set RELOCATABLE_STRIP.
35345         * NEWS: Mention the new Makefile requirement.
35346
35347 2009-01-17  Bruno Haible  <bruno@clisp.org>
35348
35349         * build-aux/install-reloc: Remove debugging information left over by
35350         C compiler on MacOS X.
35351
35352 2009-01-17  Bruno Haible  <bruno@clisp.org>
35353
35354         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
35355         * lib/progreloc.c (find_executable): Fix type of pointer passed to
35356         _NSGetExecutablePath.
35357
35358 2009-01-16  Jim Meyering  <meyering@redhat.com>
35359
35360         strerror: avoid warnings about discarding "const"
35361         * lib/strerror.c (rpl_strerror): Instead of returning a const
35362         string from each and every "case", use a variable, and add a single
35363         cast after the switch.
35364
35365 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
35366
35367         * lib/arpa_inet.in.h: Add extern "C" block for C++.
35368
35369 2009-01-16  Bruno Haible  <bruno@clisp.org>
35370
35371         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
35372         array initializer syntax that also works in C++ mode.
35373         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35374
35375 2009-01-16  Jim Meyering  <meyering@redhat.com>
35376
35377         poll: suppress a warning
35378         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
35379         to ignore "...unsigned expression < 0 is always false" warnings.
35380
35381 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
35382
35383         poll: remove declarations of unused variables
35384         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
35385         sockbuf and optlen.
35386
35387 2009-01-15  Bruno Haible  <bruno@clisp.org>
35388
35389         Make fflush-after-ungetc POSIX compliant on BSD systems.
35390         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
35391         (clear_ungetc_buffer): Implement also for other systems.
35392         (rpl_fflush): On glibc systems, invoke
35393         clear_ungetc_buffer_preserving_position. Otherwise, invoke
35394         clear_ungetc_buffer after fetching the stream's position, not before.
35395
35396 2009-01-15  Bruno Haible  <bruno@clisp.org>
35397
35398         Make fflush-after-ungetc POSIX compliant on glibc systems.
35399         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
35400         after ungetc.
35401         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
35402         (rpl_fflush): On glibc systems, simply call the system's fflush
35403         function after clearing the ungetc buffer.
35404         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
35405         Instead, lseek only to the end of file, then use the system's fseeko
35406         for the rest. On glibc systems, reset the EOF indicator bit.
35407
35408 2009-01-15  Jim Meyering  <meyering@redhat.com>
35409
35410         openmp.m4: revert quote-adding change, for portability to older autoconf
35411         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
35412         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
35413         Simon Josefsson noticed the problem when using autoconf-2.61.
35414
35415 2009-01-15  Bruno Haible  <bruno@clisp.org>
35416
35417         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
35418         * tests/test-fflush2.c (ASSERT): Always fail.
35419         (main): Add two tests for fflush() after ungetc(), taking into account
35420         the Austin Group's clarification.
35421         Suggested by Eric Blake.
35422
35423 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
35424
35425         mktime.m4: remove K&R-style function prototypes
35426         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
35427         for the Sun C++ compiler.
35428
35429 2009-01-14  Bruno Haible  <bruno@clisp.org>
35430
35431         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
35432         while including <wchar.h>.
35433         * lib/wchar.in.h: In two particular situations on HP-UX, include only
35434         the system's <wchar.h> file.
35435         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35436
35437 2009-01-14  Bruno Haible  <bruno@clisp.org>
35438
35439         * m4/csharp.m4: Don't mention gettext on the serial number line.
35440         * m4/csharpexec.m4: Likewise.
35441         * m4/eaccess.m4: Likewise.
35442         * m4/javaexec.m4: Likewise.
35443         * m4/sig_atomic_t.m4: Likewise.
35444         * m4/tmpdir.m4: Likewise.
35445         * m4/intldir.m4: Bump gettext version.
35446         * m4/lib-ld.m4: Likewise.
35447
35448 2009-01-14  Bruno Haible  <bruno@clisp.org>
35449
35450         * lib/progname.c (set_program_name): Add more comments.
35451         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35452
35453 2009-01-14  Simon Josefsson  <simon@josefsson.org>
35454
35455         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
35456         were sys/stat.h does not define it.
35457
35458 2009-01-14  Jim Meyering  <meyering@redhat.com>
35459
35460         many *.m4 files: improve m4 quoting
35461         99% of this change was performed by running the following commands:
35462         git ls-files | grep '\.m4$' | xargs perl -pi \
35463           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
35464           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
35465           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
35466           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
35467         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
35468         The remainder were to add Copyright dates, increment serial numbers,
35469         undo some changes in comments, exclude m4/intl.m4, and add quotes
35470         around the "1" in ",1" where the unusual spacing prohibited the
35471         above regexps from doing the job.  For more details, see
35472         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
35473         * m4/acl.m4: Modified.
35474         * m4/afs.m4: Likewise.
35475         * m4/alloca.m4: Likewise.
35476         * m4/argp.m4: Likewise.
35477         * m4/argz.m4: Likewise.
35478         * m4/atexit.m4: Likewise.
35479         * m4/bison-i18n.m4: Likewise.
35480         * m4/bison.m4: Likewise.
35481         * m4/byteswap.m4: Likewise.
35482         * m4/c-stack.m4: Likewise.
35483         * m4/c-strtod.m4: Likewise.
35484         * m4/calloc.m4: Likewise.
35485         * m4/canonicalize-lgpl.m4: Likewise.
35486         * m4/chown.m4: Likewise.
35487         * m4/clock_time.m4: Likewise.
35488         * m4/codeset.m4: Likewise.
35489         * m4/copy-file.m4: Likewise.
35490         * m4/csharp.m4: Likewise.
35491         * m4/csharpcomp.m4: Likewise.
35492         * m4/csharpexec.m4: Likewise.
35493         * m4/d-ino.m4: Likewise.
35494         * m4/d-type.m4: Likewise.
35495         * m4/dirfd.m4: Likewise.
35496         * m4/double-slash-root.m4: Likewise.
35497         * m4/eaccess.m4: Likewise.
35498         * m4/eealloc.m4: Likewise.
35499         * m4/environ.m4: Likewise.
35500         * m4/errno_h.m4: Likewise.
35501         * m4/euidaccess.m4: Likewise.
35502         * m4/execute.m4: Likewise.
35503         * m4/fatal-signal.m4: Likewise.
35504         * m4/fchdir.m4: Likewise.
35505         * m4/fcntl_h.m4: Likewise.
35506         * m4/fileblocks.m4: Likewise.
35507         * m4/filenamecat.m4: Likewise.
35508         * m4/findprog.m4: Likewise.
35509         * m4/flexmember.m4: Likewise.
35510         * m4/fnmatch.m4: Likewise.
35511         * m4/fopen.m4: Likewise.
35512         * m4/fpending.m4: Likewise.
35513         * m4/fprintf-posix.m4: Likewise.
35514         * m4/free.m4: Likewise.
35515         * m4/frexp.m4: Likewise.
35516         * m4/frexpl.m4: Likewise.
35517         * m4/fsusage.m4: Likewise.
35518         * m4/ftruncate.m4: Likewise.
35519         * m4/gc-camellia.m4: Likewise.
35520         * m4/gc-random.m4: Likewise.
35521         * m4/gc.m4: Likewise.
35522         * m4/getaddrinfo.m4: Likewise.
35523         * m4/getcwd-abort-bug.m4: Likewise.
35524         * m4/getcwd-path-max.m4: Likewise.
35525         * m4/getdate.m4: Likewise.
35526         * m4/getdomainname.m4: Likewise.
35527         * m4/getgroups.m4: Likewise.
35528         * m4/gethostname.m4: Likewise.
35529         * m4/gethrxtime.m4: Likewise.
35530         * m4/getline.m4: Likewise.
35531         * m4/getloadavg.m4: Likewise.
35532         * m4/getndelim2.m4: Likewise.
35533         * m4/getpass.m4: Likewise.
35534         * m4/gettext.m4: Likewise.
35535         * m4/gettime.m4: Likewise.
35536         * m4/gettimeofday.m4: Likewise.
35537         * m4/gnulib-common.m4: Likewise.
35538         * m4/group-member.m4: Likewise.
35539         * m4/host-os.m4: Likewise.
35540         * m4/iconv.m4: Likewise.
35541         * m4/iconv_open.m4: Likewise.
35542         * m4/inet_ntop.m4: Likewise.
35543         * m4/inet_pton.m4: Likewise.
35544         * m4/inline.m4: Likewise.
35545         * m4/intldir.m4: Likewise.
35546         * m4/intlmacosx.m4: Likewise.
35547         * m4/intmax.m4: Likewise.
35548         * m4/intmax_t.m4: Likewise.
35549         * m4/inttypes.m4: Likewise.
35550         * m4/inttypes_h.m4: Likewise.
35551         * m4/inttypes-pri.m4: Likewise.
35552         * m4/isapipe.m4: Likewise.
35553         * m4/isnand.m4: Likewise.
35554         * m4/isnanf.m4: Likewise.
35555         * m4/isnanl.m4: Likewise.
35556         * m4/javacomp.m4: Likewise.
35557         * m4/javaexec.m4: Likewise.
35558         * m4/jm-winsz1.m4: Likewise.
35559         * m4/jm-winsz2.m4: Likewise.
35560         * m4/lchown.m4: Likewise.
35561         * m4/lcmessage.m4: Likewise.
35562         * m4/ldexpl.m4: Likewise.
35563         * m4/lib-ld.m4: Likewise.
35564         * m4/lib-link.m4: Likewise.
35565         * m4/libsigsegv.m4: Likewise.
35566         * m4/link-follow.m4: Likewise.
35567         * m4/localcharset.m4: Likewise.
35568         * m4/locale-fr.m4: Likewise.
35569         * m4/locale-ja.m4: Likewise.
35570         * m4/locale-tr.m4: Likewise.
35571         * m4/locale-zh.m4: Likewise.
35572         * m4/lock.m4: Likewise.
35573         * m4/longlong.m4: Likewise.
35574         * m4/ls-mntd-fs.m4: Likewise.
35575         * m4/lstat.m4: Likewise.
35576         * m4/malloc.m4: Likewise.
35577         * m4/mathl.m4: Likewise.
35578         * m4/mbrtowc.m4: Likewise.
35579         * m4/mbstate_t.m4: Likewise.
35580         * m4/mbswidth.m4: Likewise.
35581         * m4/memchr.m4: Likewise.
35582         * m4/memcmp.m4: Likewise.
35583         * m4/memcpy.m4: Likewise.
35584         * m4/memmem.m4: Likewise.
35585         * m4/memmove.m4: Likewise.
35586         * m4/mempcpy.m4: Likewise.
35587         * m4/memrchr.m4: Likewise.
35588         * m4/memset.m4: Likewise.
35589         * m4/minmax.m4: Likewise.
35590         * m4/mkdir-slash.m4: Likewise.
35591         * m4/mkdtemp.m4: Likewise.
35592         * m4/mktime.m4: Likewise.
35593         * m4/mmap-anon.m4: Likewise.
35594         * m4/mountlist.m4: Likewise.
35595         * m4/nanosleep.m4: Likewise.
35596         * m4/nls.m4: Likewise.
35597         * m4/nocrash.m4: Likewise.
35598         * m4/open.m4: Likewise.
35599         * m4/openat.m4: Likewise.
35600         * m4/openmp.m4: Likewise.
35601         * m4/pathmax.m4: Likewise.
35602         * m4/perl.m4: Likewise.
35603         * m4/physmem.m4: Likewise.
35604         * m4/pipe.m4: Likewise.
35605         * m4/po.m4: Likewise.
35606         * m4/poll.m4: Likewise.
35607         * m4/posixtm.m4: Likewise.
35608         * m4/posixver.m4: Likewise.
35609         * m4/printf-frexp.m4: Likewise.
35610         * m4/printf-frexpl.m4: Likewise.
35611         * m4/printf-posix.m4: Likewise.
35612         * m4/printf-posix-rpl.m4: Likewise.
35613         * m4/printf.m4: Likewise.
35614         * m4/progtest.m4: Likewise.
35615         * m4/putenv.m4: Likewise.
35616         * m4/readline.m4: Likewise.
35617         * m4/readlink.m4: Likewise.
35618         * m4/readutmp.m4: Likewise.
35619         * m4/realloc.m4: Likewise.
35620         * m4/regex.m4: Likewise.
35621         * m4/relocatable.m4: Likewise.
35622         * m4/relocatable-lib.m4: Likewise.
35623         * m4/rename-dest-slash.m4: Likewise.
35624         * m4/rename.m4: Likewise.
35625         * m4/rmdir-errno.m4: Likewise.
35626         * m4/rmdir.m4: Likewise.
35627         * m4/roundf.m4: Likewise.
35628         * m4/roundl.m4: Likewise.
35629         * m4/rpmatch.m4: Likewise.
35630         * m4/save-cwd.m4: Likewise.
35631         * m4/selinux-selinux-h.m4: Likewise.
35632         * m4/setenv.m4: Likewise.
35633         * m4/settime.m4: Likewise.
35634         * m4/sig2str.m4: Likewise.
35635         * m4/sig_atomic_t.m4: Likewise.
35636         * m4/signalblocking.m4: Likewise.
35637         * m4/signbit.m4: Likewise.
35638         * m4/sigpipe.m4: Likewise.
35639         * m4/sockets.m4: Likewise.
35640         * m4/sockpfaf.m4: Likewise.
35641         * m4/st_dm_mode.m4: Likewise.
35642         * m4/stat-time.m4: Likewise.
35643         * m4/stdbool.m4: Likewise.
35644         * m4/stdint.m4: Likewise.
35645         * m4/stdint_h.m4: Likewise.
35646         * m4/stpcpy.m4: Likewise.
35647         * m4/stpncpy.m4: Likewise.
35648         * m4/strcase.m4: Likewise.
35649         * m4/strchrnul.m4: Likewise.
35650         * m4/strcspn.m4: Likewise.
35651         * m4/strdup.m4: Likewise.
35652         * m4/strftime.m4: Likewise.
35653         * m4/strndup.m4: Likewise.
35654         * m4/strnlen.m4: Likewise.
35655         * m4/strpbrk.m4: Likewise.
35656         * m4/strptime.m4: Likewise.
35657         * m4/strsep.m4: Likewise.
35658         * m4/strtod.m4: Likewise.
35659         * m4/strtoimax.m4: Likewise.
35660         * m4/strtok_r.m4: Likewise.
35661         * m4/strtol.m4: Likewise.
35662         * m4/strtoll.m4: Likewise.
35663         * m4/strtoul.m4: Likewise.
35664         * m4/strtoull.m4: Likewise.
35665         * m4/strtoumax.m4: Likewise.
35666         * m4/strverscmp.m4: Likewise.
35667         * m4/threadlib.m4: Likewise.
35668         * m4/timegm.m4: Likewise.
35669         * m4/tm_gmtoff.m4: Likewise.
35670         * m4/tmpdir.m4: Likewise.
35671         * m4/tmpfile.m4: Likewise.
35672         * m4/tzset.m4: Likewise.
35673         * m4/uintmax_t.m4: Likewise.
35674         * m4/unlinkdir.m4: Likewise.
35675         * m4/unlocked-io.m4: Likewise.
35676         * m4/uptime.m4: Likewise.
35677         * m4/userspec.m4: Likewise.
35678         * m4/utimbuf.m4: Likewise.
35679         * m4/utime.m4: Likewise.
35680         * m4/utimes-null.m4: Likewise.
35681         * m4/utimes.m4: Likewise.
35682         * m4/vararrays.m4: Likewise.
35683         * m4/vasnprintf.m4: Likewise.
35684         * m4/vfprintf-posix.m4: Likewise.
35685         * m4/vprintf-posix.m4: Likewise.
35686         * m4/wait-process.m4: Likewise.
35687         * m4/wchar_t.m4: Likewise.
35688         * m4/wint_t.m4: Likewise.
35689         * m4/write-any-file.m4: Likewise.
35690         * m4/yield.m4: Likewise.
35691
35692 2009-01-13  Bruno Haible  <bruno@clisp.org>
35693
35694         Avoid test-copy-file.sh failures when ACL support insufficient.
35695         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
35696         TESTS_ENVIRONMENT.
35697         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
35698         Reported by Jim Meyering.
35699
35700 2009-01-13  Bruno Haible  <bruno@clisp.org>
35701
35702         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
35703         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
35704         * modules/unistdio/u8-printf-parse (Files): Likewise.
35705         * modules/unistdio/u32-printf-parse (Files): Likewise.
35706         * modules/unistdio/ulc-printf-parse (Files): Likewise.
35707
35708 2009-01-13  Simon Josefsson  <simon@josefsson.org>
35709
35710         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
35711         and m4/inttypes_h.m4 too.
35712
35713 2009-01-12  Eric Blake  <ebb9@byu.net>
35714
35715         tests: IRIX 6.2 cc can't compile -0.0 into .data
35716         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
35717         rather than at compile-time.
35718         * tests/test-floorl.c (minus_zero): Likewise.
35719         * tests/test-frexpl.c (minus_zero): Likewise.
35720         * tests/test-isnan.c (minus_zerol): Likewise.
35721         * tests/test-isnanl.h (minus_zero): Likewise.
35722         * tests/test-ldexpl.c (minus_zero): Likewise.
35723         * tests/test-roundl.c (minus_zero): Likewise.
35724         * tests/test-signbit.c (minus_zerol): Likewise.
35725         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35726         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35727         * tests/test-truncl.c (minus_zero): Likewise.
35728         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35729         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35730         Reported by Tom G. Christensen and Nelson H. F. Beebe.
35731
35732 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35733
35734         regex: fix glibc bug 9697
35735         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
35736         handling.
35737
35738 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35739
35740         regex: fix glibc bug 697
35741         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
35742         being NULL also if there are no backreferences.
35743
35744 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35745
35746         regex: merge glibc changes
35747         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
35748         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
35749         re_string_skip_chars, re_string_reconstruct): Likewise.
35750         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
35751
35752 2009-01-07  Jim Meyering  <meyering@redhat.com>
35753
35754         poll: filter through cppi
35755         * lib/poll.c: Indent cpp directives to reflect nesting.
35756
35757 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
35758
35759         poll: don't return uninitialized
35760         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
35761
35762 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
35763
35764         avoid compile failure on AIX 6.1
35765         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
35766         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
35767
35768 2009-01-04  Jim Meyering  <meyering@redhat.com>
35769
35770         remove duplicate inclusion of <stdio.h>
35771         * tests/test-fprintf-posix.c: Likewise.
35772         * tests/test-printf-posix.c: Likewise.
35773         * tests/test-snprintf-posix.c: Likewise.
35774         * tests/test-sprintf-posix.c: Likewise.
35775         * tests/test-vasprintf-posix.c: Likewise.
35776         * tests/test-vfprintf-posix.c: Likewise.
35777         * tests/test-vprintf-posix.c: Likewise.
35778         * tests/test-vsnprintf-posix.c: Likewise.
35779         * tests/test-vsprintf-posix.c: Likewise.
35780
35781 2009-01-03  Jim Meyering  <meyering@redhat.com>
35782
35783         gnulib-tool: fix sed-based filtering
35784         * gnulib-tool (func_filter_filelist): Remove extra backslash
35785         in sed_fff_filter definition.
35786
35787 2009-01-02  Jim Meyering  <meyering@redhat.com>
35788
35789         strftime: avoid compilation failure on Solaris 2.6
35790         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
35791         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
35792         Don't #define mbrlen or mbsinit, since now they're guaranteed to
35793         be available.  Reported by Tom G. Christensen.  Details in
35794         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
35795
35796 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35797             Bruno Haible  <bruno@clisp.org>
35798
35799         Speed up gnulib-tool by doing more string processing through shell
35800         built-ins.
35801         * gnulib-tool (fast_func_append): New variable.
35802         (func_remove_prefix, func_remove_suffix): New functions.
35803         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
35804         (func_filter_filelist): New function.
35805         (func_get_dependencies): Use func_remove_suffix instead of sed.
35806         (func_get_automake_snippet): Use func_filter_filelist instead of a
35807         subshell and sed invocation.
35808
35809 2009-01-01  Bruno Haible  <bruno@clisp.org>
35810
35811         Fix a security bug.
35812         * gnulib-tool (func_import, import, update): Don't allow the characters
35813         '"', '$', '`', '\' in macro arguments that become part of commands that
35814         are evaluated.
35815
35816 2009-01-01  Bruno Haible  <bruno@clisp.org>
35817
35818         * gnulib-tool (func_reset_sigpipe): Add more comments.
35819
35820 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35821
35822         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
35823         func_emit_tests_Makefile_am, func_import): Abort loops early if we
35824         already know the answer.
35825
35826 2009-01-01  Jim Meyering  <meyering@redhat.com>
35827
35828         * lib/version-etc.c (version_etc_va): Update copyright year.
35829
35830 2008-12-30  Bruno Haible  <bruno@clisp.org>
35831
35832         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
35833         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
35834         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
35835
35836 2008-12-29  Eric Blake  <ebb9@byu.net>
35837
35838         multiarch: avoid autoconf AC_REQUIRE bug
35839         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
35840         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
35841         2.63 and older.
35842         Reported by Bruno Haible, and analyzed in
35843         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
35844
35845 2008-12-29  Bruno Haible  <bruno@clisp.org>
35846
35847         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
35848         files in subdirectories correctly.
35849         Reported by Ralf Wildenhues.
35850
35851 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35852
35853         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
35854         rather than 'join FILE -', for Solaris join.
35855
35856 2008-12-29  Bruno Haible  <bruno@clisp.org>
35857
35858         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
35859         quoting.
35860         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
35861         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
35862         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
35863         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
35864         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
35865         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
35866         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
35867         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
35868         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
35869         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
35870         * m4/nls.m4 (AM_NLS): Likewise.
35871         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
35872         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
35873         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
35874         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
35875         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
35876         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
35877         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
35878         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
35879         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
35880         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
35881         * m4/xsize.m4 (gl_XSIZE): Likewise.
35882         Suggested by Jim Meyering.
35883
35884 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35885
35886         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
35887         * lib/parse-duration.c: use a switch instead of cascading if's.
35888
35889 2008-12-29  Eric Blake  <ebb9@byu.net>
35890
35891         wchar.h: supply WEOF on Irix 5.3
35892         * lib/wchar.in.h (wint_t): Also supply WEOF.
35893         * lib/wctype.in.h (wint_t): Likewise.
35894         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
35895         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
35896         Reported by Tom G. Christensen.
35897
35898 2008-12-26  Bruno Haible  <bruno@clisp.org>
35899
35900         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
35901         i486, i586, i686.
35902
35903 2008-12-26  Bruno Haible  <bruno@clisp.org>
35904
35905         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
35906
35907 2008-12-26  Bruno Haible  <bruno@clisp.org>
35908
35909         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
35910         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
35911         not __STDC_CONSTANT_MACROS.
35912         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35913
35914 2008-12-25  Bruno Haible  <bruno@clisp.org>
35915
35916         Add support for universal builds to vasnprintf.
35917         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
35918         universal builds, guess no.
35919         * modules/vasnprintf-posix (Depends-on): Add multiarch.
35920         * modules/vasprintf-posix (Depends-on): Likewise.
35921         * modules/fprintf-posix (Depends-on): Likewise.
35922         * modules/vfprintf-posix (Depends-on): Likewise.
35923         * modules/snprintf-posix (Depends-on): Likewise.
35924         * modules/vsnprintf-posix (Depends-on): Likewise.
35925         * modules/sprintf-posix (Depends-on): Likewise.
35926         * modules/vsprintf-posix (Depends-on): Likewise.
35927         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35928         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35929         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35930         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35931         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35932         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35933         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35934
35935         Add support for universal builds to <inttypes.h>.
35936         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
35937         _SCNu64_PREFIX): In Apple
35938         universal builds, define directly, using _LP64.
35939         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
35940         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
35941         * modules/inttypes (Depends-on): Add multiarch.
35942         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35943
35944         Add support for universal builds to <stdint.h>.
35945         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
35946         universal builds, define directly, using _LP64.
35947         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
35948         Apple universal builds, don't test for the size and suffix of ptrdiff_t
35949         and size_t.
35950         * modules/stdint (Depends-on): Add multiarch.
35951         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35952
35953         New module 'multiarch'.
35954         * modules/multiarch: New file.
35955         * m4/multiarch.m4: New file.
35956
35957 2008-12-25  Bruno Haible  <bruno@clisp.org>
35958
35959         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
35960
35961 2008-12-25  Bruno Haible  <bruno@clisp.org>
35962
35963         * modules/btowc (License): Relicense under LGPLv2+.
35964         * modules/mbsinit (License): Likewise.
35965         * modules/mbrtowc (License): Likewise.
35966         * modules/wcrtomb (License): Likewise.
35967         * modules/streq (License): Likewise.
35968         Reported by David Lutterkort <lutter@redhat.com>.
35969
35970 2008-12-23  Bruno Haible  <bruno@clisp.org>
35971
35972         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
35973
35974 2008-12-23  Bruno Haible  <bruno@clisp.org>
35975
35976         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
35977         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
35978         GETADDRINFO_LIB, not in LIBS.
35979         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
35980         * modules/canon-host (Link): Likewise.
35981         * NEWS: Mention the change.
35982         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
35983         GETADDRINFO_LIB.
35984
35985 2008-12-22  Bruno Haible  <bruno@clisp.org>
35986
35987         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
35988         * doc/posix-functions/iswalpha_l.texi: Likewise.
35989         * doc/posix-functions/iswblank_l.texi: Likewise.
35990         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35991         * doc/posix-functions/iswctype_l.texi: Likewise.
35992         * doc/posix-functions/iswdigit_l.texi: Likewise.
35993         * doc/posix-functions/iswgraph_l.texi: Likewise.
35994         * doc/posix-functions/iswlower_l.texi: Likewise.
35995         * doc/posix-functions/iswprint_l.texi: Likewise.
35996         * doc/posix-functions/iswpunct_l.texi: Likewise.
35997         * doc/posix-functions/iswspace_l.texi: Likewise.
35998         * doc/posix-functions/iswupper_l.texi: Likewise.
35999         * doc/posix-functions/iswxdigit_l.texi: Likewise.
36000         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
36001         * doc/posix-functions/open_wmemstream.texi: Likewise.
36002         * doc/posix-functions/swscanf.texi: Likewise.
36003         * doc/posix-functions/towctrans_l.texi: Likewise.
36004         * doc/posix-functions/towlower.texi: Likewise.
36005         * doc/posix-functions/towlower_l.texi: Likewise.
36006         * doc/posix-functions/towupper.texi: Likewise.
36007         * doc/posix-functions/towupper_l.texi: Likewise.
36008         * doc/posix-functions/vfwprintf.texi: Likewise.
36009         * doc/posix-functions/vfwscanf.texi: Likewise.
36010         * doc/posix-functions/vswscanf.texi: Likewise.
36011         * doc/posix-functions/vwprintf.texi: Likewise.
36012         * doc/posix-functions/vwscanf.texi: Likewise.
36013         * doc/posix-functions/wcpcpy.texi: Likewise.
36014         * doc/posix-functions/wcpncpy.texi: Likewise.
36015         * doc/posix-functions/wcscasecmp.texi: Likewise.
36016         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
36017         * doc/posix-functions/wcscoll_l.texi: Likewise.
36018         * doc/posix-functions/wcsdup.texi: Likewise.
36019         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36020         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
36021         * doc/posix-functions/wcsnlen.texi: Likewise.
36022         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36023         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
36024         * doc/posix-functions/wctrans_l.texi: Likewise.
36025         * doc/posix-functions/wctype_l.texi: Likewise.
36026         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
36027         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
36028         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
36029         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
36030         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
36031         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
36032         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
36033         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
36034         * doc/glibc-functions/wcschrnul.texi: Likewise.
36035         * doc/glibc-functions/wcsftime_l.texi: Likewise.
36036         * doc/glibc-functions/wcstod_l.texi: Likewise.
36037         * doc/glibc-functions/wcstof_l.texi: Likewise.
36038         * doc/glibc-functions/wcstol_l.texi: Likewise.
36039         * doc/glibc-functions/wcstold_l.texi: Likewise.
36040         * doc/glibc-functions/wcstoll_l.texi: Likewise.
36041         * doc/glibc-functions/wcstoq.texi: Likewise.
36042         * doc/glibc-functions/wcstoul_l.texi: Likewise.
36043         * doc/glibc-functions/wcstoull_l.texi: Likewise.
36044         * doc/glibc-functions/wcstouq.texi: Likewise.
36045         * doc/glibc-functions/wmempcpy.texi: Likewise.
36046
36047 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
36048             Eric Blake  <ebb9@byu.net>
36049             Paolo Bonzini  <bonzini@gnu.org>
36050             Bruno Haible  <bruno@clisp.org>
36051
36052         Make c-stack work on Haiku.
36053         * lib/c-stack.c (SA_ONSTACK): Define fallback.
36054         (c_stack_action): Use SA_ONSTACK flag.
36055
36056 2008-12-22  Bruno Haible  <bruno@clisp.org>
36057
36058         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
36059
36060 2008-12-22  Bruno Haible  <bruno@clisp.org>
36061
36062         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
36063         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
36064         being overridden.
36065         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
36066         New macros.
36067         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
36068         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
36069         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
36070         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
36071
36072 2008-12-22  Bruno Haible  <bruno@clisp.org>
36073
36074         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
36075         from test code.
36076
36077 2008-12-22  Eric Blake  <ebb9@byu.net>
36078
36079         Avoid gcc warnings on cygwin.
36080         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
36081         Avoid unused variable.
36082         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
36083         Likewise.
36084
36085 2008-12-22  Bruno Haible  <bruno@clisp.org>
36086
36087         Remove HAVE_MBRTOWC conditionals.
36088         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
36089         (mbscasecmp): Assume mbrtowc function.
36090         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
36091         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
36092         * lib/mbschr.c: Include mbuiter.h unconditionally.
36093         (mbschr): Assume mbrtowc function.
36094         * lib/mbscspn.c: Include mbuiter.h unconditionally.
36095         (mbscspn): Assume mbrtowc function.
36096         * lib/mbslen.c: Include mbuiter.h unconditionally.
36097         (mbslen): Assume mbrtowc function.
36098         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
36099         (mbsncasecmp): Assume mbrtowc function.
36100         * lib/mbsnlen.c: Include mbiter.h unconditionally.
36101         (mbsnlen): Assume mbrtowc function.
36102         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
36103         (mbspbrk): Assume mbrtowc function.
36104         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
36105         (mbspcasecmp): Assume mbrtowc function.
36106         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
36107         (mbsrchr): Assume mbrtowc function.
36108         * lib/mbssep.c: Include mbuiter.h unconditionally.
36109         (mbssep): Assume mbrtowc function.
36110         * lib/mbsspn.c: Include mbuiter.h unconditionally.
36111         (mbsspn): Assume mbrtowc function.
36112         * lib/mbsstr.c: Include mbuiter.h unconditionally.
36113         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
36114         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
36115         (mbstok_r): Assume mbrtowc function.
36116         * lib/propername.c: Include mbuiter.h unconditionally.
36117         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
36118         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
36119         (trim2): Assume mbrtowc function.
36120         * lib/mbswidth.c (mbsinit): Remove fallback definition.
36121         (mbsnwidth): Assume mbrtowc function.
36122         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
36123         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
36124         fallback definitions.
36125         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
36126
36127 2008-12-22  Bruno Haible  <bruno@clisp.org>
36128
36129         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
36130
36131 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
36132
36133         * modules/regex: Request emulations for the mb*/wc* functions we need.
36134         * m4/regex.m4: Don't look for those functions here.
36135         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
36136
36137 2008-12-22  Bruno Haible  <bruno@clisp.org>
36138
36139         * modules/fnmatch (Depends-on): Remove duplicated dependency.
36140
36141 2008-12-21  Bruno Haible  <bruno@clisp.org>
36142
36143         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
36144         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
36145         (Include): Remove conditionalization.
36146         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
36147         (Include): Remove conditionalization.
36148         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
36149         (Include): Remove conditionalization.
36150         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
36151         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36152         * NEWS: Mention the change.
36153         Reported by Alan Hourihane <alanh@fairlite.co.uk>
36154         via Sergey Poznyakoff <gray@gnu.org.ua>.
36155
36156 2008-12-21  Bruno Haible  <bruno@clisp.org>
36157
36158         * MODULES.html.sh (Extended multibyte and wide character utilities
36159         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
36160         wcrtomb, wcsrtombs.
36161         (Support for systems lacking POSIX:2008): Add accept, bind, close,
36162         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
36163         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
36164         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
36165
36166 2008-12-21  Bruno Haible  <bruno@clisp.org>
36167
36168         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
36169
36170 2008-12-21  Bruno Haible  <bruno@clisp.org>
36171
36172         * modules/wcsnrtombs-tests: New file.
36173         * tests/test-wcsnrtombs1.sh: New file.
36174         * tests/test-wcsnrtombs2.sh: New file.
36175         * tests/test-wcsnrtombs3.sh: New file.
36176         * tests/test-wcsnrtombs4.sh: New file.
36177         * tests/test-wcsnrtombs.c: New file.
36178
36179         New module 'wcsnrtombs'.
36180         * lib/wchar.in.h (wcsnrtombs): New declaration.
36181         * lib/wcsnrtombs.c: New file.
36182         * lib/wcsrtombs-state.c: New file.
36183         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
36184         (internal_state): Remove variable.
36185         * m4/wcsnrtombs.m4: New file.
36186         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
36187         compilation units.
36188         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
36189         HAVE_WCSNRTOMBS.
36190         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
36191         HAVE_WCSNRTOMBS.
36192         * modules/wcsnrtombs: New file.
36193         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
36194         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
36195
36196 2008-12-21  Bruno Haible  <bruno@clisp.org>
36197
36198         * modules/wcsrtombs-tests: New file.
36199         * tests/test-wcsrtombs1.sh: New file.
36200         * tests/test-wcsrtombs2.sh: New file.
36201         * tests/test-wcsrtombs3.sh: New file.
36202         * tests/test-wcsrtombs4.sh: New file.
36203         * tests/test-wcsrtombs.c: New file.
36204
36205         New module 'wcsrtombs'.
36206         * lib/wchar.in.h (wcsrtombs): New declaration.
36207         * lib/wcsrtombs.c: New file.
36208         * m4/wcsrtombs.m4: New file.
36209         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
36210         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
36211         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
36212         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
36213         * modules/wcsrtombs: New file.
36214         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
36215         bugs.
36216
36217 2008-12-21  Bruno Haible  <bruno@clisp.org>
36218
36219         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
36220         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
36221         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
36222         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
36223         if not correct.
36224         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
36225         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
36226         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36227         m4/locale-zh.m4, m4/codeset.m4.
36228         * doc/posix-functions/wcrtomb.texi: Document the bug.
36229
36230 2008-12-21  Bruno Haible  <bruno@clisp.org>
36231
36232         Work around a btowc() bug on IRIX 6.5.
36233         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
36234         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
36235         REPLACE_WTOBC if not.
36236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
36237         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
36238         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
36239
36240 2008-12-21  Bruno Haible  <bruno@clisp.org>
36241
36242         * modules/wcrtomb-tests: New file.
36243         * tests/test-wcrtomb.sh: New file.
36244         * tests/test-wcrtomb.c: New file.
36245
36246         New module 'wcrtomb'.
36247         * lib/wchar.in.h (wcrtomb): New declaration.
36248         * lib/wcrtomb.c: New file.
36249         * m4/wcrtomb.m4: New file.
36250         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
36251         HAVE_WCRTOMB.
36252         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
36253         HAVE_WCRTOMB.
36254         * modules/wcrtomb: New file.
36255         * doc/posix-functions/wcrtomb.texi: Mention the new module.
36256
36257 2008-12-21  Bruno Haible  <bruno@clisp.org>
36258
36259         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
36260         * modules/mbsrtowcs (Files): Likewise.
36261         * modules/wctob (Files): Likewise.
36262         * modules/c-strcase-tests (Files): Likewise.
36263         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36264         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36265         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36266         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36267         * modules/vasnprintf-posix-tests (Files): Likewise.
36268
36269 2008-12-21  William Pursell  <bill.pursell@gmail.com>
36270
36271         gitlog-to-changelog: pass all command-line arguments to git-log
36272         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
36273         it is sometimes convenient to filter the commits in various ways.
36274         gitlog-to-changelog only allows --since to specify a start date,
36275         but git-log itself supports many other filtering mechanisms.
36276         At the moment, I want to filter by branch name.  Rather than
36277         adding a --branch option to gitlog-to-changelog, it seems more
36278         flexible to simply pass all options directly to git-log and let
36279         git do the work.  Notice that this effectively makes --since a
36280         redundant option for gitlog-to-changelog, but removing it would
36281         require current usage to change since calls would then require
36282         an additional '--'.
36283
36284 2008-12-21  Bruno Haible  <bruno@clisp.org>
36285
36286         * modules/mbsnrtowcs-tests: New file.
36287         * tests/test-mbsnrtowcs1.sh: New file.
36288         * tests/test-mbsnrtowcs2.sh: New file.
36289         * tests/test-mbsnrtowcs3.sh: New file.
36290         * tests/test-mbsnrtowcs4.sh: New file.
36291         * tests/test-mbsnrtowcs.c: New file.
36292
36293         New module 'mbsnrtowcs'.
36294         * lib/wchar.in.h (mbsnrtowcs): New declaration.
36295         * lib/mbsnrtowcs.c: New file.
36296         * lib/mbsrtowcs-state.c: New file.
36297         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
36298         (internal_state): Remove variable.
36299         * m4/mbsnrtowcs.m4: New file.
36300         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
36301         compilation units.
36302         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
36303         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
36304         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
36305         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
36306         * modules/mbsnrtowcs: New file.
36307         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
36308         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
36309         portability problem.
36310
36311 2008-12-21  Bruno Haible  <bruno@clisp.org>
36312
36313         Work around mbsrtowcs bug.
36314         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
36315         (gl_FUNC_MBSRTOWCS): Invoke it.
36316         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36317         m4/locale-zh.m4.
36318         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
36319
36320 2008-12-21  Bruno Haible  <bruno@clisp.org>
36321
36322         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
36323
36324 2008-12-21  Bruno Haible  <bruno@clisp.org>
36325
36326         Update doc for AIX.
36327         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
36328         16-bit wchar_t type.
36329         * doc/posix-functions/btowc.texi: Likewise.
36330         * doc/posix-functions/fgetwc.texi: Likewise.
36331         * doc/posix-functions/fgetws.texi: Likewise.
36332         * doc/posix-functions/fputwc.texi: Likewise.
36333         * doc/posix-functions/fputws.texi: Likewise.
36334         * doc/posix-functions/fwide.texi: Likewise.
36335         * doc/posix-functions/fwprintf.texi: Likewise.
36336         * doc/posix-functions/fwscanf.texi: Likewise.
36337         * doc/posix-functions/getwchar.texi: Likewise.
36338         * doc/posix-functions/getwc.texi: Likewise.
36339         * doc/posix-functions/iswalnum.texi: Likewise.
36340         * doc/posix-functions/iswalpha.texi: Likewise.
36341         * doc/posix-functions/iswblank.texi: Likewise.
36342         * doc/posix-functions/iswcntrl.texi: Likewise.
36343         * doc/posix-functions/iswctype.texi: Likewise.
36344         * doc/posix-functions/iswdigit.texi: Likewise.
36345         * doc/posix-functions/iswgraph.texi: Likewise.
36346         * doc/posix-functions/iswlower.texi: Likewise.
36347         * doc/posix-functions/iswprint.texi: Likewise.
36348         * doc/posix-functions/iswpunct.texi: Likewise.
36349         * doc/posix-functions/iswspace.texi: Likewise.
36350         * doc/posix-functions/iswupper.texi: Likewise.
36351         * doc/posix-functions/iswxdigit.texi: Likewise.
36352         * doc/posix-functions/mbrtowc.texi: Likewise.
36353         * doc/posix-functions/mbsrtowcs.texi: Likewise.
36354         * doc/posix-functions/mbstowcs.texi: Likewise.
36355         * doc/posix-functions/mbtowc.texi: Likewise.
36356         * doc/posix-functions/putwchar.texi: Likewise.
36357         * doc/posix-functions/putwc.texi: Likewise.
36358         * doc/posix-functions/swprintf.texi: Likewise.
36359         * doc/posix-functions/tolower.texi: Likewise.
36360         * doc/posix-functions/toupper.texi: Likewise.
36361         * doc/posix-functions/towctrans.texi: Likewise.
36362         * doc/posix-functions/ungetwc.texi: Likewise.
36363         * doc/posix-functions/vswprintf.texi: Likewise.
36364         * doc/posix-functions/wcrtomb.texi: Likewise.
36365         * doc/posix-functions/wcscat.texi: Likewise.
36366         * doc/posix-functions/wcschr.texi: Likewise.
36367         * doc/posix-functions/wcscmp.texi: Likewise.
36368         * doc/posix-functions/wcscoll.texi: Likewise.
36369         * doc/posix-functions/wcscpy.texi: Likewise.
36370         * doc/posix-functions/wcscspn.texi: Likewise.
36371         * doc/posix-functions/wcsftime.texi: Likewise.
36372         * doc/posix-functions/wcslen.texi: Likewise.
36373         * doc/posix-functions/wcsncat.texi: Likewise.
36374         * doc/posix-functions/wcsncmp.texi: Likewise.
36375         * doc/posix-functions/wcsncpy.texi: Likewise.
36376         * doc/posix-functions/wcspbrk.texi: Likewise.
36377         * doc/posix-functions/wcsrchr.texi: Likewise.
36378         * doc/posix-functions/wcsrtombs.texi: Likewise.
36379         * doc/posix-functions/wcsspn.texi: Likewise.
36380         * doc/posix-functions/wcsstr.texi: Likewise.
36381         * doc/posix-functions/wcstod.texi: Likewise.
36382         * doc/posix-functions/wcstof.texi: Likewise.
36383         * doc/posix-functions/wcstoimax.texi: Likewise.
36384         * doc/posix-functions/wcstok.texi: Likewise.
36385         * doc/posix-functions/wcstold.texi: Likewise.
36386         * doc/posix-functions/wcstoll.texi: Likewise.
36387         * doc/posix-functions/wcstol.texi: Likewise.
36388         * doc/posix-functions/wcstombs.texi: Likewise.
36389         * doc/posix-functions/wcstoull.texi: Likewise.
36390         * doc/posix-functions/wcstoul.texi: Likewise.
36391         * doc/posix-functions/wcstoumax.texi: Likewise.
36392         * doc/posix-functions/wcswidth.texi: Likewise.
36393         * doc/posix-functions/wcsxfrm.texi: Likewise.
36394         * doc/posix-functions/wctob.texi: Likewise.
36395         * doc/posix-functions/wctomb.texi: Likewise.
36396         * doc/posix-functions/wctrans.texi: Likewise.
36397         * doc/posix-functions/wctype.texi: Likewise.
36398         * doc/posix-functions/wcwidth.texi: Likewise.
36399         * doc/posix-functions/wmemchr.texi: Likewise.
36400         * doc/posix-functions/wmemcmp.texi: Likewise.
36401         * doc/posix-functions/wmemcpy.texi: Likewise.
36402         * doc/posix-functions/wmemmove.texi: Likewise.
36403         * doc/posix-functions/wmemset.texi: Likewise.
36404         * doc/posix-functions/wprintf.texi: Likewise.
36405         * doc/posix-functions/wscanf.texi: Likewise.
36406
36407 2008-12-21  Bruno Haible  <bruno@clisp.org>
36408
36409         Update doc for HP-UX 11.11.
36410         * doc/posix-functions/btowc.texi: Clarify that the function is missing
36411         in HP-UX version 11.00, not in all versions of HP-UX 11.
36412         * doc/posix-functions/fwide.texi: Likewise.
36413         * doc/posix-functions/fwprintf.texi: Likewise.
36414         * doc/posix-functions/fwscanf.texi: Likewise.
36415         * doc/posix-functions/inet_ntop.texi: Likewise.
36416         * doc/posix-functions/inet_pton.texi: Likewise.
36417         * doc/posix-functions/mbrlen.texi: Likewise.
36418         * doc/posix-functions/mbrtowc.texi: Likewise.
36419         * doc/posix-functions/mbsinit.texi: Likewise.
36420         * doc/posix-functions/mbsrtowcs.texi: Likewise.
36421         * doc/posix-functions/swprintf.texi: Likewise.
36422         * doc/posix-functions/swscanf.texi: Likewise.
36423         * doc/posix-functions/towctrans.texi: Likewise.
36424         * doc/posix-functions/vfwprintf.texi: Likewise.
36425         * doc/posix-functions/vswprintf.texi: Likewise.
36426         * doc/posix-functions/vwprintf.texi: Likewise.
36427         * doc/posix-functions/wcrtomb.texi: Likewise.
36428         * doc/posix-functions/wcsrtombs.texi: Likewise.
36429         * doc/posix-functions/wcsstr.texi: Likewise.
36430         * doc/posix-functions/wctob.texi: Likewise.
36431         * doc/posix-functions/wctrans.texi: Likewise.
36432         * doc/posix-functions/wmemchr.texi: Likewise.
36433         * doc/posix-functions/wmemcmp.texi: Likewise.
36434         * doc/posix-functions/wmemcpy.texi: Likewise.
36435         * doc/posix-functions/wmemmove.texi: Likewise.
36436         * doc/posix-functions/wmemset.texi: Likewise.
36437         * doc/posix-functions/wprintf.texi: Likewise.
36438         * doc/posix-functions/wscanf.texi: Likewise.
36439
36440 2008-12-21  Bruno Haible  <bruno@clisp.org>
36441
36442         Work around a portability problem.
36443         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
36444         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
36445
36446 2008-12-20  Bruno Haible  <bruno@clisp.org>
36447
36448         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
36449         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
36450         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
36451         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
36452         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
36453
36454         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
36455         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
36456         set.
36457         (GNULIB_defined_mbstate_t): New macro.
36458         (mbsinit): Redefine if REPLACE_MBSINIT is set.
36459         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
36460         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
36461         reuses the system's mbrtowc function but works around the bugs.
36462         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
36463         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
36464         macros.
36465         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
36466         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
36467         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
36468         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
36469         REPLACE_MBSINIT if mbsinit needs to be overridden.
36470         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
36471         REPLACE_MBSINIT, REPLACE_MBRTOWC.
36472         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
36473         REPLACE_MBSINIT, REPLACE_MBRTOWC.
36474         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36475         m4/locale-zh.m4.
36476         (Depends): Add mbsinit.
36477         * modules/mbsinit (Depends): Add mbrtowc.
36478         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
36479
36480 2008-12-20  Bruno Haible  <bruno@clisp.org>
36481
36482         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
36483         so that there are no conversion errors on AIX.
36484         * tests/test-mbsrtowcs.c (main): LIkewise.
36485
36486 2008-12-20  Bruno Haible  <bruno@clisp.org>
36487
36488         Work around wctob bug on Solaris <= 9.
36489         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
36490         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
36491         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
36492         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
36493         * modules/wctob (Files): Add m4/locale-fr.m4.
36494         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
36495
36496 2008-12-20  Bruno Haible  <bruno@clisp.org>
36497
36498         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
36499         /dev/null.
36500         * tests/test-select-in.sh: Likewise.
36501         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36502
36503 2008-12-20  Bruno Haible  <bruno@clisp.org>
36504
36505         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
36506         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
36507         Cygwin 1.5.x.
36508
36509 2008-12-20  Bruno Haible  <bruno@clisp.org>
36510
36511         Ensure mbstate_t is defined on HP-UX 11.11.
36512         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
36513         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
36514         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
36515         AC_USE_SYSTEM_EXTENSIONS.
36516         * modules/fnmatch (Depends-on): Add extensions.
36517         * modules/mbrlen (Depends-on): Likewise.
36518         * modules/mbrtowc (Depends-on): Likewise.
36519         * modules/mbsinit (Depends-on): Likewise.
36520         * modules/mbsrtowcs (Depends-on): Likewise.
36521         * modules/mbswidth (Depends-on): Likewise.
36522         * modules/quotearg (Depends-on): Likewise.
36523         * modules/strftime (Depends-on): Likewise.
36524
36525 2008-12-20  Bruno Haible  <bruno@clisp.org>
36526
36527         Ensure wctob is declared on IRIX 6.5.
36528         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
36529         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
36530         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
36531         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
36532         of HAVE_WCTOB.
36533         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
36534         HAVE_WCTOB.
36535         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
36536
36537 2008-12-19  Bruno Haible  <bruno@clisp.org>
36538
36539         * modules/mbsrtowcs-tests: New file.
36540         * tests/test-mbsrtowcs1.sh: New file.
36541         * tests/test-mbsrtowcs2.sh: New file.
36542         * tests/test-mbsrtowcs3.sh: New file.
36543         * tests/test-mbsrtowcs4.sh: New file.
36544         * tests/test-mbsrtowcs.c: New file.
36545
36546         New module 'mbsrtowcs'.
36547         * lib/wchar.in.h (mbsrtowcs): New declaration.
36548         * lib/mbsrtowcs.c: New file.
36549         * m4/mbsrtowcs.m4: New file.
36550         * modules/mbsrtowcs: New file.
36551         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
36552         HAVE_MBSRTOWCS.
36553         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
36554         HAVE_MBSRTOWCS.
36555         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
36556
36557 2008-12-19  Bruno Haible  <bruno@clisp.org>
36558
36559         New module 'mbrlen'.
36560         * lib/wchar.in.h (mbrlen): New declaration.
36561         * lib/mbrlen.c: New file.
36562         * m4/mbrlen.m4: New file.
36563         * modules/mbrlen: New file.
36564         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
36565         HAVE_MBRLEN.
36566         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
36567         HAVE_MBRLEN.
36568         * doc/posix-functions/mbrlen.texi: Document the new module.
36569
36570 2008-12-19  Bruno Haible  <bruno@clisp.org>
36571
36572         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
36573         * modules/mbrtowc (Depends-on): Add verify.
36574         Suggested by Paul Eggert.
36575
36576 2008-12-18  Bruno Haible  <bruno@clisp.org>
36577
36578         * modules/mbsinit-tests: New file.
36579         * tests/test-mbsinit.sh: New file.
36580         * tests/test-mbsinit.c: New file.
36581
36582 2008-12-18  Bruno Haible  <bruno@clisp.org>
36583
36584         * modules/mbrtowc-tests: New file.
36585         * tests/test-mbrtowc1.sh: New file.
36586         * tests/test-mbrtowc2.sh: New file.
36587         * tests/test-mbrtowc3.sh: New file.
36588         * tests/test-mbrtowc4.sh: New file.
36589         * tests/test-mbrtowc.c: New file.
36590
36591         New module 'mbrtowc'.
36592         * lib/wchar.in.h (mbstate_t): Override when the system does not have
36593         mbsinit and mbrtowc.
36594         (mbrtowc): New declaration.
36595         * lib/mbrtowc.c: New file.
36596         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
36597         * modules/mbrtowc: New file.
36598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
36599         HAVE_MBRTOWC.
36600         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
36601         HAVE_MBRTOWC.
36602         * doc/posix-functions/mbrtowc.texi: Document the new module.
36603
36604 2008-12-18  Bruno Haible  <bruno@clisp.org>
36605
36606         New module 'wctob'.
36607         * lib/wchar.in.h (wctob): New declaration.
36608         * lib/wctob.c: New file.
36609         * m4/wctob.m4: New file.
36610         * modules/wctob: New file.
36611         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
36612         HAVE_WCTOB.
36613         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
36614         * doc/posix-functions/wctob.texi: Document the new module.
36615
36616 2008-12-18  Bruno Haible  <bruno@clisp.org>
36617
36618         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
36619         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
36620
36621 2008-12-18  Simon Josefsson  <simon@josefsson.org>
36622
36623         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
36624         G. Christensen" <tgc@jupiterrise.com>.
36625
36626         * lib/flock.c: Need to include errno.h.  Reported by "Tom
36627         G. Christensen" <tgc@jupiterrise.com>.
36628
36629         * lib/flock.c: Need to include string.h.  Reported by "Tom
36630         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
36631         <ebb9@byu.net>.
36632
36633 2008-12-18  Bruno Haible  <bruno@clisp.org>
36634
36635         * m4/locale-ja.m4: New file, from GNU gettext.
36636
36637 2008-12-17  Bruno Haible  <bruno@clisp.org>
36638
36639         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
36640         Suggested by Eric Blake.
36641
36642 2008-12-17  Bruno Haible  <bruno@clisp.org>
36643
36644         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
36645
36646 2008-12-17  Bruno Haible  <bruno@clisp.org>
36647
36648         * lib/mbsinit.c: Include verify.h. Verify an assumption.
36649         * modules/mbsinit (Depends-on): Add verify.
36650         Suggested by Paul Eggert.
36651
36652 2008-12-17  Bruno Haible  <bruno@clisp.org>
36653
36654         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
36655         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
36656         gl_FUNC_MBRTOWC.
36657         * m4/mbiter.m4 (gl_MBITER): LIkewise.
36658         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
36659         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
36660         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
36661         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
36662         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
36663         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
36664         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
36665         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
36666         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
36667         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
36668         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
36669         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
36670         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
36671         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
36672         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
36673         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
36674         * modules/trim (configure.ac): Likewise.
36675
36676 2008-12-17  Bruno Haible  <bruno@clisp.org>
36677
36678         * modules/btowc-tests: New file.
36679         * tests/test-btowc1.sh: New file.
36680         * tests/test-btowc2.sh: New file.
36681         * tests/test-btowc.c: New file.
36682
36683         New module 'btowc'.
36684         * lib/wchar.in.h (btowc): New declaration.
36685         * lib/btowc.c: New file.
36686         * m4/btowc.m4: New file.
36687         * modules/btowc: New file.
36688         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
36689         HAVE_BTOWC.
36690         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
36691         * doc/posix-functions/btowc.texi: Document the new module.
36692
36693 2008-12-17  Bruno Haible  <bruno@clisp.org>
36694
36695         New module 'mbsinit'.
36696         * lib/wchar.in.h (mbsinit): New declaration.
36697         * lib/mbsinit.c: New file.
36698         * m4/mbsinit.m4: New file.
36699         * modules/mbsinit: New file.
36700         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
36701         HAVE_MBSINIT.
36702         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
36703         HAVE_MBSINIT.
36704         * doc/posix-functions/mbsinit.texi: Document the new module.
36705
36706 2008-12-16  Bruno Haible  <bruno@clisp.org>
36707
36708         * lib/unistd.in.h: Add comment.
36709         * tests/test-environ.c: Don't include <stdlib.h>.
36710
36711 2008-12-16  Bruno Haible  <bruno@clisp.org>
36712
36713         * lib/parse-duration.h (parse_duration): Document return value
36714         convention.
36715         * lib/parse-duration.c: Include specification header first. Add
36716         comments.
36717         (_): Remove macro.
36718         (parse_year_month_day, parse_hour_minute_second): Move side effects
36719         outside of strchr call.
36720         (parse_non_iso8601): Move side effects outside of isspace call.
36721         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
36722         call.
36723
36724 2008-12-16  Bruno Haible  <bruno@clisp.org>
36725
36726         * tests/test-parse-duration.sh: Produce no output when the test
36727         succeeds.
36728
36729 2008-12-16  Bruno Haible  <bruno@clisp.org>
36730
36731         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
36732         expressions.
36733
36734 2008-12-15  Bruno Haible  <bruno@clisp.org>
36735
36736         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
36737         * doc/glibc-functions/flistxattr.texi: Likewise.
36738         * doc/glibc-functions/fopencookie.texi: Likewise.
36739         * doc/glibc-functions/fremovexattr.texi: Likewise.
36740         * doc/glibc-functions/fsetxattr.texi: Likewise.
36741         * doc/glibc-functions/getxattr.texi: Likewise.
36742         * doc/glibc-functions/lgetxattr.texi: Likewise.
36743         * doc/glibc-functions/listxattr.texi: Likewise.
36744         * doc/glibc-functions/llistxattr.texi: Likewise.
36745         * doc/glibc-functions/lremovexattr.texi: Likewise.
36746         * doc/glibc-functions/lsetxattr.texi: Likewise.
36747         * doc/glibc-functions/removexattr.texi: Likewise.
36748         * doc/glibc-functions/setxattr.texi: Likewise.
36749         * doc/posix-functions/open_memstream.texi: Likewise.
36750
36751 2008-12-15  Eric Blake  <ebb9@byu.net>
36752
36753         Update doc for cygwin 1.7.
36754         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
36755         functions.
36756         * doc/posix-functions/fchmodat.texi: Likewise.
36757         * doc/posix-functions/fchownat.texi: Likewise.
36758         * doc/posix-functions/fdopendir.texi: Likewise.
36759         * doc/posix-functions/fmemopen.texi: Likewise.
36760         * doc/posix-functions/freeaddrinfo.texi: Likewise.
36761         * doc/posix-functions/fstatat.texi: Likewise.
36762         * doc/posix-functions/futimens.texi: Likewise.
36763         * doc/posix-functions/gai_strerror.texi: Likewise.
36764         * doc/posix-functions/getaddrinfo.texi: Likewise.
36765         * doc/posix-functions/getnameinfo.texi: Likewise.
36766         * doc/posix-functions/if_freenameindex.texi: Likewise.
36767         * doc/posix-functions/if_indextoname.texi: Likewise.
36768         * doc/posix-functions/if_nameindex.texi: Likewise.
36769         * doc/posix-functions/if_nametoindex.texi: Likewise.
36770         * doc/posix-functions/insque.texi: Likewise.
36771         * doc/posix-functions/linkat.texi: Likewise.
36772         * doc/posix-functions/llrint.texi: Likewise.
36773         * doc/posix-functions/llrintf.texi: Likewise.
36774         * doc/posix-functions/llrintl.texi: Likewise.
36775         * doc/posix-functions/lockf.texi: Likewise.
36776         * doc/posix-functions/lrintl.texi: Likewise.
36777         * doc/posix-functions/mkdirat.texi: Likewise.
36778         * doc/posix-functions/mkfifoat.texi: Likewise.
36779         * doc/posix-functions/mknodat.texi: Likewise.
36780         * doc/posix-functions/mq_close.texi: Likewise.
36781         * doc/posix-functions/mq_getattr.texi: Likewise.
36782         * doc/posix-functions/mq_notify.texi: Likewise.
36783         * doc/posix-functions/mq_open.texi: Likewise.
36784         * doc/posix-functions/mq_receive.texi: Likewise.
36785         * doc/posix-functions/mq_send.texi: Likewise.
36786         * doc/posix-functions/mq_setattr.texi: Likewise.
36787         * doc/posix-functions/mq_timedreceive.texi: Likewise.
36788         * doc/posix-functions/mq_timedsend.texi: Likewise.
36789         * doc/posix-functions/mq_unlink.texi: Likewise.
36790         * doc/posix-functions/open_memstream.texi: Likewise.
36791         * doc/posix-functions/openat.texi: Likewise.
36792         * doc/posix-functions/posix_fadvise.texi: Likewise.
36793         * doc/posix-functions/posix_fallocate.texi: Likewise.
36794         * doc/posix-functions/posix_madvise.texi: Likewise.
36795         * doc/posix-functions/posix_memalign.texi: Likewise.
36796         * doc/posix-functions/posix_openpt.texi: Likewise.
36797         * doc/posix-functions/readlinkat.texi: Likewise.
36798         * doc/posix-functions/remque.texi: Likewise.
36799         * doc/posix-functions/renameat.texi: Likewise.
36800         * doc/posix-functions/rintl.texi: Likewise.
36801         * doc/posix-functions/sem_unlink.texi: Likewise.
36802         * doc/posix-functions/shm_open.texi: Likewise.
36803         * doc/posix-functions/shm_unlink.texi: Likewise.
36804         * doc/posix-functions/signgam.texi: Likewise.
36805         * doc/posix-functions/sigset.texi: Likewise.
36806         * doc/posix-functions/stpcpy.texi: Likewise.
36807         * doc/posix-functions/stpncpy.texi: Likewise.
36808         * doc/posix-functions/strerror.texi: Likewise.
36809         * doc/posix-functions/strtod.texi: Likewise.
36810         * doc/posix-functions/symlinkat.texi: Likewise.
36811         * doc/posix-functions/unlinkat.texi: Likewise.
36812         * doc/posix-functions/utimensat.texi: Likewise.
36813         * doc/glibc-functions/bindresvport.texi: Likewise.
36814         * doc/glibc-functions/dn_expand.texi: Likewise.
36815         * doc/glibc-functions/exp10.texi: Likewise.
36816         * doc/glibc-functions/exp10f.texi: Likewise.
36817         * doc/glibc-functions/fgetxattr.texi: Likewise.
36818         * doc/glibc-functions/flistxattr.texi: Likewise.
36819         * doc/glibc-functions/fopencookie.texi: Likewise.
36820         * doc/glibc-functions/freeifaddrs.texi: Likewise.
36821         * doc/glibc-functions/fremovexattr.texi: Likewise.
36822         * doc/glibc-functions/fsetxattr.texi: Likewise.
36823         * doc/glibc-functions/getifaddrs.texi: Likewise.
36824         * doc/glibc-functions/getxattr.texi: Likewise.
36825         * doc/glibc-functions/lgetxattr.texi: Likewise.
36826         * doc/glibc-functions/listxattr.texi: Likewise.
36827         * doc/glibc-functions/llistxattr.texi: Likewise.
36828         * doc/glibc-functions/lremovexattr.texi: Likewise.
36829         * doc/glibc-functions/lsetxattr.texi: Likewise.
36830         * doc/glibc-functions/pow10.texi: Likewise.
36831         * doc/glibc-functions/pow10f.texi: Likewise.
36832         * doc/glibc-functions/rcmd_af.texi: Likewise.
36833         * doc/glibc-functions/removexattr.texi: Likewise.
36834         * doc/glibc-functions/res_init.texi: Likewise.
36835         * doc/glibc-functions/res_mkquery.texi: Likewise.
36836         * doc/glibc-functions/res_query.texi: Likewise.
36837         * doc/glibc-functions/res_querydomain.texi: Likewise.
36838         * doc/glibc-functions/res_send.texi: Likewise.
36839         * doc/glibc-functions/rresvport_af.texi: Likewise.
36840         * doc/glibc-functions/setxattr.texi: Likewise.
36841         * doc/glibc-functions/strcasestr.texi: Likewise.
36842
36843 2008-12-15  Bruno Haible  <bruno@clisp.org>
36844
36845         Fix compilation error on OSF/1 4.0.
36846         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
36847         <sys/time.h>, simply delegate to the system header.
36848         Reported by Daniel Richard G. <oss@teragram.com>.
36849
36850 2008-12-15  Bruno Haible  <bruno@clisp.org>
36851
36852         * doc/posix-functions/openat.texi: Mention the 'openat' module.
36853         * doc/posix-functions/fchmodat.texi: Likewise.
36854         * doc/posix-functions/fchownat.texi: Likewise.
36855         * doc/posix-functions/fdopendir.texi: Likewise.
36856         * doc/posix-functions/fstatat.texi: Likewise.
36857         * doc/posix-functions/mkdirat.texi: Likewise.
36858         * doc/posix-functions/unlinkat.texi: Likewise.
36859
36860 2008-12-14  Bruno Haible  <bruno@clisp.org>
36861
36862         Update doc for POSIX:2008.
36863         * doc/posix-functions/faccessat.texi: New file.
36864         * doc/posix-functions/fchmodat.texi: New file.
36865         * doc/posix-functions/fchownat.texi: New file.
36866         * doc/posix-functions/fdopendir.texi: New file.
36867         * doc/posix-functions/fstatat.texi: New file.
36868         * doc/posix-functions/futimens.texi: New file.
36869         * doc/posix-functions/linkat.texi: New file.
36870         * doc/posix-functions/mkdirat.texi: New file.
36871         * doc/posix-functions/mkfifoat.texi: New file.
36872         * doc/posix-functions/mknodat.texi: New file.
36873         * doc/posix-functions/open_wmemstream.texi: New file.
36874         * doc/posix-functions/openat.texi: New file.
36875         * doc/posix-functions/psiginfo.texi: New file.
36876         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
36877         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
36878         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
36879         * doc/posix-functions/readlinkat.texi: New file.
36880         * doc/posix-functions/renameat.texi: New file.
36881         * doc/posix-functions/strerror_l.texi: New file.
36882         * doc/posix-functions/symlinkat.texi: New file.
36883         * doc/posix-functions/unlinkat.texi: New file.
36884         * doc/posix-functions/utimensat.texi: New file.
36885         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36886
36887 2008-12-14  Bruno Haible  <bruno@clisp.org>
36888
36889         Update doc for POSIX:2008.
36890         * doc/posix-functions/alphasort.texi: Renamed from
36891         doc/glibc-functions/alphasort.texi.
36892         * doc/posix-functions/dirfd.texi: Renamed from
36893         doc/glibc-functions/dirfd.texi.
36894         * doc/posix-functions/dprintf.texi: Renamed from
36895         doc/glibc-functions/dprintf.texi.
36896         * doc/posix-functions/duplocale.texi: Renamed from
36897         doc/glibc-functions/duplocale.texi.
36898         * doc/posix-functions/fexecve.texi: Renamed from
36899         doc/glibc-functions/fexecve.texi.
36900         * doc/posix-functions/fmemopen.texi: Renamed from
36901         doc/glibc-functions/fmemopen.texi.
36902         * doc/posix-functions/freelocale.texi: Renamed from
36903         doc/glibc-functions/freelocale.texi.
36904         * doc/posix-functions/getdate_err.texi: Renamed from
36905         doc/glibc-functions/getdate_err.texi.
36906         * doc/posix-functions/isalnum_l.texi: Renamed from
36907         doc/glibc-functions/isalnum_l.texi.
36908         * doc/posix-functions/isalpha_l.texi: Renamed from
36909         doc/glibc-functions/isalpha_l.texi.
36910         * doc/posix-functions/isblank_l.texi: Renamed from
36911         doc/glibc-functions/isblank_l.texi.
36912         * doc/posix-functions/iscntrl_l.texi: Renamed from
36913         doc/glibc-functions/iscntrl_l.texi.
36914         * doc/posix-functions/isdigit_l.texi: Renamed from
36915         doc/glibc-functions/isdigit_l.texi.
36916         * doc/posix-functions/isgraph_l.texi: Renamed from
36917         doc/glibc-functions/isgraph_l.texi.
36918         * doc/posix-functions/islower_l.texi: Renamed from
36919         doc/glibc-functions/islower_l.texi.
36920         * doc/posix-functions/isprint_l.texi: Renamed from
36921         doc/glibc-functions/isprint_l.texi.
36922         * doc/posix-functions/ispunct_l.texi: Renamed from
36923         doc/glibc-functions/ispunct_l.texi.
36924         * doc/posix-functions/isspace_l.texi: Renamed from
36925         doc/glibc-functions/isspace_l.texi.
36926         * doc/posix-functions/isupper_l.texi: Renamed from
36927         doc/glibc-functions/isupper_l.texi.
36928         * doc/posix-functions/iswalnum_l.texi: Renamed from
36929         doc/glibc-functions/iswalnum_l.texi.
36930         * doc/posix-functions/iswalpha_l.texi: Renamed from
36931         doc/glibc-functions/iswalpha_l.texi.
36932         * doc/posix-functions/iswblank_l.texi: Renamed from
36933         doc/glibc-functions/iswblank_l.texi.
36934         * doc/posix-functions/iswcntrl_l.texi: Renamed from
36935         doc/glibc-functions/iswcntrl_l.texi.
36936         * doc/posix-functions/iswctype_l.texi: Renamed from
36937         doc/glibc-functions/iswctype_l.texi.
36938         * doc/posix-functions/iswdigit_l.texi: Renamed from
36939         doc/glibc-functions/iswdigit_l.texi.
36940         * doc/posix-functions/iswgraph_l.texi: Renamed from
36941         doc/glibc-functions/iswgraph_l.texi.
36942         * doc/posix-functions/iswlower_l.texi: Renamed from
36943         doc/glibc-functions/iswlower_l.texi.
36944         * doc/posix-functions/iswprint_l.texi: Renamed from
36945         doc/glibc-functions/iswprint_l.texi.
36946         * doc/posix-functions/iswpunct_l.texi: Renamed from
36947         doc/glibc-functions/iswpunct_l.texi.
36948         * doc/posix-functions/iswspace_l.texi: Renamed from
36949         doc/glibc-functions/iswspace_l.texi.
36950         * doc/posix-functions/iswupper_l.texi: Renamed from
36951         doc/glibc-functions/iswupper_l.texi.
36952         * doc/posix-functions/iswxdigit_l.texi: Renamed from
36953         doc/glibc-functions/iswxdigit_l.texi.
36954         * doc/posix-functions/isxdigit_l.texi: Renamed from
36955         doc/glibc-functions/isxdigit_l.texi.
36956         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
36957         doc/glibc-functions/mbsnrtowcs.texi.
36958         * doc/posix-functions/mkdtemp.texi: Renamed from
36959         doc/glibc-functions/mkdtemp.texi.
36960         * doc/posix-functions/newlocale.texi: Renamed from
36961         doc/glibc-functions/newlocale.texi.
36962         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
36963         doc/glibc-functions/nl_langinfo_l.texi.
36964         * doc/posix-functions/open_memstream.texi: Renamed from
36965         doc/glibc-functions/open_memstream.texi.
36966         * doc/posix-functions/opterr.texi: Renamed from
36967         doc/glibc-functions/opterr.texi.
36968         * doc/posix-functions/optind.texi: Renamed from
36969         doc/glibc-functions/optind.texi.
36970         * doc/posix-functions/optopt.texi: Renamed from
36971         doc/glibc-functions/optopt.texi.
36972         * doc/posix-functions/psignal.texi: Renamed from
36973         doc/glibc-functions/psignal.texi.
36974         * doc/posix-functions/scandir.texi: Renamed from
36975         doc/glibc-functions/scandir.texi.
36976         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
36977         doc/glibc-functions/sched_get_priority_min.texi.
36978         * doc/posix-functions/signgam.texi: Renamed from
36979         doc/glibc-functions/signgam.texi.
36980         * doc/posix-functions/stpcpy.texi: Renamed from
36981         doc/glibc-functions/stpcpy.texi.
36982         * doc/posix-functions/stpncpy.texi: Renamed from
36983         doc/glibc-functions/stpncpy.texi.
36984         * doc/posix-functions/strcasecmp_l.texi: Renamed from
36985         doc/glibc-functions/strcasecmp_l.texi.
36986         * doc/posix-functions/strcoll_l.texi: Renamed from
36987         doc/glibc-functions/strcoll_l.texi.
36988         * doc/posix-functions/strfmon_l.texi: Renamed from
36989         doc/glibc-functions/strfmon_l.texi.
36990         * doc/posix-functions/strftime_l.texi: Renamed from
36991         doc/glibc-functions/strftime_l.texi.
36992         * doc/posix-functions/strncasecmp_l.texi: Renamed from
36993         doc/glibc-functions/strncasecmp_l.texi.
36994         * doc/posix-functions/strndup.texi: Renamed from
36995         doc/glibc-functions/strndup.texi.
36996         * doc/posix-functions/strnlen.texi: Renamed from
36997         doc/glibc-functions/strnlen.texi.
36998         * doc/posix-functions/strsignal.texi: Renamed from
36999         doc/glibc-functions/strsignal.texi.
37000         * doc/posix-functions/strxfrm_l.texi: Renamed from
37001         doc/glibc-functions/strxfrm_l.texi.
37002         * doc/posix-functions/timer_gettime.texi: Renamed from
37003         doc/glibc-functions/timer_gettime.texi.
37004         * doc/posix-functions/tolower_l.texi: Renamed from
37005         doc/glibc-functions/tolower_l.texi.
37006         * doc/posix-functions/toupper_l.texi: Renamed from
37007         doc/glibc-functions/toupper_l.texi.
37008         * doc/posix-functions/towctrans_l.texi: Renamed from
37009         doc/glibc-functions/towctrans_l.texi.
37010         * doc/posix-functions/towlower_l.texi: Renamed from
37011         doc/glibc-functions/towlower_l.texi.
37012         * doc/posix-functions/towupper_l.texi: Renamed from
37013         doc/glibc-functions/towupper_l.texi.
37014         * doc/posix-functions/uselocale.texi: Renamed from
37015         doc/glibc-functions/uselocale.texi.
37016         * doc/posix-functions/vdprintf.texi: Renamed from
37017         doc/glibc-functions/vdprintf.texi.
37018         * doc/posix-functions/wcpcpy.texi:
37019         Renamed from doc/glibc-functions/wcpcpy.texi.
37020         * doc/posix-functions/wcpncpy.texi: Renamed from
37021         doc/glibc-functions/wcpncpy.texi.
37022         * doc/posix-functions/wcscasecmp.texi: Renamed from
37023         doc/glibc-functions/wcscasecmp.texi.
37024         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
37025         doc/glibc-functions/wcscasecmp_l.texi.
37026         * doc/posix-functions/wcscoll_l.texi: Renamed from
37027         doc/glibc-functions/wcscoll_l.texi.
37028         * doc/posix-functions/wcsdup.texi: Renamed from
37029         doc/glibc-functions/wcsdup.texi.
37030         * doc/posix-functions/wcsncasecmp.texi: Renamed from
37031         doc/glibc-functions/wcsncasecmp.texi.
37032         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
37033         doc/glibc-functions/wcsncasecmp_l.texi.
37034         * doc/posix-functions/wcsnlen.texi: Renamed from
37035         doc/glibc-functions/wcsnlen.texi.
37036         * doc/posix-functions/wcsnrtombs.texi: Renamed from
37037         doc/glibc-functions/wcsnrtombs.texi.
37038         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
37039         doc/glibc-functions/wcsxfrm_l.texi.
37040         * doc/posix-functions/wctrans_l.texi: Renamed from
37041         doc/glibc-functions/wctrans_l.texi.
37042         * doc/posix-functions/wctype_l.texi: Renamed from
37043         doc/glibc-functions/wctype_l.texi.
37044         * doc/gnulib.texi (Function Substitutes): Add these subsections.
37045         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
37046         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
37047         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
37048         these subsections.
37049         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
37050         Remove sections.
37051
37052 2008-12-14  Bruno Haible  <bruno@clisp.org>
37053
37054         Update doc for POSIX:2008.
37055         * doc/posix-functions/*.texi: Update URL of POSIX specification.
37056
37057 2008-12-14  Bruno Haible  <bruno@clisp.org>
37058
37059         Update doc for POSIX:2008.
37060         * doc/pastposix-functions/bcmp.texi: Renamed from
37061         doc/posix-functions/bcmp.texi.
37062         * doc/pastposix-functions/bcopy.texi: Renamed from
37063         doc/posix-functions/bcopy.texi.
37064         * doc/pastposix-functions/bsd_signal.texi: Renamed from
37065         doc/posix-functions/bsd_signal.texi.
37066         * doc/pastposix-functions/bzero.texi: Renamed from
37067         doc/posix-functions/bzero.texi.
37068         * doc/pastposix-functions/ecvt.texi: Renamed from
37069         doc/posix-functions/ecvt.texi.
37070         * doc/pastposix-functions/fcvt.texi: Renamed from
37071         doc/posix-functions/fcvt.texi.
37072         * doc/pastposix-functions/ftime.texi: Renamed from
37073         doc/posix-functions/ftime.texi.
37074         * doc/pastposix-functions/gcvt.texi: Renamed from
37075         doc/posix-functions/gcvt.texi.
37076         * doc/pastposix-functions/getcontext.texi: Renamed from
37077         doc/posix-functions/getcontext.texi.
37078         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
37079         doc/posix-functions/gethostbyaddr.texi.
37080         * doc/pastposix-functions/gethostbyname.texi: Renamed from
37081         doc/posix-functions/gethostbyname.texi.
37082         * doc/pastposix-functions/getwd.texi: Renamed from
37083         doc/posix-functions/getwd.texi.
37084         * doc/pastposix-functions/h_errno.texi: Renamed from
37085         doc/posix-functions/h_errno.texi.
37086         * doc/pastposix-functions/index.texi: Renamed from
37087         doc/posix-functions/index.texi.
37088         * doc/pastposix-functions/makecontext.texi: Renamed from
37089         doc/posix-functions/makecontext.texi.
37090         * doc/pastposix-functions/mktemp.texi: Renamed from
37091         doc/posix-functions/mktemp.texi.
37092         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
37093         doc/posix-functions/pthread_attr_getstackaddr.texi.
37094         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
37095         doc/posix-functions/pthread_attr_setstackaddr.texi.
37096         * doc/pastposix-functions/rindex.texi: Renamed from
37097         doc/posix-functions/rindex.texi.
37098         * doc/pastposix-functions/scalb.texi: Renamed from
37099         doc/posix-functions/scalb.texi.
37100         * doc/pastposix-functions/setcontext.texi: Renamed from
37101         doc/posix-functions/setcontext.texi.
37102         * doc/pastposix-functions/swapcontext.texi: Renamed from
37103         doc/posix-functions/swapcontext.texi.
37104         * doc/pastposix-functions/ualarm.texi: Renamed from
37105         doc/posix-functions/ualarm.texi.
37106         * doc/pastposix-functions/usleep.texi: Renamed from
37107         doc/posix-functions/usleep.texi.
37108         * doc/pastposix-functions/vfork.texi: Renamed from
37109         doc/posix-functions/vfork.texi.
37110         * doc/pastposix-functions/wcswcs.texi: Renamed from
37111         doc/posix-functions/wcswcs.texi.
37112         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
37113         (Function Substitutes): Update.
37114
37115 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37116
37117         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
37118         m4/strerror.m4.
37119
37120 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37121             Bruno Haible  <bruno@clisp.org>
37122
37123         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
37124
37125 2008-12-13  Bruno Haible  <bruno@clisp.org>
37126
37127         * modules/strtoull (Depends-on): Remove unistd.
37128
37129 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37130
37131         * modules/strtoull (Depends-on): Add stdlib.
37132
37133 2008-12-11  Simon Josefsson  <simon@josefsson.org>
37134
37135         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
37136
37137 2008-12-10  Jim Meyering  <meyering@redhat.com>
37138
37139         gl_ASSERT: don't say assertions are disabled when they're not
37140         * m4/assert.m4 (gl_ASSERT): Do not make configure report
37141         "checking whether to enable assertions... no", when they are in
37142         fact enabled.  This is solely a bug in the output of configure.
37143         In spite of saying "no", NDEBUG was not defined in that case.
37144         Also, as noted by Eric Blake, leave assertions enabled upon
37145         --enable-assert=INVALID.
37146
37147 2008-12-10  Bruno Haible  <bruno@clisp.org>
37148
37149         Change MODULES.html to refer to POSIX:2008 where possible.
37150         * MODULES.html.sh (POSIX2008_URL): New variable.
37151         (posix_headers): Remove sys/timeb, ucontext.
37152         (posix2001_headers): New variable.
37153         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
37154         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
37155         index, makecontext, mktemp, pthread_attr_getstackaddr,
37156         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
37157         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
37158         (posix2001_functions): New variable.
37159         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
37160         otherwise.
37161
37162 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37163
37164         add missing include to parse-duration.c
37165         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
37166         * modules/parse-duration (Depends-on): Add xalloc.
37167
37168         fix sed script reading maint.mk
37169         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
37170         (syntax-check-rules): Use it.
37171
37172 2008-12-09  Bruno Haible  <bruno@clisp.org>
37173
37174         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
37175         MacOS X 10.4/PowerPC.
37176         Reported by Simon Josefsson.
37177
37178 2008-12-08  Jim Meyering  <meyering@redhat.com>
37179
37180         work around mingw's lack of some S_IF definitions
37181         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
37182         Reported by Simon Josefsson.
37183
37184 2008-12-08  Bruno Haible  <bruno@clisp.org>
37185
37186         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
37187         applied to variables. Needed on MacOS X 10.4/PowerPC.
37188         Reported by Simon Josefsson.
37189
37190 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
37191         and Eric Blake  <ebb9@byu.net>
37192
37193         assert: honor --enable-assert
37194         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
37195         order to honor --enable-assert, rather than treating it as a
37196         synonym for --disable-assert.
37197
37198 2008-12-08  Jim Meyering  <meyering@redhat.com>
37199
37200         * lib/posixtm.c: Remove now-useless declaration of mktime.
37201
37202         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
37203
37204 2008-12-07  Bruno Haible  <bruno@clisp.org>
37205
37206         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
37207         test_once): Mark functions as static.
37208         * tests/test-tls.c (test_tls): Likewise.
37209
37210 2008-12-07  Bruno Haible  <bruno@clisp.org>
37211
37212         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
37213         iconv_register_autodetect.
37214
37215 2008-12-07  Jim Meyering  <meyering@redhat.com>
37216
37217         posixtm.c: avoid a warning
37218         * lib/posixtm.c (posixtime): Don't initialize tm0.
37219         It's no longer needed to placate gcc4's -Wuninitialized,
37220         and the attempt to placate would elicit a new warning.
37221
37222         unicodeio.c: mark unused parameters
37223         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
37224         (fallback_failure_callback): Likewise.
37225
37226 2008-12-07  Bruno Haible  <bruno@clisp.org>
37227
37228         * gnulib-tool (func_create_testdir): When building the tests
37229         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
37230         Reported by Simon Josefsson.
37231
37232 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37233
37234         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
37235
37236 2008-12-06  Bruno Haible  <bruno@clisp.org>
37237
37238         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
37239         Suggested by Eric Blake.
37240
37241 2008-12-06  Bruno Haible  <bruno@clisp.org>
37242
37243         Fix a c-stack test failure on MacOS X.
37244         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
37245         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
37246         handler for SIGBUS as well.
37247         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
37248         install a signal handler for SIGBUS as well.
37249         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
37250
37251 2008-12-06  Bruno Haible  <bruno@clisp.org>
37252
37253         Advocacy documentation.
37254         * doc/gnulib-intro.texi (Benefits): New section.
37255         * doc/gnulib.texi: Update.
37256
37257 2008-12-06  Bruno Haible  <bruno@clisp.org>
37258
37259         Document the 'manywarnings' module.
37260         * doc/manywarnings.texi: New file.
37261         * doc/gnulib.texi: Include it.
37262
37263 2008-12-05  Eric Blake  <ebb9@byu.net>
37264
37265         tests: silence some gcc warnings
37266         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
37267         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
37268         type mismatches.
37269
37270 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37271             Bruno Haible  <bruno@clisp.org>
37272
37273         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
37274
37275 2008-11-29  Jim Meyering  <meyering@redhat.com>
37276
37277         unicodeio.c: mark unused parameters
37278         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
37279         (fallback_failure_callback): Likewise.
37280
37281         fts: fix a thinko
37282         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
37283         (set_stat_type): Return S_IF*-valued "type" directly.
37284         Prompted by James Youngman's spotting a related bug.
37285         Confirmed by further testing through find.
37286
37287         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
37288         * lib/fts.c (D_TYPE): Define.
37289         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
37290         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
37291         (s_ifmt_shift_bits): New function.
37292         (set_stat_type): New function.
37293         (fts_build): When not calling fts_stat, call set_stat_type
37294         to propagate dirent.d_type info to fts_read caller.
37295         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
37296         fts_statp->st_mode type information may be valid.
37297
37298 2008-11-28  Simon Josefsson  <simon@josefsson.org>
37299
37300         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
37301         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
37302         <sds@gnu.org>.
37303
37304 2008-11-20  Bruno Haible  <bruno@clisp.org>
37305
37306         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
37307         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
37308         INCLUDE_NEXT.
37309         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
37310         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
37311         * modules/math (Makefile.am): Substitute
37312         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
37313         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37314
37315 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
37316             Bruno Haible  <bruno@clisp.org>
37317
37318         * lib/stdint.in.h: Define all type macros so that their expansion is
37319         a single typedef'ed token. Fixes a compilation failure in Boost which
37320         does "using ::int8_t;".
37321
37322 2008-11-18  Simon Josefsson  <simon@josefsson.org>
37323
37324         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
37325         gl_MANYWARN_ALL_GCC.
37326         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
37327         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
37328         * modules/manywarnings: New file.
37329         * MODULES.html.sh: Mention manywarnings module.
37330
37331 2008-11-18  Bruno Haible  <bruno@clisp.org>
37332
37333         * doc/gnulib-tool.texi (Unit tests): New section.
37334
37335 2008-11-18  Simon Josefsson  <simon@josefsson.org>
37336
37337         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
37338         paths like 'lib/po/foo.po'.
37339
37340 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37341
37342         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
37343         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
37344
37345 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37346
37347         * m4/warnings.m4: Use CPPFLAGS to really check whether the
37348         parameter works.
37349
37350 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37351
37352         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
37353
37354 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37355
37356         * modules/parse-duration-tests: New file.
37357         * tests/test-parse-duration.sh: New file.
37358         * tests/test-parse-duration.c: New file.
37359
37360         New module 'parse-duration'.
37361         * lib/parse-duration.h: New file.
37362         * lib/parse-duration.c: New file.
37363         * modules/parse-duration: New file.
37364
37365 2008-11-17  Bruno Haible  <bruno@clisp.org>
37366
37367         * tests/test-select-out.sh: Comment out the first pipe test.
37368         Reported by Simon Josefsson.
37369
37370 2008-11-17  Bruno Haible  <bruno@clisp.org>
37371
37372         * modules/getaddrinfo (Depends-on): Add servent, hostent.
37373         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
37374         gl_HOSTENT.
37375
37376 2008-11-17  Bruno Haible  <bruno@clisp.org>
37377
37378         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
37379         -lnetwork and -lnet. Needed for Haiku and BeOS.
37380
37381 2008-11-16  Bruno Haible  <bruno@clisp.org>
37382
37383         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
37384
37385 2008-11-16  Bruno Haible  <bruno@clisp.org>
37386
37387         Avoid test failure on Haiku.
37388         * tests/test-fsync.c: Include <errno.h>.
37389         (main): Don't require that fsync (0) fails.
37390
37391 2008-11-15  Bruno Haible  <bruno@clisp.org>
37392
37393         New module 'hostent'.
37394         * modules/hostent: New file.
37395         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
37396
37397 2008-11-15  Bruno Haible  <bruno@clisp.org>
37398
37399         New module 'servent'.
37400         * modules/servent: New file.
37401         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
37402
37403 2008-11-15  Bruno Haible  <bruno@clisp.org>
37404
37405         Avoid generating same test program with two different rules.
37406         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
37407         test-frexp to test-frexp-nolibm.
37408         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
37409         test-frexpl to test-frexpl-nolibm.
37410
37411 2008-11-15  Bruno Haible  <bruno@clisp.org>
37412
37413         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
37414         $(FREXPL_LIBM).
37415
37416 2008-11-15  Bruno Haible  <bruno@clisp.org>
37417
37418         * lib/netdb.in.h: Activate the definitions also when the system's
37419         <netdb.h> has 'struct addrinfo'.
37420         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
37421         EAI_OVERFLOW or AI_NUMERICSERV.
37422         * doc/posix-headers/netdb.texi: Document the problem.
37423
37424 2008-11-15  Bruno Haible  <bruno@clisp.org>
37425
37426         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
37427
37428         Make the 'sched' module work on platforms where <sched.h> exists but
37429         is incomplete (such as Haiku).
37430         * lib/sched.in.h; Include the system's <sched.h> if it exists.
37431         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
37432         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
37433         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
37434         HAVE_STRUCT_SCHED_PARAM.
37435         * modules/sched (Depends-on): Add include_next.
37436         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
37437         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
37438         * doc/posix-headers/sched.texi: Document the issue.
37439
37440 2008-11-13  Jim Meyering  <meyering@redhat.com>
37441
37442         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
37443         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
37444         test would fail due to the difference in the Report bugs to ...
37445         line.  The expected address is empty, "<>", while the actual
37446         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
37447
37448 2008-11-12  Bruno Haible  <bruno@clisp.org>
37449
37450         lstat: don't compile lstat.c on systems lacking lstat
37451         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
37452         which don't have lstat; this is handled by lib/sys_stat.in.h already.
37453         Reported by Daniel P. Berrange via Jim Meyering.
37454
37455 2008-11-12  Jim Meyering  <meyering@redhat.com>
37456
37457         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
37458
37459 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37460
37461         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
37462         instead.
37463
37464 2008-11-12  Bruno Haible  <bruno@clisp.org>
37465
37466         * lib/unicodeio.c: Include unistr.h.
37467         (utf8_wctomb): Remove function.
37468         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
37469
37470 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37471
37472         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
37473         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
37474         <bruno@clisp.org>.
37475         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
37476
37477 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37478
37479         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
37480         * doc/gnulib.texi: Add section for warnings.
37481
37482 2008-11-11  Bruno Haible  <bruno@clisp.org>
37483
37484         * lib/sockets.h: Add a comment.
37485
37486 2008-11-11  Karl Berry  <karl@gnu.org>
37487
37488         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
37489
37490 2008-11-11  Eric Blake  <ebb9@byu.net>
37491
37492         fdl.texi: avoid git symlinks
37493         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
37494
37495 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37496
37497         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
37498
37499 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37500
37501         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
37502         (gl_WARN_ADD): Substitute $2 if literal.
37503
37504 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37505
37506         * m4/warning.m4: Remove.
37507
37508 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37509
37510         * m4/warnings.m4: Almost complete rewrite. :-)
37511
37512 2008-11-10  Simon Josefsson  <simon@josefsson.org>
37513
37514         * modules/warnings: New module.
37515         * m4/warnings.m4: New file.
37516         * MODULES.html.sh: Mention warnings module.
37517         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
37518         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37519
37520 2008-11-10  Eric Blake  <ebb9@byu.net>
37521
37522         fdl.texi: make a symlink to the latest version
37523         * doc/standards.texi: Revert today's earlier change.
37524         * doc/fdl-1.2.texi: Rename from old fdl.texi...
37525         * doc/fdl.texi: ...and replace this with a symlink to the newer
37526         fdl-1.3.texi.
37527
37528 2008-11-10  Bruno Haible  <bruno@clisp.org>
37529
37530         * tests/test-select-fd.c (main): Accept the result file name as fourth
37531         argument.
37532         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
37533         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
37534
37535 2008-11-10  Bruno Haible  <bruno@clisp.org>
37536
37537         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
37538         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
37539         as autoconf-substituted macros.
37540         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
37541         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
37542         gl_NETDB_H_DEFAULTS. Set these variables.
37543         * modules/netdb (Makefile.am): Substitute these variables.
37544
37545 2008-11-10  Eric Blake  <ebb9@byu.net>
37546
37547         standards.texi: include correct file for FDL 1.3
37548         * doc/standards.texi (GNU Free Documentation License): Change
37549         include file to pull in FDL 1.3, not 1.2.
37550
37551         fdl.texi: revert accidental change to license
37552         * doc/fdl.texi: This is FDL 1.2, not 1.3.
37553
37554 2008-11-10  Bruno Haible  <bruno@clisp.org>
37555
37556         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
37557         cross-compiling guesses also when the native compile gives no result.
37558
37559 2008-11-10  Bruno Haible  <bruno@clisp.org>
37560
37561         * lib/spawni.c (__spawni): Force variable into the stack.
37562
37563 2008-11-10  Bruno Haible  <bruno@clisp.org>
37564
37565         Add support for Haiku.
37566         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
37567         glibc and BeOS, but also on Haiku.
37568         * lib/fpurge.c (fpurge): Likewise.
37569         * lib/freadable.c (freadable): Likewise.
37570         * lib/freadahead.c (freadahead): Likewise.
37571         * lib/freading.c (freading): Likewise.
37572         * lib/freadptr.c (freadptr): Likewise.
37573         * lib/freadseek.c (freadptrinc): Likewise.
37574         * lib/fseeko.c (rpl_fseeko): Likewise.
37575         * lib/fseterr.c (fseterr): Likewise.
37576         * lib/fwritable.c (fwritable): Likewise.
37577         * lib/fwriting.c (fwriting): Likewise.
37578         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
37579
37580 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37581
37582         * lib/config.charset: Treat Haiku like BeOS.
37583
37584 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37585
37586         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
37587         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
37588
37589 2008-11-08  Bruno Haible  <bruno@clisp.org>
37590
37591         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
37592         AC_CACHE_CHECK.
37593
37594 2008-11-08  Bruno Haible  <bruno@clisp.org>
37595
37596         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
37597
37598 2008-11-08  Bruno Haible  <bruno@clisp.org>
37599
37600         * tests/test-select-fd.c: New file.
37601         * tests/test-select-in.sh: New file.
37602         * tests/test-select-out.sh: New file.
37603         * tests/test-select-stdin.c: New file.
37604         * modules/select-tests (Files): Add the new files.
37605         (Depends-on): Add gettimeofday.
37606         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
37607         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
37608         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
37609
37610 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
37611             Bruno Haible  <bruno@clisp.org>
37612
37613         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
37614
37615 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
37616
37617         * build-aux/pmccabe2html: Added support for C++ source files.
37618
37619 2008-11-05  Ben Pfaff  <blp@gnu.org>
37620
37621         Fix lib/close.c build on Windows.
37622         * modules/close (Files): Add lib/w32sock.h.
37623
37624 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
37625
37626         Accept Bison's NEWS format.
37627         * build-aux/announce-gen (print_news_deltas): Tweak
37628         $re_prefix.
37629
37630 2008-11-04  Bruno Haible  <bruno@clisp.org>
37631
37632         * modules/random_r (Maintainer): Add glibc.
37633
37634 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37635
37636         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
37637         by karl@freefriends.org (Karl Berry).
37638         * doc/alloca.texi: Likewise.
37639         * doc/c-ctype.texi: Likewise.
37640         * doc/c-strcase.texi: Likewise.
37641         * doc/c-strcaseeq.texi: Likewise.
37642         * doc/c-strcasestr.texi: Likewise.
37643         * doc/c-strstr.texi: Likewise.
37644         * doc/c-strtod.texi: Likewise.
37645         * doc/c-strtold.texi: Likewise.
37646         * doc/ctime.texi: Likewise.
37647         * doc/error.texi: Likewise.
37648         * doc/fdl.texi: Likewise.
37649         * doc/gcd.texi: Likewise.
37650         * doc/getdate.texi: Likewise.
37651         * doc/gnulib-intro.texi: Likewise.
37652         * doc/gnulib-tool.texi: Likewise.
37653         * doc/gnulib.texi: Likewise.
37654         * doc/inet_ntoa.texi: Likewise.
37655         * doc/maintain.texi: Likewise.
37656         * doc/make-stds.texi: Likewise.
37657         * doc/quote.texi: Likewise.
37658         * doc/regexprops-generic.texi: Likewise.
37659         * doc/standards.texi: Likewise.
37660         * doc/verify.texi: Likewise.
37661         * doc/visibility.texi: Likewise.
37662         * doc/gnulib.texi (GNU Free Documentation License): Include
37663         fdl-1.3.texi instead of fdl.texi.
37664
37665 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37666
37667         * doc/fdl-1.3.texi: New file, from
37668         <http://www.gnu.org/licenses/fdl-1.3.texi>.
37669         * modules/fdl-1.3: Add.
37670         * MODULES.html.sh: Add fdl-1.3.
37671
37672 2008-11-03  Bruno Haible  <bruno@clisp.org>
37673
37674         Make determination of absolute name of header file work with AIX xlc.
37675         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
37676         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
37677         preprocessing.
37678         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37679         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37680
37681 2008-11-03  Simon Josefsson  <simon@josefsson.org>
37682
37683         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
37684         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
37685         <ludo@gnu.org>.
37686
37687 2008-11-02  Bruno Haible  <bruno@clisp.org>
37688
37689         Mark 'strpbrk' obsolete.
37690         * modules/strpbrk (Status, Notice): New sections.
37691         * modules/strtok_r (Depends-on): Add strpbrk.
37692
37693 2008-11-02  Bruno Haible  <bruno@clisp.org>
37694
37695         Mark 'strdup' obsolete.
37696         * modules/strdup (Status, Notice): New sections.
37697         * modules/findprog (Depends-on): Add strdup.
37698         * modules/getaddrinfo (Depends-on): Likewise.
37699         * modules/localename (Depends-on): Likewise.
37700         * modules/relocatable-lib (Depends-on): Likewise.
37701         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
37702         * modules/relocatable-prog (Depends-on): Likewise.
37703         * modules/trim (Depends-on): Likewise.
37704         * modules/unictype/gen-ctype (Depends-on): Likewise.
37705         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37706
37707 2008-11-02  Bruno Haible  <bruno@clisp.org>
37708
37709         Mark 'strcspn' obsolete.
37710         * modules/strcspn (Status, Notice): New sections.
37711
37712 2008-11-02  Bruno Haible  <bruno@clisp.org>
37713
37714         Mark 'rmdir' obsolete.
37715         * modules/rmdir (Status, Notice): New sections.
37716         * modules/clean-temp (Depends-on): Add rmdir.
37717         * modules/openat (Depends-on): Likewise.
37718
37719 2008-11-02  Bruno Haible  <bruno@clisp.org>
37720
37721         Mark 'raise' obsolete.
37722         * modules/raise (Status, Notice): New sections.
37723         (Include): Specify <signal.h>.
37724         * modules/stdio (Depends-on): Add raise.
37725         * modules/write (Depends-on): Likewise.
37726
37727 2008-11-02  Bruno Haible  <bruno@clisp.org>
37728
37729         Mark 'memset' obsolete.
37730         * modules/memset (Status, Notice): New sections.
37731
37732 2008-11-02  Bruno Haible  <bruno@clisp.org>
37733
37734         Mark 'memmove' obsolete.
37735         * modules/memmove (Status, Notice): New sections.
37736         * modules/argp (Depends-on): Add memmove.
37737         * modules/argz (Depends-on): Likewise.
37738         * modules/canonicalize (Depends-on): Likewise.
37739         * modules/canonicalize-lgpl (Depends-on): Likewise.
37740         * modules/fts (Depends-on): Likewise.
37741         * modules/getcwd (Depends-on): Likewise.
37742         * modules/human (Depends-on): Likewise.
37743         * modules/regex (Depends-on): Likewise.
37744         * modules/striconveh (Depends-on): Likewise.
37745         * modules/trim (Depends-on): Likewise.
37746         * modules/unistr/u8-move (Depends-on): Likewise.
37747         * modules/unistr/u16-move (Depends-on): Likewise.
37748         * modules/unistr/u32-move (Depends-on): Likewise.
37749
37750 2008-11-02  Bruno Haible  <bruno@clisp.org>
37751
37752         Mark 'memcpy' obsolete.
37753         * modules/memcpy (Status, Notice): New sections.
37754
37755 2008-11-02  Bruno Haible  <bruno@clisp.org>
37756
37757         Mark 'memcmp' obsolete.
37758         * modules/memcmp (Status, Notice): New sections.
37759         * modules/argmatch (Depends-on): Add memchr.
37760         * modules/backupfile (Depends-on): Likewise.
37761         * modules/c-strcasestr (Depends-on): Likewise.
37762         * modules/crypto/des (Depends-on): Likewise.
37763         * modules/csharpcomp (Depends-on): Likewise.
37764         * modules/fnmatch (Depends-on): Likewise.
37765         * modules/git-merge-changelog (Depends-on): Likewise.
37766         * modules/isnand (Depends-on): Likewise.
37767         * modules/isnand-nolibm (Depends-on): Likewise.
37768         * modules/isnanf (Depends-on): Likewise.
37769         * modules/isnanf-nolibm (Depends-on): Likewise.
37770         * modules/isnanl (Depends-on): Likewise.
37771         * modules/isnanl-nolibm (Depends-on): Likewise.
37772         * modules/mbchar (Depends-on): Likewise.
37773         * modules/memcoll (Depends-on): Likewise.
37774         * modules/quotearg (Depends-on): Likewise.
37775         * modules/regex (Depends-on): Likewise.
37776         * modules/relocatable-prog (Depends-on): Likewise.
37777         * modules/same (Depends-on): Likewise.
37778         * modules/signbit (Depends-on): Likewise.
37779         * modules/strcasestr-simple (Depends-on): Likewise.
37780         * modules/unictype/gen-ctype (Depends-on): Likewise.
37781         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37782         * modules/uniname/uniname (Depends-on): Likewise.
37783         * modules/unistr/u8-cmp (Depends-on): Likewise.
37784
37785 2008-11-02  Bruno Haible  <bruno@clisp.org>
37786
37787         Mark 'memchr' obsolete.
37788         * modules/memchr (Status, Notice): New sections.
37789         * modules/argp (Depends-on): Add memchr.
37790         * modules/base64 (Depends-on): Likewise.
37791         * modules/c-strcasestr (Depends-on): Likewise.
37792         * modules/chdir-long (Depends-on): Likewise.
37793         * modules/fnmatch (Depends-on): Likewise.
37794         * modules/getsubopt (Depends-on): Likewise.
37795         * modules/git-merge-changelog (Depends-on): Likewise.
37796         * modules/glob (Depends-on): Likewise.
37797         * modules/strcasestr-simple (Depends-on): Likewise.
37798         * modules/strnlen (Depends-on): Likewise.
37799
37800 2008-11-02  Bruno Haible  <bruno@clisp.org>
37801
37802         Mark 'atexit' obsolete.
37803         * modules/atexit (Status, Notice): New sections.
37804         * modules/chdir-long (Depends-on): Add atexit.
37805         * modules/wait-process (Depends-on): Likewise.
37806
37807 2008-11-02  Bruno Haible  <bruno@clisp.org>
37808
37809         * gnulib-tool: New option --with-obsolete.
37810         (func_usage): Document it.
37811         (func_modules_transitive_closure): Drop obsolete dependencies if
37812         incobsolete is not true.
37813         (func_import): Read and save the incobsolete variable to the cache.
37814
37815 2008-11-02  Bruno Haible  <bruno@clisp.org>
37816
37817         * modules/TEMPLATE-EXTENDED: New field 'Status'.
37818         * gnulib-tool: New option --extract-status.
37819         (func_usage): Document it.
37820         (sed_extract_prog): Recognize it.
37821         (func_get_status): New function.
37822
37823 2008-10-30  Simon Josefsson  <simon@josefsson.org>
37824
37825         * modules/sockets (License): Change from LGPL to LGPLv2+.
37826
37827 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37828
37829         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
37830
37831 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37832
37833         * MODULES.html.sh (Support for systems lacking POSIX:2001):
37834         Mention times and sys_times.
37835         * modules/sys_times, modules/sys_times-tests: New modules.
37836         * modules/times, modules/times-tests: Likewise
37837         * m4/sys_times_h.m4: New file.
37838         * lib/sys_times.in.h: Likewise
37839         * lib/times.c: Likewise.
37840         * tests/test-sys_times.c: Likewise.
37841         * tests/test-times.c: Likewise.
37842         * doc/posix-headers/sys_times.texi: Update.
37843         * doc/posix-functions/times.texi: Update.
37844
37845 2008-10-28  Jim Meyering  <meyering@redhat.com>
37846
37847         * modules/tempname (Depends-on): Add lstat.
37848
37849         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
37850
37851 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37852
37853         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
37854         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
37855         using idiom used elsewhere in gnulib.
37856
37857 2008-10-27  Jim Meyering  <meyering@redhat.com>
37858
37859         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
37860
37861 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37862
37863         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
37864         TESTS_ENVIRONMENT, for shell scripts that needs to call built
37865         programs.
37866         * tests/test-argp-2.sh: Use $EXEEXT when needed.
37867
37868 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37869
37870         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
37871
37872 2008-10-27  Bruno Haible  <bruno@clisp.org>
37873
37874         * tests/test-lstat.c: Include <stdio.h>.
37875
37876 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37877
37878         * modules/lstat-tests: New module.
37879         * tests/test-lstat.c: New file.
37880
37881 2008-10-26  Jim Meyering  <meyering@redhat.com>
37882
37883         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
37884
37885 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37886             Bruno Haible  <bruno@clisp.org>
37887
37888         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
37889         * modules/configmake (Include): Add a note that the include must come
37890         after all system headers.
37891         * lib/javaversion.c: Include configmake.h after all other includes.
37892
37893 2008-10-26  Bruno Haible  <bruno@clisp.org>
37894
37895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
37896         HAVE_STRUCT_RANDOM_DATA to 1.
37897         (gl_STDLIB_H): Simplify.
37898
37899 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37900
37901         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
37902         substitute HAVE_STRUCT_RANDOM_DATA.
37903         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
37904         random_data.
37905         * modules/stdlib (Makefile.am): Substitute
37906         HAVE_STRUCT_RANDOM_DATA.
37907
37908 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37909
37910         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
37911         * doc/gnulib-intro.texi (Copyright): Likewise.
37912
37913 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37914
37915         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
37916         findings.
37917
37918 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
37919             Bruno Haible  <bruno@clisp.org>
37920
37921         * lib/unistd.in.h: Include <winsock2.h>.
37922         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
37923         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
37924         Provide dummy declarations.
37925         (gethostname): Override.
37926         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
37927         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
37928         gl_PREREQ_SYS_H_WINSOCK2.
37929         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
37930         * doc/posix-functions/gethostname.texi: More details.
37931
37932 2008-10-25  Bruno Haible  <bruno@clisp.org>
37933
37934         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37935         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
37936         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
37937
37938         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
37939         here ...
37940         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
37941         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
37942         gl_UNISTD_H_DEFAULTS.
37943
37944 2008-10-25  Eric Blake  <ebb9@byu.net>
37945
37946         signbit: avoid spurious compiler failure
37947         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
37948         declarations inside function.
37949
37950 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37951             Bruno Haible  <bruno@clisp.org>
37952
37953         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
37954         * modules/random_r (Depends-on): Add stdint.
37955
37956 2008-10-24  Bruno Haible  <bruno@clisp.org>
37957
37958         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
37959         Eggert.
37960         * modules/strerror (License): Likewise.
37961
37962 2008-10-24  Jim Meyering  <meyering@redhat.com>
37963
37964         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
37965         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
37966
37967 2008-10-24  Eric Blake  <ebb9@byu.net>
37968
37969         getgroups: fix compilation when getgroups is available
37970         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
37971         but with <config.h> override of getgroups disabled.
37972
37973 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37974
37975         * doc/gnulib.texi (Header files): Add note about C++ problems.
37976         Explained by Bruno Haible <bruno@clisp.org>.
37977
37978 2008-10-23  Bruno Haible  <bruno@clisp.org>
37979
37980         Define a dummy SA_NODEFER macro on Interix.
37981         * lib/signal.in.h (SA_NODEFER): Define fallback.
37982         Reported by Aleksey Cheusov <cheusov@tut.by> via
37983         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
37984
37985 2008-10-23  Bruno Haible  <bruno@clisp.org>
37986
37987         * modules/freadahead (License): Change to LGPLv2+.
37988         Suggested by Simon Josefsson.
37989
37990 2008-10-23  Jim Meyering  <meyering@redhat.com>
37991
37992         random_r: new module
37993         * modules/random_r: New file.
37994         * m4/random_r.m4: New file.
37995         * lib/random_r.c: New file, from glibc.
37996         * modules/random_r-tests: New file.
37997         * tests/test-random_r.c: New file.
37998         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
37999          Declare.
38000         (RAND_MAX): Define.
38001         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
38002         * modules/stdlib: Substitute them, too.
38003         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
38004         * doc/glibc-functions/initstate_r.texi: Mention the new module.
38005         * doc/glibc-functions/random_r.texi: Likewise.
38006         * doc/glibc-functions/setstate_r.texi: Likewise.
38007         * doc/glibc-functions/srandom_r.texi: Likewise.
38008         * config/srclist.txt: Mention it.
38009
38010 2008-10-23  David Lutterkort  <lutter@redhat.com>
38011
38012         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
38013         link requirement
38014
38015 2008-10-23  Jim Meyering  <meyering@redhat.com>
38016
38017         selinux-h: mark parameters of stub functions as intentionally unused
38018         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
38019         * lib/se-context.in.h: Likewise.
38020
38021 2008-10-22  Simon Josefsson  <simon@josefsson.org>
38022
38023         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
38024
38025 2008-10-22  Simon Josefsson  <simon@josefsson.org>
38026
38027         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
38028
38029 2008-10-22  Eric Blake  <ebb9@byu.net>
38030
38031         glthread/thread: avoid compiler warning
38032         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
38033         Add unreachable abort to silence compiler.
38034
38035 2008-10-22  Eric Blake  <ebb9@byu.net>
38036
38037         netdb: also supply struct addrinfo for cygwin 1.5.x
38038         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
38039         older cygwin.
38040         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
38041         cygwin.
38042         * doc/posix-headers/netdb.texi (netdb.h): Document this.
38043
38044 2008-10-22  Bruno Haible  <bruno@clisp.org>
38045
38046         * users.txt: Update entry about pspp.
38047
38048 2008-10-21  Bruno Haible  <bruno@clisp.org>
38049
38050         Simplification.
38051         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
38052         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
38053
38054         Simplification.
38055         * lib/ioctl.c (ioctl): Don't undefine.
38056         * lib/socket.c (socket): Don't undefine.
38057
38058         Remove unused module indicator macros.
38059         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
38060         GNULIB_$1 as a C macro.
38061
38062         * doc/posix-functions/close.texi: Undo last change.
38063         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
38064         Windows platforms.
38065
38066 2008-10-21  Bruno Haible  <bruno@clisp.org>
38067
38068         Add gethostname() declaration to <unistd.h>.
38069         * lib/unistd.in.h (gethostname): New declaration.
38070         * lib/gethostname.c: Include <unistd.h>.
38071         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
38072         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
38073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
38074         and HAVE_GETHOSTNAME.
38075         * modules/gethostname (Depends-on): Add unistd.
38076         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38077         (Include): Specify <unistd.h>.
38078         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
38079         HAVE_GETHOSTNAME.
38080         * tests/test-gethostname.c: Include <unistd.h> first.
38081
38082 2008-10-21  Bruno Haible  <bruno@clisp.org>
38083
38084         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
38085         * modules/select-tests (Depends-on): Likewise.
38086         Reported by Simon Josefsson.
38087
38088 2008-10-21  Simon Josefsson  <simon@josefsson.org>
38089
38090         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
38091         * lib/accept.c: New file, based on winsock.c.
38092         * lib/bind.c: New file, based on winsock.c.
38093         * lib/connect.c: New file, based on winsock.c.
38094         * lib/getpeername.c: New file, based on winsock.c.
38095         * lib/getsockname.c: New file, based on winsock.c.
38096         * lib/getsockopt.c: New file, based on winsock.c.
38097         * lib/ioctl.c: New file, based on winsock.c.
38098         * lib/listen.c: New file, based on winsock.c.
38099         * lib/recv.c: New file, based on winsock.c.
38100         * lib/recvfrom.c: New file, based on winsock.c.
38101         * lib/send.c: New file, based on winsock.c.
38102         * lib/sendto.c: New file, based on winsock.c.
38103         * lib/setsockopt.c: New file, based on winsock.c.
38104         * lib/shutdown.c: New file, based on winsock.c.
38105         * lib/socket.c: New file, based on winsock.c.
38106         * lib/w32sock.h: New file, based on winsock.c.
38107         * lib/winsock.c: Remove file.
38108         * modules/accept: Likewise.
38109         * modules/bind: Likewise.
38110         * modules/connect: Likewise.
38111         * modules/getpeername: Likewise.
38112         * modules/getsockname: Likewise.
38113         * modules/getsockopt: Likewise.
38114         * modules/ioctl: Likewise.
38115         * modules/listen: Likewise.
38116         * modules/recv: Likewise.
38117         * modules/recvfrom: Likewise.
38118         * modules/send: Likewise.
38119         * modules/sendto: Likewise.
38120         * modules/setsockopt: Likewise.
38121         * modules/shutdown: Likewise.
38122         * modules/socket: Use socket.c instead of winsock.c.
38123         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
38124         * doc/posix-functions/accept.texi: Doc fix.
38125         * doc/posix-functions/bind.texi: Doc fix.
38126         * doc/posix-functions/close.texi: Doc fix.
38127         * doc/posix-functions/connect.texi: Doc fix.
38128         * doc/posix-functions/getpeername.texi: Doc fix.
38129         * doc/posix-functions/getsockname.texi: Doc fix.
38130         * doc/posix-functions/getsockopt.texi: Doc fix.
38131         * doc/posix-functions/ioctl.texi: Doc fix.
38132         * doc/posix-functions/listen.texi: Doc fix.
38133         * doc/posix-functions/recv.texi: Doc fix.
38134         * doc/posix-functions/recvfrom.texi: Doc fix.
38135         * doc/posix-functions/send.texi: Doc fix.
38136         * doc/posix-functions/sendto.texi: Doc fix.
38137         * doc/posix-functions/setsockopt.texi: Doc fix.
38138         * doc/posix-functions/shutdown.texi: Doc fix.
38139         * doc/posix-functions/socket.texi: Doc fix.
38140
38141 2008-10-20  Bruno Haible  <bruno@clisp.org>
38142
38143         Take into account the role of SIGABRT_COMPAT on Windows 2008.
38144         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
38145         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
38146         as an alias for SIGABRT.
38147         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
38148         (sigaction): Map it to SIGABRT.
38149         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
38150
38151 2008-10-20  Bruno Haible  <bruno@clisp.org>
38152
38153         * lib/fts.c: Don't include lstat.h.
38154         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
38155
38156         Move the lstat() declaration to <sys/stat.h>.
38157         * lib/lstat.h: Remove file.
38158         * lib/sys_stat.in.h: Add special invocation convention.
38159         (lstat): New declaration.
38160         * lib/lstat.c (orig_lstat): New function.
38161         (rpl_lstat): Use orig_lstat instead of lstat.
38162         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
38163         AC_C_INLINE. Set REPLACE_LSTAT.
38164         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
38165         and REPLACE_LSTAT.
38166         * modules/lstat (Files): Remove lib/lstat.h.
38167         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
38168         (Include): Specify <sys/stat.h> instead of lstat.h.
38169         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
38170         REPLACE_LSTAT.
38171         * NEWS: Mention the change.
38172
38173 2008-10-20  Bruno Haible  <bruno@clisp.org>
38174
38175         * modules/posix_spawn-tests: New file.
38176         * tests/test-posix_spawn3.c: New file.
38177
38178 2008-10-20  Bruno Haible  <bruno@clisp.org>
38179
38180         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
38181         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
38182         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
38183         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
38184         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
38185
38186 2008-10-20  Bruno Haible  <bruno@clisp.org>
38187
38188         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
38189         of posix_spawn on AIX 5.3.
38190
38191 2008-10-20  Bruno Haible  <bruno@clisp.org>
38192
38193         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
38194
38195 2008-10-20  Bruno Haible  <bruno@clisp.org>
38196
38197         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
38198         of AC_LANG_PROGRAM.
38199
38200 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38201
38202         * lib/netdb.in.h: Don't define GNU specific constants until they
38203         are supported or needed.  Reported by Bruno Haible
38204         <bruno@clisp.org>.
38205
38206 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38207
38208         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
38209
38210 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38211
38212         * lib/getaddrinfo.h: Remove file.
38213         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
38214         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
38215         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
38216         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
38217         * modules/netdb: Substitute GNULIB_GETADDRINFO.
38218         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
38219         * tests/test-getaddrinfo.c: Likewise.
38220         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
38221         * NEWS: Mention change.
38222
38223 2008-10-19  Bruno Haible  <bruno@clisp.org>
38224
38225         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
38226
38227 2008-10-19  Bruno Haible  <bruno@clisp.org>
38228
38229         * lib/wait-process.c: Include simply <sys/wait.h>.
38230         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
38231         WIFSTOPPED): Remove fallback definitions.
38232         * modules/wait-process (Depends-on): Add sys_wait.
38233
38234         New module 'sys_wait'.
38235         * modules/sys_wait: New file.
38236         * lib/sys_wait.in.h: New file, partially copied from
38237         lib/wait-process.c.
38238         * m4/sys_wait_h.m4: New file.
38239         * doc/posix-headers/sys_wait.texi: Mention the new module.
38240
38241 2008-10-19  Bruno Haible  <bruno@clisp.org>
38242
38243         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
38244
38245 2008-10-19  Bruno Haible  <bruno@clisp.org>
38246
38247         Assume that waitpid() fills an 'int' status, not a 'union wait'.
38248         * lib/wait-process.c (WAIT_T): Remove type.
38249         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
38250         (wait_subprocess): Update.
38251
38252 2008-10-19  Bruno Haible  <bruno@clisp.org>
38253
38254         New module 'atoll'.
38255         * modules/atoll: New file.
38256         * lib/stdlib.in.h (atoll): New declaration.
38257         * lib/atoll.c: New file, from glibc with modifications.
38258         * m4/atoll.m4: New file.
38259         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
38260         HAVE_ATOLL.
38261         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
38262         * doc/posix-functions/atoll.texi: Mention the new module.
38263
38264 2008-10-19  Bruno Haible  <bruno@clisp.org>
38265
38266         Add strtoull() declaration to <stdlib.h>.
38267         * lib/stdlib.in.h (strtoull): New declaration.
38268         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38269         Set HAVE_STRTOULL.
38270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
38271         HAVE_STRTOULL.
38272         * modules/strtoull (Depends-on): Add stdlib.
38273         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38274         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
38275         HAVE_STRTOULL.
38276
38277 2008-10-19  Bruno Haible  <bruno@clisp.org>
38278
38279         Add strtoll() declaration to <stdlib.h>.
38280         * lib/stdlib.in.h (strtoll): New declaration.
38281         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38282         Set HAVE_STRTOLL.
38283         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
38284         HAVE_STRTOLL.
38285         * modules/strtoll (Depends-on): Add stdlib.
38286         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38287         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
38288
38289 2008-10-19  Bruno Haible  <bruno@clisp.org>
38290
38291         * modules/bcopy (Depends-on): Add strings.
38292         (Include): Specify <strings.h>.
38293
38294 2008-10-19  Bruno Haible  <bruno@clisp.org>
38295
38296         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
38297
38298 2008-10-19  Bruno Haible  <bruno@clisp.org>
38299
38300         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
38301         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
38302         mingw.
38303
38304 2008-10-19  Bruno Haible  <bruno@clisp.org>
38305
38306         * lib/atanl.c: Don't include isnanl.h.
38307         * lib/cosl.c: Likewise.
38308         * lib/ldexpl.c: Likewise.
38309         * lib/logl.c: Likewise.
38310         * lib/sinl.c: Likewise.
38311         * lib/sqrtl.c: Likewise.
38312         * lib/tanl.c: Likewise.
38313
38314         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
38315         * lib/isnanf.h: Remove file.
38316         * lib/isnand.h: Remove file.
38317         * lib/isnanl.h: Remove file.
38318         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
38319         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
38320         macros.
38321         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
38322         HAVE_ISNANF, don't define it as a C macro.
38323         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
38324         HAVE_ISNAND, don't define it as a C macro.
38325         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
38326         HAVE_ISNANL, don't define it as a C macro.
38327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
38328         HAVE_ISNAN[FDL].
38329         * modules/isnanf (Files): Remove lib/isnanf.h.
38330         (Depends-on): Add math.
38331         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38332         (Include): Specify <math.h> instead of isnanf.h.
38333         * modules/isnand (Files): Remove lib/isnand.h.
38334         (Depends-on): Add math.
38335         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38336         (Include): Specify <math.h> instead of isnand.h.
38337         * modules/isnanl (Files): Remove lib/isnanl.h.
38338         (Depends-on): Add math.
38339         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38340         (Include): Specify <math.h> instead of isnanl.h.
38341         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
38342         HAVE_ISNAN[FDL].
38343         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
38344         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
38345         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
38346         * NEWS: Mention the change.
38347
38348 2008-10-18  Bruno Haible  <bruno@clisp.org>
38349
38350         Add getusershell(), setusershell(), endusershell() declarations to
38351         <unistd.h>.
38352         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
38353         declarations.
38354         * lib/getusershell.c: Include unistd.h.
38355         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
38356         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
38357         HAVE_GETUSERSHELL.
38358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
38359         and HAVE_GETUSERSHELL.
38360         * modules/getusershell (Depends-on): Add unistd, extensions.
38361         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38362         (Include): Specify <unistd.h>.
38363         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
38364         HAVE_GETUSERSHELL.
38365
38366 2008-10-18  Bruno Haible  <bruno@clisp.org>
38367
38368         Add a getloadavg() declaration to <stdlib.h>.
38369         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
38370         getloadavg declaration.
38371         (getloadavg): New declaration.
38372         * lib/getloadavg.c: Include <stdlib.h> first.
38373         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
38374         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
38375         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
38376         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
38377         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
38378         * modules/getloadavg (Depends-on): Add stdlib, extensions.
38379         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38380         (Include): Specify <stdlib.h>.
38381         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
38382         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
38383
38384 2008-10-18  Bruno Haible  <bruno@clisp.org>
38385
38386         * lib/dirchownmod.c: Don't include lchmod.h.
38387
38388         Move the lchmod() declaration to <sys/stat.h>.
38389         * lib/lchmod.h: Remove file.
38390         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
38391         (lchmod): New declaration, moved here from lib/lchown.h.
38392         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
38393         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
38394         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
38395         and HAVE_LCHMOD.
38396         * modules/lchmod (Files): Remove lib/lchmod.h.
38397         (Depends-on): Add sys_stat, extensions.
38398         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
38399         (Include): Specify <sys/stat.h> instead of lchmod.h.
38400         * modules/sys_stat (Depends-on): Add link-warning.
38401         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
38402         definition of GL_LINK_WARNING.
38403         * NEWS: Mention the change.
38404
38405 2008-10-18  Bruno Haible  <bruno@clisp.org>
38406
38407         * lib/fchdir.c: Don't include dirfd.h.
38408         * lib/fts.c: Likewise.
38409         * lib/getcwd.c: Likewise.
38410         * lib/glob.c: Likewise.
38411
38412         Move the dirfd() declaration to <dirent.h>.
38413         * lib/dirfd.h: Remove file.
38414         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
38415         (dirfd): New declaration.
38416         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
38417         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
38418         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
38419         HAVE_DECL_DIRFD.
38420         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
38421         HAVE_DECL_DIRFD.
38422         * modules/dirfd (Files): Remove lib/dirfd.h.
38423         (Depends-on): Add dirent, extensions.
38424         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
38425         (Include): Specify <dirent.h> instead of dirfd.h.
38426         * modules/dirent (Depends-on): Add link-warning.
38427         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
38428         definition of GL_LINK_WARNING.
38429         * NEWS: Mention the change.
38430
38431 2008-10-18  Bruno Haible  <bruno@clisp.org>
38432
38433         Move the euidaccess() declaration to <unistd.h>.
38434         * lib/euidaccess.h: Remove file.
38435         * lib/unistd.in.h (euidaccess): New declaration.
38436         * lib/euidaccess.c: Don't include euidaccess.h.
38437         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
38438         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
38439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
38440         and HAVE_EUIDACCESS.
38441         * modules/euidaccess (Files): Remove lib/euidaccess.h.
38442         (Depends-on): Add unistd.
38443         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38444         (Include): Specify <unistd.h> instead of euidaccess.h.
38445         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
38446         HAVE_EUIDACCESS.
38447         * NEWS: Mention the change.
38448
38449 2008-10-18  Bruno Haible  <bruno@clisp.org>
38450
38451         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
38452
38453         Move the getdomainname() declaration to <unistd.h>.
38454         * lib/getdomainname.h: Remove file.
38455         * lib/unistd.in.h (getdomainname): New declaration.
38456         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
38457         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
38458         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
38459         HAVE_GETDOMAINNAME.
38460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38461         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
38462         * modules/getdomainname (Files): Remove lib/getdomainname.h.
38463         (Depends-on): Add unistd, extensions.
38464         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38465         (Includes): Specify <unistd.h> instead of getdomainname.h.
38466         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
38467         HAVE_GETDOMAINNAME.
38468         * NEWS: Mention the change.
38469
38470 2008-10-18  Bruno Haible  <bruno@clisp.org>
38471
38472         * modules/dirent: New file.
38473         * m4/dirent_h.m4: New file.
38474         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
38475         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
38476         * modules/fchdir (Files): Remove lib/dirent.in.h.
38477         (Depends-on): Add dirent.
38478         (Makefile.am): Move rules to modules/dirent.
38479         * doc/posix-headers/dirent.texi: Mention the new module.
38480
38481 2008-10-18  Bruno Haible  <bruno@clisp.org>
38482
38483         Avoid -Wunused-parameter warnings in public gnulib header files.
38484         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
38485         macro.
38486         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
38487
38488 2008-10-18  Bruno Haible  <bruno@clisp.org>
38489
38490         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
38491         * doc/glibc-functions/error.texi: Mention the module 'error'.
38492         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
38493         * doc/glibc-functions/getdomainname.texi: Mention the module
38494         'getdomainname'.
38495         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
38496         * doc/glibc-functions/getpagesize.texi: Mention the module
38497         'getpagesize'.
38498         * doc/glibc-functions/getusershell.texi: Mention the module
38499         'getusershell'.
38500         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
38501         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
38502         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
38503         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
38504         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
38505         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
38506         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
38507         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
38508         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
38509         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
38510         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
38511         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
38512         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
38513         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
38514
38515 2008-10-17  Bruno Haible  <bruno@clisp.org>
38516
38517         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
38518         HP-UX and IRIX, use -0.0L.
38519         * tests/test-ceill.c (minus_zero): Likewise.
38520         * tests/test-floorl.c (minus_zero): Likewise.
38521         * tests/test-frexpl.c (minus_zero): Likewise.
38522         * tests/test-isnan.c (minus_zerol): Likewise.
38523         * tests/test-isnanl.h (minus_zero): Likewise.
38524         * tests/test-ldexpl.c (minus_zero): Likewise.
38525         * tests/test-roundl.c (minus_zero): Likewise.
38526         * tests/test-signbit.c (minus_zerol): Likewise.
38527         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38528         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38529         * tests/test-truncl.c (minus_zero): Likewise.
38530         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38531         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38532         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
38533         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38534
38535 2008-10-17  Bruno Haible  <bruno@clisp.org>
38536
38537         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
38538         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
38539         that it gets activated only for gcc >= 3.0.
38540         * lib/dirent.in.h: Likewise.
38541         * lib/errno.in.h: Likewise.
38542         * lib/fcntl.in.h: Likewise.
38543         * lib/float.in.h: Likewise.
38544         * lib/iconv.in.h: Likewise.
38545         * lib/inttypes.in.h: Likewise.
38546         * lib/locale.in.h: Likewise.
38547         * lib/math.in.h: Likewise.
38548         * lib/netdb.in.h: Likewise.
38549         * lib/netinet_in.in.h: Likewise.
38550         * lib/search.in.h: Likewise.
38551         * lib/signal.in.h: Likewise.
38552         * lib/spawn.in.h: Likewise.
38553         * lib/stdarg.in.h: Likewise.
38554         * lib/stdint.in.h: Likewise.
38555         * lib/stdio.in.h: Likewise.
38556         * lib/stdlib.in.h: Likewise.
38557         * lib/string.in.h: Likewise.
38558         * lib/strings.in.h: Likewise.
38559         * lib/sys_file.in.h: Likewise.
38560         * lib/sys_ioctl.in.h: Likewise.
38561         * lib/sys_select.in.h: Likewise.
38562         * lib/sys_socket.in.h: Likewise.
38563         * lib/sys_stat.in.h: Likewise.
38564         * lib/sys_time.in.h: Likewise.
38565         * lib/sysexits.in.h: Likewise.
38566         * lib/time.in.h: Likewise.
38567         * lib/unistd.in.h: Likewise.
38568         * lib/wchar.in.h: Likewise.
38569         * lib/wctype.in.h: Likewise.
38570         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38571
38572 2008-10-17  Jim Meyering  <meyering@redhat.com>
38573
38574         ignore-value: don't depend on inline module
38575         * modules/ignore-value (Depends-on): Remove 'inline'.
38576         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
38577         Suggestion from Bruno Haible.
38578
38579 2008-10-17  Bruno Haible  <bruno@clisp.org>
38580
38581         New implementation of condition variables for Win32.
38582         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
38583         (gl_linked_waitqueue_t): New type.
38584         (gl_cond_t): Use it.
38585         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
38586         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
38587         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
38588         (glthread_cond_init_func, glthread_cond_wait_func,
38589         glthread_cond_timedwait_func, glthread_cond_signal_func,
38590         glthread_cond_broadcast_func, glthread_cond_destroy_func):
38591         Reimplemented on the basis of gl_linked_waitqueue_t.
38592         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
38593         gl_waitqueue_t.
38594         (gl_rwlock_t): Update.
38595         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
38596
38597 2008-10-17  Simon Josefsson  <simon@josefsson.org>
38598
38599         * modules/recvfrom (Depends-on): Add dependency on getpeername.
38600         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38601
38602 2008-10-17  Jim Meyering  <meyering@redhat.com>
38603
38604         ignore-value: new module
38605         * modules/ignore-value: New file.
38606         * lib/ignore-value.h: New file.
38607         * MODULES.html.sh (Compiler warning management): New section,
38608         just for this module.  More to come.
38609
38610 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38611
38612         open-safer.c: avoid 'signed and unsigned in conditional...' warning
38613         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
38614         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
38615
38616 2008-10-16  Jim Meyering  <meyering@redhat.com>
38617
38618         openat-die.c: avoid 'no previous prototype' warning
38619         * lib/openat-die.c: Include "openat.h".
38620         Reported by Reuben Thomas <rrt@sc3d.org>.
38621
38622 2008-10-16  Simon Josefsson  <simon@josefsson.org>
38623
38624         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
38625         * lib/netdb.in.h: Fix typo.
38626         Reported by Bruno Haible  <bruno@clisp.org>
38627
38628         * lib/netdb.in.h: Include sys/socket.h for platforms without
38629         netdb.h, to get structures like hostent on MinGW.
38630         * modules/netdb (Depends-on): Add sys_socket.
38631
38632 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38633
38634         * modules/netdb, modules/netdb-tests: New file.
38635         * m4/netdb_h.m4: New file.
38636         * lib/netdb.in.h: Add, currently just an empty file pending
38637         definitions.
38638         * tests/test-netdb.c: New file.
38639         * doc/posix-headers/netdb.texi: Mention that we replace it if
38640         needed.
38641         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38642         netdb.
38643
38644 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38645
38646         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
38647         with code.
38648
38649 2008-10-13  Bruno Haible  <bruno@clisp.org>
38650
38651         * lib/glthread/cond.c (glthread_cond_wait_func,
38652         glthread_cond_timedwait_func): Add a comment.
38653
38654 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38655
38656         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
38657         * tests/test-select.c: Likewise,
38658
38659 2008-10-13  Bruno Haible  <bruno@clisp.org>
38660
38661         * lib/glthread/cond.c (glthread_cond_wait_func,
38662         glthread_cond_timedwait_func): Fix variable name.
38663         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38664
38665 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
38666
38667         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
38668         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
38669         struct sockaddr.sa_len.
38670         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
38671
38672 2008-10-13  Simon Josefsson  <simon@josefsson.org>
38673
38674         * build-aux/pmccabe2html: Add css and css_url parameters.
38675
38676 2008-10-12  Bruno Haible  <bruno@clisp.org>
38677
38678         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
38679         calling aclx_get.
38680         Reported by Rainer Tammer <tammer@tammer.net>.
38681
38682 2008-10-12  Bruno Haible  <bruno@clisp.org>
38683
38684         Use msvcrt aware primitives for creation/termination of Win32 threads.
38685         * lib/glthread/thread.c: Include <process.h>.
38686         (glthread_create_func): Use _beginthreadex instead of CreateThread.
38687         (wrapper_func): Update signature.
38688         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
38689
38690 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38691             Bruno Haible  <bruno@clisp.org>
38692
38693         Provide a Win32 implementation of the 'cond' module.
38694         * lib/glthread/cond.h [USE_WIN32]: New implementation.
38695         * lib/glthread/cond.c (glthread_cond_init_func,
38696         glthread_cond_wait_func, glthread_cond_timedwait_func,
38697         glthread_cond_signal_func, glthread_cond_broadcast_func,
38698         glthread_cond_destroy_func) [USE_WIN32]: New functions.
38699         * modules/cond (Dependencies): Add gettimeofday.
38700
38701 2008-10-11  Bruno Haible  <bruno@clisp.org>
38702
38703         Make sleep work on older versions of mingw.
38704         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
38705         only whether it exists.
38706         * doc/posix-functions/sleep.texi: Mention the problem with older
38707         versions of mingw.
38708
38709 2008-10-11  Bruno Haible  <bruno@clisp.org>
38710
38711         New module 'shutdown'.
38712         * modules/shutdown: New file.
38713         * lib/sys_socket.in.h (shutdown): New declaration.
38714         * lib/winsock.c (shutdown): New function.
38715         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38716         GNULIB_SHUTDOWN.
38717         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
38718         * doc/posix-functions/shutdown.texi: Document the new module.
38719
38720 2008-10-11  Jim Meyering  <meyering@redhat.com>
38721
38722         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
38723
38724 2008-10-11  Bruno Haible  <bruno@clisp.org>
38725
38726         New module 'fclose'.
38727         * modules/fclose: New file.
38728         * lib/stdio.in.h (fclose): New declaration.
38729         * lib/fclose.c: New file.
38730         * m4/fclose.m4: New file.
38731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
38732         REPLACE_FCLOSE.
38733         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
38734         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
38735         REPLACE_FCLOSE.
38736         * modules/close (Depends-on): fclose.
38737         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
38738
38739 2008-10-11  Bruno Haible  <bruno@clisp.org>
38740
38741         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
38742         set errno and don't call _close.
38743
38744 2008-10-10  Bruno Haible  <bruno@clisp.org>
38745
38746         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
38747         ACL, not afterwards. Fixes test failure on Cygwin.
38748
38749 2008-10-09  Ben Pfaff  <blp@gnu.org>
38750
38751         * build-aux/announce-gen: Fix gnulib version related part of usage
38752         message.  Die with a useful error message if no tarballs are
38753         found.
38754
38755 2008-10-10  Jim Meyering  <meyering@redhat.com>
38756
38757         bootstrap: use git's --depth=N option only if it's supported
38758         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
38759         recognize the --depth option.  Reported by Pádraig Brady.
38760
38761 2008-10-09  Bruno Haible  <bruno@clisp.org>
38762
38763         New module 'ioctl'.
38764         * modules/ioctl: New file.
38765         * lib/sys_socket.in.h (ioctl): Remove declaration.
38766         * lib/winsock.c: Include <sys/ioctl.h>.
38767         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
38768         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38769         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
38770         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
38771         * doc/posix-functions/ioctl.texi: Mention the new module.
38772
38773 2008-10-09  Bruno Haible  <bruno@clisp.org>
38774
38775         New module 'sys_ioctl'.
38776         * lib/sys_ioctl.in.h: New file.
38777         * m4/sys_ioctl_h.m4: New file.
38778         * modules/sys_ioctl: New file.
38779         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
38780
38781 2008-10-09  Bruno Haible  <bruno@clisp.org>
38782
38783         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
38784         * lib/winsock.c: Include <stdarg.h>.
38785         (rpl_ioctl): Change to second argument 'int' and then varargs.
38786
38787 2008-10-09  Bruno Haible  <bruno@clisp.org>
38788
38789         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
38790         when the sys_socket module is present and the system has <winsock2.h>.
38791
38792 2008-10-09  Bruno Haible  <bruno@clisp.org>
38793
38794         * doc/posix-functions/close.texi: Mention module 'close' instead of
38795         module 'sys_socket'.
38796
38797 2008-10-09  Bruno Haible  <bruno@clisp.org>
38798
38799         * doc/glibc-headers/sys_ioctl.texi: New file.
38800         * doc/gnulib.texi: Include it.
38801
38802 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38803             Bruno Haible  <bruno@clisp.org>
38804
38805         Combine the two replacements of 'close'.
38806         * lib/sys_socket.in.h (close): Define to a reminder to include
38807         <unistd.h>.
38808         (_gl_close_fd_maybe_socket): New declaration.
38809         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
38810         * lib/winsock.c (close): Remove undefinition.
38811         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
38812         needed for the gnulib module 'close'.
38813         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
38814         define to an error symbol or to a warning, if suitable.
38815         * lib/close.c: Include <sys/socket.h>.
38816         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
38817         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
38818         UNISTD_H_HAVE_WINSOCK2_H.
38819         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
38820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38821         UNISTD_H_HAVE_WINSOCK2_H.
38822         * modules/sys_socket (Files): Add m4/unistd_h.m4.
38823         (configure.ac): Set a module indicator.
38824         (Makefile.am): Substitute GNULIB_CLOSE.
38825         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
38826         * modules/poll-tests (Depends-on): Add close.
38827         * modules/select-tests (Depends-on): Likewise.
38828
38829 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38830             Bruno Haible  <bruno@clisp.org>
38831
38832         New module 'close'.
38833         * modules/close: New file.
38834         * lib/unistd.in.h (close): Move declaration out of the
38835         FCHDIR_REPLACEMENT scope.
38836         (_gl_unregister_fd): New declaration.
38837         * lib/close.c: New file.
38838         * lib/fchdir.c (rpl_close): Remove function.
38839         * m4/close.m4: New file.
38840         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38841         close.
38842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
38843         REPLACE_CLOSE.
38844         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
38845         REPLACE_CLOSE.
38846         * modules/fchdir (Depends-on): Add close.
38847
38848 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38849             Bruno Haible  <bruno@clisp.org>
38850
38851         * lib/fcntl.in.h (open): Simplify conditionals.
38852         (_gl_register_fd): New declaration.
38853         * lib/fchdir.c (rpl_open): Remove function.
38854         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
38855         also.
38856         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
38857         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38858         open.
38859
38860 2008-10-09  Jim Meyering  <meyering@redhat.com>
38861
38862         GNUmakefile: use the more name-space-friendly "_version"
38863         * top/GNUmakefile (_dummy): Update.
38864         (_version): Rename from "version".
38865
38866 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38867             Bruno Haible  <bruno@clisp.org>
38868
38869         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
38870         rpl_close.
38871         (_gl_register_fd): New function, extracted from rpl_open.
38872         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
38873         (rpl_open, rpl_opendir): Use _gl_register_fd.
38874
38875 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38876
38877         Fix organization of 'open' replacement.
38878         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
38879         (gl_FUNC_OPEN): Use it.
38880         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
38881
38882 2008-10-08  Bruno Haible  <bruno@clisp.org>
38883
38884         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
38885
38886 2008-10-08  Simon Josefsson  <simon@josefsson.org>
38887
38888         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
38889         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
38890         listen).
38891
38892 2008-10-08  Eric Blake  <ebb9@byu.net>
38893
38894         GNUmakefile: add 'make version' target
38895         * top/GNUmakefile (_curr-ver): Split version update rules...
38896         (version): ...into a target.
38897
38898 2008-10-07  Bruno Haible  <bruno@clisp.org>
38899
38900         Use a more portable replacement expression for -0.0L.
38901         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
38902         instead of -0.0L. Fix m4 quotation.
38903
38904         * tests/test-signbit.c: Include <float.h>.
38905         (minus_zero): New variable.
38906         (test_signbitl): Use minus_zero instead of -zero.
38907         * modules/signbit-tests (Depends-on): Add float.
38908
38909         * tests/test-ceill.c: Include <float.h>.
38910         (zero): Remove variable.
38911         (minus_zero): New variable.
38912         (main): Use minus_zero instead of -zero.
38913         * modules/ceill-tests (Depends-on): Add float.
38914
38915         * tests/test-floorl.c: Include <float.h>.
38916         (zero): Remove variable.
38917         (minus_zero): New variable.
38918         (main): Use minus_zero instead of -zero.
38919         * modules/floorl-tests (Depends-on): Add float.
38920
38921         * tests/test-roundl.c: Include <float.h>.
38922         (zero): Remove variable.
38923         (minus_zero): New variable.
38924         (main): Use minus_zero instead of -zero.
38925         * modules/roundl-tests (Depends-on): Add float.
38926
38927         * tests/test-truncl.c: Include <float.h>.
38928         (zero): Remove variable.
38929         (minus_zero): New variable.
38930         (main): Use minus_zero instead of -zero.
38931         * modules/truncl-tests (Depends-on): Add float.
38932
38933         * tests/test-frexpl.c (zero): Remove variable.
38934         (minus_zero): New variable.
38935         (main): Use minus_zero instead of -zero.
38936         * modules/frexpl-tests (Depends-on): Add float.
38937
38938         * tests/test-isnan.c (zerol): Remove variable.
38939         (minus_zerol): New variable.
38940         (test_long_double): Use minus_zerol instead of -zerol.
38941         * modules/isnan-tests (Depends-on): Add float.
38942
38943         * tests/test-isnanl.h (zero): Remove variable.
38944         (minus_zero): New variable.
38945         (main): Use minus_zero instead of -zero.
38946         * modules/isnanl-nolibm-tests (Depends-on): Add float.
38947         * modules/isnanl-tests (Depends-on): Add float.
38948
38949         * tests/test-ldexpl.c (zero): Remove variable.
38950         (minus_zero): New variable.
38951         (main): Use minus_zero instead of -zero.
38952         * modules/ldexpl-tests (Depends-on): Add float.
38953
38954         * tests/test-snprintf-posix.h (zerol): Remove variable.
38955         (minus_zerol): New variable.
38956         (test_function): Use minus_zerol instead of -zerol.
38957         * modules/snprintf-posix-tests (Depends-on): Add float.
38958         * modules/vsnprintf-posix-tests (Depends-on): Add float.
38959
38960         * tests/test-sprintf-posix.h (zerol): Remove variable.
38961         (minus_zerol): New variable.
38962         (test_function): Use minus_zerol instead of -zerol.
38963         * modules/sprintf-posix-tests (Depends-on): Add float.
38964         * modules/vsprintf-posix-tests (Depends-on): Add float.
38965
38966         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
38967         (minus_zerol): New variable.
38968         (test_function): Use minus_zerol instead of -zerol.
38969         * modules/vasnprintf-posix-tests (Depends-on): Add float.
38970
38971         * tests/test-vasprintf-posix.c (zerol): Remove variable.
38972         (minus_zerol): New variable.
38973         (test_function): Use minus_zerol instead of -zerol.
38974         * modules/vasprintf-posix-tests (Depends-on): Add float.
38975
38976 2008-10-07  Simon Josefsson  <simon@josefsson.org>
38977
38978         * MODULES.html.sh (Support for building documentation): Mention
38979         pmccabe2html.  Sort entries.
38980
38981         Add pmccabe2html module, from gnupdf.
38982         * build-aux/pmccabe.css: New file.
38983         * build-aux/pmccabe2html: New file.
38984         * m4/pmccabe2html.m4: New file.
38985         * modules/pmccabe2html: New file.
38986
38987 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
38988
38989         flock: new module
38990         * MODULES.html.sh: Add to list of modules.
38991         * lib/flock.c: flock implementation for Windows and Unix systems
38992         which have fcntl.
38993         * doc/glibc-functions/flock.texi: Update documentation.
38994         * lib/sys_file.in.h: <sys/file.h> header file.
38995         * m4/flock.m4: M4 macros.
38996         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
38997         * modules/flock: flock module.
38998         * modules/flock-tests: flock tests module.
38999         * modules/sys_file: sys/file.h module.
39000         * tests/test-flock.c: test suite for flock.
39001
39002 2008-10-06  Jim Meyering  <meyering@redhat.com>
39003
39004         bootstrap: check for LT_INIT more portably still ;-)
39005         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
39006         Spotted by Bruno Haible.
39007
39008 2008-10-06  Eric Blake  <ebb9@byu.net>
39009
39010         test-signbit: avoid tripping Irix cc bug on -0.0L
39011         * tests/test-signbit.c (minus_zerol): Delete, and replace with
39012         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
39013         entire testsuite consistent and avoids an Irix 6.2 bug.
39014
39015 2008-10-05  Bruno Haible  <bruno@clisp.org>
39016             Jim Meyering  <jim@meyering.net>
39017
39018         Add an option for ignoring EPIPE during close_stdout.
39019         * lib/closeout.h: Include <stdbool.h>.
39020         (close_stdout_set_ignore_EPIPE): New declaration.
39021         * lib/closeout.c: Include <stdbool.h>.
39022         (ignore_EPIPE): New variable.
39023         (close_stdout_set_ignore_EPIPE): New function.
39024         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
39025         * lib/close-stream.c (close_stream): Mention the possible EPIPE
39026         failure.
39027         * modules/closeout (Depends-on): Add stdbool.
39028
39029 2008-10-05  Bruno Haible  <bruno@clisp.org>
39030
39031         * modules/accept: New file.
39032         * modules/bind: New file.
39033         * modules/connect: New file.
39034         * modules/getpeername: New file.
39035         * modules/getsockname: New file.
39036         * modules/getsockopt: New file.
39037         * modules/listen: New file.
39038         * modules/recv: New file.
39039         * modules/recvfrom: New file.
39040         * modules/send: New file.
39041         * modules/sendto: New file.
39042         * modules/setsockopt: New file.
39043         * modules/socket: New file.
39044         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
39045         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
39046         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
39047         the particular module is requested. Add a link warning when the
39048         particular module is not requested.
39049         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
39050         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
39051         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
39052         the particular module is requested.
39053         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
39054         gl_SYS_SOCKET_H_DEFAULTS): New macros.
39055         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
39056         * modules/sys_socket (Depends-on): Add link-warning.
39057         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
39058         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
39059         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
39060         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
39061         GL_LINK_WARNING.
39062         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
39063         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
39064         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
39065         * doc/posix-functions/getpeername.texi: Mention the new module
39066         'getpeername'.
39067         * doc/posix-functions/getsockname.texi: Mention the new module
39068         'getsockname'.
39069         * doc/posix-functions/getsockopt.texi: Mention the new module
39070         'getsockopt'.
39071         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
39072         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
39073         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
39074         * doc/posix-functions/send.texi: Mention the new module 'send'.
39075         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
39076         * doc/posix-functions/setsockopt.texi: Mention the new module
39077         'setsockopt'.
39078         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
39079         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
39080         listen, connect, accept.
39081         * modules/select-tests (Depends-on): Likewise.
39082
39083 2008-10-05  Bruno Haible  <bruno@clisp.org>
39084
39085         * lib/winsock.c (strerror): Remove unused #undef.
39086         (rpl_close): Remove unused local variable.
39087
39088         * modules/sys_socket (Depends-on); Add errno.
39089
39090 2008-10-05  Bruno Haible  <bruno@clisp.org>
39091
39092         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
39093         (select): Add a link warning when the 'select' module is not used.
39094         * modules/sys_select (Depends-on): Add link-warning.
39095         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
39096         Suggested by Paolo Bonzini.
39097
39098 2008-10-05  Jim Meyering  <meyering@redhat.com>
39099
39100         bootstrap: check for LT_INIT more portably
39101         * build-aux/bootstrap: Avoid using grep -E, since it's not
39102         portable enough.  Suggestion from Bruno Haible.
39103
39104 2008-10-05  Bruno Haible  <bruno@clisp.org>
39105
39106         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
39107         as being fixed by gnulib.
39108
39109 2008-10-05  Bruno Haible  <bruno@clisp.org>
39110
39111         * modules/select-tests: New file, mostly copied from
39112         modules/sys_select-tests.
39113         * tests/test-select.c: New file, mostly copied from
39114         tests/test-sys_select.c.
39115         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
39116         * modules/sys_select-tests (Depends-on): Remove all dependencies.
39117         (Makefile.am): Remove test_sys_select_LDADD.
39118
39119         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
39120         to an undefined symbol, for an error message.
39121         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
39122         (gl_SYS_SELECT_H_DEFAULTS): New macro.
39123         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
39124         winsock-select.c here.
39125         * modules/sys_select (Files): Remove lib/winsock-select.c.
39126         (Depends-on): Remove alloca.
39127         (Makefile.am): Substitute GNULIB_SELECT.
39128         * modules/select: New file.
39129         * doc/posix-functions/select.texi: Update.
39130
39131 2008-10-05  Bruno Haible  <bruno@clisp.org>
39132
39133         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
39134         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
39135         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
39136         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
39137         getdtablesize.
39138         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
39139         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
39140
39141 2008-10-05  Bruno Haible  <bruno@clisp.org>
39142
39143         * modules/getdtablesize-tests: New file.
39144         * tests/test-getdtablesize.c: New file.
39145
39146         New module 'getdtablesize'.
39147         * lib/unistd.in.h (getdtablesize): New declaration.
39148         * lib/getdtablesize.c: New file.
39149         * m4/getdtablesize.m4: New file.
39150         * modules/getdtablesize: New file.
39151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39152         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
39153         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
39154         HAVE_GETDTABLESIZE.
39155         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
39156
39157 2008-10-05  Bruno Haible  <bruno@clisp.org>
39158
39159         * modules/sched (Makefile.am): Fix typo.
39160         Reported by Simon Josefsson.
39161
39162 2008-10-05  Jim Meyering  <meyering@redhat.com>
39163
39164         bootstrap: check for LT_INIT, too
39165         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
39166         are deprecated.  Suggestion from Ralf Wildenhues.
39167
39168 2008-10-05  Bruno Haible  <bruno@clisp.org>
39169
39170         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
39171         overriding them by ours.
39172         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
39173
39174 2008-10-05  Jim Meyering  <meyering@redhat.com>
39175
39176         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
39177         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
39178         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
39179
39180 2008-10-04  Bruno Haible  <bruno@clisp.org>
39181
39182         * modules/dup2 (License): Change to LGPLv2+.
39183         * modules/sleep (License): Likewise.
39184         * modules/perror (License): Likewise.
39185         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
39186         Blake.
39187         * modules/signal (License): Likewise.
39188         * modules/sigprocmask (License): Likewise.
39189         * modules/raise (License): Change to LGPLv2+, with approval by Jim
39190         Meyering.
39191
39192 2008-10-04  Bruno Haible  <bruno@clisp.org>
39193
39194         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
39195         Reported by Rainer Tammer <tammer@tammer.net>.
39196
39197 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
39198             Bruno Haible  <bruno@clisp.org>
39199
39200         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
39201         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
39202         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
39203
39204 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
39205
39206         filevercmp: new module
39207         * lib/filevercmp.h: New function filevercmp comparing version strings.
39208         * lib/filevercmp.c: Implementation of filevercmp function.
39209         * modules/filevercmp: Module metadata.
39210         * tests/test-filevercmp.c: Unit test for new module.
39211         * modules/filevercmp-tests: Unit test metadata.
39212         * MODULES.html.sh: Add filevercmp module.
39213
39214 2008-10-03  Bruno Haible  <bruno@clisp.org>
39215
39216         * lib/c-ctype.h: Add comment.
39217         Reported by Jim Meyering.
39218
39219 2008-10-02  Bruno Haible  <bruno@clisp.org>
39220
39221         * modules/posix_spawn-internal (Depends-on): Add 'open'.
39222
39223 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39224
39225         * build-aux/bootstrap: Allow renaming bootstrap, and change the
39226         name of bootstrap.conf accordingly.
39227
39228 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39229
39230         * build-aux/bootstrap: Install git-merge-changelog configuration
39231         items into .gitconfig if needed.
39232
39233 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39234
39235         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
39236         git repository, and initialize/update it accordingly.
39237
39238 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
39239
39240         * modules/fsync-tests: New file.
39241         * tests/test-fsync.c: New file.
39242
39243         New module 'fsync'.
39244         * lib/fsync.c: New file.
39245         * m4/fsync.m4: New file.
39246         * modules/fsync: New file.
39247         * lib/unistd.in.h (fsync): New declaration.
39248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
39249         GNULIB_FSYNC and HAVE_FSYNC.
39250         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
39251         * MODULES.html.sh (posix_functions): Add fsync.
39252         * doc/posix-functions/fsync.texi: Mention the new module.
39253
39254 2008-10-02  Jim Meyering  <meyering@redhat.com>
39255
39256         fts.c: sync with similar code from coreutils' remove.c
39257         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
39258         Guard also with "#if defined __linux__", since for now at least,
39259         this code is Linux-kernel-specific.
39260
39261 2008-10-02  Jim Meyering  <meyering@redhat.com>
39262
39263         fts: bug fixes
39264         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
39265         Include <sys/vfs.h>, not <sys/statfs.h>.
39266
39267         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
39268         Include <sys/vfs.h>, not <sys/statfs.h>.
39269
39270 2008-10-01  Bruno Haible  <bruno@clisp.org>
39271
39272         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
39273         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
39274         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
39275         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
39276         * doc/posix-functions/posix_spawnp.texi: Likewise.
39277         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
39278         whether posix_spawn actually works.
39279         * m4/pipe.m4 (gl_PIPE): Likewise.
39280         * modules/execute (Files): Add m4/posix_spawn.m4.
39281         * modules/pipe (Files): Add m4/posix_spawn.m4.
39282         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
39283
39284 2008-10-01  Jim Meyering  <meyering@redhat.com>
39285
39286         remove trailing spaces
39287         * NEWS: Likewise.
39288         * lib/poll.c (poll): Likewise.
39289         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
39290         * lib/winsock.c (rpl_close): Likewise.
39291         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
39292         * modules/yield: Likewise.
39293         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
39294         * tests/test-sys_select.c (connect_to_socket): Likewise.
39295
39296         fts.c: adjust a new interface to be more generally useful
39297         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
39298         (fts_build): Adjust caller.
39299
39300 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39301
39302         * modules/cond-tests: New file.
39303         * tests/test-cond.c: New file.
39304
39305 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39306             Bruno Haible  <bruno@clisp.org>
39307
39308         * modules/cond (Dependencies): Add errno, time.
39309         * lib/glthread/cond.h: Include <time.h>.
39310         (gl_cond_define, gl_cond_define_initialized): Use the same definition
39311         across platforms.
39312
39313 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39314             Bruno Haible  <bruno@clisp.org>
39315
39316         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
39317
39318 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39319             Bruno Haible  <bruno@clisp.org>
39320
39321         * modules/tls-tests (Depends-on): Add thread, yield.
39322         (configure.ac): Remove all checks.
39323         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
39324         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
39325         gl_thread_self): Remove definitions. Include glthread/thread.h and
39326         glthread/yield.h instead.
39327         (test_tls): Pass an additional NULL argument to gl_thread_join.
39328
39329 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39330             Bruno Haible  <bruno@clisp.org>
39331
39332         * modules/lock-tests (Depends-on): Add thread, yield.
39333         (configure.ac): Remove all checks.
39334         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
39335         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
39336         gl_thread_self): Remove definitions. Include glthread/thread.h and
39337         glthread/yield.h instead.
39338         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
39339         additional NULL argument to gl_thread_join.
39340
39341 2008-09-30  Bruno Haible  <bruno@clisp.org>
39342
39343         Fix the Win32 implementation of the 'thread' module.
39344         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
39345         pointer type.
39346         (gl_thread_self): Invoke gl_thread_self_func.
39347         (gl_thread_self_func): New declaration.
39348         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
39349         (do_init_self_key, init_self_key): New functions.
39350         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
39351         Remove some fields.
39352         (running_threads, running_lock): Remove variables.
39353         (get_current_thread_handle): New function.
39354         (gl_thread_self_func, wrapper_func, glthread_create_func,
39355         glthread_join_func, gl_thread_exit_func): Largely rewritten and
39356         simplified.
39357
39358 2008-09-30  Bruno Haible  <bruno@clisp.org>
39359
39360         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
39361         files.
39362
39363 2008-09-30  Jim Meyering  <meyering@redhat.com>
39364
39365         fts.m4: correct the test for statfs.f_type
39366         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
39367         when checking for statfs.f_type.
39368
39369 2008-09-15  Simon Josefsson  <simon@josefsson.org>
39370
39371         tests: avoid some compiler warnings
39372         * tests/test-memchr.c (main): Pass NULL indirectly.
39373         * tests/test-getdate.c (main): Remove unused variable 'ret'.
39374
39375 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
39376
39377         getdate.y: disallow countable dayshifts like "4 yesterday ago"
39378         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
39379         exactly specified dayshifts.
39380         (dayshift): New rule.
39381         (rel): Add dayshift.
39382         (relative_time_table) [tomorrow, yesterday, today, now]:
39383         Use tDAY_SHIFT in place of tDAY_UNIT.
39384         * tests/test-getdate.c: Add tests for now-disallowed countable
39385         dayshifts, e.g., "4 yesterday ago".
39386
39387 2008-09-29  Bruno Haible  <bruno@clisp.org>
39388
39389         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
39390         * tests/test-posix_spawn1.in.sh: Renamed from
39391         tests/test-posix_spawn.in.sh.
39392         * tests/test-posix_spawn2.c: New file.
39393         * tests/test-posix_spawn2.in.sh: New file.
39394         * modules/posix_spawnp-tests (Files): Update.
39395         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
39396
39397 2008-09-29  Bruno Haible  <bruno@clisp.org>
39398
39399         Propagate effects of putenv/setenv/unsetenv to child processes.
39400         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
39401         * lib/pipe.c (create_pipe): Likewise.
39402
39403 2008-09-29  Bruno Haible  <bruno@clisp.org>
39404
39405         Enable use of shell scripts as executables in mingw.
39406         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
39407         run the program as a shell script.
39408         * lib/pipe.c (create_pipe): Likewise.
39409         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
39410         resulting array.
39411
39412 2008-09-29  Eric Blake  <ebb9@byu.net>
39413
39414         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
39415
39416 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
39417
39418         * doc/posix-functions/accept.texi: Update mingw problems.
39419         * doc/posix-functions/bind.texi: Update mingw problems.
39420         * doc/posix-functions/close.texi: Update mingw problems.
39421         * doc/posix-functions/connect.texi: Update mingw problems.
39422         * doc/posix-functions/getpeername.texi: Update mingw problems.
39423         * doc/posix-functions/getsockname.texi: Update mingw problems.
39424         * doc/posix-functions/getsockopt.texi: Update mingw problems.
39425         * doc/posix-functions/ioctl.texi: Update mingw problems.
39426         * doc/posix-functions/listen.texi: Update mingw problems.
39427         * doc/posix-functions/recv.texi: Update mingw problems.
39428         * doc/posix-functions/recvfrom.texi: Update mingw problems.
39429         * doc/posix-functions/select.texi: Update mingw problems.
39430         * doc/posix-functions/send.texi: Update mingw problems.
39431         * doc/posix-functions/sendto.texi: Update mingw problems.
39432         * doc/posix-functions/setsockopt.texi: Update mingw problems.
39433         * doc/posix-functions/socket.texi: Update mingw problems.
39434
39435 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
39436             Bruno Haible  <bruno@clisp.org>
39437
39438         * lib/sys_select.in.h: Include sys/time.h.
39439         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
39440         * modules/sys_select: Depend on sys_time.
39441         * tests/test-sys_select.c: Test that sys/select.h defines struct
39442         timeval fully.
39443
39444 2008-09-29  Bruno Haible  <bruno@clisp.org>
39445
39446         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
39447         * lib/sys_select.in.h: Likewise.
39448
39449 2008-09-29  Bruno Haible  <bruno@clisp.org>
39450
39451         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
39452
39453 2008-09-29  Bruno Haible  <bruno@clisp.org>
39454
39455         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
39456         Set LIBSOCKET instead of augmenting LIBS.
39457         * modules/sockets (Link): New section.
39458         * modules/sockets-tests (test_sockets_LDADD): New variable.
39459         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
39460         * modules/poll-tests (test_poll_LDADD): New variable.
39461         * NEWS: Document the change.
39462
39463 2008-09-29  Bruno Haible  <bruno@clisp.org>
39464
39465         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
39466         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
39467         ARPA_INET_H directly.
39468         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39469
39470 2008-09-28  Bruno Haible  <bruno@clisp.org>
39471
39472         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
39473         from gl_HEADER_SYS_SOCKET.
39474         (gl_HEADER_SYS_SOCKET): Invoke it.
39475         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39476
39477 2008-09-28  Bruno Haible  <bruno@clisp.org>
39478
39479         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
39480         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
39481         Needed on OSF/1 4.0.
39482
39483 2008-09-28  Bruno Haible  <bruno@clisp.org>
39484
39485         Override open more carefully.
39486         * lib/open.c (orig_open): New function.
39487         (rpl_open): Use orig_open instead of open.
39488         * lib/fcntl.in.h: Add special invocation convention.
39489         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
39490         (gl_FUNC_OPEN): Invoke it.
39491
39492         Override freopen more carefully.
39493         * lib/freopen.c (orig_freopen): New function.
39494         (rpl_freopen): Use orig_freopen instead of freopen.
39495         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
39496         (gl_FUNC_FREOPEN): Invoke it.
39497
39498         Override fopen more carefully.
39499         * lib/fopen.c (orig_fopen): New function.
39500         (rpl_fopen): Use orig_fopen instead of fopen.
39501         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
39502         (gl_FUNC_FOPEN): Invoke it.
39503         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
39504
39505 2008-09-28  Bruno Haible  <bruno@clisp.org>
39506
39507         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
39508         SIGPIPE.
39509
39510 2008-09-28  Bruno Haible  <bruno@clisp.org>
39511
39512         * tests/test-sigaction.c (handler, main): Disable the check whether
39513         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
39514         glibc systems with LinuxThreads.
39515
39516 2008-09-28  Bruno Haible  <bruno@clisp.org>
39517
39518         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
39519
39520         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
39521         with AIX xlc.
39522         * lib/fcntl.in.h (open): Likewise.
39523         Reported by Rainer Tammer <tammer@tammer.net>.
39524
39525 2008-09-28  Bruno Haible  <bruno@clisp.org>
39526
39527         * modules/posix_spawnp-tests: New file.
39528         * tests/test-posix_spawn.c: New file.
39529         * tests/test-posix_spawn.in.sh: New file.
39530
39531         New module 'posix_spawnp'.
39532         * modules/posix_spawnp: New file.
39533         * lib/spawnp.c: New file, from GNU libc with modifications.
39534         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
39535
39536         New module 'posix_spawn'.
39537         * modules/posix_spawn: New file.
39538         * lib/spawn.c: New file, from GNU libc with modifications.
39539         * doc/posix-functions/posix_spawn.texi: Mention the new module.
39540
39541         New module 'posix_spawnattr_destroy'.
39542         * modules/posix_spawnattr_destroy: New file.
39543         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
39544         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
39545         module.
39546
39547         New module 'posix_spawnattr_setsigmask'.
39548         * modules/posix_spawnattr_setsigmask: New file.
39549         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
39550         modifications.
39551         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
39552         new module.
39553
39554         New module 'posix_spawnattr_getsigmask'.
39555         * modules/posix_spawnattr_getsigmask: New file.
39556         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
39557         modifications.
39558         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
39559         new module.
39560
39561         New module 'posix_spawnattr_setsigdefault'.
39562         * modules/posix_spawnattr_setsigdefault: New file.
39563         * lib/spawnattr_setdefault.c: New file, from GNU libc with
39564         modifications.
39565         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
39566         new module.
39567
39568         New module 'posix_spawnattr_getsigdefault'.
39569         * modules/posix_spawnattr_getsigdefault: New file.
39570         * lib/spawnattr_getdefault.c: New file, from GNU libc with
39571         modifications.
39572         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
39573         new module.
39574
39575         New module 'posix_spawnattr_setschedpolicy'.
39576         * modules/posix_spawnattr_setschedpolicy: New file.
39577         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
39578         modifications.
39579         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
39580         new module.
39581
39582         New module 'posix_spawnattr_getschedpolicy'.
39583         * modules/posix_spawnattr_getschedpolicy: New file.
39584         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
39585         modifications.
39586         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
39587         new module.
39588
39589         New module 'posix_spawnattr_setschedparam'.
39590         * modules/posix_spawnattr_setschedparam: New file.
39591         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
39592         modifications.
39593         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
39594         new module.
39595
39596         New module 'posix_spawnattr_getschedparam'.
39597         * modules/posix_spawnattr_getschedparam: New file.
39598         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
39599         modifications.
39600         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
39601         new module.
39602
39603         New module 'posix_spawnattr_setpgroup'.
39604         * modules/posix_spawnattr_setpgroup: New file.
39605         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
39606         modifications.
39607         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
39608         module.
39609
39610         New module 'posix_spawnattr_getpgroup'.
39611         * modules/posix_spawnattr_getpgroup: New file.
39612         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
39613         modifications.
39614         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
39615         module.
39616
39617         New module 'posix_spawnattr_setflags'.
39618         * modules/posix_spawnattr_setflags: New file.
39619         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
39620         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
39621         module.
39622
39623         New module 'posix_spawnattr_getflags'.
39624         * modules/posix_spawnattr_getflags: New file.
39625         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
39626         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
39627         module.
39628
39629         New module 'posix_spawnattr_init'.
39630         * modules/posix_spawnattr_init: New file.
39631         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
39632         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
39633         module.
39634
39635         New module 'posix_spawn_file_actions_destroy'.
39636         * modules/posix_spawn_file_actions_destroy: New file.
39637         * lib/spawn_faction_destroy.c: New file, from GNU libc with
39638         modifications.
39639         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
39640         the new module.
39641
39642         New module 'posix_spawn_file_actions_addopen'.
39643         * modules/posix_spawn_file_actions_addopen: New file.
39644         * lib/spawn_faction_addopen.c: New file, from GNU libc with
39645         modifications.
39646         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
39647         the new module.
39648
39649         New module 'posix_spawn_file_actions_adddup2'.
39650         * modules/posix_spawn_file_actions_adddup2: New file.
39651         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
39652         modifications.
39653         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
39654         the new module.
39655
39656         New module 'posix_spawn_file_actions_addclose'.
39657         * modules/posix_spawn_file_actions_addclose: New file.
39658         * lib/spawn_faction_addclose.c: New file, from GNU libc with
39659         modifications.
39660         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
39661         the new module.
39662
39663         New module 'posix_spawn_file_actions_init'.
39664         * modules/posix_spawn_file_actions_init: New file.
39665         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
39666         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
39667         new module.
39668
39669         New module 'posix_spawn-internal'.
39670         * modules/posix_spawn-internal: New file.
39671         * lib/spawn_int.h: New file, from GNU libc with modifications.
39672         * lib/spawni.c: New file, from GNU libc with modifications.
39673         * m4/posix_spawn.m4: New file.
39674
39675         New module 'spawn'.
39676         * modules/spawn: New file.
39677         * lib/spawn.in.h: New file, from GNU libc with modifications.
39678         * m4/spawn_h.m4: New file.
39679         * doc/posix-headers/spawn.texi: Mention the new module.
39680
39681 2008-09-28  Bruno Haible  <bruno@clisp.org>
39682
39683         * modules/sched-tests: New file.
39684         * tests/test-sched.c: New file.
39685
39686         New module 'sched'.
39687         * modules/sched: New file.
39688         * lib/sched.in.h: New file.
39689         * m4/sched_h.m4: New file.
39690         * doc/posix-headers/sched.texi: Mention the new module.
39691
39692 2008-09-27  Eric Blake  <ebb9@byu.net>
39693
39694         Fix previous patch, and tweak references to $0.
39695         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
39696         (func_version, func_gnulib_dir): Don't call this program
39697         gnulib-tool.
39698         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
39699         with using $0 in function.
39700         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
39701         (func_fatal_error): Reuse the name the user invoked us with.
39702
39703 2008-09-27  Bruno Haible  <bruno@clisp.org>
39704
39705         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
39706         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
39707         (gl_ICONV_H): Not here.
39708         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
39709         instead of assigning ICONV_H directly.
39710
39711         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
39712         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
39713         WCHAR_H directly.
39714
39715 2008-09-27  Bruno Haible  <bruno@clisp.org>
39716
39717         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
39718         * modules/arpa_inet (Depends-on): Add link-warning.
39719         (Makefile.am): Insert the definition of GL_LINK-WARNING.
39720         * modules/unistd (Makefile.am): Likewise.
39721
39722 2008-09-26  Bruno Haible  <bruno@clisp.org>
39723
39724         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
39725         variables.
39726         (func_version): Essentially copied from gnulib-tool.
39727         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
39728         func_readlink): Copied from gnulib-tool.
39729
39730 2008-09-26  Bruno Haible  <bruno@clisp.org>
39731
39732         * gnulib-tool (func_version): Change directory to $gnulib_dir before
39733         invoking git-version-gen.
39734
39735 2008-09-26  Bruno Haible  <bruno@clisp.org>
39736
39737         * posix-modules: Update to directory names changed on 2008-01-19.
39738         Remove commas in output before splitting into words. No more need to
39739         avoid 'ftruncate' since 2007-02-19.
39740
39741 2008-09-26  Bruno Haible  <bruno@clisp.org>
39742
39743         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
39744
39745 2008-09-26  Bruno Haible  <bruno@clisp.org>
39746
39747         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
39748         * modules/fwriteerror (Depends-on): Add errno.
39749
39750 2008-09-26  Bruno Haible  <bruno@clisp.org>
39751
39752         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
39753         * tests/test-vc-list-files-cvs.sh: Likewise.
39754
39755 2008-09-26  Bruno Haible  <bruno@clisp.org>
39756
39757         * doc/posix-headers/sys_resource.texi: Reorder items.
39758
39759 2008-09-26  Jim Meyering  <meyering@redhat.com>
39760
39761         fts: tweak inode comparison function
39762         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
39763         inode numbers, as documented.
39764
39765         fts: sort dirent entries on inode number before traversing
39766         This avoids a quadratic, seek-related performance penalty when
39767         operating on a directory containing many entries (measurable at 10k;
39768         3.5 hours at 2 million entries with a cold cache) on certain types
39769         of file systems, including ext3 and ext4, but not tmpfs.
39770         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
39771         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
39772         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
39773         (fs_handles_readdir_ordered_dirents_efficiently): New function.
39774         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
39775         (fts_build): Set the stat.st_ino member from D_INO.
39776         If it is likely to be useful, sort dirent entries on inode number.
39777
39778         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
39779         and the struct statfs.f_type member.
39780         * modules/fts (Depends-on): Add d-ino.
39781
39782 2008-09-26  Bruno Haible  <bruno@clisp.org>
39783
39784         * modules/sigpipe-die (Depends-on): Add sigpipe.
39785
39786         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
39787         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
39788         and GNULIB_STDIO_H_SIGPIPE are set.
39789         * lib/stdio-write.c: New file.
39790         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
39791         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39792         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39793         REPLACE_STDIO_WRITE_FUNCS.
39794         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
39795         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39796         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39797         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39798         * modules/stdio (Files): Add lib/stdio-write.c.
39799         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
39800         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39801         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39802         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39803         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
39804         REPLACE_FPRINTF_POSIX.
39805         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
39806         REPLACE_PRINTF_POSIX.
39807         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
39808         REPLACE_VFPRINTF_POSIX.
39809         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
39810         REPLACE_VPRINTF_POSIX.
39811         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
39812         SIGPIPE issue.
39813         * doc/posix-functions/fputc.texi: Likewise.
39814         * doc/posix-functions/fputs.texi: Likewise.
39815         * doc/posix-functions/fwrite.texi: Likewise.
39816         * doc/posix-functions/printf.texi: Likewise.
39817         * doc/posix-functions/putc.texi: Likewise.
39818         * doc/posix-functions/putchar.texi: Likewise.
39819         * doc/posix-functions/puts.texi: Likewise.
39820         * doc/posix-functions/vfprintf.texi: Likewise.
39821         * doc/posix-functions/vprintf.texi: Likewise.
39822
39823         * modules/safe-write (Depends-on): Add write.
39824
39825         * modules/sigpipe-tests: New file.
39826         * tests/test-sigpipe.c: New file.
39827         * tests/test-sigpipe.sh: New file.
39828
39829         * modules/write: New file.
39830         * lib/unistd.in.h: Include <sys/types.h>.
39831         (write): New declaration.
39832         * lib/write.c: New file.
39833         * m4/write.m4: New file.
39834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39835         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
39836         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
39837         GNULIB_WRITE, REPLACE_WRITE.
39838         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
39839         and the SIGPIPE issue.
39840
39841         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
39842         (raise): New declaration.
39843         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
39844         (ext_signal): New function.
39845         (rpl_raise): New function.
39846         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
39847         GNULIB_SIGNAL_H_SIGPIPE.
39848         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
39849         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
39850
39851         * modules/sigpipe: New file.
39852         * m4/sigpipe.m4: New file.
39853
39854 2008-09-25  Derek Price  <derek@ximbiot.com>
39855             Bruno Haible  <bruno@clisp.org>
39856
39857         * gnulib-tool (func_import): Report all license incompatibilities, not
39858         just the first one.
39859
39860 2008-09-25  Bruno Haible  <bruno@clisp.org>
39861
39862         * gnulib-tool (func_import): When computing the edits, consider not
39863         only the Makefile.ams that exist but also those that will be generated.
39864
39865 2008-09-25  Simon Josefsson  <simon@josefsson.org>
39866
39867         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
39868         fixes gnulib-tool --test warning about duplicate dependency.
39869
39870 2008-09-25  Bruno Haible  <bruno@clisp.org>
39871
39872         * gnulib-tool: Don't ask the user to perform edits in the generated
39873         Makefile.ams.
39874         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
39875         apply to the Makefile.am being generated.
39876         (func_emit_tests_Makefile_am): Execute edits that apply to the
39877         Makefile.am being generated.
39878         (func_import): Setup list of Makefile.am edits before emitting the
39879         Makefile.ams, not at the end.
39880         (func_create_testdir): Update.
39881         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39882
39883 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39884
39885         * gnulib-tool (func_import): Store the --tests-base option in the
39886         comment in gnulib-cache.m4.
39887
39888 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
39889
39890         * NEWS: Document increased portability that sys_select now provides.
39891
39892         * lib/sys_select.in.h: Install select wrapper.
39893         * lib/sys_socket.in.h: Use more descriptive name when there is no
39894         select wrapper.
39895         * lib/winsock-select.c: New.
39896         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
39897         Require gl_HEADER_SYS_SOCKET.
39898         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
39899         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
39900         * tests/test-sys_select.c: Add functional tests.
39901
39902 2008-09-24  Eric Blake  <ebb9@byu.net>
39903
39904         open, fopen: close fd leak in last patch
39905         * lib/open.c (rpl_open): Close fd before returning error.
39906         * lib/fopen.c (rpl_fopen): Close fd before returning error.
39907         * doc/posix-functions/open.texi (open): Document that Irix also
39908         has the bug.
39909         * doc/posix-functions/fopen.texi (fopen): Likewise.
39910         Reported by Paolo Bonzini.
39911
39912 2008-09-24  Bruno Haible  <bruno@clisp.org>
39913
39914         Ensure that a filename ending in a slash cannot be used to access a
39915         non-directory.
39916         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
39917         to check whether it's really a directory.
39918         * lib/fopen.c: Include fcntl.h, unistd.h.
39919         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
39920         and fdopen().
39921         * modules/fopen (Depends-on): Add unistd.
39922         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
39923         * tests/test-fopen.c (main): Likewise.
39924         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
39925         * doc/posix-functions/fopen.texi: Likewise.
39926         Reported by Eric Blake.
39927
39928 2008-09-23  Eric Blake  <ebb9@byu.net>
39929
39930         c-stack: avoid compiler optimizations when provoking overflow
39931         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
39932         recursion harder to optimize, to ensure a stack overflow occurs.
39933         * tests/test-c-stack.c (recurse): Likewise.
39934         Borrowed from libsigsegv.
39935
39936         c-stack: work around Irix sigaltstack bug
39937         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
39938         whether sigaltstack uses wrong end of stack_t (copied in part from
39939         libsigsegv).
39940         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
39941         Irix bug, without requiring an over-allocation.
39942         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
39943         bug.
39944
39945         fopen: document mingw bug on directories
39946         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
39947         not allowing a stream visiting a directory, even though reading
39948         from such a stream is not portable.
39949
39950 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39951
39952         * lib/poll.c: Rewrite.
39953         * modules/poll: Depend on alloca.
39954
39955 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39956
39957         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
39958         instead define prototypes for a full set of wrappers.  Ensure
39959         that Cygwin does not use the compatibility code, which is only
39960         for MinGW.
39961         * lib/winsock.c: New.
39962         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
39963         * modules/sys_socket: Add lib/winsock.c.
39964
39965         * modules/poll-tests: Add errno and perror.
39966         * tests/test-poll.c: Use ioctl, not ioctlsocket.
39967
39968 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39969
39970         * tests/test-poll.c: Downgrade minimum needed Winsock version.
39971
39972 2008-09-23  Bruno Haible  <bruno@clisp.org>
39973
39974         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
39975         * doc/glibc-functions/*: Likewise.
39976
39977 2008-09-23  Simon Josefsson  <simon@josefsson.org>
39978
39979         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
39980         success.
39981
39982 2008-09-22  Eric Blake  <ebb9@byu.net>
39983             Bruno Haible  <bruno@clisp.org>
39984
39985         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
39986         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
39987         supply %A but mishandle pseudo-NaN.
39988         Reported by Simon Josefsson.
39989
39990 2008-09-21  Bruno Haible  <bruno@clisp.org>
39991
39992         * tests/test-lock.c (main): Tweak skip message.
39993         * tests/test-tls.c (main): Likewise.
39994
39995 2008-09-21  Bruno Haible  <bruno@clisp.org>
39996
39997         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
39998         whether 'struct sigaction' has sa_sigaction here...
39999         (gl_PREREQ_SIG_HANDLER_H): ... not here.
40000         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
40001
40002 2008-09-21  Bruno Haible  <bruno@clisp.org>
40003
40004         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
40005         section.
40006         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
40007         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
40008         the new section.
40009         (Support for obsolete systems lacking POSIX:2001): New section.
40010         (String handling <string.h>): Move strdup to the new section.
40011         Suggested by Simon Josefsson and Paolo Bonzini.
40012
40013 2008-09-21  Bruno Haible  <bruno@clisp.org>
40014
40015         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
40016         exponents in %e and %g results on 'long double'. Needed for mingw's
40017         improved *printf functions.
40018         * tests/test-vasprintf-posix.c (test_function): Likewise.
40019         * tests/test-snprintf-posix.h (test_function): Likewise.
40020         * tests/test-sprintf-posix.h (test_function): Likewise.
40021         Reported by Eric Blake.
40022
40023 2008-09-21  Bruno Haible  <bruno@clisp.org>
40024
40025         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
40026         * tests/test-sprintf-posix.h (test_function): Likewise.
40027
40028 2008-09-21  Bruno Haible  <bruno@clisp.org>
40029
40030         * modules/getpass (Depends-on): Add strdup-posix.
40031
40032         New module 'strdup-posix'.
40033         * modules/strdup-posix: New file.
40034         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
40035         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
40036         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40037         REPLACE_STRDUP.
40038         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
40039         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
40040         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40041         strdup-posix.
40042
40043         * modules/strdup (Depends-on): Remove malloc-posix.
40044
40045 2008-09-20  Bruno Haible  <bruno@clisp.org>
40046
40047         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
40048         Wildenhues.
40049
40050 2008-09-20  Bruno Haible  <bruno@clisp.org>
40051
40052         Ensure that wint_t gets defined on IRIX 5.3.
40053         * lib/wchar.in.h (wint_t): Define if not defined by the system.
40054         * lib/wctype.in.h (wint_t): Likewise.
40055         (__wctype_wint_t): Remove type.
40056         (isw*): Use wint_t instead of __wctype_wint_t.
40057         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
40058         * modules/wchar (Files): Add m4/wint_t.m4.
40059         (Makefile.am): Substitute HAVE_WINT_T.
40060         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
40061         * tests/test-wctype.c: Check that wint_t is defined.
40062         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
40063         * doc/posix-headers/wctype.texi: Likewise.
40064         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40065
40066 2008-09-18  Bruno Haible  <bruno@clisp.org>
40067
40068         * gnulib-tool (func_exit): Update comment.
40069
40070 2008-09-18  Simon Josefsson  <simon@josefsson.org>
40071
40072         * modules/getaddrinfo (Depends-on): Remove strdup, this module
40073         assumes strdup exists and does not depend on strdup to return
40074         ENOMEM on out of memory conditions.
40075
40076 2008-09-18  Bruno Haible  <bruno@clisp.org>
40077
40078         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
40079         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
40080         digits for the exponent.
40081
40082 2008-09-18  Jim Meyering  <meyering@redhat.com>
40083             Bruno Haible  <bruno@clisp.org>
40084
40085         * lib/vasnprintf.c (decimal_point_char): Define also if
40086         NEED_PRINTF_INFINITE_LONG_DOUBLE.
40087
40088 2008-09-16  Bruno Haible  <bruno@clisp.org>
40089         and Eric Blake  <ebb9@byu.net>
40090
40091         vasnprintf: support Irix 5.3
40092         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
40093         that mishandle long double infinity.
40094         Reported by Tom G. Christensen.
40095
40096 2008-09-16  Bruno Haible  <bruno@clisp.org>
40097
40098         * doc/glibc-functions/scandir.texi: Mention the function is missing on
40099         Solaris 9.
40100         * doc/glibc-functions/alphasort.texi: Likewise.
40101         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
40102
40103 2008-09-16  Jim Meyering  <meyering@redhat.com>
40104
40105         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
40106         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
40107         a umask modification leak out of a subshell.  Otherwise, the
40108         opensolaris /bin/sh would be accepted and thus cause unwarranted
40109         failures in the coreutils test suite.
40110
40111 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
40112
40113         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
40114         to succeed.
40115
40116 2008-09-16  Jim Meyering  <meyering@redhat.com>
40117
40118         avoid spurious test failure when library is built without ACL support
40119         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
40120         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
40121         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
40122         * tests/test-copy-acl.sh: Likewise.
40123
40124 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40125
40126         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
40127         based on character occurrence counts.
40128
40129 2008-09-15  Eric Blake  <ebb9@byu.net>
40130
40131         tests: avoid some compiler warnings
40132         * tests/test-memchr.c (main): Pass NULL indirectly.
40133         * tests/test-closein.c (main): Avoid unused variable.
40134
40135 2008-09-15  Bruno Haible  <bruno@clisp.org>
40136
40137         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
40138         are missing on OpenBSD 4.0 individually.
40139         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40140
40141 2008-09-15  Bruno Haible  <bruno@clisp.org>
40142
40143         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
40144         * doc/posix-functions/strerror.texi: Mention also Cygwin.
40145         * doc/posix-functions/perror.texi: Likewise.
40146         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
40147         is missing.
40148         Reported by Eric Blake.
40149
40150         * lib/errno.in.h: Use replacement values >= 2000.
40151         Reported by Eric Blake.
40152
40153 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40154
40155         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
40156         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
40157         limit.
40158         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
40159         compareseq was aborted.
40160
40161 2008-09-14  Bruno Haible  <bruno@clisp.org>
40162
40163         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
40164         yvec_edit_count.
40165         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
40166         (fstrcmp_bounded): Simplify result computation accordingly.
40167
40168 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40169
40170         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
40171         (fstrcmp): Define in terms of fstrcmp_bounded.
40172         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
40173         lower_bound argument.
40174         Return quickly if the result is certainly < lower_bound.
40175         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
40176
40177 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40178
40179         * lib/diffseq.h (EARLY_ABORT): New macro.
40180         (compareseq): Change return type to bool. Return true when EARLY_ABORT
40181         evaluates to true.
40182
40183 2008-09-14  Bruno Haible  <bruno@clisp.org>
40184
40185         * modules/perror-tests: New file.
40186         * tests/test-perror.sh: New file.
40187         * tests/test-perror.c: New file.
40188
40189         New module 'perror'.
40190         * lib/stdio.in.h (perror): New declaration.
40191         * lib/perror.c: New file.
40192         * m4/perror.m4: New file.
40193         * modules/perror: New file.
40194         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
40195         * doc/posix-functions/perror.texi: Mention the perror module.
40196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
40197         REPLACE_PERROR.
40198         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
40199         REPLACE_PERROR.
40200
40201 2008-09-14  Bruno Haible  <bruno@clisp.org>
40202
40203         * modules/stdio (Makefile.am): Reorder to match the order in
40204         lib/stdio.in.h.
40205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40206
40207 2008-09-13  Bruno Haible  <bruno@clisp.org>
40208
40209         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
40210
40211 2008-09-13  Bruno Haible  <bruno@clisp.org>
40212
40213         Extend strerror to cover the added errno values.
40214         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
40215         (rpl_strerror): Provide error messages for the added errno values and
40216         for the WSA* values.
40217         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
40218         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
40219         strerror.
40220         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
40221         * modules/strerror (Depends-on): Add errno.
40222         * doc/posix-functions/strerror.texi: Document the change.
40223         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
40224         and EOVERFLOW.
40225
40226 2008-09-13  Bruno Haible  <bruno@clisp.org>
40227
40228         * modules/EOVERFLOW: Remove file.
40229         * m4/eoverflow.m4: Remove file.
40230         * modules/EOVERFLOW-tests: Remove file.
40231         * tests/test-EOVERFLOW.c: Remove file.
40232         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
40233         * modules/ftell (Depends-on): Likewise.
40234         * modules/getdelim (Depends-on): Likewise.
40235         * modules/getugroups (Depends-on): Likewise.
40236         * modules/poll (Depends-on): Likewise.
40237         * modules/snprintf (Depends-on): Likewise.
40238         * modules/sprintf-posix (Depends-on): Likewise.
40239         * modules/vasnprintf (Depends-on): Likewise.
40240         * modules/vasprintf (Depends-on): Likewise.
40241         * modules/vfprintf-posix (Depends-on): Likewise.
40242         * modules/vsnprintf (Depends-on): Likewise.
40243         * modules/vsprintf-posix (Depends-on): Likewise.
40244         * modules/xvasprintf (Depends-on): Likewise.
40245         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40246         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
40247         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
40248         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
40249         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40250         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
40251         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
40252         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
40253         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40254         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
40255         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
40256         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
40257         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40258         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
40259         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
40260         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
40261         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40262         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
40263         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
40264         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
40265         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40266         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
40267         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
40268         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
40269         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
40270         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40271         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
40272         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
40273         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
40274         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
40275         * MODULES.html.sh: Remove EOVERFLOW.
40276         * NEWS: Mention the change.
40277
40278 2008-09-13  Bruno Haible  <bruno@clisp.org>
40279
40280         * modules/errno-tests: New file.
40281         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
40282
40283         * lib/errno.in.h: New file.
40284         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
40285         * modules/errno: New file.
40286         * doc/posix-headers/errno.texi: Update documentation.
40287         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
40288
40289 2008-09-13  Bruno Haible  <bruno@clisp.org>
40290
40291         * tests/test-poll.c: Use #if for native Windows, rather than testing
40292         __MSVCRT__.
40293
40294 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40295             Bruno Haible  <bruno@clisp.org>
40296
40297         * lib/glob.c: Don't include <pwd.h> on native Windows.
40298         (WINDOWS32): New macro.
40299         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
40300
40301 2008-09-13  Bruno Haible  <bruno@clisp.org>
40302
40303         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
40304         (ETIMEDOUT): Remove macro.
40305         (glthread_cond_timedwait_multithreaded): New declaration.
40306         (glthread_cond_timedwait): Use it.
40307         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
40308         (glthread_cond_timedwait_multithreaded): New function.
40309
40310 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40311
40312         * modules/poll-tests: Do not check for io.h.
40313         * tests/test-poll.c: Check for __MSVCRT__ instead.
40314
40315 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40316
40317         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
40318         * modules/poll-tests: Add inet_pton, stdbool, sockets.
40319         * tests/test-poll.c: Use them.  Use _pipe on Windows.
40320
40321 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40322
40323         * modules/poll-tests: New.
40324         * tests/test-poll.c: New.
40325
40326 2008-09-12  Eric Blake  <ebb9@byu.net>
40327
40328         frexp: test for NetBSD failure on -0.0
40329         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
40330         not all, bugs from NetBSD 3.0 have been fixed.
40331         * doc/posix-functions/frexp.texi (frexp): Document bug.
40332         Reported by Thomas Klausner.
40333
40334         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
40335         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
40336         literal -0.0.
40337         Reported by Jonathan C. Patschke <jp@centtech.com>.
40338
40339 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40340
40341         * lib/glthread/cond.h: Use dummy implementation also if
40342         USE_WIN32_THREADS.
40343
40344 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40345
40346         * modules/fnmatch-posix (License): Change to LGPLv2+.
40347         * modules/fnmatch-gnu (License): Likewise.
40348
40349 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40350
40351         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
40352
40353 2008-09-11  Jim Meyering  <meyering@redhat.com>
40354
40355         * users.txt: Add gtk-vnc.
40356
40357 2008-09-08  Simon Josefsson  <simon@josefsson.org>
40358
40359         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
40360         rotate amounts.
40361
40362         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
40363         required for 16-bit and 8-bit rotates.
40364         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
40365         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
40366         UINT8_MAX instead of hard-coded constants.
40367         Suggested by Paul Eggert.
40368
40369 2008-09-07  Bruno Haible  <bruno@clisp.org>
40370
40371         * tests/test-striconveh.c (main): Check behaviour when converting from
40372         UTF-7.
40373
40374         Make striconveh work better with stateful encodings.
40375         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
40376         that iconv does not increment the inptr when returning -1/EINVAL.
40377
40378 2008-09-07  Bruno Haible  <bruno@clisp.org>
40379
40380         * build-aux/config.rpath: Update according to libtool-2.2.6.
40381         * build-aux/config.libpath: Likewise.
40382
40383 2008-09-06  Bruno Haible  <bruno@clisp.org>
40384
40385         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
40386         * lib/freadptr.c (freadptr): Likewise.
40387         * lib/freadseek.c (freadptrinc): Likewise.
40388         Reported by Simon Josefsson.
40389
40390 2008-09-06  Bruno Haible  <bruno@clisp.org>
40391
40392         * modules/freadptr (License): Change to LGPLv2+.
40393         * modules/freadseek (License): Likewise.
40394         Suggested by Eric Blake.
40395
40396         * modules/memchr2 (License): Change to LGPLv2+.
40397         Approved by Eric Blake.
40398
40399 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40400             Bruno Haible  <bruno@clisp.org>
40401
40402         Make gnulib-tool work with native 'sed' on AIX.
40403         * gnulib-tool (sed_noop): New variable.
40404         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
40405         func_add_or_update, func_create_testdir): Use it to initialize sed
40406         script variables.
40407         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40408
40409 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
40410             Bruno Haible  <bruno@clisp.org>
40411
40412         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
40413         also works after #include directives.
40414
40415 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
40416
40417         getdate.y: reject an out-of-range timezone value
40418         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
40419         the range [-24...+24].  When specified with only one or two digits,
40420         * tests/test-getdate.c: Tests for the fix.
40421         * doc/getdate.texi: Document this change.
40422
40423 2008-09-03  Bruno Haible  <bruno@clisp.org>
40424
40425         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
40426
40427 2008-09-02  Simon Josefsson  <simon@josefsson.org>
40428
40429         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
40430         <bruce.korb@gmail.com> with ideas from Ben Pfaff
40431         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
40432         Blake <ebb9@byu.net>.
40433
40434         * tests/test-bitrotate.c: Add more test vectors.
40435
40436 2008-09-02  Eric Blake  <ebb9@byu.net>
40437
40438         vasnprintf-posix: handle large precision via %.*d
40439         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
40440         when handling it ourselves.
40441         * tests/test-vasnprintf-posix.c (test_function): Add test.
40442         * tests/test-snprintf-posix.h (test_function): Likewise.
40443         * tests/test-sprintf-posix.h (test_function): Likewise.
40444         * tests/test-vasprintf-posix.c (test_function): Likewise.
40445         Reported by Alain Guibert.
40446
40447 2008-09-01  Eric Blake  <ebb9@byu.net>
40448
40449         c-stack: make configure-time check more robust
40450         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
40451         successful sigaction call.
40452         Reported by Tom G. Christensen.
40453
40454 2008-09-01  Bruno Haible  <bruno@clisp.org>
40455
40456         New module 'findprog-lgpl'.
40457         * modules/findprog-lgpl: New file.
40458         * lib/findprog-lgpl.c: New file.
40459         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
40460         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
40461         to decide whether to use strdup or xstrdup, concatenated_filename or
40462         xconcatenated_filename.
40463
40464 2008-09-01  Bruno Haible  <bruno@clisp.org>
40465
40466         Split module 'concat-filename' into 'concat-filename' (LGPL) and
40467         'xconcat-filename' (GPL).
40468         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
40469         (License): Change to LGPLv2+.
40470         * modules/xconcat-filename: New file.
40471         * lib/concat-filename.h (concatenated_filename): Change specification.
40472         (xconcatenated_filename): New declaration.
40473         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
40474         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
40475         memory situations.
40476         * lib/xconcat-filename.c: New file.
40477         * NEWS: Mention the change.
40478         * lib/findprog.c: Include concat-filename.h, not filename.h.
40479         (find_in_path): Use xconcatenated_filename instead of
40480         concatenated_filename.
40481         * lib/javacomp.c: Include concat-filename.h, not filename.h.
40482         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
40483         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
40484         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
40485         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
40486         instead of concatenated_filename.
40487         * lib/javaexec.c: Include concat-filename.h, not filename.h.
40488         (execute_java_class): Use xconcatenated_filename instead of
40489         concatenated_filename.
40490         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
40491         * modules/javacomp (Depends-on): Likewise.
40492         * modules/javaexec (Depends-on): Likewise.
40493
40494 2008-09-01  Bruno Haible  <bruno@clisp.org>
40495
40496         Split module 'filename' into 'filename' and 'concat-filename'.
40497         * modules/filename: Keep only lib/filename.h.
40498         (License): Change to LGPLv2+.
40499         * modules/concat-filename: New file, extracted from modules/filename.
40500         * lib/filename.h (concatenated_filename): Remove declaration.
40501         * lib/concat-filename.h: New file, extracted from lib/filename.h.
40502         * lib/concat-filename.c: Include concat-filename.h.
40503         * NEWS: Mention the change.
40504
40505 2008-09-01  Simon Josefsson  <simon@josefsson.org>
40506
40507         * lib/bitrotate.h (rotl8, rotr8): Add.
40508
40509         * modules/bitrotate (configure.ac): Need
40510         AC_REQUIRE([AC_C_INLINE]).
40511         (Description): Mention stdint.h.  Reported by Bruno Haible
40512         <bruno@clisp.org>.
40513
40514         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
40515         Paolo Bonzini <bonzini@gnu.org>.
40516
40517 2008-08-31  Bruno Haible  <bruno@clisp.org>
40518
40519         Assume Solaris specific bi-arch conventions on Solaris systems.
40520         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
40521         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
40522         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
40523         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
40524         like acl_libdirstem.
40525         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
40526         acl_libdirstem.
40527         * NEWS: Mention the change.
40528         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
40529
40530 2008-08-31  Jim Meyering  <meyering@redhat.com>
40531
40532         * lib/strftime.h: Add comments describing the two added arguments.
40533
40534         remove duplicate #include directives
40535         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
40536         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
40537
40538 2008-08-31  Bruno Haible  <bruno@clisp.org>
40539
40540         New module 'sigpipe-die'.
40541         * modules/sigpipe-die: New file.
40542         * lib/sigpipe-die.h: New file.
40543         * lib/sigpipe-die.c: New file.
40544         * MODULES.html.sh (Signal handling): Add sigpipe-die.
40545
40546 2008-08-31  Bruno Haible  <bruno@clisp.org>
40547
40548         Don't override previously installed signal handlers.
40549         * lib/fatal-signal.c (saved_sigactions): New variable.
40550         (uninstall_handlers): Reset the signal to the saved handler, not
40551         to SIG_DFL (except when ignored).
40552         (install_handlers): Save the previous handlers.
40553
40554 2008-08-30  Bruno Haible  <bruno@clisp.org>
40555
40556         * gnulib-tool (func_reset_sigpipe): New function.
40557         (func_get_automake_snippet, func_modules_transitive_closure,
40558         func_import): Invoke it before a join command that reads from stdin,
40559         to avoid "echo: write error: Broken pipe" error messages on stderr.
40560         Reported by Sam Steingold <sds@gnu.org>.
40561
40562 2008-08-30  Bruno Haible  <bruno@clisp.org>
40563
40564         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
40565         Code copied from m4/open.m4.
40566         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
40567         access and the filename ends in a slash. Code copied from lib/open.c.
40568         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
40569         * tests/test-fopen.c (main): Check against bug with trailing slash.
40570
40571 2008-08-29  Bruno Haible  <bruno@clisp.org>
40572
40573         Avoid some "gcc -pedantic" warnings.
40574         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
40575         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
40576         * lib/dirent.in.h: Likewise.
40577         * lib/fcntl.in.h: Likewise.
40578         * lib/float.in.h: Likewise.
40579         * lib/iconv.in.h: Likewise.
40580         * lib/inttypes.in.h: Likewise.
40581         * lib/locale.in.h: Likewise.
40582         * lib/math.in.h: Likewise.
40583         * lib/netinet_in.in.h: Likewise.
40584         * lib/search.in.h: Likewise.
40585         * lib/signal.in.h: Likewise.
40586         * lib/stdarg.in.h: Likewise.
40587         * lib/stdint.in.h: Likewise.
40588         * lib/stdio.in.h: Likewise.
40589         * lib/stdlib.in.h: Likewise.
40590         * lib/string.in.h: Likewise.
40591         * lib/strings.in.h: Likewise.
40592         * lib/sys_select.in.h: Likewise.
40593         * lib/sys_socket.in.h: Likewise.
40594         * lib/sys_stat.in.h: Likewise.
40595         * lib/sys_time.in.h: Likewise.
40596         * lib/sysexits.in.h: Likewise.
40597         * lib/time.in.h: Likewise.
40598         * lib/unistd.in.h: Likewise.
40599         * lib/wchar.in.h: Likewise.
40600         * lib/wctype.in.h: Likewise.
40601         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
40602         * modules/fchdir (Makefile.am): Likewise.
40603         * modules/fcntl (Makefile.am): Likewise.
40604         * modules/float (Makefile.am): Likewise.
40605         * modules/iconv_open (Makefile.am): Likewise.
40606         * modules/inttypes (Makefile.am): Likewise.
40607         * modules/locale (Makefile.am): Likewise.
40608         * modules/math (Makefile.am): Likewise.
40609         * modules/netinet_in (Makefile.am): Likewise.
40610         * modules/search (Makefile.am): Likewise.
40611         * modules/signal (Makefile.am): Likewise.
40612         * modules/stdarg (Makefile.am): Likewise.
40613         * modules/stdint (Makefile.am): Likewise.
40614         * modules/stdio (Makefile.am): Likewise.
40615         * modules/stdlib (Makefile.am): Likewise.
40616         * modules/string (Makefile.am): Likewise.
40617         * modules/strings (Makefile.am): Likewise.
40618         * modules/sys_select (Makefile.am): Likewise.
40619         * modules/sys_socket (Makefile.am): Likewise.
40620         * modules/sys_stat (Makefile.am): Likewise.
40621         * modules/sys_time (Makefile.am): Likewise.
40622         * modules/sysexits (Makefile.am): Likewise.
40623         * modules/time (Makefile.am): Likewise.
40624         * modules/unistd (Makefile.am): Likewise.
40625         * modules/wchar (Makefile.am): Likewise.
40626         * modules/wctype (Makefile.am): Likewise.
40627         Reported by Reuben Thomas <rrt@sc3d.org>.
40628
40629 2008-08-29  Bruno Haible  <bruno@clisp.org>
40630
40631         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
40632         any more.
40633
40634 2008-08-29  Simon Josefsson  <simon@josefsson.org>
40635
40636         * MODULES.html.sh (Misc): Add bitrotate.
40637
40638         * modules/bitrotate: New file.
40639
40640         * lib/bitrotate.h: New file.
40641
40642         * modules/bitrotate-tests: New file.
40643
40644         * tests/test-bitrotate.c: New file.
40645
40646         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
40647         on the bitrotate module.
40648
40649         * lib/arctwo.c: Use new bitrotate module.
40650
40651 2008-08-29  Jim Meyering  <meyering@redhat.com>
40652
40653         bootstrap: merge changes from coreutils
40654         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
40655         of copied files.  Remove a kludge, now that this is fixed.
40656         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
40657         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
40658         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
40659
40660 2008-08-29  Bruno Haible  <bruno@clisp.org>
40661
40662         * MODULES.html.sh: Remove --cvs-urls option.
40663
40664 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
40665
40666         maint.mk: adjust to file name change
40667         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
40668
40669 2008-08-28  Jim Meyering  <meyering@redhat.com>
40670
40671         * modules/getndelim2 (License): Relicense to LGPLv2+.
40672         Approved by Richard Stallman for the version of 1995, and by
40673         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
40674
40675 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
40676
40677         * lib/getdelim.c (flockfile, funlockfile): Make all of them
40678         dummy if one is not available.  Do not touch them if
40679         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
40680         (getc_maybe_unlocked): New.
40681         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
40682
40683 2008-08-26  Eric Blake  <ebb9@byu.net>
40684
40685         doc/INSTALL: resync from autoconf
40686         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
40687         (INSTALL_PRELUDE): Delete; this is done more efficiently by
40688         moving...
40689         * install.texi [!autoconf]: ...here.  Resync from autoconf.
40690         * INSTALL: Regenerate.
40691         * INSTALL.ISO: New file.
40692         * INSTALL.UTF-8: Likewise.
40693
40694 2008-08-26  Jim Meyering  <meyering@redhat.com>
40695
40696         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
40697         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
40698         these definitions conditional, so that they may be overridden, too.
40699
40700 2008-08-26  Bruno Haible  <bruno@clisp.org>
40701
40702         Generate INSTALL file variants with prettier quotes.
40703         * doc/Makefile (INSTALL_PRELUDE): New macro.
40704         (INSTALL): Use it.
40705         (INSTALL.ISO, INSTALL.UTF-8): New rules.
40706
40707 2008-08-26  Bruno Haible  <bruno@clisp.org>
40708
40709         Run makeinfo in an English locale.
40710         * doc/Makefile (MAKEINFO): New variable.
40711
40712 2008-08-26  Bruno Haible  <bruno@clisp.org>
40713
40714         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
40715         Suggested by Eric Blake.
40716
40717 2008-08-25  Bruno Haible  <bruno@clisp.org>
40718
40719         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
40720
40721 2008-08-25  Eric Blake  <ebb9@byu.net>
40722
40723         c-stack: test that stack overflow can be caught
40724         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
40725         that platform allows handling stack overflow; at least OS/2 EMX
40726         has sigaltstack, but crashes before transferring control to
40727         handler on stack overflow.
40728         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
40729         check for HAVE_STACK_OVERFLOW_HANDLING.
40730         Reported by Elbert Pol.
40731
40732 2008-08-25  Bruno Haible  <bruno@clisp.org>
40733
40734         * doc/posix-functions/strftime.texi: Fix description of strftime
40735         module.
40736
40737 2008-08-24  Bruno Haible  <bruno@clisp.org>
40738
40739         * tests/uniwidth/test-uc_width2.c: New file.
40740         * tests/uniwidth/test-uc_width2.sh: New file.
40741         * modules/uniwidth/width-tests (Files): Add the new files.
40742         (TESTS): Add uniwidth/test-uc_width2.sh.
40743         (TESTS_ENVIRONMENT): New variable.
40744         (check_PROGRAMS): Add test-uc_width2.
40745         (test_uc_width2_SOURCES): New variable.
40746
40747         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
40748         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
40749         not 0x00AB.
40750         Reported by Alexander V. Lukyanov <lav@netis.ru>.
40751
40752 2008-08-22  Eric Blake  <ebb9@byu.net>
40753
40754         test-lock, test-tls: mention why a test is skipped
40755         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
40756         skipped.
40757         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
40758
40759         count-one-bits: relax license
40760         * modules/count-one-bits (License): Relicense to LGPLv2+.
40761         Suggested by Ludovic Courtès, approved by Ben Pfaff.
40762
40763 2008-08-22  Andreas Schwab  <schwab@suse.de>
40764
40765         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
40766         Remove spurious space in assignment.
40767
40768 2008-08-21  Simon Josefsson  <simon@josefsson.org>
40769
40770         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
40771         Paul Eggert <eggert@CS.UCLA.EDU>.
40772
40773 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
40774
40775         * modules/gettext: Add m4/threadlib.m4.
40776
40777 2008-08-19  Eric Blake  <ebb9@byu.net>
40778
40779         test-c-stack: fix compilation failure on FreeBSD 5.0
40780         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
40781         headers before <sys/resource.h>.
40782         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
40783         the bug.
40784         Reported by Nelson H. F. Beebe.
40785
40786         strverscmp: migrate from "strverscmp.h" to <string.h>
40787         * modules/string (Makefile.am): Add new hooks.
40788         * modules/strverscmp (Files): Remove strverscmp.h.
40789         (Depends-on): Add string.
40790         (configure.ac): Add indicator.
40791         (Include): Mention new header.
40792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
40793         defaults.
40794         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
40795         results.
40796         * lib/strverscmp.h: Delete.
40797         * lib/string.in.h (strverscmp): Provide declaration, when needed.
40798         * tests/test-strverscmp.c (includes): Adjust client.
40799         * lib/check-version.c (includes): Likewise.
40800         * NEWS: Document the change.
40801
40802         strverscmp: add unit test
40803         * modules/strverscmp-tests: New file.
40804         * tests/test-strverscmp.c: Likewise.
40805
40806 2008-08-19  Simon Josefsson  <simon@josefsson.org>
40807
40808         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
40809         regarding Windows crypto stuff, from Mono.
40810
40811 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
40812
40813         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
40814         if present, for intel RND.  Return error on failures.
40815
40816 2008-08-18  Ben Pfaff  <blp@gnu.org>
40817
40818         gitlog-to-changelog: give better diagnostic for failed pipe-open
40819         * build-aux/gitlog-to-changelog: Improve error message: suggest
40820         that the version of Git may be too old.
40821
40822 2008-08-18  Simon Josefsson  <simon@josefsson.org>
40823
40824         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
40825         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
40826
40827 2008-08-18  Bruno Haible  <bruno@clisp.org>
40828
40829         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
40830         pthread_in_use().
40831
40832 2008-08-18  Bruno Haible  <bruno@clisp.org>
40833
40834         * lib/glthread/threadlib.c: Include <pthread.h>.
40835
40836 2008-08-18  Bruno Haible  <bruno@clisp.org>
40837
40838         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
40839         glthread_recursive_lock_* macros.
40840         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
40841         Fix syntax error.
40842
40843 2008-08-18  Bruno Haible  <bruno@clisp.org>
40844
40845         * lib/glthread/thread.c: Avoid forcing a context switch right after
40846         thread creation.
40847
40848 2008-08-17  Bruno Haible  <bruno@clisp.org>
40849
40850         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
40851         * lib/glthread/thread.h: Provide Win32 specific implementation.
40852         * modules/thread (Files): Add lib/glthread/thread.c.
40853         (Depends-on): Add lock.
40854         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
40855
40856 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40857
40858         New module 'yield'.
40859         * modules/yield: New file.
40860         * lib/glthread/yield.h: New file.
40861         * m4/yield.m4: New file.
40862         * MODULES.html.sh (Multithreading): Add yield.
40863
40864 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40865
40866         New module 'thread'.
40867         * modules/thread: New file.
40868         * lib/glthread/thread.h: New file.
40869         * m4/thread.m4: New file.
40870         * MODULES.html.sh (Multithreading): Add thread.
40871
40872 2008-08-17  Bruno Haible  <bruno@clisp.org>
40873
40874         * lib/glthread/lock.h: Include <stdlib.h> always.
40875         * lib/glthread/tls.h: Likewise.
40876         * lib/glthread/cond.h: Likewise.
40877
40878 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40879
40880         New module 'cond'.
40881         * modules/cond: New file.
40882         * lib/glthread/cond.h: New file.
40883         * lib/glthread/cond.c: New file.
40884         * m4/cond.m4: New file.
40885         * MODULES.html.sh (Multithreading): Add cond.
40886
40887 2008-08-16  Eric Blake  <ebb9@byu.net>
40888
40889         c-stack: fix regression on Irix 5.3 from 2008-06-21
40890         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
40891         sa_sigaction...
40892         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
40893         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
40894         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
40895         * modules/signal (Makefile.am): Use the value.
40896         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
40897         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
40898         * doc/posix-headers/signal.texi (signal.h): Document this
40899         portability issue.
40900         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
40901         Reported by Tom G. Christensen.
40902
40903 2008-08-17  Bruno Haible  <bruno@clisp.org>
40904
40905         New module 'threadlib'.
40906         * modules/threadlib: New file.
40907         * lib/glthread/threadlib.c: New file, extracted from
40908         lib/glthread/lock.c.
40909         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
40910         functions.
40911         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
40912         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
40913         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
40914         macros.
40915         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
40916         (gl_DISABLE_THREADS): Remove macro.
40917         * modules/lock (Files): Remove build-aux/config.rpath.
40918         (Depends-on): Remove havelib. Add threadlib.
40919         (configure.ac-early): Remove section.
40920         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
40921         * modules/tls (Depends-on): Remove lock. Add threadlib.
40922         (Link): New section, copied from threadlib.
40923         * MODULES.html.sh (Multithreading): Add threadlib.
40924
40925 2008-08-14  Bruno Haible  <bruno@clisp.org>
40926
40927         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
40928         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
40929         glthread_rwlock_unlock, glthread_rwlock_destroy,
40930         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
40931         glthread_recursive_lock_destroy): Define as macros always.
40932         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
40933         glthread_lock_lock.
40934         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
40935         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
40936         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
40937         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
40938         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
40939         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
40940         (glthread_recursive_lock_lock_func): Renamed from
40941         glthread_recursive_lock_lock.
40942         (glthread_recursive_lock_unlock_func): Renamed from
40943         glthread_recursive_lock_unlock.
40944         (glthread_recursive_lock_destroy_func): Renamed from
40945         glthread_recursive_lock_destroy.
40946
40947 2008-08-14  Bruno Haible  <bruno@clisp.org>
40948
40949         * lib/glthread/lock.h: Renamed from lib/lock.h.
40950         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
40951         * lib/glthread/tls.h: Renamed from lib/tls.h.
40952         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
40953         * lib/fstrcmp.c: Update includes.
40954         * lib/strsignal.c: Update includes.
40955         * modules/lock (Files, Makefile.am): Update.
40956         (Include): Change to "glthread/lock.h".
40957         * modules/tls (Files, Makefile.am): Update.
40958         (Include): Change to "glthread/tls.h".
40959         * tests/test-lock.c: Update includes.
40960         * tests/test-tls.c: Update includes.
40961         * NEWS: Mention the renamed header files.
40962
40963 2008-08-11  Jim Meyering  <meyering@redhat.com>
40964
40965         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
40966
40967 2008-08-11  Eric Blake  <ebb9@byu.net>
40968
40969         test-c-stack: avoid C99-ism
40970         * tests/test-c-stack.c (main): Fix whitespace, move declaration
40971         before statement.
40972         Reported by Alain Guibert.
40973
40974 2008-08-10  Jim Meyering  <meyering@redhat.com>
40975
40976         ensure that return value of uinttostr et al are not ignored
40977         * lib/inttostr.h (__GNUC_PREREQ): Define.
40978         (__attribute_warn_unused_result__): Define.
40979         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
40980
40981 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
40982
40983         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
40984         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
40985
40986 2008-08-07  Jim Meyering  <meyering@redhat.com>
40987
40988         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
40989
40990         * modules/mkstemp (License): Relicense under LGPLv2+.
40991         * modules/tempname (License): Likewise.
40992
40993 2008-08-06  Bruno Haible  <bruno@clisp.org>
40994
40995         * lib/poll.c (poll): Further micro-optimization.
40996
40997 2008-08-06  Jim Meyering  <meyering@redhat.com>
40998
40999         inet_pton.c: use locale-independent tolower
41000         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
41001         (inet_pton6): Use c_tolower rather than tolower.
41002         * modules/inet_pton (Depends-on): Add c-ctype.
41003
41004 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
41005
41006         * lib/poll.c (poll): Avoid division when timeout is 0, cache
41007         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
41008
41009 2008-08-06  Jim Meyering  <meyering@redhat.com>
41010
41011         * modules/inet_pton (License): Relicense under LGPLv2+.
41012
41013 2008-08-03  Bruno Haible  <bruno@clisp.org>
41014
41015         Additional non-aborting API for lock and tls.
41016         * lib/lock.h: Include <errno.h>.
41017         (glthread_lock_init): New macro/function.
41018         (gl_lock_init): Define as wrapper around glthread_lock_init.
41019         (glthread_lock_lock): New macro/function.
41020         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
41021         (glthread_lock_unlock): New macro/function.
41022         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
41023         (glthread_lock_destroy): New macro/function.
41024         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
41025         (glthread_rwlock_init): New macro/function.
41026         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
41027         (glthread_rwlock_rdlock): New macro/function.
41028         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
41029         (glthread_rwlock_wrlock): New macro/function.
41030         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
41031         (glthread_rwlock_unlock): New macro/function.
41032         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
41033         (glthread_rwlock_destroy): New macro/function.
41034         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
41035         (glthread_recursive_lock_init): New macro/function.
41036         (gl_recursive_lock_init): Define as wrapper around
41037         glthread_recursive_lock_init.
41038         (glthread_recursive_lock_lock): New macro/function.
41039         (gl_recursive_lock_lock): Define as wrapper around
41040         glthread_recursive_lock_lock.
41041         (glthread_recursive_lock_unlock): New macro/function.
41042         (gl_recursive_lock_unlock): Define as wrapper around
41043         glthread_recursive_lock_unlock.
41044         (glthread_recursive_lock_destroy): New macro/function.
41045         (gl_recursive_lock_destroy): Define as wrapper around
41046         glthread_recursive_lock_destroy.
41047         (glthread_once): New macro/function.
41048         (gl_once): Define as wrapper around glthread_once.
41049         Update function declarations.
41050         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
41051         glthread_rwlock_init. Return error code.
41052         (glthread_rwlock_rdlock_multithreaded): Renamed from
41053         glthread_rwlock_rdlock. Return error code.
41054         (glthread_rwlock_wrlock_multithreaded): Renamed from
41055         glthread_rwlock_wrlock. Return error code.
41056         (glthread_rwlock_unlock_multithreaded): Renamed from
41057         glthread_rwlock_unlock. Return error code.
41058         (glthread_rwlock_destroy_multithreaded): Renamed from
41059         glthread_rwlock_destroy. Return error code.
41060         (glthread_recursive_lock_init_multithreaded): Renamed from
41061         glthread_recursive_lock_init. Return error code.
41062         (glthread_recursive_lock_lock_multithreaded): Renamed from
41063         glthread_recursive_lock_lock. Return error code.
41064         (glthread_recursive_lock_unlock_multithreaded): Renamed from
41065         glthread_recursive_lock_unlock. Return error code.
41066         (glthread_recursive_lock_destroy_multithreaded): Renamed from
41067         glthread_recursive_lock_destroy. Return error code.
41068         (glthread_once_call): Make static.
41069         (glthread_once_multithreaded): Renamed from glthread_once.
41070         * lib/tls.h: Include <errno.h>.
41071         (glthread_tls_key_init): New macro/function.
41072         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
41073         (glthread_tls_set): New macro/function.
41074         (gl_tls_set): Define as wrapper around glthread_tls_set.
41075         (glthread_tls_key_destroy): New macro/function.
41076         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
41077         Update function declarations.
41078         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
41079         glthread_tls_get.
41080         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41081
41082 2008-08-04  Eric Blake  <ebb9@byu.net>
41083
41084         gnumakefile: use space, not TAB, outside of targets
41085         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
41086
41087 2008-08-02  Jim Meyering  <meyering@redhat.com>
41088
41089         getdate.y: avoid locale-dependent date parsing failure
41090         In Turkish locales, getdate would fail to recognize keywords
41091         containing a lowercase "i".  The solution is not to rely on
41092         locale-sensitive case-conversion.
41093         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
41094         (lookup_word): Use c_toupper in place of toupper.
41095         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
41096         Reported by Vefa Bicakci <bicave@superonline.com> in
41097         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
41098         * modules/getdate (Depends-on): Add c-ctype.
41099
41100 2008-08-02  Bruno Haible  <bruno@clisp.org>
41101
41102         * gnulib-tool (func_import): When updating or creating a .gitignore
41103         file, prepend each added line with a slash, and ignore leading slashes
41104         from the existing lines.
41105         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
41106
41107 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41108
41109         Portability fix for GNU make 3.79.1.
41110         * top/GNUmakefile: Avoid 'else COND', which older GNU make
41111         versions do not understand.
41112
41113 2008-08-01  Bruno Haible  <bruno@clisp.org>
41114
41115         Work around bug of HP-UX 10.20 cc with -0.0 literal.
41116         * tests/test-isnanf.h (zero): New variable.
41117         (main): Avoid literal -0.0f.
41118         * tests/test-isnand.h (zero): New variable.
41119         (main): Avoid literal -0.0.
41120         * tests/test-isnanl.h (zero): New variable.
41121         (main): Avoid literal -0.0L.
41122         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
41123         (test_float, test_double, test_long_double): Avoid literals -0.0f,
41124         -0.0, -0.0L.
41125         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
41126         (test_signbitd): Avoid literal -0.0.
41127         (test_signbitl): Avoid literal -0.0L.
41128         * tests/test-ceilf1.c (zero): New variable.
41129         (main): Avoid literal -0.0f.
41130         * tests/test-ceill.c (zero): New variable.
41131         (main): Avoid literal -0.0L.
41132         * tests/test-floorf1.c (zero): New variable.
41133         (main): Avoid literal -0.0f.
41134         * tests/test-floorl.c (zero): New variable.
41135         (main): Avoid literal -0.0L.
41136         * tests/test-roundf1.c (zero): New variable.
41137         (main): Avoid literal -0.0f.
41138         * tests/test-round1.c (zero): New variable.
41139         (main): Avoid literal -0.0.
41140         * tests/test-roundl.c (zero): New variable.
41141         (main): Avoid literal -0.0L.
41142         * tests/test-truncf1.c (zero): New variable.
41143         (main): Avoid literal -0.0f.
41144         * tests/test-trunc1.c (zero): New variable.
41145         (main): Avoid literal -0.0.
41146         * tests/test-truncl.c (zero): New variable.
41147         (main): Avoid literal -0.0L.
41148         * tests/test-frexp.c (zero): New variable.
41149         (main): Avoid literal -0.0.
41150         * tests/test-frexpl.c (zero): New variable.
41151         (main): Avoid literal -0.0L.
41152         * tests/test-ldexpl.c (zero): New variable.
41153         (main): Avoid literal -0.0L.
41154         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
41155         (zerod, zerol): New variables.
41156         (test_function): Avoid literals -0.0, -0.0L.
41157         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
41158         (zerod, zerol): New variables.
41159         (test_function): Avoid literals -0.0, -0.0L.
41160         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
41161         (zerod, zerol): New variables.
41162         (test_function): Avoid literals -0.0, -0.0L.
41163         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
41164         (zerod, zerol): New variables.
41165         (test_function): Avoid literals -0.0, -0.0L.
41166         * tests/test-strtod.c (zero): New variable.
41167         (main): Avoid literal -0.0.
41168         Reported by Jonathan C. Patschke <jp@centtech.com>.
41169
41170 2008-07-31  Jim Meyering  <meyering@redhat.com>
41171
41172         sha256.h: correct definition of SHA224_DIGEST_SIZE
41173         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
41174         Reported by Paulie Pena IV <paulie4@gmail.com>.
41175         Define as 224 / 8, rather than as a literal.
41176         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
41177         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
41178         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
41179
41180 2008-07-31  Bruno Haible  <bruno@clisp.org>
41181
41182         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
41183         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
41184         Reported by Jonathan Patschke <jp@centtech.com>.
41185
41186 2008-07-31  Bruno Haible  <bruno@clisp.org>
41187
41188         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
41189         Reported by Paolo Bonzini <bonzini@gnu.org>.
41190
41191 2008-07-30  Eric Blake  <ebb9@byu.net>
41192
41193         test-strtod: allow compilation without -lm
41194         * tests/test-strtod.c (main): Avoid link dependence on fabs.
41195         Reported by Dennis Clarke <blastwave@gmail.com>.
41196
41197 2008-07-28  Jim Meyering  <meyering@redhat.com>
41198
41199         bootstrap: work also when there are no .po files in po/
41200         * build-aux/bootstrap (update_po_files): Complete the change
41201         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
41202
41203 2008-07-27  Jim Meyering  <meyering@redhat.com>
41204
41205         * users.txt: Add zile.
41206
41207 2008-07-26  Ben Pfaff  <blp@gnu.org>
41208
41209         Add missing dependencies on new m4/exponent[fdl].m4 files.
41210         * modules/isnanf-nolibm: Add m4/exponentf.m4.
41211         * modules/isnand-nolibm: Add m4/exponentd.m4.
41212         * modules/isnanl-nolibm: Add m4/exponentl.m4.
41213         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
41214         m4/isnan[fdl].m4, because the macros actually used moved.
41215         Reported by Jim Meyering.
41216
41217 2008-07-14  Ben Pfaff  <blp@gnu.org>
41218
41219         Add isinf module.
41220         * lib/isinf.c: New file.
41221         * lib/math.in.h: Define isinf macro if we have decided to replace
41222         it.
41223         * m4/isinf.m4: New file.
41224         * m4/math_h.m4: Initialize and substitute variables for isinf
41225         module.
41226         * modules/isinf: New file.
41227         * modules/isinf-tests: New file.
41228         * modules/math: Add substitutions for new module.
41229         * tests/test-isinf.c: New file.
41230         * doc/posix-functions/isinf.texi: Mention new module.
41231         * MODULES.html.sh: Mention new module.
41232
41233 2008-07-14  Ben Pfaff  <blp@gnu.org>
41234
41235         Factor out some macros for use by additional modules.
41236         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
41237         exponentf.m4.
41238         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
41239         exponentd.m4.
41240         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
41241         file exponentl.m4.
41242         * m4/exponentf.m4: New file.
41243         * m4/exponentd.m4: New file.
41244         * m4/exponentl.m4: New file.
41245         * modules/isnanf: Use new file m4/exponentf.m4.
41246         * modules/isnand: Use new file m4/exponentd.m4.
41247         * modules/isnanl: Use new file m4/exponentl.m4.
41248
41249 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
41250
41251         mktime.c: normalize tp->tm_isdst value to -1/0/1.
41252         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
41253         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
41254         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
41255
41256         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
41257         readlink on platforms without PATH_MAX.
41258
41259 2008-07-21  Eric Blake  <ebb9@byu.net>
41260
41261         Warn, not fail, on stale version.
41262         * top/GNUmakefile (_curr-ver): Tone down previous patch.
41263
41264         Don't allow installation with stale devel version number.
41265         * top/GNUmakefile (_is-install-target): New macro.
41266         (_curr-ver): Forbid installation with stale version number.
41267
41268 2008-07-20  Bruno Haible  <bruno@clisp.org>
41269
41270         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
41271         TESTS_ENVIRONMENT.
41272         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
41273
41274 2008-07-20  Bruno Haible  <bruno@clisp.org>
41275
41276         * lib/c-stack.h (c_stack_action): Add documentation.
41277         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
41278
41279 2008-07-20  Bruno Haible  <bruno@clisp.org>
41280
41281         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
41282         * modules/readlink (License): Likewise.
41283
41284 2008-07-17  Eric Blake  <ebb9@byu.net>
41285
41286         * modules/c-stack (Link): Fix typo.
41287
41288         Make c-stack use libsigsegv, when available.
41289         * modules/c-stack (Depends-on): Add libsigsegv.
41290         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
41291         needed.
41292         * lib/c-stack.c (SIGSTKSZ): Define fallback.
41293         (segv_handler, overflow_handler, c_stack_action)
41294         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
41295         implementation when libsigsegv is available, but only when using
41296         the library is necessary.
41297         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
41298         comment, explaining why XSI check fails on Linux.
41299         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
41300         * tests/test-c-stack2.sh: Tweak skip message.
41301         * NEWS: Document new link-time requirements.
41302
41303 2008-07-16  Eric Blake  <ebb9@byu.net>
41304
41305         c-stack: Expose false positives when not using libsigsegv.
41306         * modules/c-stack-tests (Files): Expand test.
41307         * tests/test-c-stack.c (main): Add means to conditionally trigger
41308         non-overflow SIGSEGV.
41309         * tests/test-c-stack2.sh: New file.
41310
41311 2008-07-14  Bruno Haible  <bruno@clisp.org>
41312
41313         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
41314         Reported by Eric Blake.
41315
41316 2008-07-14  Sam Steingold  <sds@gnu.org>
41317             Bruno Haible  <bruno@clisp.org>
41318
41319         New module libsigsegv.
41320         * modules/libsigsegv: New file.
41321         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
41322         modifications.
41323         * MODULES.html.sh (Signal handling): New section.
41324
41325 2008-07-14  Bruno Haible  <bruno@clisp.org>
41326
41327         * modules/unictype/ctype-* (Description): Add the word "function".
41328         Improves the resulting doc in MODULES.html.
41329
41330 2008-07-12  Ben Pfaff  <blp@gnu.org>
41331
41332         Add longlong module.
41333         * modules/longlong: New file.
41334
41335 2008-07-12  Bruno Haible  <bruno@clisp.org>
41336
41337         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
41338         to empty.
41339
41340 2008-07-10  Ben Pfaff  <blp@gnu.org>
41341
41342         Add isnan module.
41343         * doc/posix-functions/isnan.texi: Mention new module.
41344         * lib/math.in.h: Define isnan macro if we have decided to replace
41345         it.
41346         * m4/isnan.m4: New file.
41347         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
41348         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
41349         also.
41350         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
41351         redundancy.
41352         * m4/math_h.m4: Initialize and substitute variables for isnan
41353         module.
41354         * modules/isnan: New file.
41355         * modules/isnan-tests: New file.
41356         * modules/math: Add substitutions for new module.
41357         * tests/test-isnan.c: New file.
41358         * MODULES.html.sh: Mention new module.
41359
41360 2008-07-10  Ben Pfaff  <blp@gnu.org>
41361
41362         Add isnanf module.
41363         * lib/isnanf.m4: New file.
41364         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
41365         (gl_HAVE_ISNANF_IN_LIBM): New macro.
41366         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
41367         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
41368         * modules/isnanf: New file.
41369         * modules/isnanf-tests: New file.
41370         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
41371         files.
41372         * tests/test-isnanf-nolibm.c: factored most of its contents into
41373         new file tests/test-isnanf.h.
41374         * tests/test-isnanf.h: New file.
41375         * tests/test-isnanf.c: New file.
41376         * MODULES.html.sh: Mention new module.
41377         * doc/glibc-functions/isnanf.texi: Mention new module.
41378
41379 2008-07-10  Ben Pfaff  <blp@gnu.org>
41380
41381         Add isnand module.
41382         * lib/isnand.h: New file.
41383         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
41384         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
41385         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
41386         functionality also.
41387         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
41388         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
41389         (gl_HAVE_ISNAND_IN_LIBM): New macro.
41390         * modules/isnand: New file.
41391         * modules/isnand-tests: New file.
41392         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
41393         files.
41394         * tests/test-isnand-nolibm.c: factored most of its contents into
41395         new file tests/test-isnand.h.
41396         * tests/test-isnand.h: New file.
41397         * tests/test-isnand.c: New file.
41398         * MODULES.html.sh: Mention new module.
41399
41400 2008-07-10  Ben Pfaff  <blp@gnu.org>
41401
41402         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
41403         * lib/isnand.h: Rename lib/isnand-nolibm.h.
41404         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
41405         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
41406         * modules/isnanf-nolibm: Update references to renamed files.
41407         * modules/isnand-nolibm: Likewise.
41408         * modules/isnanf-nolibm-tests: Likewise.
41409         * modules/isnand-nolibm-tests: Likewise.
41410         * lib/frexp.c: Likewise.
41411         * lib/isfinite.c: Likewise.
41412         * lib/signbitd.c: Likewise.
41413         * lib/signbitf.c: Likewise.
41414         * lib/vasnprintf.c: Likewise.
41415         * tests/test-ceilf1.c: Likewise.
41416         * tests/test-ceilf2.c: Likewise.
41417         * tests/test-floorf1.c: Likewise.
41418         * tests/test-floorf2.c: Likewise.
41419         * tests/test-frexp.c: Likewise.
41420         * tests/test-round1.c: Likewise.
41421         * tests/test-round2.c: Likewise.
41422         * tests/test-roundf1.c: Likewise.
41423         * tests/test-strtod.c: Likewise.
41424         * tests/test-trunc1.c: Likewise.
41425         * tests/test-trunc2.c: Likewise.
41426         * tests/test-truncf1.c: Likewise.
41427         * tests/test-truncf2.c: Likewise.
41428         * NEWS: Mention the renamed header files.
41429
41430 2008-07-11  Jim Meyering  <meyering@redhat.com>
41431
41432         vc-list-files: make the last-resort awk code more portable
41433         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
41434         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
41435         does not support it.
41436
41437 2008-07-10  Eric Blake  <ebb9@byu.net>
41438
41439         Work with tar's bootstrap.
41440         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
41441         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
41442         an m4 comment.
41443
41444 2008-07-09  Jim Meyering  <meyering@redhat.com>
41445
41446         posix-shell.m4: fix typo that made this test malfunction
41447         * m4/posix-shell.m4: Remove capitalization in variable name.
41448
41449 2008-07-08  Bruno Haible  <bruno@clisp.org>
41450
41451         * m4/onceonly.m4: Update comments.
41452         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41453
41454 2008-07-04  Jim Meyering  <meyering@redhat.com>
41455
41456         * users.txt: Add vc-dwim.
41457         (bison, coreutils): Use the gitweb URL.
41458
41459 2008-07-03  Jim Meyering  <meyering@redhat.com>
41460
41461         * users.txt: Add libffcall.  From Sam Steingold.
41462
41463 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
41464
41465         getdate.y: do not ignore TZ with relative day, month or year offset
41466         * lib/getdate.y (get_date): Move the tz-handling block to follow the
41467         relative-date-handling, since otherwise, the latter would clobber the
41468         sole output (an updated Start value) of the tz-handling block.
41469         * tests/test-getdate.c: Tests for the fix
41470
41471 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41472
41473         Recognize 'foo_LIBRARIES += libgnu.a'.
41474         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
41475         makefile snippet has already specified an installation location,
41476         also using '+='.
41477
41478 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
41479
41480         getdate.y: factor out common actions
41481         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
41482         Use them in place of open-coded actions.
41483
41484 2008-07-01  Simon Josefsson  <simon@josefsson.org>
41485
41486         Add self-test for getdate module.
41487         * modules/getdate-tests: New file.
41488         * tests/test-getdate.c: New file.
41489
41490 2008-06-29  Bruno Haible  <bruno@clisp.org>
41491
41492         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
41493         .gitignore.
41494         Reported by Sylvain Beucler <beuc@beuc.net>.
41495
41496 2008-06-29  Bruno Haible  <bruno@clisp.org>
41497
41498         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
41499         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
41500
41501 2008-06-29  Bruno Haible  <bruno@clisp.org>
41502
41503         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
41504         EXTRA_DIST.
41505         Reported by Sylvain Beucler <beuc@beuc.net>.
41506
41507 2008-06-26  Jim Meyering  <meyering@redhat.com>
41508
41509         make several modules depend on the "open" module
41510         This provides slightly increased consistency when opening-for-write
41511         the name of a non-directory spelled with a trailing slash.
41512         * modules/chdir-safer: Likewise.
41513         * modules/chown: Likewise.
41514         * modules/clean-temp: Likewise.
41515         * modules/copy-file: Likewise.
41516         * modules/fchdir: Likewise.
41517         * modules/fcntl-safer: Likewise.
41518         * modules/pipe: Likewise.
41519         * modules/utime: Likewise.
41520         Prompted by Eric Blake and Bruno Haible.
41521
41522 2008-06-24  Andreas Schwab  <schwab@suse.de>
41523
41524         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
41525         literals can be used as initializers for global variables.
41526
41527 2008-06-23  Eric Blake  <ebb9@byu.net>
41528
41529         Make gnulib-cache.m4 easier to diff.
41530         * gnulib-tool (func_import): Allow newlines when reading cached
41531         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
41532
41533 2008-06-23  Bruno Haible  <bruno@clisp.org>
41534
41535         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
41536         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
41537         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
41538         m4/signalblocking.m4.
41539         (gl_PREREQ_SIGACTION): Don't invoke it.
41540         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
41541         gl_PREREQ_SIG_HANDLER_H.
41542         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41543         Don't check for sigaction here.
41544
41545 2008-06-23  Bruno Haible  <bruno@clisp.org>
41546
41547         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
41548         (install_handlers): Don't set the SA_RESETHAND flag.
41549
41550 2008-06-23  Bruno Haible  <bruno@clisp.org>
41551
41552         * m4/sigaction.m4: Comment fixes.
41553         * lib/signal.in.h: Likewise.
41554
41555 2008-06-23  Eric Blake  <ebb9@byu.net>
41556
41557         Fix typo.
41558         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
41559
41560         Avoid SA_ namespace.
41561         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
41562         Reported by Ralf Wildenhues.
41563
41564         Avoid test failure due to SA_RESTORER.
41565         * tests/test-sigaction.c (SA_MASK): New macro.
41566         (main): Avoid failing due to extension flags being set.
41567         Reported by Jim Meyering.
41568
41569         Revert use of sig-handler.h in sigprocmask.c.
41570         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
41571         it requires the existence of struct sigaction.
41572         * lib/sigprocmask.c (handler_t): Restore typedef.
41573         (rpl_signal, old_handlers): Use local type.
41574
41575 2008-06-22  Bruno Haible  <bruno@clisp.org>
41576
41577         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
41578         conditionally.
41579         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41580
41581 2008-06-22  Bruno Haible  <bruno@clisp.org>
41582
41583         * doc/posix-functions/siginterrupt.texi: Move note.
41584
41585         * lib/signal.in.h (SA_RESTART): New macro.
41586         * lib/sigaction.c: Update comment.
41587
41588         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
41589
41590         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
41591         (gl_PREREQ_SIGPROCMASK): Invoke it.
41592         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
41593
41594         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
41595
41596         * lib/sigprocmask.c: Update a comment.
41597
41598 2008-06-21  Eric Blake  <ebb9@byu.net>
41599
41600         Use sigaction module rather than signal().
41601         * modules/c-stack (Depends-on): Add sigaction.
41602         * modules/fatal-signal (Depends-on): Likewise.
41603         * modules/nanosleep (Depends-on): Likewise.
41604         * modules/sigprocmask (Files): Add sig-handler.h.
41605         * modules/sigaction (Files): Likewise.
41606         * lib/sig-handler.h (get_handler): New file, suggested by Paul
41607         Eggert.
41608         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
41609         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
41610         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
41611         (init_fatal_signals): Likewise.
41612         * lib/nanosleep.c (rpl_nanosleep): Likewise.
41613         (siginterrupt): Delete fallback.
41614         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
41615         instead.
41616         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
41617         siginterrupt.
41618
41619         New module sigaction, for mingw.
41620         * modules/sigaction: New module...
41621         * modules/sigaction-tests: ...and its test.
41622         * m4/sigaction.m4: New file.
41623         * lib/sigaction.c: Likewise.
41624         * tests/test-sigaction.c: Likewise.
41625         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
41626         * modules/signal (Makefile.am): Likewise.
41627         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
41628         needed.
41629         * doc/posix-headers/signal.texi (signal.h): Mention provided
41630         types.
41631         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
41632         that sigaction is preferable.
41633         * doc/posix-functions/sigaction.texi (sigaction): Mention new
41634         module.
41635         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41636         sigaction.
41637
41638         Improve robustness of sigprocmask by overriding signal.
41639         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
41640         is in use.
41641         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
41642         (SIGKILL, SIGSTOP): Provide fallbacks.
41643         (rpl_signal): Implement.
41644         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
41645         signal can be called inside handlers.
41646
41647         Fix nanosleep module on mingw.
41648         * modules/nanosleep (Depends-on): Add sys_select.
41649         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
41650
41651         Fix licensing of sigprocmask.
41652         * modules/raise (License): Relicense as LGPL.
41653
41654 2008-06-21  Bruno Haible  <bruno@clisp.org>
41655
41656         * lib/propername.c (proper_name_utf8): Don't use the transliterated
41657         result if it contains question marks.
41658         Reported by Michael Geng <linux@michaelgeng.de>.
41659
41660 2008-06-19  Bruno Haible  <bruno@clisp.org>
41661
41662         Fix CVS-ism.
41663         * doc/gnulib.texi: Include updated-stamp.texi.
41664         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
41665         (updated-stamp.texi): New rule.
41666         (gnulib.info): Depend on it.
41667         * doc/.gitignore: Add updated-stamp.texi.
41668         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
41669
41670 2008-06-19  Bruno Haible  <bruno@clisp.org>
41671
41672         * doc/Makefile (gnulib.info): Update and simplify dependencies.
41673         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41674
41675 2008-06-19  Eric Blake  <ebb9@byu.net>
41676
41677         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
41678         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
41679         Reported by Stepan Kasal.
41680
41681 2008-06-18  Bruno Haible  <bruno@clisp.org>
41682
41683         * lib/fatal-signal.c (init_fatal_signals): Add comment.
41684         Reported by Eric Blake.
41685
41686 2008-06-18  Eric Blake  <ebb9@byu.net>
41687
41688         Work around cygwin 1.5.25 strsignal bug.
41689         * tests/test-strsignal.c: Allow for const char *.
41690         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
41691
41692 2008-06-18  Simon Josefsson  <simon@josefsson.org>
41693
41694         * users.txt: Update URL to article and add author/date
41695         information.
41696
41697 2008-06-17  Bruno Haible  <bruno@clisp.org>
41698
41699         New macro gl_DISABLE_THREADS.
41700         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
41701         if the user did not pass --enable-threads or --disable-threads option.
41702         (gl_DISABLE_THREADS): New macro.
41703         Reported by Eric Blake <ebb9@byu.net>.
41704
41705 2008-06-17  Bruno Haible  <bruno@clisp.org>
41706
41707         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
41708         when the macro ignores it.
41709         Based on a patch by Eric Blake <ebb9@byu.net>.
41710
41711 2008-06-17  Bruno Haible  <bruno@clisp.org>
41712
41713         * modules/tls (License): Change to LGPLv2+.
41714         Reported by Eric Blake.
41715
41716 2008-06-17  Eric Blake  <ebb9@byu.net>
41717
41718         Simplify c-stack prerequisites.
41719         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
41720         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
41721         no longer requires <ucontext.h> to exist.  Optimize setrlimit
41722         check.
41723         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
41724         <sys/resource.h>.
41725
41726         Move c-stack test into testsuite.
41727         * modules/c-stack-tests: New file.
41728         * lib/c-stack.c [DEBUG]: Move test program...
41729         * tests/test-c-stack.c: ...into this new file.  Skip rather than
41730         fail test if sigaltstack is lacking.
41731         * tests/test-c-stack.sh: New driver file.
41732
41733 2008-06-16  Eric Blake  <ebb9@byu.net>
41734
41735         Use raise module consistently.
41736         * modules/fatal-signal (Depends-on): Add raise.
41737         * modules/sigprocmask (Depends-on): Likewise.
41738         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
41739         * lib/sigprocmask.c (sigprocmask): Likewise.
41740         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41741         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
41742
41743         Fix compliance bug in sigpending.
41744         * lib/sigprocmask.c (sigpending): Return pending array via
41745         parameter, not return value.
41746
41747 2008-06-14  Eric Blake  <ebb9@byu.net>
41748
41749         Improve obstack-printf test code.
41750         * tests/test-obstack-printf.c (test_function): Fix comment, and
41751         simplify usage of obstack_* in macros.  Add a test for coverage.
41752         Reported by Bruno Haible.
41753
41754 2008-06-14  Bruno Haible  <bruno@clisp.org>
41755
41756         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
41757         array size as a constant, not as a const variable.
41758         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
41759         AC_USE_SYSTEM_EXTENSIONS.
41760         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41761         Test whether the obstack_printf function actually exists.
41762         * modules/obstack-printf (Depends-on): Add extensions.
41763         (Include): Remove obstack.h.
41764         * modules/obstack-printf-posix (Depends-on): Add extensions.
41765         (Include): Remove obstack.h.
41766
41767 2008-06-13  Eric Blake  <ebb9@byu.net>
41768
41769         Add obstack-printf and obstack-printf-posix modules.
41770         * modules/obstack-printf: New file.
41771         * modules/obstack-printf-posix: Likewise.
41772         * MODULES.html.sh (Misc): Mention them.
41773         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41774         Likewise.
41775         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41776         Likewise.
41777         * modules/stdio (Makefile.am): Accomodate new modules.
41778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41779         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
41780         Declare.
41781         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
41782         functions.
41783         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
41784         (gl_REPLACE_OBSTACK_PRINTF): New macros
41785         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
41786         * tests/test-obstack-printf.c: New file.
41787         * modules/obstack-printf-tests: Likewise.
41788         * modules/obstack-printf-posix-tests: Likewise.
41789
41790 2008-06-11  Bruno Haible  <bruno@clisp.org>
41791
41792         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
41793         * lib/open.c: Include errno.h.
41794         (open): Fail when attempting to write to a file that has a trailing
41795         slash.
41796         * tests/test-open.c (main): Test against trailing slash bug.
41797         * doc/posix-functions/open.texi: Mention the trailing slash bug.
41798
41799 2008-06-10  Bruno Haible  <bruno@clisp.org>
41800
41801         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
41802         for $? to work inside the trap command, with various /bin/sh-s.
41803         * tests/test-vc-list-files-cvs.sh: Likewise.
41804
41805 2008-06-10  Bruno Haible  <bruno@clisp.org>
41806
41807         * lib/acl-internal.h: Don't include gettext.h here.
41808         * lib/set-mode-acl.c: Include gettext.h here.
41809         * lib/copy-acl.c: Likewise.
41810
41811 2008-06-10  Bruno Haible  <bruno@clisp.org>
41812
41813         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
41814         * lib/wait-process.c (wait_subprocess): Likewise.
41815         * lib/execute.h (execute): Add termsigp argument.
41816         * lib/execute.c (execute): Likewise.
41817         * lib/csharpcomp.c (compile_csharp_using_pnet,
41818         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
41819         * lib/csharpexec.c (execute_csharp_using_pnet,
41820         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
41821         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
41822         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
41823         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
41824         is_jikes_present): Update.
41825         * lib/javaexec.c (execute_java_class): Update.
41826         * lib/javaversion.c (execute_and_read_line): Update.
41827         * NEWS: Document the changes.
41828         Reported by Eric Blake.
41829
41830 2008-06-10  Eric Blake  <ebb9@byu.net>
41831
41832         Add missing include.
41833         * tests/test-strstr.c (includes): Add <signal.h>.
41834         * tests/test-strcasestr.c (includes): Likewise.
41835         * tests/test-memmem.c (includes): Likewise.
41836
41837 2008-06-10  Bruno Haible  <bruno@clisp.org>
41838
41839         * lib/wait-process.c (wait_subprocess): Add an assertion.
41840
41841 2008-06-10  Bruno Haible  <bruno@clisp.org>
41842
41843         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
41844
41845 2008-06-10  Bruno Haible  <bruno@clisp.org>
41846
41847         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
41848         using alarm().
41849         * tests/test-strcasestr.c (main): Likewise.
41850         * tests/test-strstr.c (main): Likewise.
41851
41852 2008-06-09  Bruno Haible  <bruno@clisp.org>
41853
41854         Work around the Solaris 10 ACE ACLs ABI change.
41855         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
41856         declare if ACL_NO_TRIVIAL is present.
41857         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
41858         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
41859         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
41860         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
41861         define if ACL_NO_TRIVIAL is present.
41862         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
41863         and use the current ABI.
41864         (file_has_acl): Use same #if condition as elsewhere.
41865         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
41866         in use, and use the current ABI.
41867         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
41868         Reported by Jim Meyering.
41869
41870 2008-06-09  Eric Blake  <ebb9@byu.net>
41871
41872         Work around environments that (stupidly) ignore SIGALRM.
41873         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
41874         before using alarm().
41875         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41876         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41877         Reported by Ian Beckwith <ianb@erislabs.net>.
41878
41879         Produce autobuild blurb earlier in log.
41880         * modules/autobuild (configure.ac-early): Move AB_INIT here.
41881
41882 2008-06-09  Jim Meyering  <meyering@redhat.com>
41883         and OndÅ™ej Vašík  <ovasik@redhat.com>
41884
41885         utimens.c: correct kernel bug work-around
41886         OndÅ™ej Vašík found that the invalid return value of 280 indicates
41887         failure, not success, and the kernel bug we're trying to work
41888         around affects not just the utimensat call, but also the fallback
41889         futimens call.
41890         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
41891         not success.
41892         [HAVE_FUTIMENS]: Use the same work-around, here.
41893
41894 2008-06-09  Jim Meyering  <meyering@redhat.com>
41895
41896         add more guards around definition of ACE_-related code
41897         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
41898         ALLOW and ACE_OWNER are also defined.
41899
41900 2008-06-08  Bruno Haible  <bruno@clisp.org>
41901
41902         * lib/acl-internal.h: Add me as co-author.
41903         * lib/file-has-acl.c: Likewise.
41904         * lib/set-mode-acl.c: Likewise.
41905         * lib/copy-acl.c: Likewise.
41906
41907 2008-06-08  Bruno Haible  <bruno@clisp.org>
41908
41909         Add support for AIX ACLs.
41910         * lib/acl-internal.h (acl_nontrivial): New declaration.
41911         * lib/file-has-acl.c (acl_nontrivial): New function.
41912         (file_has_acl): Add implementation using AIX 4 ACL API.
41913         * lib/set-mode-acl.c (qset_acl): Likewise.
41914         * lib/copy-acl.c (qcopy_acl): Likewise.
41915
41916 2008-06-08  Bruno Haible  <bruno@clisp.org>
41917
41918         Add support for HP-UX ACLs.
41919         * lib/acl-internal.h (acl_nontrivial): New declaration.
41920         * lib/file-has-acl.c (acl_nontrivial): New function.
41921         (file_has_acl): Add implementation using HP-UX 11 ACL API.
41922         * lib/set-mode-acl.c (qset_acl): Likewise.
41923         * lib/copy-acl.c (qcopy_acl): Likewise.
41924
41925 2008-06-08  Bruno Haible  <bruno@clisp.org>
41926
41927         Add support for Cygwin ACLs.
41928         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
41929         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
41930         the chmod_or_fchmod call.
41931         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
41932
41933 2008-06-08  Bruno Haible  <bruno@clisp.org>
41934
41935         Fix bug with setuid modes in Solaris 10+ code.
41936         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
41937         succeeded, when the mode contains some special bits.
41938
41939 2008-06-08  Bruno Haible  <bruno@clisp.org>
41940
41941         Add support for Solaris 7..10 ACLs.
41942         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
41943         declarations.
41944         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
41945         functions.
41946         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
41947         * lib/set-mode-acl.c (qset_acl): Likewise.
41948         * lib/copy-acl.c (qcopy_acl): Likewise.
41949
41950 2008-06-08  Bruno Haible  <bruno@clisp.org>
41951
41952         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
41953         declaration.
41954         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
41955         (acl_access_nontrivial): Remove MacOS X case.
41956         (file_has_acl): Use acl_extended_nontrivial.
41957         * lib/copy-acl.c (qcopy_acl): Likewise.
41958
41959 2008-06-08  Bruno Haible  <bruno@clisp.org>
41960
41961         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
41962
41963 2008-06-08  Jim Meyering  <meyering@redhat.com>
41964
41965         * modules/acl (Maintainer): Add Bruno Haible.
41966
41967 2008-06-07  Bruno Haible  <bruno@clisp.org>
41968
41969         Improve support for Tru64 ACLs.
41970         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
41971         ACL on OSF/1.
41972
41973 2008-06-07  Bruno Haible  <bruno@clisp.org>
41974
41975         Add support for MacOS X ACLs.
41976         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
41977         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
41978         * lib/set-mode-acl.c (qset_acl): Likewise.
41979         * lib/copy-acl.c (qcopy_acl): Likewise.
41980
41981 2008-06-07  Bruno Haible  <bruno@clisp.org>
41982
41983         Fix memory leak introduced on 2008-05-22.
41984         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
41985         use.
41986
41987 2008-06-07  Bruno Haible  <bruno@clisp.org>
41988
41989         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
41990         to construct an empty ACL.
41991
41992 2008-06-07  Bruno Haible  <bruno@clisp.org>
41993
41994         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
41995         precisely.
41996         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
41997
41998 2008-06-07  Bruno Haible  <bruno@clisp.org>
41999
42000         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
42001         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
42002
42003 2008-06-07  Bruno Haible  <bruno@clisp.org>
42004
42005         * doc/posix-functions/_setjmp.texi: Explain the use of this function
42006         regardless of POSIX.
42007         * doc/posix-functions/_longjmp.texi: Likewise.
42008         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
42009         SystemV platform in this case.
42010
42011 2008-06-06  Eric Blake  <ebb9@byu.net>
42012
42013         Document abort() bugs.
42014         * doc/posix-functions/abort.texi (abort): Mention anomalies.
42015
42016         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
42017         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
42018         sigsetjmp.
42019         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
42020         siglongjmp, but only as a macro.
42021         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
42022         is obsolete.
42023         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
42024
42025         Tweak documentation to cover cygwin argz bugs.
42026         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
42027         argz bug fix; no code change needed since no cygwin releases
42028         occurred between the last fix and the bug being tested.
42029         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
42030         module and recently fixed cygwin bugs.
42031         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
42032         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
42033         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
42034         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
42035         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
42036         Likewise.
42037         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
42038         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
42039         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
42040         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
42041         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
42042         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
42043         Likewise.
42044
42045         Avoid gcc warning on cygwin.
42046         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
42047         !ACL_NO_TRIVIAL]: Avoid unused variable.
42048
42049 2008-06-05  Eric Blake  <ebb9@byu.net>
42050
42051         Be tolerant of UNKNOWN version in gnulib-tool test dir.
42052         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
42053         git-version-gen fails to come up with a version.
42054         Reported by Simon Josefsson.
42055
42056 2008-06-05  Jim Meyering  <meyering@redhat.com>
42057             Paul Eggert  <eggert@cs.ucla.edu>
42058
42059         utimens.c: work around a probable Linux kernel bug
42060         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
42061         appears to be a kernel bug that causes utimensat to return 280
42062         instead of 0, indicating success.
42063
42064 2008-06-04  Bruno Haible  <bruno@clisp.org>
42065
42066         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
42067         2008-06-01 commit.
42068
42069 2008-06-04  Bruno Haible  <bruno@clisp.org>
42070
42071         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
42072         * lib/file-has-acl.c (acl_access_nontrivial): New function.
42073         (file_has_acl): Use it. Save errno afterwards.
42074         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
42075
42076 2008-06-03  Bruno Haible  <bruno@clisp.org>
42077
42078         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
42079         draft code. Simplify #ifs.
42080         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
42081         Put Solaris code after POSIX-draft code. Fix comments regarding
42082         Solaris 10, HP-UX. Mention Cygwin.
42083         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
42084
42085 2008-06-03  Eric Blake  <ebb9@byu.net>
42086
42087         Provide fallback for older kernels.
42088         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
42089         Provide runtime fallback if kernel lacks support.
42090         Reported by Mike Frysinger.
42091
42092 2008-06-02  Bruno Haible  <bruno@clisp.org>
42093
42094         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
42095         it exists.
42096
42097 2008-06-02  Bruno Haible  <bruno@clisp.org>
42098
42099         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
42100         * lib/copy-acl.c (qcopy_acl): Update comment.
42101
42102 2008-06-02  Bruno Haible  <bruno@clisp.org>
42103
42104         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
42105         like ACL APIs.
42106
42107 2008-06-02  Bruno Haible  <bruno@clisp.org>
42108
42109         * tests/test-file-has-acl.sh: Use different code for Cygwin.
42110         * tests/test-set-mode-acl.sh: Likewise.
42111         * tests/test-copy-acl.sh: Likewise.
42112         * tests/test-copy-file.sh: Likewise.
42113
42114 2008-06-02  Bruno Haible  <bruno@clisp.org>
42115
42116         * tests/test-file-has-acl.sh: Remove unused code.
42117
42118 2008-06-01  Bruno Haible  <bruno@clisp.org>
42119
42120         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
42121         (copy_acl): Just a wrapper around qcopy_acl that emits the error
42122         messages.
42123         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
42124
42125 2008-06-01  Bruno Haible  <bruno@clisp.org>
42126
42127         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
42128         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
42129         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
42130         APIs.
42131         * modules/acl-tests (configure.ac): Remove tests now contained in
42132         m4/acl.m4.
42133
42134 2008-06-02  Jim Meyering  <meyering@redhat.com>
42135
42136         announce-gen: use a better key-server host name
42137         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
42138         it may be more consistently reliable.  Suggested by Werner Koch
42139         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
42140
42141 2008-06-01  Bruno Haible  <bruno@clisp.org>
42142
42143         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
42144         Reported by Voroskoi Andras <voroskoi@gmail.com>.
42145
42146 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
42147
42148         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
42149
42150 2008-06-01  Bruno Haible  <bruno@clisp.org>
42151
42152         New ACL tests.
42153         * tests/test-file-has-acl.sh: New file.
42154         * tests/test-file-has-acl.c: New file.
42155         * tests/test-set-mode-acl.sh: New file.
42156         * tests/test-set-mode-acl.c: New file.
42157         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
42158         * tests/test-copy-acl.c: New file.
42159         * modules/acl-tests: New file, based on modules/copy-file-tests.
42160         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
42161         (Depends-on): Add acl-tests.
42162         (configure.ac): Remove checks.
42163         (Makefile.am): Don't create test-sameacls program here any more.
42164
42165 2008-06-01  Bruno Haible  <bruno@clisp.org>
42166
42167         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
42168         * tests/test-sameacls.c: Include progname.h.
42169         (main): Invoke set_program_name. Portability fixes for MacOS X,
42170         Solaris, HP-UX.
42171
42172 2008-06-01  Bruno Haible  <bruno@clisp.org>
42173
42174         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
42175         function.
42176         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
42177
42178 2008-06-01  Bruno Haible  <bruno@clisp.org>
42179
42180         * modules/rpmatch (Depends-on): Add strdup.
42181
42182 2008-06-01  Bruno Haible  <bruno@clisp.org>
42183
42184         * lib/pipe.c: Include unistd-safer.h.
42185         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
42186         * modules/pipe (Depends-on): Add unistd-safer.
42187
42188 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42189
42190         * modules/autobuild (configure.ac): Call AB_INIT.
42191
42192 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42193
42194         * tests/test-getaddrinfo.c: Don't print debug messages by default.
42195         Suggested by Bruno Haible <bruno@clisp.org>.
42196
42197 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42198
42199         * tests/test-base64.c: Cast size_t to unsigned long when invoking
42200         printf.  Use %lu instead of %d.  Reported by Bruno Haible
42201         <bruno@clisp.org>.
42202
42203 2008-05-29  Eric Blake  <ebb9@byu.net>
42204
42205         Prefer new POSIX 200x interfaces over futimesat.
42206         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
42207         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
42208         when available.
42209         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
42210
42211 2008-05-28  Bruno Haible  <bruno@clisp.org>
42212
42213         * modules/stpcpy (License): Change to LGPLv2+.
42214         Requested by David Lutterkort <dlutter@redhat.com>.
42215
42216 2008-05-27  Bruno Haible  <bruno@clisp.org>
42217
42218         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
42219         current mingw.
42220         Reported by Jose E. Marchesi <jemarch@gnu.org>.
42221
42222 2008-05-27  Bruno Haible  <bruno@clisp.org>
42223
42224         * modules/iconv_open (Link): New section, from module 'iconv'.
42225         * modules/striconv (Link): Likewise.
42226         * modules/striconveh (Link): Likewise.
42227         * modules/xstriconv (Link): Likewise.
42228         * modules/unicodeio (Link): Likewise.
42229         * modules/propername (Link): Likewise.
42230         Reported by Jim Meyering.
42231
42232 2008-05-26  Jim Meyering  <meyering@redhat.com>
42233
42234         sha256: do not artificially restrict buffer length to be < 2^32
42235         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
42236         uint32_t to size_t.
42237         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
42238         to match.
42239
42240         avoid unaligned access errors, e.g., on sparc
42241         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
42242         direct access through a possibly-unaligned uint64* pointer.
42243         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
42244         direct access through a possibly-unaligned uint32* pointer.
42245         Prompted by this patch from Tom "spot" Callaway:
42246         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
42247
42248         sha512.c: fix typo in comment
42249         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
42250
42251 2008-05-25  Bruno Haible  <bruno@clisp.org>
42252
42253         * lib/set-mode-acl.c: Renamed from lib/acl.c.
42254         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
42255         (Makefile.am): Update lib_SOURCES.
42256
42257 2008-05-25  Bruno Haible  <bruno@clisp.org>
42258
42259         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
42260
42261 2008-05-25  Jim Meyering  <meyering@redhat.com>
42262
42263         useless-if-before-free: freed expr may have white-space differences
42264         * build-aux/useless-if-before-free: Recognize cases in which the
42265         freed expression differs from the tested one in embedded white
42266         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
42267         $1 was used, so we can't make any regexp shy.  Improved tests now
42268         detect this.
42269
42270         useless-if-before-free: accept white space in the expression.
42271         * build-aux/useless-if-before-free: For now, any white space
42272         in the expression must be identical in the free argument.
42273
42274         useless-if-before-free: efficiency tweak
42275         * build-aux/useless-if-before-free: Make the expression-matching
42276         regexp "shy".
42277         Make the *outer* regexp shy, not the expr-matching one.
42278
42279         update code-in-comment to accept cast of free arg
42280         * build-aux/useless-if-before-free: Update regexp.
42281
42282 2008-05-25  Bruno Haible  <bruno@clisp.org>
42283
42284         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
42285         * modules/copy-file-tests (Files, Makefile.am): Update.
42286         * tests/test-copy-file.c (func_test_copy): Update.
42287
42288 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
42289
42290         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
42291
42292 2008-05-23  Bruno Haible  <bruno@clisp.org>
42293
42294         Improve support for ACLs on OSF/1.
42295         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
42296         Remove fallback for unknown flavors of ACLs.
42297
42298 2008-05-22  Bruno Haible  <bruno@clisp.org>
42299
42300         Add support for ACLs on OSF/1.
42301         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
42302         replacements.
42303         (acl_free_text): New macro fallback.
42304         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
42305         acl_free.
42306         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
42307         acl_free_text function. Require AC_C_INLINE.
42308
42309 2008-05-22  Bruno Haible  <bruno@clisp.org>
42310
42311         Make copy_acl work on MacOS X 10.5.
42312         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
42313         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
42314         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
42315         If MODE_INSIDE_ACL, don't assume that every system has the same text
42316         representation for ACLs as FreeBSD.
42317         * lib/copy-acl.c (copy_acl): Add support for platforms with
42318         !MODE_INSIDE_ACL.
42319         * lib/file-has-acl.c (file_has_acl): Likewise.
42320         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
42321         FreeBSD, MacOS X, or IRIX, respectively.
42322
42323 2008-05-22  Bruno Haible  <bruno@clisp.org>
42324
42325         * lib/acl.h: Don't include <sys/acl.h>.
42326         (GETACLCNT): Move fallback to lib/acl-internal.h.
42327         * lib/acl-internal.h: Include <sys/acl.h> here.
42328         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
42329
42330 2008-05-22  Bruno Haible  <bruno@clisp.org>
42331
42332         Split off copy_acl function to separate file.
42333         * lib/copy-acl.c: New file, extracted from lib/acl.c.
42334         * lib/acl.c (copy_acl): Moved function to separate file.
42335         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
42336         * modules/acl (Files): Add lib/copy-acl.c.
42337         (Makefiles.am): Augment lib_SOURCES.
42338
42339 2008-05-22  Bruno Haible  <bruno@clisp.org>
42340
42341         * modules/copy-file-tests: New file.
42342         * tests/test-copy-file.sh: New file.
42343         * tests/test-copy-file.c: New file.
42344         * tests/test-copy-file-sameacls.c: New file.
42345
42346 2008-05-22  Eric Blake  <ebb9@byu.net>
42347
42348         Avoid gcc warning.
42349         * tests/test-memcmp.c (main): Pass NULL indirectly.
42350
42351 2008-05-21  Bruno Haible  <bruno@clisp.org>
42352
42353         Add reference doc about ACLs.
42354         * doc/acl-resources.txt: New file.
42355         * doc/acl-cygwin.txt: New file.
42356
42357 2008-05-21  Bruno Haible  <bruno@clisp.org>
42358
42359         Avoid one more warning from gcc.
42360         * lib/vasnprintf.c (IF_LINT): Update comments.
42361         (VASNPRINTF): Use it also for the 'prefix' array initializer.
42362
42363 2008-05-21  Jim Meyering  <meyering@redhat.com>
42364
42365         avoid a warning from gcc
42366         * lib/vasnprintf.c (IF_LINT): Define.
42367         (scale10_round_decimal_long_double):
42368         Use it to avoid a "may be used uninitialized" warning.
42369         (scale10_round_decimal_double): Likewise.
42370
42371 2008-05-21  Simon Josefsson  <simon@josefsson.org>
42372
42373         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
42374         declared.
42375
42376 2008-05-20  Bruno Haible  <bruno@clisp.org>
42377
42378         * tests/test-memcmp.c (main): Test also the sign of the result. Test
42379         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
42380
42381 2008-05-20  Simon Josefsson  <simon@josefsson.org>
42382
42383         * modules/memcmp-tests: New file.
42384         * tests/test-memcmp.c: New file.
42385
42386 2008-05-19  Bruno Haible  <bruno@clisp.org>
42387
42388         * modules/propername (Notice, configure.ac): Put quoted "..." into
42389         --keyword option.
42390         * lib/propername.h: Update comments accordingly.
42391         Reported by Eric Blake.
42392
42393 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
42394
42395         * modules/getpass-gnu (Depends-on): Add fseeko.
42396
42397 2008-05-19  Simon Josefsson  <simon@josefsson.org>
42398
42399         * modules/base64-tests: New file.
42400
42401 2008-05-19  Bo Borgerson <gigabo@gmail.com>
42402
42403         * lib/base64.c (base64_decode_ctx): If a decode context structure
42404         was passed in use it to ignore newlines.  If a context structure
42405         was _not_ passed in, continue to treat newlines as garbage (this
42406         is the historical behavior).  Formerly base64_decode.
42407         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
42408         takes a decode context structure.
42409         * lib/base64.h (base64_decode): Macro for four-argument calls.
42410         (base64_decode_alloc): Likewise.
42411         * lib/base64.c (base64_decode_ctx): If a decode context structure
42412         was passed in use it to ignore newlines.  If a context structure
42413         was _not_ passed in, continue to treat newlines as garbage (this
42414         is the historical behavior).  Formerly base64_decode.
42415         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
42416         takes a decode context structure.
42417         * lib/base64.h (base64_decode): Macro for four-argument calls.
42418         (base64_decode_alloc): Likewise.
42419
42420 2008-05-19  Jim Meyering  <meyering@redhat.com>
42421
42422         avoid a warning from gcc
42423         * lib/trim.c (IF_LINT): Define.
42424         (trim2): Use it to avoid a "may be used uninitialized" warning.
42425
42426         Fix doc typo.
42427         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
42428
42429 2008-05-19  Bruno Haible  <bruno@clisp.org>
42430
42431         * doc/glibc-functions/getpass.texi: Document limits of other
42432         implementations.
42433
42434 2008-05-19  Simon Josefsson  <simon@josefsson.org>
42435             Bruno Haible <bruno@clisp.org>
42436
42437         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
42438
42439 2008-05-18  Bruno Haible  <bruno@clisp.org>
42440
42441         * modules/propername: New file, from GNU gettext.
42442         * lib/propername.h: New file, from GNU gettext.
42443         * lib/propername.c: New file, from GNU gettext.
42444         * MODULES.html.sh (Internationalization functions): Add propername.
42445
42446 2008-05-16  Jim Meyering  <meyering@redhat.com>
42447             Bruno Haible  <bruno@clisp.org>
42448
42449         Avoid some warnings from "gcc -Wshadow".
42450         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
42451
42452 2008-05-15  Eric Blake  <ebb9@byu.net>
42453
42454         Extend previous patch to cygwin 1.7.0.
42455         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
42456         fast implementation in cygwin >= 1.7.0.
42457         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42458         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42459
42460 2008-05-15  Bruno Haible  <bruno@clisp.org>
42461
42462         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
42463         implementation in glibc >= 2.9.
42464         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42465         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42466
42467 2008-05-15  Bruno Haible  <bruno@clisp.org>
42468
42469         * MODULES.html.sh (Internationalization functions): Remove linebreak.
42470         (Unicode string functions): Add unilbrk/*.
42471         Reported by Karl Berry.
42472
42473 2008-05-15  Eric Blake  <ebb9@byu.net>
42474
42475         Fix violation of <stdbool.h> replacement in regex.
42476         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
42477         * lib/regexec.c (re_search_internal): Likewise.
42478         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
42479
42480 2008-05-15  Jim Meyering  <meyering@redhat.com>
42481
42482         avoid distracting test output when git or cvs is not found
42483         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
42484         * tests/test-vc-list-files-git.sh: Likewise.
42485
42486 2008-05-15  Eric Blake  <ebb9@byu.net>
42487
42488         Glibc finally accepted the memmem speedup code, bugzilla #5514.
42489         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
42490         glibc version.
42491         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42492         * doc/posix-functions/strstr.texi (strstr): Likewise.
42493         * lib/str-two-way.h (MAX): Sychronize with glibc.
42494
42495 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
42496
42497         * lib/regcomp.c (optimize_utf8): Add a note on why we test
42498         opr.ctx_type.
42499         (calc_first): Initialize constraint field.
42500         (duplicate_node_closure): Use it instead of special casing ANCHORS.
42501         Fix grammar.
42502         (duplicate_node): Merge constraint field for all node types.
42503         (calc_eclosure_iter): Look at constraint field for all node types.
42504         * lib/regex_internal.c (create_cd_newstate): Don't look at
42505         opr.ctx_type.
42506
42507 2008-05-14  Bruno Haible  <bruno@clisp.org>
42508
42509         Help GCC to do better code generation.
42510         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
42511         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
42512         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
42513         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
42514         Declare with attribute 'malloc' if supported.
42515
42516 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
42517
42518         use "echo STR|wc -c" rather than unportable "expr length STR"
42519         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
42520         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
42521
42522 2008-05-14  Jim Meyering  <meyering@redhat.com>
42523
42524         use dd ibs=$n count=1 ... rather than less-portable head -c$n
42525         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
42526         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
42527         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
42528         via Collin Lasse.
42529
42530 2008-05-14  Eric Blake  <ebb9@byu.net>
42531
42532         Avoid quadratic growth in gl_LIBSOURCES.
42533         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
42534         Suggested by Bruno Haible.
42535
42536         Test xmemdup0.
42537         * modules/xmemdup0-tests: New file.
42538         * tests/test-xmemdup0.c: Likewise.
42539
42540 2008-05-13  Eric Blake  <ebb9@byu.net>
42541
42542         Split xmemdup0 into its own module.
42543         * modules/xmemdup0: New file.
42544         * lib/xmemdup0.h: Likewise.
42545         * lib/xmemdup0.c: Likewise.
42546         * MODULES.html.sh (Memory management functions): Add xmemdup0.
42547         * lib/xalloc.h (xmemdup0): Remove.
42548         * lib/xmalloc.c (xmemdup0): Likewise.
42549
42550 2008-05-13  Eric Blake  <ebb9@byu.net>
42551             Bruno Haible  <bruno@clisp.org>
42552
42553         Reduce number of forks required during autoconf.
42554         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
42555         and gl_LIBSOURCES_DIR.
42556         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
42557         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
42558         m4_syscmd per file.
42559         <m4_foreach_w>: Move...
42560         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
42561
42562 2008-05-13  Eric Blake  <ebb9@byu.net>
42563
42564         * gnulib-tool: Fix various comment typos.
42565
42566 2008-05-12  Bruno Haible  <bruno@clisp.org>
42567
42568         Tailor the linebreaking algorithm.
42569         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
42570
42571 2008-05-12  Bruno Haible  <bruno@clisp.org>
42572
42573         Update to Unicode 5.0.0.
42574         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42575         LBP_JV, LBP_JT. Redistribute values.
42576         (unilbrk_table): Change size.
42577         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
42578         Unicode TR#14 rev. 22.
42579         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42580         LBP_JV, LBP_JT. Redistribute values.
42581         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
42582         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
42583         Update.
42584         * lib/unilbrk/lbrkprop1.h: Regenerated.
42585         * lib/unilbrk/lbrkprop2.h: Regenerated.
42586         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
42587         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
42588         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
42589         Likewise.
42590         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
42591         Likewise.
42592         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
42593         result.
42594         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42595         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42596         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
42597         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
42598         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
42599         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
42600
42601 2008-05-11  Bruno Haible  <bruno@clisp.org>
42602
42603         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
42604
42605 2008-05-11  Bruno Haible  <bruno@clisp.org>
42606
42607         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
42608         * modules/unilbrk/gen-lbrk: New file.
42609
42610 2008-05-11  Bruno Haible  <bruno@clisp.org>
42611
42612         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
42613         * m4/sha512.m4 (gl_SHA512): Likewise.
42614
42615 2008-05-11  Jim Meyering  <meyering@redhat.com>
42616
42617         New modules: crypto/sha256, crypto/sha512 (from coreutils)
42618         * modules/crypto/sha256: New file.
42619         * modules/crypto/sha512: Likewise.
42620         * lib/sha256.c: Likewise.
42621         * lib/sha256.h: Likewise.
42622         * lib/sha512.c: Likewise.
42623         * lib/sha512.h: Likewise.
42624         * lib/u64.h: Likewise.
42625         * m4/sha256.m4: Likewise.
42626         * m4/sha512.m4: Likewise.
42627         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
42628
42629 2008-05-10  Bruno Haible  <bruno@clisp.org>
42630
42631         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
42632         (Input/Output <stdio.h>): Add xprintf.
42633         (Signal handling <signal.h>): Add strsignal.
42634         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
42635         (Core language properties): Add func.
42636         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
42637         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
42638         strings.
42639         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
42640         (Input/output): New section.
42641         (File system functions): Add openat-die, stat-macros.
42642         (Networking functions): Add sockets.
42643         (Unicode string functions): Add unictype/*.
42644         (Support for building libraries and executables): Add gperf.
42645         (Support for building documentation): Add agpl-3.0.
42646         (Misc): Add nocrash.
42647
42648 2008-05-10  Bruno Haible  <bruno@clisp.org>
42649
42650         * modules/unictype/gen-ctype: New file.
42651
42652 2008-05-10  Jim Meyering  <meyering@redhat.com>
42653
42654         Make chdir-safer.c more efficient on a system with no symlinks.
42655         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
42656         also if ELOOP is zero.  Suggested by Bruno Haible.
42657
42658         Make chdir-safer.c slightly safer.
42659         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
42660         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
42661
42662         Avoid compile failure on systems without ELOOP (like mingw).
42663         * lib/chdir-safer.c (ELOOP): Define if not already defined.
42664         Reported by Bruno Haible.
42665
42666 2008-05-10  Bruno Haible  <bruno@clisp.org>
42667
42668         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
42669         (is_utf8_encoding): Use a case-insensitive comparison.
42670         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
42671         streq.
42672
42673 2008-05-10  Bruno Haible  <bruno@clisp.org>
42674
42675         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
42676         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
42677         * lib/unilbrk/ulc-common.h (iconv_string_length,
42678         iconv_string_keeping_offsets): Remove declarations.
42679         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
42680         Don't include <iconv.h>, streq.h, xsize.h.
42681         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
42682         conversion.
42683         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
42684         <iconv.h>, streq.h, xsize.h.
42685         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
42686         conversion.
42687         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
42688         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
42689         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
42690         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
42691
42692 2008-05-10  Bruno Haible  <bruno@clisp.org>
42693
42694         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
42695         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
42696
42697         * modules/unilbrk/u32-width-linebreaks-tests: New file.
42698         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
42699
42700         * modules/unilbrk/u16-width-linebreaks-tests: New file.
42701         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
42702
42703         * modules/unilbrk/u8-width-linebreaks-tests: New file.
42704         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
42705
42706         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
42707         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
42708
42709         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
42710         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
42711
42712         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
42713         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
42714
42715         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
42716         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
42717
42718 2008-05-10  Bruno Haible  <bruno@clisp.org>
42719
42720         Split up 'linebreak' module.
42721         * lib/unilbrk.h: New file, based on lib/linebreak.h.
42722         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
42723         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
42724         modifications.
42725         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
42726         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
42727         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
42728         lib/linebreak.c.
42729         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
42730         lib/linebreak.c.
42731         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
42732         lib/linebreak.c.
42733         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
42734         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
42735         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
42736         lib/linebreak.c.
42737         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
42738         lib/linebreak.c.
42739         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
42740         lib/linebreak.c.
42741         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
42742         lib/linebreak.c.
42743         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
42744         lib/linebreak.c.
42745         * modules/unilbrk/base: New file.
42746         * modules/unilbrk/tables: New file.
42747         * modules/unilbrk/u8-possible-linebreaks: New file.
42748         * modules/unilbrk/u16-possible-linebreaks: New file.
42749         * modules/unilbrk/u32-possible-linebreaks: New file.
42750         * modules/unilbrk/ulc-common: New file.
42751         * modules/unilbrk/ulc-possible-linebreaks: New file.
42752         * modules/unilbrk/u8-width-linebreaks: New file.
42753         * modules/unilbrk/u16-width-linebreaks: New file.
42754         * modules/unilbrk/u32-width-linebreaks: New file.
42755         * modules/unilbrk/ulc-width-linebreaks: New file.
42756         * lib/linebreak.h: Remove file.
42757         * lib/linebreak.c: Remove file.
42758         * m4/linebreak.m4: Remove file.
42759         * modules/linebreak: Remove file.
42760         * NEWS: Mention the changes.
42761
42762 2008-05-09  Eric Blake  <ebb9@byu.net>
42763
42764         Add xmemdup0.
42765         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
42766         implementation.
42767         * lib/xmalloc.c (xmemdup0): New C implementation.
42768
42769 2008-05-08  Bruno Haible  <bruno@clisp.org>
42770
42771         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
42772
42773 2008-05-07  Eric Blake  <ebb9@byu.net>
42774
42775         Support cross-compilation of <wctype.h>.
42776         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
42777         AC_CACHE_CHECK.
42778
42779 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
42780
42781         * build-aux/vc-list-files: Add support for bzr.
42782
42783 2008-05-03  Jim Meyering  <meyering@redhat.com>
42784
42785         avoid failed assertion with tight malloc
42786         * tests/test-getndelim2.c: Correct an off-by-one assertion.
42787
42788 2008-05-03  Simon Josefsson  <simon@josefsson.org>
42789
42790         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
42791         are needed from arpa/inet.h.
42792         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
42793         Reported by Bruno Haible.
42794
42795 2008-05-02  Jim Meyering  <meyering@redhat.com>
42796
42797         avoid compilation error on FreeBSD 6
42798         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
42799
42800 2008-05-01  Jim Meyering  <meyering@redhat.com>
42801
42802         useless-if-before-free: correct --help's exit status description
42803         * build-aux/useless-if-before-free (usage): Like grep, exit 0
42804         for one or more matches, etc.  Reported by Bruno Haible.
42805
42806         vc-list-files: make the stand-alone gnulib test work
42807         * modules/vc-list-files-tests (configure.ac):
42808         Define and AC_SUBST abs_aux_dir.
42809         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
42810         $(abs_top_srcdir) to each script and having each of them
42811         duplicate the work of setting PATH, set PATH here, using
42812         the new variable, abs_aux_dir instead.
42813         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
42814         * tests/test-vc-list-files-git.sh: Likewise.
42815         Reported by Bruno Haible.
42816
42817 2008-05-01  Bruno Haible  <bruno@clisp.org>
42818
42819         * lib/getndelim2.c (getndelim2): Fix newsize computation during
42820         reallocation. Rename 'done' to 'found_delimiter'.
42821
42822 2008-05-01  Jim Meyering  <meyering@redhat.com>
42823
42824         vc-list-files: accommodate /bin/sh like the one from Solaris 10
42825         * build-aux/vc-list-files: Use `...`, not $(...).
42826
42827 2008-04-30  Jim Meyering  <meyering@redhat.com>
42828
42829         add tests for vc-list-files
42830         * modules/vc-list-files-tests: New module.
42831         * tests/test-vc-list-files-cvs.sh: New file.
42832         * tests/test-vc-list-files-git.sh: New file.
42833
42834         avoid a warning from gcc
42835         * lib/getndelim2.c (IF_LINT): Define.
42836         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
42837
42838         vc-list-files: work properly with build-aux/cvsu, too
42839         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
42840         to all cvs-based clauses.
42841
42842         vc-list-files: work properly in the CVS+awk case, too
42843         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
42844
42845         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
42846         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
42847         take more than one file argument, so .  Add quotes, just in case $dir
42848         ever contains a shell meta-character.  Prompted by Soren Hansen in
42849         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
42850
42851 2008-04-29  Eric Blake  <ebb9@byu.net>
42852
42853         Optimize getndelim2 to use block operations when possible.
42854         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
42855         freadseek, and memchr2.
42856         * lib/getndelim2.c (getndelim2): Use them for block reads.
42857
42858 2008-04-29  Bruno Haible  <bruno@clisp.org>
42859
42860         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
42861         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42862         * modules/inet_ntop (Depends-on): Add extensions.
42863         * modules/inet_pton (Depends-on): Likewise.
42864         Reported by Simon Josefsson.
42865
42866 2008-04-29  Jim Meyering  <meyering@redhat.com>
42867
42868         When the is more than one match in a block, match all of them.
42869         * build-aux/useless-if-before-free: Iterate through each block
42870         until there are no more matches.
42871
42872         Fix broken useless-if-before-free script.
42873         * build-aux/useless-if-before-free: Fix typo: missing "?" after
42874         the expression to match cast of argument to free-like function.
42875
42876 2008-04-29  Eric Blake  <ebb9@byu.net>
42877
42878         Use new header.
42879         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
42880
42881 2008-04-29  Jim Meyering  <meyering@redhat.com>
42882
42883         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
42884         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
42885         by gnulib to exist and to declare e.g., inet_ntop.
42886         Don't include "inet_ntop.h", now removed.
42887
42888         * m4/arpa_inet_h.m4: Remove trailing blanks.
42889
42890 2008-04-29  Eric Blake  <ebb9@byu.net>
42891
42892         Silence valgrind on safe reads beyond potential array bounds.
42893         * lib/rawmemchr.valgrind: New file.
42894         * lib/strchrnul.valgrind: Likewise.
42895         * modules/rawmemchr (Files): Distribute new file.
42896         * modules/strchrnul (Files): Likewise.
42897         Suggested by Bruno Haible.
42898
42899 2008-04-29  Bruno Haible  <bruno@clisp.org>
42900
42901         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
42902         (inet_ntop, inet_pton): Change portability warning's wording.
42903         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
42904         Invoke gl_CHECK_NEXT_HEADERS.
42905         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
42906         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
42907         set ARPA_INET_H.
42908         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42909         * modules/arpa_inet (Description): No longer only for systems that
42910         lack it.
42911         (Depends-on): Add include_next.
42912         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
42913         HAVE_ARPA_INET_H.
42914
42915 2008-04-29  Jim Meyering  <meyering@redhat.com>
42916
42917         * modules/mkdir (License): Re-license as LGPLv2+.
42918
42919 2008-04-29  Bruno Haible  <bruno@clisp.org>
42920
42921         * modules/rawmemchr (Maintainer): Set to Eric.
42922         * modules/strchrnul (Maintainer): Likewise.
42923
42924 2008-04-29  Simon Josefsson  <simon@josefsson.org>
42925
42926         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
42927         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
42928
42929         * modules/arpa_inet (arpa/inet.h): Use them.
42930
42931 2008-04-28  Eric Blake  <ebb9@byu.net>
42932
42933         Test getndelim2.
42934         * modules/getndelim2-tests: New file.
42935         * tests/test-getndelim2.c: Likewise.
42936         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
42937         stream.
42938         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
42939
42940         * MODULES.html.sh: Document new module.
42941
42942 2008-04-20  Bruno Haible  <bruno@clisp.org>
42943
42944         * lib/c-stack.c (die): Use raise.
42945         * modules/c-stack (Depends-on): Add raise.
42946
42947 2008-04-28  Bruno Haible  <bruno@clisp.org>
42948
42949         Expect rpmatch to be declared.
42950         * lib/yesno.c (rpmatch): Remove declaration.
42951
42952         Declare rpmatch.
42953         * lib/stdlib.in.h (rpmatch): New declaration.
42954         * lib/rpmatch.c: Include <stdlib.h> first.
42955         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
42956         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
42957         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
42958         HAVE_RPMATCH.
42959         * modules/rpmatch (Depends-on): Add stdlib, extensions.
42960         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42961         (Include): Set to <stdlib.h>.
42962         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
42963         HAVE_RPMATCH.
42964         * NEWS: Document the change.
42965
42966 2008-04-28  Bruno Haible  <bruno@clisp.org>
42967
42968         Change rpmatch to use nl_langinfo when appropriate.
42969         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
42970         (N_): New macro.
42971         (localized_pattern): New function/macro.
42972         (try): Remove match, nomatch arguments. Copy the pattern into safe
42973         memory before caching it.
42974         (rpmatch): Use localized_pattern. Add translator comments.
42975         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
42976         Suggested by Eric Blake.
42977         * modules/rpmatch (Depends-on): Add stdbool.
42978
42979 2008-04-28  Eric Blake  <ebb9@byu.net>
42980
42981         Add rawmemchr module, matching glibc.
42982         * modules/string (Makefile.am): New indicator.
42983         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
42984         * lib/string.in.h (rawmemchr): Declare when appropriate.
42985         * modules/rawmemchr: New file.
42986         * m4/rawmemchr.m4: Likewise.
42987         * lib/rawmemchr.c: Likewise.
42988         * modules/rawmemchr-tests: Likewise.
42989         * tests/test-rawmemchr.c: Likewise.
42990         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
42991         module.
42992         * modules/strchrnul (Depends-on): Add rawmemchr.
42993         * lib/strchrnul.c (strchrnul): Optimize a corner case.
42994
42995         Whitespace cleanup.
42996         * tests/test-strchrnul.c: Reindent.
42997         * lib/strchrnul.c: Likewise.
42998
42999         Optimize and test strchrnul.
43000         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
43001         * modules/strchrnul-tests: New file.
43002         * tests/test-strchrnul.c: Likewise.
43003
43004         Remove intprops dependency.
43005         * modules/memchr (Depends-on): Remove intprops.
43006         * modules/memrchr (Depends-on): Likewise.
43007         * modules/memchr2 (Depends-on): Likewise.
43008         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
43009         * lib/memrchr.c (__memrchr): Likewise.
43010         * lib/memrchr2.c (memchr2): Likewise.
43011         Reported by Simon Josefsson.
43012
43013 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43014
43015         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
43016         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43017
43018 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43019
43020         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
43021
43022         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
43023
43024         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
43025
43026         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
43027         declarations.
43028         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
43029
43030         * m4/inet_pton.m4: Don't check for header files.
43031
43032         * m4/inet_ntop.m4: Don't check for header files.
43033
43034 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43035
43036         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
43037         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
43038         trigger for cygwin).
43039         Reported by Bruno Haible  <bruno@clisp.org>.
43040
43041 2008-04-28  Bruno Haible  <bruno@clisp.org>
43042
43043         * doc/posix-functions/strdup.texi: Mention mingw problem.
43044
43045 2008-04-27  Bruno Haible  <bruno@clisp.org>
43046
43047         * modules/stat-time-tests (Depends-on): Add sleep.
43048         * tests/test-stat-time.c (force_unlink): New function.
43049         (cleanup): Use it.
43050         (test_mtime): Remove the ctime related tests.
43051         (test_ctime): New function, containing the ctime related tests.
43052         (main): Call test_ctime, except on native Windows platforms.
43053
43054 2008-04-27  Bruno Haible  <bruno@clisp.org>
43055
43056         * lib/rpmatch.c (rpmatch): Add some comments.
43057         Reported by James Youngman <jay@gnu.org>.
43058
43059 2008-04-27  Bruno Haible  <bruno@clisp.org>
43060
43061         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
43062         quiet NaNs.
43063
43064 2008-04-27  Bruno Haible  <bruno@clisp.org>
43065
43066         Make test-yesno.sh work on mingw.
43067         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
43068         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
43069         (main): Set stdin to binary mode.
43070         * modules/yesno-tests (Depends-on): Add binary-io.
43071
43072 2008-04-27  Bruno Haible  <bruno@clisp.org>
43073
43074         Fix 'isfinite' on x86, x86_64, ia64 platforms.
43075         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
43076         argument that lie outside the IEEE 854 domain.
43077         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
43078         (gl_ISFINITE): Use it.
43079         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
43080
43081 2008-04-27  Bruno Haible  <bruno@clisp.org>
43082
43083         Allow local renaming in config.h.
43084         * lib/memrchr.c (memrchr): Don't undefine outside libc.
43085
43086 2008-04-27  Bruno Haible  <bruno@clisp.org>
43087
43088         * lib/memchr.c (__memchr): Change type of 'i'.
43089         * lib/memchr2.c (memchr2): Likewise.
43090
43091 2008-04-26  Eric Blake  <ebb9@byu.net>
43092         and Bruno Haible  <bruno@clisp.org>
43093
43094         Optimize and test memrchr.
43095         * modules/memrchr (Depends-on): Add intprops.
43096         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
43097         * modules/memrchr-tests: New file.
43098         * tests/test-memrchr.c: New file.
43099
43100 2008-04-26  Bruno Haible  <bruno@clisp.org>
43101
43102         Add tentative support for DragonFly BSD.
43103         * lib/stdio-impl.h: Add macros for DragonFly BSD.
43104         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
43105         fp.
43106         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
43107         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
43108         * lib/fpurge.c (fpurge): Likewise.
43109         * lib/freadable.c (freaadable): Likewise.
43110         * lib/freadahead.c (freadahead): Likewise.
43111         * lib/freading.c (freading): Likewise.
43112         * lib/freadptr.c (freadptr): Likewise.
43113         * lib/freadseek.c (freadptrinc): Likewise.
43114         * lib/fseeko.c (fseeko): Likewise.
43115         * lib/fseterr.c (fseterr): Likewise.
43116         * lib/fwritable.c (fwritable): Likewise.
43117         * lib/fwriting.c (fwriting): Likewise.
43118
43119 2008-04-26  Bruno Haible  <bruno@clisp.org>
43120
43121         * lib/stdio-impl.h: New file.
43122         * lib/fbufmode.c: Include stdio-impl.h.
43123         (fbufmode): Use fp_, remove redundant #defines.
43124         * lib/fflush.c: Include stdio-impl.h.
43125         (clear_ungetc_buffer): Remove redundant #defines.
43126         * lib/fpurge.c: Include stdio-impl.h.
43127         (fpurge): Remove redundant #defines.
43128         * lib/freadable.c: Include stdio-impl.h.
43129         (freadable): Remove redundant #defines.
43130         * lib/freadahead.c: Include stdio-impl.h.
43131         (freadahead): Remove redundant #defines.
43132         * lib/freading.c: Include stdio-impl.h.
43133         (freading): Remove redundant #defines.
43134         * lib/freadptr.c: Include stdio-impl.h.
43135         (freadptr): Remove redundant #defines.
43136         * lib/freadseek.c: Include stdio-impl.h.
43137         (freadptrinc): Remove redundant #defines.
43138         * lib/fseeko.c: Include stdio-impl.h.
43139         (rpl_fseeko): Remove redundant #defines.
43140         * lib/fseterr.c: Include stdio-impl.h.
43141         (fseterr): Remove redundant #defines.
43142         * lib/fwritable.c: Include stdio-impl.h.
43143         (fwritable: Remove redundant #defines.
43144         * lib/fwriting.c: Include stdio-impl.h.
43145         (fwriting): Remove redundant #defines.
43146         * modules/fbufmode (Files): Add lib/stdio-impl.h.
43147         * modules/fflush (Files): Likewise.
43148         * modules/fpurge (Files): Likewise.
43149         * modules/freadable (Files): Likewise.
43150         * modules/freadahead (Files): Likewise.
43151         * modules/freading (Files): Likewise.
43152         * modules/freadptr (Files): Likewise.
43153         * modules/freadseek (Files): Likewise.
43154         * modules/fseeko (Files): Likewise.
43155         * modules/fseterr (Files): Likewise.
43156         * modules/fwritable (Files): Likewise.
43157         * modules/fwriting (Files): Likewise.
43158
43159 2008-04-26  Bruno Haible  <bruno@clisp.org>
43160
43161         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
43162         restore_seek_optimization, update_fpos_cache): New functions, extracted
43163         from rpl_fflush.
43164         (rpl_fflush): Use them.
43165         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
43166         (gl_REPLACE_FFLUSH): Use it.
43167
43168 2008-04-26  Bruno Haible  <bruno@clisp.org>
43169
43170         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
43171         on Solaris.
43172         * tests/test-xstrtoimax.sh: Likewise.
43173         * tests/test-xstrtoumax.sh: Likewise.
43174         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43175
43176 2008-04-26  Bruno Haible  <bruno@clisp.org>
43177
43178         * modules/memchr-tests: New file.
43179         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
43180
43181 2008-04-26  Eric Blake  <ebb9@byu.net>
43182             Bruno Haible  <bruno@clisp.org>
43183
43184         * lib/memchr.c: Include intprops.h.
43185         (__memchr): Optimize parallel detection of matching bytes. Rename local
43186         variables. Add explanatory comments.
43187
43188 2008-04-26  Bruno Haible  <bruno@clisp.org>
43189
43190         Fix module 'memchr', broken since 2000-10-28.
43191         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
43192
43193 2008-04-26  Bruno Haible  <bruno@clisp.org>
43194
43195         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
43196         comments.
43197
43198 2008-04-25  Eric Blake  <ebb9@byu.net>
43199
43200         Use native fstatat on cygwin 1.7.0.
43201         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
43202         first.
43203
43204 2008-04-23  Eric Blake  <ebb9@byu.net>
43205
43206         Improve memchr2 performance.
43207         * lib/memchr2.c (memchr2): Further optimize parallel detection of
43208         NUL bytes.
43209         * modules/memchr2 (Depends-on): Use intprops.h.
43210
43211 2008-04-23  Simon Josefsson  <simon@josefsson.org>
43212
43213         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
43214         an inline function instead of a CPP macro.  Patch by Ben Pfaff
43215         <blp@cs.stanford.edu>.
43216
43217 2008-04-23  Simon Josefsson  <simon@josefsson.org>
43218
43219         * lib/arpa_inet.in.h: New file.
43220
43221         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
43222         (Makefile.am): Sed in substitute header file.
43223
43224         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
43225         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
43226
43227         * modules/inet_ntop (configure.ac): Use
43228         gl_ARPA_INET_MODULE_INDICATOR.
43229
43230         * modules/inet_pton (configure.ac): Use
43231         gl_ARPA_INET_MODULE_INDICATOR.
43232
43233 2008-04-22  Jim Meyering  <meyering@redhat.com>
43234
43235         * modules/verify (License): Re-license as LGPLv2+.
43236
43237 2008-04-22  Simon Josefsson  <simon@josefsson.org>
43238
43239         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
43240         parameter to void* as per POSIX standard (MinGW uses char*).
43241
43242 2008-04-21  Bruno Haible  <bruno@clisp.org>
43243
43244         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43245         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43246         Define to replacements if REPLACE_ISWCNTRL is 1.
43247         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
43248         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
43249         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
43250         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
43251         what it fixes.
43252         * doc/posix-functions/iswalpha.texi: Likewise.
43253         * doc/posix-functions/iswblank.texi: Likewise.
43254         * doc/posix-functions/iswcntrl.texi: Likewise.
43255         * doc/posix-functions/iswdigit.texi: Likewise.
43256         * doc/posix-functions/iswgraph.texi: Likewise.
43257         * doc/posix-functions/iswlower.texi: Likewise.
43258         * doc/posix-functions/iswprint.texi: Likewise.
43259         * doc/posix-functions/iswpunct.texi: Likewise.
43260         * doc/posix-functions/iswspace.texi: Likewise.
43261         * doc/posix-functions/iswupper.texi: Likewise.
43262         * doc/posix-functions/iswxdigit.texi: Likewise.
43263         Reported by Alain Guibert.
43264
43265 2008-04-21  Bruno Haible  <bruno@clisp.org>
43266
43267         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
43268         Patch by Alain Guibert.
43269
43270 2008-04-21  Bruno Haible  <bruno@clisp.org>
43271
43272         Fix test failures on mingw.
43273         * tests/test-xstrtol.c (print_no_progname): New function.
43274         (main): Install it in error_print_progname hook.
43275         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
43276         * tests/test-xstrtoimax.sh: Likewise.
43277         * tests/test-xstrtoumax.sh: Likewise.
43278
43279 2008-04-21  Bruno Haible  <bruno@clisp.org>
43280
43281         Fix test failure on mingw.
43282         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
43283
43284 2008-04-21  Bruno Haible  <bruno@clisp.org>
43285
43286         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
43287         Actually assign a value.
43288
43289 2008-04-20  Bruno Haible  <bruno@clisp.org>
43290
43291         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
43292         take 2.
43293         * lib/canonicalize.c (canonicalize_file_name): Elide if the
43294         'canonicalize-lgpl' module is also used.
43295         * lib/canonicalize-lgpl.c: Undo last change.
43296         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
43297
43298 2008-04-20  Bruno Haible  <bruno@clisp.org>
43299
43300         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
43301         config.h. Provide _mkdir based fallback for mingw.
43302         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
43303         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
43304         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
43305         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
43306         rather than defining mkdir in config.h.
43307         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
43308         (gl_SYS_STAT_H_DEFAULTS): New macro.
43309         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
43310         HAVE_IO_H any more.
43311         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
43312         HAVE_DECL_MKDIR and HAVE_IO_H.
43313
43314 2008-04-20  Bruno Haible  <bruno@clisp.org>
43315
43316         * lib/isapipe.c: Port to native Windows platforms.
43317
43318 2008-04-20  Bruno Haible  <bruno@clisp.org>
43319
43320         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
43321
43322 2008-04-21  Eric Blake  <ebb9@byu.net>
43323
43324         Work around preprocessors that don't handle UINTMAX_MAX.
43325         * lib/memchr2.c (memchr2): Avoid embedded #if.
43326         Reported by Alain Guibert, fix suggested by Bruno Haible.
43327
43328 2008-04-21  Simon Josefsson  <simon@josefsson.org>
43329
43330         * doc/posix-functions/strftime.texi (strftime): Explain better
43331         Windows incompatibility.  Suggested by Micah Cowan
43332         <micah@cowan.name>.
43333
43334 2008-04-20  Bruno Haible  <bruno@clisp.org>
43335
43336         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
43337         unistr/u8-mblen.
43338
43339 2008-04-20  Bruno Haible  <bruno@clisp.org>
43340
43341         Fix test failure on platforms with non-GNU iconv.
43342         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
43343         (U_TO_U8): Use it, rather than u16_to_u8.
43344         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
43345         units at the end of the input string.
43346         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
43347
43348 2008-04-20  Bruno Haible  <bruno@clisp.org>
43349
43350         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
43351         when the resulting length is 0.
43352         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
43353
43354 2008-04-20  Bruno Haible  <bruno@clisp.org>
43355
43356         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
43357         works.
43358         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
43359
43360 2008-04-20  Bruno Haible  <bruno@clisp.org>
43361
43362         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
43363         * modules/tsearch-tests (configure.ac): Test for initstate function.
43364
43365 2008-04-20  Bruno Haible  <bruno@clisp.org>
43366
43367         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
43368         for nlink_t if missing.
43369         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
43370
43371 2008-04-19  Bruno Haible  <bruno@clisp.org>
43372
43373         Work around snprintf bug on Linux libc5.
43374         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
43375         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43376         gl_SNPRINTF_SIZE1.
43377         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43378         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
43379         that test failed.
43380         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
43381         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
43382         * modules/snprintf (Files): Add m4/printf.m4.
43383         * modules/vsnprintf (Files): Likewise.
43384         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
43385         * doc/posix-functions/vsnprintf.texi: Likewise.
43386
43387 2008-04-19  Bruno Haible  <bruno@clisp.org>
43388
43389         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
43390         from 0.0058 to less than 10^-7.
43391
43392 2008-04-19  Bruno Haible  <bruno@clisp.org>
43393
43394         Fix rounding when a precision is given.
43395         * lib/vasnprintf.c (is_borderline): New function.
43396         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
43397         9...9x.
43398         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
43399         %e, %g.
43400         * tests/test-vasprintf-posix.c (test_function): Likewise.
43401         * tests/test-snprintf-posix.h (test_function): Likewise.
43402         * tests/test-sprintf-posix.h (test_function): Likewise.
43403         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
43404         * tests/test-printf-posix.h (test_function): Likewise.
43405         * tests/test-printf-posix.output: Update.
43406         Reported by John Darrington <john@darrington.wattle.id.au> via
43407         Ben Pfaff <blp@cs.stanford.edu>.
43408
43409 2008-04-18  Simon Josefsson  <simon@josefsson.org>
43410
43411         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
43412         Suggested by Bruno Haible <bruno@clisp.org>.
43413
43414 2008-04-17  Bruno Haible  <bruno@clisp.org>
43415
43416         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
43417         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
43418         implementation.
43419         Patch by Bruce Merry <bmerry@gmail.com>.
43420
43421 2008-04-17  Simon Josefsson  <simon@josefsson.org>
43422
43423         * doc/posix-functions/strftime.texi (strftime): Mention that %e
43424         doesn't work under Windows.
43425
43426 2008-04-16  Bruno Haible  <bruno@clisp.org>
43427
43428         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
43429         New macros.
43430         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
43431         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
43432         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
43433         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
43434         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
43435         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
43436         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
43437         macros.
43438         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
43439         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
43440         Northern Sotho, Uighur.
43441
43442 2008-04-16  Bruno Haible  <bruno@clisp.org>
43443
43444         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
43445         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
43446         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
43447         Reported by Daniel Bergström <daniel@octocode.com>.
43448
43449 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
43450             Bruno Haible  <bruno@clisp.org>
43451
43452         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
43453         function.
43454         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
43455         New functions, mostly extracted from gl_locale_name_default.
43456         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
43457
43458 2008-04-16  Eric Blake  <ebb9@byu.net>
43459
43460         Adjust strtod detection to catch glibc 2.7 bug.
43461         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
43462         Reported by John Gatewood Ham.
43463
43464 2008-04-16  Bruno Haible  <bruno@clisp.org>
43465
43466         Add tentative support for Linux libc5.
43467         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
43468         * lib/fpurge.c (fpurge): Likewise.
43469         * lib/freadable.c (freadable): Likewise.
43470         * lib/freadahead.c (freadahead): Likewise.
43471         * lib/freading.c (freading): Likewise.
43472         * lib/freadptr.c (freadptr): Likewise.
43473         * lib/freadseek.c (freadptrinc): Likewise.
43474         * lib/fseeko.c (rpl_fseeko): Likewise.
43475         * lib/fseterr.c (fseterr): Likewise.
43476         * lib/fwritable.c (fwritable): Likewise.
43477         * lib/fwriting.c (fwriting): Likewise.
43478         Reported by Alain Guibert <alguibert+bts@free.fr>.
43479
43480 2008-04-15  Bruno Haible  <bruno@clisp.org>
43481
43482         * modules/mathl (configure.ac): Define module indicator.
43483
43484 2008-04-15  Bruno Haible  <bruno@clisp.org>
43485
43486         * lib/logl.c (logl): Remove unused variables.
43487
43488 2008-04-15  Bruno Haible  <bruno@clisp.org>
43489
43490         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
43491         fails.
43492
43493 2008-04-15  Bruno Haible  <bruno@clisp.org>
43494
43495         * lib/trim.c (trim2): Fix argument of isspace() macro.
43496
43497 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
43498
43499         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
43500         to 0.
43501         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
43502
43503 2008-04-14  Bruno Haible  <bruno@clisp.org>
43504
43505         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
43506         AC_LANG_PROGRAM argument.
43507         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
43508         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
43509         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43510         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
43511         * m4/math_h.m4 (gl_MATH_H): Likewise.
43512         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
43513         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43514         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
43515         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
43516         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43517         * m4/regex.m4 (gl_REGEX): Likewise.
43518         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
43519         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
43520         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43521         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
43522         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
43523         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43524         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43525         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43526
43527 2008-04-14  Jim Meyering  <meyering@redhat.com>
43528
43529         test-strtod: fix typos: s/abs/fabs/
43530         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
43531
43532 2008-04-13  Bruno Haible  <bruno@clisp.org>
43533
43534         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
43535         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
43536         module is also used and while not building the reloc-wrapper.
43537
43538 2008-04-13  Bruno Haible  <bruno@clisp.org>
43539
43540         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
43541
43542 2008-04-13  Bruno Haible  <bruno@clisp.org>
43543
43544         Fix AIX compilation failure introduced on 2008-04-02.
43545         * tests/test-frexp.c (exp): Undefine before redefining.
43546         * tests/test-frexpl.c (exp): Likewise.
43547
43548 2008-04-13  Bruno Haible  <bruno@clisp.org>
43549
43550         Work around a HP-UX stdio bug.
43551         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
43552         * tests/test-ftello.c (main): Likewise.
43553         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
43554         * doc/posix-functions/ftello.texi: Likewise.
43555
43556 2008-04-13  Bruno Haible  <bruno@clisp.org>
43557
43558         Make test-signbit pass on HP-UX/hppa.
43559         * tests/test-signbit.c (minus_zerol): New variable.
43560         (test_signbitl): Use it.
43561
43562 2008-04-13  Bruno Haible  <bruno@clisp.org>
43563
43564         Make truncl work on OSF/1 4.0.
43565         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
43566         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43567         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
43569         HAVE_DECL_TRUNCL.
43570         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
43571         HAVE_DECL_TRUNCL.
43572         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
43573
43574 2008-04-13  Bruno Haible  <bruno@clisp.org>
43575
43576         * lib/unictype.h: Remove trailing comma from enumeration definitions.
43577
43578 2008-04-13  Bruno Haible  <bruno@clisp.org>
43579
43580         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
43581         expression, so as to avoid HP-UX 11 cc compiler bug.
43582
43583 2008-04-13  Bruno Haible  <bruno@clisp.org>
43584
43585         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
43586
43587 2008-04-13  Bruno Haible  <bruno@clisp.org>
43588
43589         * lib/git-merge-changelog.c: Remove empty declaration outside of
43590         functions.
43591
43592 2008-04-13  Bruno Haible  <bruno@clisp.org>
43593
43594         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
43595
43596 2008-04-13  Bruno Haible  <bruno@clisp.org>
43597
43598         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
43599         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
43600         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
43601         also if it exists but lacks definitions of the SHUT_* macros.
43602         * modules/sys_socket (Description): Update.
43603         Reported by Elbert Pol <e.pol@chello.nl>.
43604
43605 2008-04-13  Bruno Haible  <bruno@clisp.org>
43606
43607         * lib/localcharset.c (OS2): Don't redefine if already defined.
43608         Reported by Elbert Pol <e.pol@chello.nl>.
43609
43610 2008-04-13  Bruno Haible  <bruno@clisp.org>
43611
43612         * lib/binary-io.h [__EMX__]: Include <io.h>.
43613         Reported by Elbert Pol <e.pol@chello.nl>.
43614
43615 2008-04-12  Bruno Haible  <bruno@clisp.org>
43616
43617         * lib/fpucw.h: Enable the definitions also for x86_64.
43618         Needed for NetBSD/x86_64.
43619         Reported by Thomas Klausner <tk@giga.or.at>.
43620
43621 2008-04-12  Bruno Haible  <bruno@clisp.org>
43622
43623         * tests/test-strtod.c: Include isnand.h.
43624         (main): Use isnand instead of isnan.
43625         Reported by Jim Meyering.
43626
43627 2008-04-12  Bruno Haible  <bruno@clisp.org>
43628
43629         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
43630         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
43631
43632 2008-04-12  Jim Meyering  <meyering@redhat.com>
43633
43634         * m4/math_h.m4 (gl_MATH_H): Fix typos.
43635
43636 2008-04-12  Bruno Haible  <bruno@clisp.org>
43637
43638         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
43639         Reported by Elbert Pol <e.pol@chello.nl>.
43640
43641 2008-04-12  Eric Blake  <ebb9@byu.net>
43642
43643         Work around Solaris 10 math.h bug.
43644         * m4/math_h.m4 (gl_MATH_H): Check for bug.
43645         (gl_MATH_H_DEFAULTS): Set up default.
43646         * modules/math (Makefile.am): Replace new indicators.
43647         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
43648         * tests/test-math.c (main): Test this.
43649         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
43650         * doc/posix-headers/math.texi (math.h): Mention bug.
43651         Reported by Nelson H. F. Beebe and Jim Meyering.
43652
43653 2008-04-11  Bruno Haible  <bruno@clisp.org>
43654
43655         Adapt to future versions of Apple GCC.
43656         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
43657         Reported by Peter O'Gorman <peter@pogma.com>.
43658
43659 2008-04-11  Bruno Haible  <bruno@clisp.org>
43660
43661         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
43662
43663 2008-04-11  Bruno Haible  <bruno@clisp.org>
43664
43665         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
43666
43667         * modules/getaddrinfo-tests (Makefile.am): Define
43668         test_getaddrinfo_LDADD.
43669
43670 2008-04-11  Bruno Haible  <bruno@clisp.org>
43671
43672         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
43673         (init): Fix syntax error.
43674         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
43675         is declared.
43676
43677 2008-04-11  Bruno Haible  <bruno@clisp.org>
43678
43679         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
43680         * modules/glob (Depends-on): Add stdbool.
43681
43682 2008-04-11  Bruno Haible  <bruno@clisp.org>
43683
43684         * lib/trim.c: Include <string.h>.
43685
43686 2008-04-11  Eric Blake  <ebb9@byu.net>
43687
43688         Avoid compile failure on OS/2.
43689         * lib/regex_internal.h (internal_function): Disable optimization
43690         on OS/2 (__EMX__), where it caused compiler error.
43691         Reported by Elbert Pol.
43692
43693 2008-04-11  Bruno Haible  <bruno@clisp.org>
43694
43695         Flush the standard error stream before aborting. Needed on mingw.
43696         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
43697         * tests/test-array_list.c (ASSERT): Likewise.
43698         * tests/test-array_oset.c (ASSERT): Likewise.
43699         * tests/test-avltree_list.c (ASSERT): Likewise.
43700         * tests/test-avltree_oset.c (ASSERT): Likewise.
43701         * tests/test-avltreehash_list.c (ASSERT): Likewise.
43702         * tests/test-binary-io.c (ASSERT): Likewise.
43703         * tests/test-byteswap.c (ASSERT): Likewise.
43704         * tests/test-c-ctype.c (ASSERT): Likewise.
43705         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
43706         * tests/test-c-strcasestr.c (ASSERT): Likewise.
43707         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
43708         * tests/test-c-strstr.c (ASSERT): Likewise.
43709         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
43710         * tests/test-canonicalize.c (ASSERT): Likewise.
43711         * tests/test-carray_list.c (ASSERT): Likewise.
43712         * tests/test-ceilf1.c (ASSERT): Likewise.
43713         * tests/test-ceilf2.c (ASSERT): Likewise.
43714         * tests/test-ceill.c (ASSERT): Likewise.
43715         * tests/test-count-one-bits.c (ASSERT): Likewise.
43716         * tests/test-fbufmode.c (ASSERT): Likewise.
43717         * tests/test-fflush2.c (ASSERT): Likewise.
43718         * tests/test-floorf1.c (ASSERT): Likewise.
43719         * tests/test-floorf2.c (ASSERT): Likewise.
43720         * tests/test-floorl.c (ASSERT): Likewise.
43721         * tests/test-fopen.c (ASSERT): Likewise.
43722         * tests/test-fpending.c (ASSERT): Likewise.
43723         * tests/test-fprintf-posix.c (ASSERT): Likewise.
43724         * tests/test-fpurge.c (ASSERT): Likewise.
43725         * tests/test-freadable.c (ASSERT): Likewise.
43726         * tests/test-freadahead.c (ASSERT): Likewise.
43727         * tests/test-freading.c (ASSERT): Likewise.
43728         * tests/test-freadptr.c (ASSERT): Likewise.
43729         * tests/test-freadptr2.c (ASSERT): Likewise.
43730         * tests/test-freadseek.c (ASSERT): Likewise.
43731         * tests/test-freopen.c (ASSERT): Likewise.
43732         * tests/test-frexp.c (ASSERT): Likewise.
43733         * tests/test-frexpl.c (ASSERT): Likewise.
43734         * tests/test-fseek.c (ASSERT): Likewise.
43735         * tests/test-fseeko.c (ASSERT): Likewise.
43736         * tests/test-fstrcmp.c (ASSERT): Likewise.
43737         * tests/test-ftell.c (ASSERT): Likewise.
43738         * tests/test-ftello.c (ASSERT): Likewise.
43739         * tests/test-func.c (ASSERT): Likewise.
43740         * tests/test-fwritable.c (ASSERT): Likewise.
43741         * tests/test-fwriting.c (ASSERT): Likewise.
43742         * tests/test-getdelim.c (ASSERT): Likewise.
43743         * tests/test-getline.c (ASSERT): Likewise.
43744         * tests/test-i-ring.c (ASSERT): Likewise.
43745         * tests/test-iconv-utf.c (ASSERT): Likewise.
43746         * tests/test-iconv.c (ASSERT): Likewise.
43747         * tests/test-isfinite.c (ASSERT): Likewise.
43748         * tests/test-isnand.c (ASSERT): Likewise.
43749         * tests/test-isnanf.c (ASSERT): Likewise.
43750         * tests/test-isnanl.h (ASSERT): Likewise.
43751         * tests/test-ldexpl.c (ASSERT): Likewise.
43752         * tests/test-linked_list.c (ASSERT): Likewise.
43753         * tests/test-linkedhash_list.c (ASSERT): Likewise.
43754         * tests/test-localename.c (ASSERT): Likewise.
43755         * tests/test-lseek.c (ASSERT): Likewise.
43756         * tests/test-mbscasecmp.c (ASSERT): Likewise.
43757         * tests/test-mbscasestr1.c (ASSERT): Likewise.
43758         * tests/test-mbscasestr2.c (ASSERT): Likewise.
43759         * tests/test-mbscasestr3.c (ASSERT): Likewise.
43760         * tests/test-mbscasestr4.c (ASSERT): Likewise.
43761         * tests/test-mbschr.c (ASSERT): Likewise.
43762         * tests/test-mbscspn.c (ASSERT): Likewise.
43763         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
43764         * tests/test-mbspbrk.c (ASSERT): Likewise.
43765         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
43766         * tests/test-mbsrchr.c (ASSERT): Likewise.
43767         * tests/test-mbsspn.c (ASSERT): Likewise.
43768         * tests/test-mbsstr1.c (ASSERT): Likewise.
43769         * tests/test-mbsstr2.c (ASSERT): Likewise.
43770         * tests/test-mbsstr3.c (ASSERT): Likewise.
43771         * tests/test-memchr2.c (ASSERT): Likewise.
43772         * tests/test-memmem.c (ASSERT): Likewise.
43773         * tests/test-open.c (ASSERT): Likewise.
43774         * tests/test-printf-frexp.c (ASSERT): Likewise.
43775         * tests/test-printf-frexpl.c (ASSERT): Likewise.
43776         * tests/test-printf-posix.c (ASSERT): Likewise.
43777         * tests/test-quotearg.c (ASSERT): Likewise.
43778         * tests/test-rbtree_list.c (ASSERT): Likewise.
43779         * tests/test-rbtree_oset.c (ASSERT): Likewise.
43780         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
43781         * tests/test-round1.c (ASSERT): Likewise.
43782         * tests/test-roundf1.c (ASSERT): Likewise.
43783         * tests/test-roundl.c (ASSERT): Likewise.
43784         * tests/test-signbit.c (ASSERT): Likewise.
43785         * tests/test-sleep.c (ASSERT): Likewise.
43786         * tests/test-snprintf-posix.c (ASSERT): Likewise.
43787         * tests/test-snprintf.c (ASSERT): Likewise.
43788         * tests/test-sprintf-posix.c (ASSERT): Likewise.
43789         * tests/test-stat-time.c (ASSERT): Likewise.
43790         * tests/test-strcasestr.c (ASSERT): Likewise.
43791         * tests/test-strerror.c (ASSERT): Likewise.
43792         * tests/test-striconv.c (ASSERT): Likewise.
43793         * tests/test-striconveh.c (ASSERT): Likewise.
43794         * tests/test-striconveha.c (ASSERT): Likewise.
43795         * tests/test-strsignal.c (ASSERT): Likewise.
43796         * tests/test-strstr.c (ASSERT): Likewise.
43797         * tests/test-strtod.c (ASSERT): Likewise.
43798         * tests/test-trunc1.c (ASSERT): Likewise.
43799         * tests/test-trunc2.c (ASSERT): Likewise.
43800         * tests/test-truncf1.c (ASSERT): Likewise.
43801         * tests/test-truncf2.c (ASSERT): Likewise.
43802         * tests/test-truncl.c (ASSERT): Likewise.
43803         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
43804         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
43805         * tests/test-vasnprintf.c (ASSERT): Likewise.
43806         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
43807         * tests/test-vasprintf.c (ASSERT): Likewise.
43808         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
43809         * tests/test-vprintf-posix.c (ASSERT): Likewise.
43810         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
43811         * tests/test-vsnprintf.c (ASSERT): Likewise.
43812         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
43813         * tests/test-wcwidth.c (ASSERT): Likewise.
43814         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
43815         * tests/test-xprintf-posix.c (ASSERT): Likewise.
43816         * tests/test-xvasprintf.c (ASSERT): Likewise.
43817         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
43818         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
43819         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
43820         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
43821         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
43822         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
43823         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
43824         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
43825         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
43826         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
43827         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
43828         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
43829         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
43830         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
43831         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
43832         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
43833         * tests/unictype/test-block_list.c (ASSERT): Likewise.
43834         * tests/unictype/test-block_of.c (ASSERT): Likewise.
43835         * tests/unictype/test-block_test.c (ASSERT): Likewise.
43836         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
43837         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
43838         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
43839         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
43840         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
43841         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
43842         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
43843         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
43844         * tests/unictype/test-combining.c (ASSERT): Likewise.
43845         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
43846         * tests/unictype/test-digit.c (ASSERT): Likewise.
43847         * tests/unictype/test-mirror.c (ASSERT): Likewise.
43848         * tests/unictype/test-numeric.c (ASSERT): Likewise.
43849         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
43850         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
43851         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
43852         * tests/unictype/test-scripts.c (ASSERT): Likewise.
43853         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
43854         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
43855         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
43856         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
43857         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
43858         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
43859         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
43860         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
43861         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
43862         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
43863         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
43864         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
43865         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
43866         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
43867         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
43868         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
43869         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
43870         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
43871         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
43872         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
43873         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
43874         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
43875         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
43876         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
43877         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
43878         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
43879         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
43880         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
43881         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
43882         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
43883         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
43884         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
43885         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
43886         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
43887         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
43888         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
43889         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
43890         Reported by Eric Blake.
43891
43892 2008-04-11  Bruno Haible  <bruno@clisp.org>
43893
43894         * lib/wchar.in.h: Tweak comment.
43895
43896 2008-04-11  Bruno Haible  <bruno@clisp.org>
43897
43898         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
43899         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
43900         gl_COMMON.
43901         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
43902
43903 2008-04-11  Bruno Haible  <bruno@clisp.org>
43904
43905         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
43906
43907 2008-04-11  Simon Josefsson  <simon@josefsson.org>
43908
43909         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
43910         of attempting to use non-existing /dev/*random.  Based on patch
43911         from Adam Strzelecki <ono@java.pl> in
43912         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
43913
43914 2008-04-08  Bruno Haible  <bruno@clisp.org>
43915
43916         Add tentative support for emx+gcc.
43917         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
43918         * lib/fpurge.c (fpurge): Likewise.
43919         * lib/freadable.c (freadable): Likewise.
43920         * lib/freadahead.c (freadahead): Likewise.
43921         * lib/freading.c (freading): Likewise.
43922         * lib/freadptr.c (freadptr): Likewise.
43923         * lib/freadseek.c (freadptrinc): Likewise.
43924         * lib/fseeko.c (rpl_fseeko): Likewise.
43925         * lib/fseterr.c (fseterr): Likewise.
43926         * lib/fwritable.c (fwritable): Likewise.
43927         * lib/fwriting.c (fwriting): Likewise.
43928         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
43929
43930 2008-04-09  Eric Blake  <ebb9@byu.net>
43931
43932         Avoid some autoconf warnings.
43933         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
43934         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
43935         * m4/afs.m4 (gl_AFS): Likewise.
43936         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
43937         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
43938         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43939         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
43940         (gl_INTEGER_TYPE_SUFFIX): Likewise.
43941         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
43942         (AC_CHECK_DECLS_ONCE): Likewise.
43943         Rename file...
43944         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
43945         gnulib-tool requires autoconf 2.59 or better.
43946         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
43947
43948 2008-04-08  Eric Blake  <ebb9@byu.net>
43949
43950         Use 'git describe --match' if present (added in git 1.5.5).
43951         * build-aux/git-version-gen: Limit result to tags that match 'v*'
43952         if possible.
43953
43954 2008-04-08  Bruno Haible  <bruno@clisp.org>
43955
43956         Add tentative support for OpenServer.
43957         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
43958         _ptr, _cnt.
43959         * lib/fpurge.c (fpurge): Likewise.
43960         * lib/freadable.c (freadable): Likewise.
43961         * lib/freadahead.c (freadahead): Likewise.
43962         * lib/freading.c (freading): Likewise.
43963         * lib/freadptr.c (freadptr): Likewise.
43964         * lib/freadseek.c (freadptrinc): Likewise.
43965         * lib/fseeko.c (rpl_fseeko): Likewise.
43966         * lib/fseterr.c (fseterr): Likewise.
43967         * lib/fwritable.c (fwritable): Likewise.
43968         * lib/fwriting.c (fwriting): Likewise.
43969         Reported by Roger Cornelius <rac@tenzing.org> and
43970         Brian K. White <brian@aljex.com>.
43971
43972 2008-04-06  Jim Meyering  <meyering@redhat.com>
43973
43974         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
43975
43976 2008-04-06  Bruno Haible  <bruno@clisp.org>
43977
43978         Avoid possible error with non-ASCII bytes in UTF-8 locales.
43979         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
43980         * tests/test-printf-posix.sh: Likewise.
43981         * tests/test-vfprintf-posix.sh: Likewise.
43982         * tests/test-vprintf-posix.sh: Likewise.
43983         * tests/test-xprintf-posix.sh: Likewise.
43984
43985 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43986
43987         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
43988         hide error from 'ls', needed on OS/2.
43989         Report by Elbert Pol <elbert.pol@gmail.com>.
43990
43991 2008-04-04  Eric Blake  <ebb9@byu.net>
43992
43993         Make test-fseeko.c failures meaningful.
43994         * tests/test-fseeko.c: Print line number on failure.
43995         * tests/test-fseek.c: Likewise.
43996         Reported by Nelson H. F. Beebe.
43997
43998         Improve strtod bug detection check.
43999         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
44000         required for Solaris 10.
44001         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
44002
44003 2008-04-04  Bruno Haible  <bruno@clisp.org>
44004
44005         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
44006         by m4/setenv.m4.
44007
44008 2008-04-03  Eric Blake  <ebb9@byu.net>
44009
44010         Ensure sane .version contents.
44011         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
44012         version string.
44013         * build-aux/git-version-gen: Improve documentation.
44014
44015         Make GNU make output nicer.
44016         * top/GNUmakefile [!_have-Makefile]: Add dependency on
44017         MAKECMDGOALS to enforce message for all command line targets.  Set
44018         srcdir for use in maint.mk.
44019
44020         Another maintainer tweak.
44021         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
44022         a target that regenerates version.
44023
44024 2008-04-03  Jim Meyering  <meyering@redhat.com>
44025
44026         vc-list-files: don't cause coreutils "make po-check" failure
44027         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
44028
44029 2008-04-03  Eric Blake  <ebb9@byu.net>
44030
44031         Allow VPATH usage of vc-list-files.
44032         * build-aux/vc-list-files (scriptversion): Add timestamp.
44033         (options): Add --help, --version, -C.
44034         (CVS): Support installed cvsu.
44035
44036 2008-04-02  Bruno Haible  <bruno@clisp.org>
44037
44038         Avoid some "statement with no effect" warnings from gcc.
44039         * tests/test-wctype.c (main): Explicitly ignore unused values.
44040         Reported by Jim Meyering.
44041
44042 2008-04-02  Jim Meyering  <meyering@redhat.com>
44043
44044         Avoid some warnings from "gcc -Wshadow".
44045         * tests/test-frexp.c (exp): Define to a different identifier.
44046         * tests/test-frexpl.c (exp): Likewise.
44047
44048 2008-04-03  Jim Meyering  <meyering@redhat.com>
44049
44050         bootstrap: remove dangling *.[ch] symlinks from lib
44051         * build-aux/bootstrap [dangling symlink removal]: Move find's
44052         -depth option to precede all others, to avoid a warning.
44053         Remove *.[ch] files too, and from "$source_base" (usually lib/).
44054
44055 2008-04-02  Bruno Haible  <bruno@clisp.org>
44056
44057         Avoid some warnings from "gcc -Wshadow".
44058         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
44059         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
44060         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
44061         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
44062         Reported by Jim Meyering.
44063
44064 2008-04-01  Bruno Haible  <bruno@clisp.org>
44065
44066         Fix test to work on IRIX 6.5 with cc.
44067         * tests/test-math.c (numeric_equal): New function.
44068         (main): Use it.
44069
44070 2008-04-01  Bruno Haible  <bruno@clisp.org>
44071
44072         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
44073
44074 2008-04-01  Bruno Haible  <bruno@clisp.org>
44075
44076         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
44077         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44078         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
44079         (Depends-on): Remove math.
44080
44081         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
44082         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44083         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
44084         (Depends-on): Remove math.
44085
44086         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
44087         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44088         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
44089         (Depends-on): Remove math.
44090         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
44091         (Depends-on): Remove math.
44092
44093         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
44094         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44095         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
44096         (Depends-on): Remove math.
44097         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
44098         (Depends-on): Remove math.
44099
44100         * tests/test-round1.c: Include nan.h.
44101         (main): Use NaNd instead of NAN.
44102         * modules/round-tests (Files): Add tests/nan.h.
44103
44104         * tests/test-trunc1.c: Include nan.h.
44105         (main): Use NaNd instead of NAN.
44106         * modules/trunc-tests (Files): Add tests/nan.h.
44107
44108         * tests/test-roundf1.c: Include nan.h.
44109         (main): Use NaNf instead of NAN.
44110         * modules/roundf-tests (Files): Add tests/nan.h.
44111
44112         * tests/test-truncf1.c: Include nan.h.
44113         (main): Use NaNf instead of NAN.
44114         * modules/truncf-tests (Files): Add tests/nan.h.
44115
44116         * tests/test-ceilf1.c: Include nan.h.
44117         (main): Use NaNf instead of NAN.
44118         * modules/ceilf-tests (Files): Add tests/nan.h.
44119
44120         * tests/test-floorf1.c: Include nan.h.
44121         (main): Use NaNf instead of NAN.
44122         * modules/floorf-tests (Files): Add tests/nan.h.
44123
44124         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
44125         (main): Use NaNf instead of NAN.
44126         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
44127
44128         * tests/test-isnand.c: Include nan.h instead of <math.h>.
44129         (main): Use NaNd instead of NAN.
44130         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
44131
44132         * tests/test-frexp.c: Include nan.h.
44133         (main): Use NaNd instead of NAN.
44134         * modules/frexp-tests (Files): Add tests/nan.h.
44135
44136         * lib/isnan.c: Don't include <math.h>.
44137         (FUNC): Don't use NAN macro.
44138         * modules/isnand-nolibm (Depends-on): Remove math.
44139         * modules/isnanf-nolibm (Depends-on): Remove math.
44140         * modules/isnanl (Depends-on): Remove math.
44141         * modules/isnanl-nolibm (Depends-on): Remove math.
44142
44143         * tests/nan.h: New file.
44144
44145 2008-04-01  Eric Blake  <ebb9@byu.net>
44146
44147         Fix typos.
44148         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
44149         values to be the right type.
44150
44151         For now, cater to gnulib strtod inaccuracies.
44152         * tests/test-strtod.c (main): Allow 1-ulp error on expected
44153         fractional results.  While not as nice from a QoI perspective, it
44154         is a quicker patch than correctly implementing decimal to binary
44155         rounding.
44156
44157 2008-03-31  Eric Blake  <ebb9@byu.net>
44158
44159         Guarantee a definition of NAN.
44160         * lib/math.in.h (NAN): Define if missing.
44161         * tests/test-math.c (main): Test it.
44162         * doc/posix-headers/math.texi (math.h): Document this.
44163         * lib/isnan.c (rpl_isnand): Use it.
44164         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
44165         * tests/test-floorf1.c (NaN): Likewise.
44166         * tests/test-frexp.c (NaN): Likewise.
44167         * tests/test-isnand.c (NaN): Likewise.
44168         * tests/test-isnanf.c (NaN): Likewise.
44169         * tests/test-round1.c (NaN): Likewise.
44170         * tests/test-roundf1.c (NaN): Likewise.
44171         * tests/test-snprintf-posix.h (NaN): Likewise.
44172         * tests/test-sprintf-posix.h (NaN): Likewise.
44173         * tests/test-trunc1.c (NaN): Likewise.
44174         * tests/test-truncf1.c (NaN): Likewise.
44175         * tests/test-vasnprintf-posix.c (NaN): Likewise.
44176         * tests/test-vasprintf-posix.c (NaN): Likewise.
44177         * modules/isnand-nolibm (Depends-on): Add math.
44178         * modules/isnanf-nolibm (Depends-on): Likewise.
44179         * modules/isnanl (Depends-on): Likewise.
44180         * modules/isnanl-nolibm (Depends-on): Likewise.
44181         * modules/snprintf-posix-tests (Depends-on): Likewise.
44182         * modules/sprintf-posix-tests (Depends-on): Likewise.
44183         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
44184         * modules/vsprintf-posix-tests (Depends-on): Likewise.
44185         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
44186         * modules/vasprintf-posix-tests (Depends-on): Likewise.
44187
44188 2008-03-31  Bruno Haible  <bruno@clisp.org>
44189
44190         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
44191         * doc/posix-functions/strtod.texi: Likewise.
44192
44193 2008-03-31  Bruno Haible  <bruno@clisp.org>
44194
44195         * tests/test-strtod.c (main): Don't use C99 syntax.
44196
44197 2008-03-31  Bruno Haible  <bruno@clisp.org>
44198
44199         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
44200         Reported by Eric Blake.
44201
44202 2008-03-31  Jim Meyering  <meyering@redhat.com>
44203
44204         Don't compare actual signbit return values.
44205         * tests/test-strtod.c (main): Rather, compare only their
44206         zero/non-zero nature.
44207
44208 2008-03-31  Eric Blake  <ebb9@byu.net>
44209
44210         More strtod documentation.
44211         * doc/posix-functions/strtod.texi (strtod): Interpret more test
44212         failures as distinct bugs.
44213
44214 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
44215
44216         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
44217         Problem reported by Erik Benada in
44218         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
44219
44220 2008-03-30  Bruno Haible  <bruno@clisp.org>
44221
44222         * tests/test-strtod.c: Add comments about which assertion fails on which
44223         platform.
44224         * doc/posix-functions/strtod.texi: Add info about many more platforms.
44225
44226 2008-03-30  Eric Blake  <ebb9@byu.net>
44227
44228         Test signbit behavior on zeros.
44229         * tests/test-signbit.c (test_signbitf): Add tests for zero.
44230         (test_signbitd, test_signbitl): Likewise.
44231
44232         More strtod touchups.
44233         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
44234         sign of negative underflow, for now.  Use .5, not .1.
44235         * doc/posix-functions/strtod.texi (strtod): Mention these
44236         limitations.
44237         Reported by Jim Meyering.
44238
44239 2008-03-30  Bruno Haible  <bruno@clisp.org>
44240
44241         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
44242         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
44243
44244 2008-03-30  Bruno Haible  <bruno@clisp.org>
44245
44246         Avoid failure when attempting to return empty iconv results on some
44247         platforms.
44248         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
44249         allocation, don't report ENOMEM when the resulting string is empty.
44250
44251 2008-03-30  Bruno Haible  <bruno@clisp.org>
44252
44253         Fix buffer overrun.
44254         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
44255         Don't consider the width for tmp_length. Check count against tmp_length
44256         before doing the padding. Ensure enough allocation during padding.
44257
44258 2008-03-30  Eric Blake  <ebb9@byu.net>
44259
44260         strtod touchups.
44261         * lib/strtod.c (strtod): Avoid compiler warnings.
44262         Reported by Jim Meyering.
44263
44264 2008-03-30  Bruno Haible  <bruno@clisp.org>
44265
44266         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
44267         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
44268         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
44269         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
44270         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
44271         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
44272         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
44273         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
44274
44275         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
44276         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
44277         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
44278         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
44279         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
44280         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
44281         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
44282         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
44283
44284         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
44285         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
44286         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
44287         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
44288         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
44289         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
44290         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
44291         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
44292
44293         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
44294         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
44295
44296         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
44297         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
44298
44299         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
44300         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
44301
44302         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
44303         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
44304         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
44305
44306         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
44307         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
44308         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
44309
44310         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
44311         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
44312         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
44313
44314         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
44315         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
44316         * modules/vasprintf (Depends-on): Add EOVERFLOW.
44317
44318         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
44319         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
44320         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
44321         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
44322         (Depends-on): Add EOVERFLOW.
44323         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
44324         (Depends-on): Add EOVERFLOW.
44325         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
44326         (Depends-on): Add EOVERFLOW.
44327         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
44328         (Depends-on): Add EOVERFLOW.
44329         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
44330         (Depends-on): Add EOVERFLOW.
44331         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
44332         (Depends-on): Add EOVERFLOW.
44333         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
44334         (Depends-on): Add EOVERFLOW.
44335         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
44336         (Depends-on): Add EOVERFLOW.
44337
44338         * lib/sprintf.c (EOVERFLOW): Remove fallback.
44339         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
44340         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
44341
44342         * lib/snprintf.c (EOVERFLOW): Remove fallback.
44343         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
44344         * modules/snprintf (Depends-on): Add EOVERFLOW.
44345
44346         * lib/poll.c (EOVERFLOW): Remove fallback.
44347         * modules/poll (Depends-on): Add EOVERFLOW.
44348
44349         * lib/getugroups.c (EOVERFLOW): Remove fallback.
44350         * modules/getugroups (Depends-on): Add EOVERFLOW.
44351
44352         * lib/getdelim.c (EOVERFLOW): Remove fallback.
44353         * modules/getdelim (Depends-on): Add EOVERFLOW.
44354
44355         * lib/ftell.c (EOVERFLOW): Remove fallback.
44356         * modules/ftell (Depends-on): Add EOVERFLOW.
44357
44358         * lib/fprintf.c (EOVERFLOW): Remove fallback.
44359         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
44360         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
44361
44362         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
44363
44364         * modules/EOVERFLOW-tests: New file.
44365         * tests/test-EOVERFLOW.c: New file.
44366
44367         * modules/EOVERFLOW: New file.
44368         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
44369
44370 2008-03-30  Bruno Haible  <bruno@clisp.org>
44371
44372         Fix bug introduced on 2007-06-10.
44373         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
44374         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
44375
44376 2008-03-30  Bruno Haible  <bruno@clisp.org>
44377
44378         Improve freadseek's efficiency after ungetc.
44379         * lib/freadseek.c: Include freadahead.h.
44380         (freadptrinc): New function, extracted from freadseek.
44381         (freadseek): Use it in a loop. Use freadahead to determine the number
44382         of loop iterations.
44383         * modules/freadseek (Depends-on): Add freadahead.
44384         (configure.ac): Require AC_C_INLINE.
44385
44386 2008-03-30  Bruno Haible  <bruno@clisp.org>
44387
44388         * lib/freadseek.c (freadseek): Don't ignore the return value of
44389         freadptr.
44390
44391 2008-03-29  Eric Blake  <ebb9@byu.net>
44392
44393         Add hex float support.
44394         * modules/strtod (Depends-on): Add c-ctype.
44395         (Link): Mention POW_LIB.
44396         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
44397         whitespace between 'e' and exponent.
44398         * tests/test-strtod.c (main): Enable hex float tests.
44399         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
44400         now provides.
44401
44402         Document various strtod bugs, with some fixes.
44403         * doc/posix-functions/strtod.texi (strtod): Document bugs with
44404         "-0x", "inf", "nan", and hex constants.
44405         * doc/posix-functions/atof.texi (atof): Likewise.
44406         * modules/stdlib (Makefile.am): Support strtod.
44407         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44408         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
44409         detect additional strtod bugs.
44410         * lib/stdlib.in.h (rpl_strtod): Add declarations.
44411         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
44412         bool where appropriate.  Parse 'inf' and 'nan'.
44413         * tests/test-strtod.c: New file.
44414         * modules/strtod (Depends-on): Add stdbool, stdlib.
44415         (configure.ac): Turn on module indicator.
44416         * modules/strtod-tests: New module.
44417
44418 2008-03-29  Eric Blake  <ebb9@byu.net>
44419
44420         Fix ftell on mingw.
44421         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
44422         * modules/ftell-tests (Depends-on): Add binary-io.
44423         * modules/ftello-tests (Depends-on): Likewise.
44424         * tests/test-ftell.c (main): Enhance test to cover behavior after
44425         ungetc.  Enforce binary mode.
44426         * tests/test-ftello.c (main): Likewise.
44427
44428         Pass test-freadseek on cygwin.
44429         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
44430         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
44431         ungetc buffer.
44432
44433         * tests/test-fflush2.c (main): Fix typo.
44434
44435 2008-03-29  Bruno Haible  <bruno@clisp.org>
44436
44437         * tests/test-fflush2.c (main): Temporarily disable the contents of
44438         this test.
44439         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
44440         Reported by Eric Blake.
44441
44442 2008-03-28  Simon Josefsson  <simon@josefsson.org>
44443
44444         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
44445         (GC_SHA224_DIGEST_SIZE): Add.
44446
44447         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
44448         (gc_hash_digest_length): Likewise.
44449         (gc_hash_buffer): Likewise.
44450
44451 2008-03-25  Bruno Haible  <bruno@clisp.org>
44452
44453         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
44454         detail which gettext release to use.
44455         Reported by Simon Josefsson.
44456
44457 2008-03-26  Jim Meyering  <meyering@redhat.com>
44458
44459         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
44460         * modules/gnumakefile (clean-GNUmakefile): Also, use
44461         test ... && ... || : syntax rather than if-then ... fi.
44462
44463         gnumakefile: Don't double-quote-expand $(VPATH) value.
44464         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
44465
44466 2008-03-24  Eric Blake  <ebb9@byu.net>
44467
44468         Alter GNUmakefile to install into top directory.
44469         * modules/maintainer-makefile: Split, and add dependency...
44470         * modules/gnumakefile: to this new module.
44471         * build-aux/GNUmakefile: Move...
44472         * top/GNUmakefile: ...here.
44473         * build-aux/maint.mk: Move...
44474         * top/maint.mk: ...here.
44475         * MODULES.html.sh (Support for maintaining...): Document new
44476         module.
44477
44478 2008-03-23  Bruno Haible  <bruno@clisp.org>
44479
44480         * gnulib-tool: New options --vc-files, --no-vc-files.
44481         (func_usage): Document them.
44482         (vc_files): New variable.
44483         (func_import): Consider vc_files.
44484         (func_create_testdir): Set vc_files to empty.
44485         Suggested by Jim Meyering and Karl Berry.
44486
44487 2008-03-23  Bruno Haible  <bruno@clisp.org>
44488
44489         Fix regex compilation error on HP-UX 11.
44490         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
44491         * modules/regex (Files): Add m4/mbstate_t.m4.
44492         Reported by Ton Voon <ton.voon@altinity.com>.
44493
44494 2008-03-23  Bruno Haible  <bruno@clisp.org>
44495
44496         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
44497
44498 2008-03-23  Eric Blake  <ebb9@byu.net>
44499             Bruno Haible  <bruno@clisp.org>
44500
44501         Install files from top/ in the destination directory.
44502         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
44503         augmentation also for the files from top/.
44504         (func_import, func_create_testdir): Rewrite file names:
44505         top/filename -> filename.
44506
44507 2008-03-23  Bruno Haible  <bruno@clisp.org>
44508
44509         Tweak "gnulib --version" output.
44510         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
44511
44512 2008-03-23  Bruno Haible  <bruno@clisp.org>
44513
44514         Tweak "gnulib --version" output.
44515         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
44516         rather than contents of ChangeLog, when possible.
44517
44518 2008-03-21  Eric Blake  <ebb9@byu.net>
44519
44520         More --version tweaks.
44521         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
44522         date of last ChangeLog entry.
44523
44524 2008-03-21  Jim Meyering  <meyering@redhat.com>
44525
44526         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
44527
44528 2008-03-20  Eric Blake  <ebb9@byu.net>
44529
44530         VPATH fix.
44531         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
44532
44533 2008-03-20  Simon Josefsson  <simon@josefsson.org>
44534
44535         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
44536         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
44537
44538 2008-03-20  Eric Blake  <ebb9@byu.net>
44539
44540         Sync GNUmakefile with coreutils.
44541         * build-aux/GNUmakefile (have-Makefile): Rename...
44542         (_have-Makefile): ...to this, for namespace consideration.
44543         (GNUmakefile.cfg): Include, if present.
44544         (_autoreconf): Define a default.
44545         (_is-dist-target): New rule for rebuilds to pick up intra-release
44546         version.
44547         (maint-cfg.mk): Rename...
44548         (cfg.mk): ...to this.
44549
44550 2008-03-18  Jim Meyering  <meyering@redhat.com>
44551
44552         New script and module: mktempd
44553         * MODULES.html.sh (maint+release support): Add mktempd.
44554         * build-aux/mktempd: New file.
44555         * modules/mktempd: New file.
44556
44557 2008-03-15  Jim Meyering  <meyering@redhat.com>
44558
44559         Undo last change.
44560         * lib/sha1.c, lib/md5.c: 63 != ~63.
44561         Reported by Andreas Schwab.
44562
44563         sha1.c, md5.c: Hoist a redundant expression.
44564         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
44565         "ctx->buflen" only once, before calling *_process_block.
44566         * lib/md5.c (md5_process_bytes): Likewise.
44567
44568 2008-03-14  Eric Blake  <ebb9@byu.net>
44569
44570         Bump copyright year in files generated by gnulib-tool.
44571         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
44572         gnulib-tool, rather than hard-coding it.
44573
44574         Fix 'gnulib-tool --version' output to work with git.
44575         * gnulib-tool (func_gnulib_dir): New function, extracted from...
44576         (startup): ...here.
44577         (func_version): Use it to invoke git-version-gen, rather than
44578         relying on CVS keyword expansion.  Modernize wording.
44579         (cvsdatestamp, last_checkin_date, version): Kill unused
44580         variables.
44581
44582 2008-03-12  Jim Meyering  <meyering@redhat.com>
44583
44584         Recognize optional cast of the argument to free.
44585         * build-aux/useless-if-before-free: Update regexps.
44586
44587         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
44588
44589 2008-03-11  Bruno Haible  <bruno@clisp.org>
44590
44591         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
44592         by a single package.
44593         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
44594         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
44595         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
44596         Reported by Sam Steingold <sds@gnu.org>.
44597
44598 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44599
44600         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
44601         repositories.
44602
44603 2008-03-11  Bruno Haible  <bruno@clisp.org>
44604
44605         Avoid conflicts between local macro definitions.
44606         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44607         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
44608
44609 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
44610             Bruno Haible  <bruno@clisp.org>
44611
44612         Make va_copy work with some version of xlc on AIX 5.1.
44613         * lib/stdarg.in.h: New file.
44614         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
44615         On AIX, use a <stdarg.h> file substitute.
44616         * modules/stdarg (Files): Add lib/stdarg.in.h.
44617         (Depends-on): Add include_next.
44618         (Makefile.am): Build a stdarg.h substitute if requested.
44619         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
44620
44621 2008-03-10  Bruno Haible  <bruno@clisp.org>
44622
44623         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
44624         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44625         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44626
44627 2008-03-10  Bruno Haible  <bruno@clisp.org>
44628
44629         * modules/stdlib (Depends-on): Add include_next, remove
44630         absolute-header.
44631
44632 2008-03-09  Bruno Haible  <bruno@clisp.org>
44633
44634         * lib/freadahead.h (freadahead): Document more precisely.
44635         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
44636         the sum of both buffer sizes.
44637         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
44638         * NEWS: Document the change.
44639
44640 2008-03-09  Bruno Haible  <bruno@clisp.org>
44641
44642         Extend freadptr to return also the buffer size.
44643         * lib/freadptr.h (freadptr): Add sizep argument.
44644         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
44645         (freadptr): Add sizep argument. Determine buffer size like freadahead
44646         does.
44647         * tests/test-freadptr.c: Don't include freadahead.h.
44648         (main): Adapt for new calling convention of freadptr.
44649         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
44650         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
44651         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
44652         tests/test-freadptr2.sh.
44653         (Depends): Remove freadahead.
44654         (TESTS): Add test-freadptr2.sh.
44655         (check_PROGRAMS): Add test-freadptr2.
44656
44657 2008-03-09  Bruno Haible  <bruno@clisp.org>
44658
44659         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
44660         Report and solution by Simon Josefsson.
44661
44662 2008-03-06  Bruno Haible  <bruno@clisp.org>
44663
44664         Make fflush after ungetc work on BSD platforms.
44665         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
44666         * tests/test-fflush2.c: New file.
44667         * tests/test-fflush2.sh: New file.
44668         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
44669         tests/test-fflush2.c.
44670         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
44671         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
44672
44673 2008-03-06  Eric Blake  <ebb9@byu.net>
44674
44675         Likewise for ftello.
44676         * modules/ftello (Dependencies): Add extensions.
44677         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
44678
44679 2008-03-06  Bruno Haible  <bruno@clisp.org>
44680
44681         * modules/fseeko (Dependencies): Add extensions.
44682         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
44683         Needed on glibc systems.
44684
44685 2008-03-06  Bruno Haible  <bruno@clisp.org>
44686
44687         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
44688         email address.
44689         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44690
44691 2008-03-06  Bruno Haible  <bruno@clisp.org>
44692
44693         * users.txt: Add libgnupdf.
44694
44695 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44696
44697         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
44698         (Header File Substitutes, Function Substitutes,
44699         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
44700         (Build robot for gnulib): Fix typo.
44701
44702 2008-03-06  Bruno Haible  <bruno@clisp.org>
44703
44704         * doc/gnulib-tool.texi (VCS Issues): Small updates.
44705         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44706
44707 2008-03-06  Bruno Haible  <bruno@clisp.org>
44708
44709         * doc/func.texi: New file, extracted from doc/gnulib.texi.
44710         * doc/gnulib.texi: Include it.
44711
44712 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44713
44714         * modules/func (License): Change license to unlimited; there was
44715         no LGPL parts in the module anyway.
44716
44717 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44718
44719         * modules/__func__: Renamed to modules/func.
44720         * modules/__func__-tests: Renamed to modules/func-tests.
44721         * tests/test-__func__.c: Renamed to tests/test-func.c.
44722         * m4/__func__.m4: Renamed to m4/func.m4.
44723         * doc/gnulib.texi (__func__): Section renamed to func.
44724         Suggested by Eric Blake <ebb9@byu.net>.
44725
44726 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44727
44728         * doc/gnulib.texi (__func__): Use C99 terminology when talking
44729         about __func__.  Make example self-contained.  Suggested by Eric
44730         Blake <ebb9@byu.net>.
44731
44732         * tests/test-__func__.c (main): Avoid extraneous () around __func.
44733         Suggested by Eric Blake <ebb9@byu.net>.
44734
44735 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44736
44737         * modules/__func__: New file.
44738         * modules/__func__-tests: New file.
44739         * tests/test-__func__.c: New file.
44740         * m4/__func__.m4: New file.
44741         * doc/gnulib.texi (__func__): Document __func__ module.
44742
44743 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44744
44745         * modules/byteswap (License): Re-license as LGPLv2+.
44746
44747 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44748
44749         * doc/Makefile: Add pdf target.
44750
44751 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44752
44753         * modules/inline (License): Use 'unlimited', since there are only
44754         *.m4 files in this module.
44755
44756 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44757             Bruno Haible  <bruno@clisp.org>
44758
44759         Add support for HP C 7.1 on OpenVMS 8.3.
44760         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
44761
44762 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44763
44764         Update VMS specifics.
44765         * lib/getopt.c [VMS]: Remove include of unixlib.h.
44766
44767 2008-03-02  Jim Meyering  <meyering@redhat.com>
44768
44769         Remove the last dependency on the "free" module.
44770         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
44771         Reported by Bob Proulx.
44772
44773         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
44774
44775         Remove useless "if" tests before free.  Deprecate "free" module.
44776         * doc/posix-functions/free.texi: Mention that this
44777         module is no longer useful.
44778         * modules/free (Notice): Say this module is obsolete.
44779         * modules/readutmp (Depends-on): Remove free.
44780         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
44781         * lib/putenv.c (putenv): Likewise.
44782         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
44783         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
44784         * tests/test-c-strcasestr.c (main): Likewise.
44785         * tests/test-c-strstr.c (main): Likewise.
44786         * tests/test-mbscasestr1.c (main): Likewise.
44787         * tests/test-mbscasestr2.c (main): Likewise.
44788         * tests/test-mbsstr1.c (main): Likewise.
44789         * tests/test-mbsstr2.c (main): Likewise.
44790         * tests/test-memmem.c (main): Likewise.
44791         * tests/test-strcasestr.c (main): Likewise.
44792         * tests/test-striconv.c (main): Likewise.
44793         * tests/test-striconveh.c (main): Likewise.
44794         * tests/test-striconveha.c (main): Likewise.
44795         * tests/test-strstr.c (main): Likewise.
44796
44797         * build-aux/git-version-gen: Adjust a comment and the Usage string.
44798
44799         bootstrap: sync from coreutils again
44800         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
44801
44802 2008-03-01  Jim Meyering  <meyering@redhat.com>
44803
44804         bootstrap: sync from coreutils
44805         * build-aux/bootstrap (update_po_files): Copy a .po file into place
44806         also when the target doesn't exist.
44807
44808 2008-03-01  Eric Blake  <ebb9@byu.net>
44809
44810         Fix bugs in last patch.
44811         * lib/memchr2.c (memchr2): Fix typo.
44812         * tests/test-memchr2.c: Test previous bug, and don't use GNU
44813         extension.
44814         Reported by Bruce Korb.
44815
44816         New module 'memchr2'.
44817         * modules/memchr2: New file.
44818         * modules/memchr2-tests: Likewise.
44819         * lib/memchr2.h: Likewise.
44820         * lib/memchr2.c: Likewise, based on memchr.c.
44821         * tests/test-memchr2.c: New test.
44822         * MODULES.html.sh (String handling): Add memchr2.
44823
44824 2008-02-29  Bruno Haible  <bruno@clisp.org>
44825
44826         * modules/freadseek-tests: New file.
44827         * tests/test-freadseek.sh: New file.
44828         * tests/test-freadseek.c: New file.
44829
44830         New module 'freadseek'.
44831         * modules/freadseek: New file.
44832         * lib/freadseek.h: New file.
44833         * lib/freadseek.c: New file.
44834         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
44835
44836 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44837
44838         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
44839         wydawca.
44840
44841         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
44842         program_invocation_name and program_invocation_short_name are
44843         present.
44844
44845 2008-02-28  Bruno Haible  <bruno@clisp.org>
44846
44847         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
44848         * tests/test-freadptr.sh: Also test non-seekable stdin.
44849
44850 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
44851
44852         * build-aux/bootstrap (source_base, m4_base)
44853         (doc_base, tests_base): New variables.
44854         (gnulib_tool_options): Do not hardcode base directories, use
44855         the above variables instead.
44856
44857 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
44858
44859         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
44860
44861 2008-02-28  Bruno Haible  <bruno@clisp.org>
44862
44863         * modules/freadptr-tests: New file.
44864         * tests/test-freadptr.sh: New file.
44865         * tests/test-freadptr.c: New file.
44866
44867         New module 'freadptr'.
44868         * modules/freadptr: New file.
44869         * lib/freadptr.h: New file.
44870         * lib/freadptr.c: New file.
44871         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
44872
44873 2008-02-26  Karl Berry  <karl@freefriends.org>
44874
44875         Sync from Libtool:
44876         * libltdl/argz.c (argz_add, argz_count): New functions.
44877         * libltdl/argz.in.h: Declare them.
44878         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
44879
44880 2008-02-22  Bruno Haible  <bruno@clisp.org>
44881
44882         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
44883         is a pointer type.  Needed for HP-UX 10.
44884         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
44885         * doc/posix-functions/gmtime_r.texi: Likewise.
44886         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44887
44888 2008-02-24  Bruno Haible  <bruno@clisp.org>
44889
44890         * modules/environ-tests: New file.
44891         * tests/test-environ.c: New file.
44892
44893         New module 'environ'.
44894         * modules/environ: New file.
44895         * lib/unistd.in.h (environ): New declaration.
44896         * m4/environ.m4: New file.
44897         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
44898         after use.
44899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
44900         HAVE_DECL_ENVIRON.
44901         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
44902         HAVE_DECL_ENVIRON.
44903         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
44904         wrong claim that 'environ' is missing on some systems.
44905         * modules/execute (Depends-on): Add environ.
44906         * lib/execute.c (environ): Remove fallback declaration.
44907         * modules/pipe (Depends-on): Add environ.
44908         * lib/pipe.c (environ): Remove fallback declaration.
44909         * modules/setenv (Depends-on): Add environ.
44910         * lib/setenv.c (environ): Remove fallback declaration.
44911         * modules/unsetenv (Depends-on): Add environ.
44912         * lib/unsetenv.c (environ): Remove fallback declaration.
44913         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
44914         m4/environ.m4.
44915         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
44916         (gl_PREREQ_UNSETENV): Likewise.
44917
44918 2008-02-24  Bruno Haible  <bruno@clisp.org>
44919
44920         * doc/posix-functions/environ.texi: Document the MacOS X problem.
44921
44922 2008-02-20  Bob Proulx  <bob@proulx.com>
44923
44924         Enable use of older two part flavor 'git describe'.
44925         * build-aux/git-version-gen: If using the older two part flavor of
44926         git version then recreate the third part now present in the
44927         newer three part flavor of git describe.
44928
44929 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
44930
44931         * lib/fts.c (fts_build): Typo correction to comment.
44932
44933 2008-02-17  Bruno Haible  <bruno@clisp.org>
44934
44935         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
44936         generating no-op conflicts.
44937
44938 2008-02-17  Bruno Haible  <bruno@clisp.org>
44939
44940         Speed up by 10%.
44941         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
44942         result_entries, rather than an index-based loop.
44943
44944 2008-02-17  Bruno Haible  <bruno@clisp.org>
44945
44946         Speed up by 25%.
44947         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
44948         'hashcode_cached'.
44949         (entry_create): New function.
44950         (entry_hashcode): Use the cached hashcode if possible.
44951         (read_changelog_file, try_split_merged_entry): Use entry_create.
44952
44953 2008-02-17  Bruno Haible  <bruno@clisp.org>
44954
44955         Speed up from O(n^2) to O(n) for long ChangeLog files.
44956         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
44957         (read_changelog_file): Change implementation of entries_reversed list
44958         to rbtreehash.
44959         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
44960
44961 2008-02-17  Bruno Haible  <bruno@clisp.org>
44962
44963         New option --split-merged-entry.
44964         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
44965         (find_paragraph_end, try_split_merged_entry): New functions.
44966         (long_options): Add option --split-merged-entry.
44967         (usage): Document option --split-merged-entry.
44968         (main): Implement option --split-merged-entry.
44969         Reported by Eric Blake.
44970
44971 2008-02-17  Bruno Haible  <bruno@clisp.org>
44972
44973         * lib/git-merge-changelog.c: Include c-strstr.h.
44974         (main): Support the "git pull --rebase" situation.
44975         * modules/git-merge-changelog (Depends-on): Add c-strstr.
44976         Reported by Eric Blake.
44977
44978 2008-02-16  Eric Blake  <ebb9@byu.net>
44979
44980         Avoid doubling \ in common case of "c-maybe" quoting style.
44981         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
44982         eliding outer quotes.
44983         * lib/quotearg.h: Document this.
44984         * tests/test-quotearg.c (result_strings, inputs, results_g)
44985         (flag_results, locale_results): Test it by adding a new string to
44986         each test group.
44987         (compare_strings): Test new string.
44988
44989 2008-02-13  Eric Blake  <ebb9@byu.net>
44990
44991         Avoid trigraph quoting in default output.
44992         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
44993         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
44994         unless explicitly requested.
44995         * tests/test-quotearg.c (flag_results, main): Add additional tests.
44996
44997 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
44998
44999         Don't rely on signed integer overflowing to negative value.
45000         * lib/getugroups.c (getugroups): Include <limits.h>.
45001         Instead, compare against INT_MAX, and increment only if the test passes.
45002
45003 2008-02-13  Jim Meyering  <meyering@redhat.com>
45004         and Eric Blake  <ebb9@byu.net>
45005
45006         Avoid shadowing warning and compile errors on Linux.
45007         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
45008         forwarding macros on Linux.
45009         (dcgettext): Define a stub, for Linux.
45010         (results_g, main): Avoid warnings.
45011
45012 2008-02-12  Eric Blake  <ebb9@byu.net>
45013
45014         Silence warning in last patch.
45015         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
45016
45017         Quotearg part 4: add tests, fix c-maybe colon quoting.
45018         * lib/quotearg.h: Improve documentation.
45019         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
45020         escapes when adding outer quotes.  When quoting trigraphs, use
45021         valid C notation.  When quoting NUL, omit extra characters if next
45022         character is not digit.  Alter prototype.
45023         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
45024         callers.
45025         * modules/quotearg-tests: New module.
45026         * tests/test-quotearg.c: New test.
45027
45028 2008-02-07  Eric Blake  <ebb9@byu.net>
45029
45030         Quotearg part 3: add flag to control outer quote elision.
45031         * lib/quotearg.h (c_maybe_quoting_style): New style.
45032         (enum quoting_flags): Better documentation of flags.
45033         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
45034         c-maybe style.
45035         (quotearg_buffer_restyled): Handle new flag to elide outer
45036         quotes.
45037
45038         Quotearg part 2: add flag that can control NUL elision.
45039         * lib/quotearg.h (set_quoting_flags): New prototype.
45040         * lib/quotearg.c (struct quoting_options): Add flag field.
45041         (set_quoting_flags): New function.
45042         (quotearg_buffer_restyled): Add flags parameter.
45043         (quotearg_alloc_mem): Set the flag if length cannot be returned.
45044         (quotearg_n_options): Set the flag, since length cannot be
45045         returned.
45046         (quoting_options_from_style): Default flags correctly.
45047
45048         Quotearg part 1: more wrappers, restore quotearg_char state.
45049         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
45050         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
45051         (quotearg_colon_mem): New wrappers.
45052         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
45053         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
45054         functions.
45055         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
45056         (quotearg_colon_mem): New functions.
45057
45058 2008-02-11  Bruno Haible  <bruno@clisp.org>
45059
45060         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
45061         library in the current directory: it does not work with parallel make.
45062         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45063
45064 2008-02-11  Bruno Haible  <bruno@clisp.org>
45065
45066         * .gitattributes: New file.
45067
45068 2008-02-11  Jim Meyering  <meyering@redhat.com>
45069
45070         useless-if-before-free: Fix reversed exit values.
45071         * build-aux/useless-if-before-free: Use correct values
45072         for EXIT_MATCH and EXIT_NO_MATCH.
45073
45074         * build-aux/useless-if-before-free: Close stdout carefully.
45075
45076 2008-02-10  Bruno Haible  <bruno@clisp.org>
45077
45078         New module 'git-merge-changelog'.
45079         * modules/git-merge-changelog: New file.
45080         * lib/git-merge-changelog.c: New file.
45081
45082 2008-02-10  Jim Meyering  <meyering@redhat.com>
45083
45084         useless-if-before-free: New option: --list (-l).
45085
45086         useless-if-before-free: Don't exit immediately upon open failure.
45087         * build-aux/useless-if-before-free: Exit 2 for errors.
45088         Upon failure to open a file, don't exit immediately.
45089         Rather, just warn and continue with any remaining files.
45090
45091 2008-02-10  Bruno Haible  <bruno@clisp.org>
45092
45093         New abstract list operation 'node_set_value'.
45094         * lib/gl_list.h (gl_list_node_set_value): New function.
45095         (struct gl_list_implementation): New field node_set_value.
45096         * lib/gl_list.c (gl_list_node_set_value): New function.
45097         * lib/gl_array_list.c (gl_array_node_set_value): New function.
45098         (gl_array_list_implementation): Update.
45099         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
45100         (gl_carray_list_implementation): Update.
45101         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
45102         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
45103         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
45104         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
45105         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
45106         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
45107         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
45108         Update.
45109         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
45110         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
45111         (gl_sublist_list_implementation): Update.
45112
45113 2008-02-10  Bruno Haible  <bruno@clisp.org>
45114
45115         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
45116         Needed when ELEMENT is #defined to 'some_type *'.
45117
45118 2008-02-10  Jim Meyering  <meyering@redhat.com>
45119
45120         New script and module: useless-if-before-free
45121         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
45122         * build-aux/useless-if-before-free: New file.
45123         * modules/useless-if-before-free: New file.
45124
45125         * build-aux/gitlog-to-changelog: Use committer date, not author date.
45126
45127         xstrtol_error: Fix typo.
45128         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
45129         s/exit_failure/exit_status/.
45130
45131 2008-02-09  Jim Meyering  <meyering@redhat.com>
45132
45133         New script and module: gitlog-to-changelog
45134         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
45135         * modules/gitlog-to-changelog: New file.
45136         * build-aux/gitlog-to-changelog: New file.
45137
45138 2008-02-08  Jim Meyering  <meyering@redhat.com>
45139
45140         Avoid two "parameter unused" warnings.
45141         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
45142         Mark "st" as used.
45143
45144         Use "git COMMAND", not "git-COMMAND".
45145         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
45146         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
45147         * build-aux/git-version-gen: Use "git status", not "git-status".
45148
45149 2008-02-07  Bruno Haible  <bruno@clisp.org>
45150
45151         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
45152         Avoids a crash on Windows Vista.
45153         Reported by Adam Strzelecki <ono@java.pl> via
45154         Simon Josefsson <simon@josefsson.org>.
45155
45156 2008-02-06  Bruno Haible  <bruno@clisp.org>
45157
45158         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
45159         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
45160         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
45161         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
45162         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45163         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45164         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
45165         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
45166         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45167         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45168         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45169         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45170         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45171         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45172         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45173         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
45174         left-adjust flag.
45175         * tests/test-snprintf-posix.h (test_function): Likewise.
45176         * tests/test-sprintf-posix.h (test_function): Likewise.
45177         * tests/test-vasprintf-posix.c (test_function): Likewise.
45178         * doc/posix-functions/fprintf.texi: Update.
45179         * doc/posix-functions/printf.texi: Update.
45180         * doc/posix-functions/snprintf.texi: Update.
45181         * doc/posix-functions/sprintf.texi: Update.
45182         * doc/posix-functions/vfprintf.texi: Update.
45183         * doc/posix-functions/vprintf.texi: Update.
45184         * doc/posix-functions/vsnprintf.texi: Update.
45185         * doc/posix-functions/vsprintf.texi: Update.
45186         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45187
45188 2008-02-06  Bruno Haible  <bruno@clisp.org>
45189
45190         Fix bug introduced on 2008-01-26.
45191         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
45192
45193 2008-02-06  Bruno Haible  <bruno@clisp.org>
45194
45195         Fix bug introduced on 2007-06-10.
45196         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
45197         !NEED_PRINTF_FLAG_ZERO.
45198
45199 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
45200
45201         getloadavg: use libperfstat on AIX5
45202         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
45203
45204 2008-02-03  Bruno Haible  <bruno@clisp.org>
45205
45206         * lib/diffseq.h: Add comments about required #includes.
45207         Reported by Michael Biggs <gnulib@doubleplum.net>.
45208
45209 2008-02-01  Bruno Haible  <bruno@clisp.org>
45210
45211         * users.txt: Add gnuit.
45212
45213 2008-01-31  Bruno Haible  <bruno@clisp.org>
45214
45215         * lib/md4.c (set_uint32): Mark as inline.
45216         * lib/md5.c (set_uint32): Likewise.
45217         * lib/sha1.c (set_uint32): Likewise.
45218         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
45219         * m4/md5.m4 (gl_MD5): Likewise.
45220         * m4/sha1.m4 (gl_SHA1): Likewise.
45221
45222 2008-01-31  Jim Meyering  <meyering@redhat.com>
45223
45224         Use "sizeof VAR", rather than a literal "4".
45225         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
45226         * lib/md4.c (md4_read_ctx): Likewise.
45227         * lib/sha1.c (sha1_read_ctx): Likewise.
45228
45229 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45230
45231         * tests/test-sha1.c: New file, based on test-md5.c.
45232
45233         * modules/crypto/sha1-tests: New file.
45234
45235 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45236
45237         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
45238
45239 2008-01-31  Jim Meyering  <meyering@redhat.com>
45240
45241         Prefer "sizeof v" over the equivalent "4".
45242         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
45243         * lib/md5.c (set_uint32): Likewise.
45244         * lib/sha1.c (set_uint32): Likewise.
45245
45246 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45247
45248         * lib/sha1.c (set_uint32): Mark function as static.
45249
45250 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45251
45252         md2: clarify comments to say that alignment is not required.
45253         * lib/md2.h: Remove warning about alignment in comment.
45254         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
45255         never been required.
45256
45257 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45258
45259         md4: adapt alignment constraint fix from sha1.
45260         * lib/md4.c (set_uint32): New function, from sha1.c
45261         (md4_read_ctx): Use it.
45262         (md4_finish_ctx): Doc fix.
45263         * lib/md4.h: Doc fix.
45264
45265 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45266
45267         md5: adapt alignment constraint fix from sha1.
45268         * lib/md5.c (set_uint32): New function, from sha1.c
45269         (md5_read_ctx): Use it.
45270         (md5_finish_ctx): Doc fix.
45271         * lib/md5.h: Doc fix.
45272
45273 2008-01-30  Peter Palfrader  <weasel@debian.org>
45274
45275         sha1: remove the result buffer alignment constraint
45276         * lib/sha1.c (set_uint32): New function.
45277         (sha1_read_ctx): Rewrite to remove the result buffer alignment
45278         constraint.
45279         (sha1_finish_ctx): Remove comment warning about alignment constraint.
45280         * lib/sha1.h: Likewise.
45281
45282 2008-01-30  Andreas Schwab  <schwab@suse.de>
45283             Bruno Haible  <bruno@clisp.org>
45284
45285         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
45286         correct definition of LDBL_MIN_EXP.
45287
45288 2008-01-30  Karl Berry  <karl@gnu.org>
45289
45290         * config/srclist-update: try to preserve x bit on updates.
45291         * config/srclistvars.sh: update for karl.
45292
45293 2008-01-29  Jim Meyering  <meyering@redhat.com>
45294
45295         vasnprintf.c: Avoid warning about unused label
45296         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
45297         "overflow" label definition and associated code with the
45298         same cpp condition that guards the sole use of that label.
45299
45300 2008-01-26  Bruno Haible  <bruno@clisp.org>
45301
45302         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
45303         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
45304         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
45305         * lib/isnanl-nolibm.h (isnanl): Likewise.
45306         Reported by Paul Eggert <eggert@cs.ucla.edu>.
45307
45308 2008-01-26  Bruno Haible  <bruno@clisp.org>
45309
45310         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
45311         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
45312
45313 2008-01-26  Bruno Haible  <bruno@clisp.org>
45314
45315         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
45316         GCC >= 4.0 built-in.
45317         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
45318
45319 2008-01-26  Bruno Haible  <bruno@clisp.org>
45320
45321         Rename isnan, applicable to 'double' only, to isnand.
45322         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
45323         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
45324         (configure.ac): Update.
45325         (Include): Replace "isnan.h" with "isnand.h".
45326         * m4/isnand.m4: Renamed from m4/isnan.m4.
45327         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
45328         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
45329         instead of isnan.c.
45330         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
45331         instead of HAVE_ISNAN_IN_LIBC.
45332         (isnand): Renamed from isnan.
45333         * lib/isnand.c: New file.
45334         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
45335         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
45336         (Makefile.am): Update.
45337         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
45338         Include isnand.h instead of isnan.h.
45339         (main): Test isnand instead of isnan.
45340         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
45341         isnan-nolibm.
45342         * modules/frexp (Depends-on): Likewise.
45343         * modules/frexp-tests (Depends-on): Likewise.
45344         * modules/frexp-nolibm (Depends-on): Likewise.
45345         * modules/frexp-nolibm-tests (Depends-on): Likewise.
45346         * modules/isfinite (Depends-on): Likewise.
45347         * modules/round-tests (Depends-on): Likewise.
45348         * modules/signbit (Depends-on): Likewise.
45349         * modules/signbit-tests (Depends-on): Likewise.
45350         * modules/snprintf-posix (Depends-on): Likewise.
45351         * modules/sprintf-posix (Depends-on): Likewise.
45352         * modules/trunc-tests (Depends-on): Likewise.
45353         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45354         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45355         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45356         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45357         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45358         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45359         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45360         * modules/vasnprintf-posix (Depends-on): Likewise.
45361         * modules/vasprintf-posix (Depends-on): Likewise.
45362         * modules/vfprintf-posix (Depends-on): Likewise.
45363         * modules/vsnprintf-posix (Depends-on): Likewise.
45364         * modules/vsprintf-posix (Depends-on): Likewise.
45365         * lib/frexp.c: Include isnand.h instead of isnan.h.
45366         (ISNAN): Set to isnand instead of isnan.
45367         * lib/isfinite.c: Include isnand.h instead of isnan.h.
45368         (gl_isfinited): Use isnand instead of isnan.
45369         * lib/signbitd.c: Include isnand.h instead of isnan.h.
45370         (gl_signbitd): Use isnand instead of isnan.
45371         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
45372         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
45373         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
45374         (main): Use isnand instead of isnan.
45375         * tests/test-round1.c: Include isnand.h.
45376         (main): Use isnand instead of isnan.
45377         * tests/test-round2.c: Include isnand.h instead of isnan.h.
45378         (ISNAN): Set to isnand instead of isnan.
45379         * tests/test-trunc1.c: Include isnand.h.
45380         (main): Use isnand instead of isnan.
45381         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
45382         (equal): Use isnand instead of isnan.
45383         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
45384         isnand-nolibm.
45385         * NEWS: Mention the change.
45386
45387 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
45388             Bruno Haible  <bruno@clisp.org>
45389
45390         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
45391         the GCC builtins for signbits are present and set
45392         REPLACE_SIGNBIT_USING_GCC if so.
45393         * lib/math.in.h (signbit): Define using GCC builtins if
45394         REPLACE_SIGNBIT_USING_GCC is set.
45395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
45396         REPLACE_SIGNBIT_USING_GCC.
45397         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
45398
45399 2008-01-25  Jim Meyering  <meyering@redhat.com>
45400
45401         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
45402         * lib/poll.c: Include <config.h>, not "config.h".
45403         * tests/test-getaddrinfo.c: Likewise.
45404
45405 2008-01-25  Simon Josefsson  <simon@josefsson.org>
45406
45407         * modules/sockets-tests: New file.
45408
45409 2008-01-24  Simon Josefsson  <simon@josefsson.org>
45410
45411         * modules/sockets: New module, can be used to call WSA_Startup and
45412         WSA_Cleanup when needed.
45413
45414         * lib/sockets.h, lib/sockets.c: New files.
45415
45416         * m4/sockets.m4: New file.
45417
45418         * tests/test-sockets.c: New file.
45419
45420 2008-01-19  Bruno Haible  <bruno@clisp.org>
45421
45422         * doc/posix-headers: Renamed from doc/headers.
45423         * doc/posix-functions: Renamed from doc/functions.
45424         * doc/gnulib.texi: Update.
45425
45426 2008-01-19  Bruno Haible  <bruno@clisp.org>
45427
45428         * doc/glibc-functions/strcasestr.texi: Include contents of
45429         doc/functions/strcasestr.texi, fixing the list of platforms.
45430         * doc/functions/strcasestr.texi: Remove file.
45431
45432 2008-01-19  Bruno Haible  <bruno@clisp.org>
45433
45434         * doc/glibc-functions/memmem.texi: Include contents of
45435         doc/functions/memmem.texi.
45436         * doc/functions/memmem.texi: Remove file.
45437
45438 2008-01-18  Bruno Haible  <bruno@clisp.org>
45439
45440         * doc/glibc-functions/*.texi: New files.
45441         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
45442         to use the new files.
45443
45444 2008-01-17  Bruno Haible  <bruno@clisp.org>
45445
45446         * tests/test-gethostname.c (main): Fix printf statement.
45447
45448 2008-01-17  Simon Josefsson  <simon@josefsson.org>
45449
45450         * modules/gethostname-tests: New file.
45451
45452         * tests/test-gethostname.c: New file.
45453
45454 2008-01-17  Simon Josefsson  <simon@josefsson.org>
45455
45456         * lib/gethostname.c: Include string.h unconditionally, strncpy is
45457         used by the UNAME case.  Reported by Bruno Haible
45458         <bruno@clisp.org>.
45459
45460 2008-01-17  Eric Blake  <ebb9@byu.net>
45461
45462         Convert c-strcasestr to be more efficient.
45463         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
45464         (Depends-on): Add c-strcase, remove malloca, strnlen.
45465         * tests/test-c-strcasestr.c (main): Enhance test.
45466         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
45467
45468 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
45469
45470         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
45471         Use it in creating po/Makevars.
45472
45473 2008-01-15  Simon Josefsson  <simon@josefsson.org>
45474
45475         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
45476         Applications that requires it should initialize libgcrypt
45477         manually.
45478
45479 2008-01-16  Simon Josefsson  <simon@josefsson.org>
45480
45481         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
45482
45483 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
45484
45485         Fix problem with getdate on mingw32 reported by Simon Josefsson
45486         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
45487         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
45488         tzname", when deciding whether to declare tzname.
45489         * lib/strftime.c (tzname): Likewise.
45490
45491 2008-01-15  Bruno Haible  <bruno@clisp.org>
45492
45493         Work around a MacOS X 10.5 bug in frexpl().
45494         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
45495         * doc/functions/frexpl.texi: Document the bug.
45496         Reported by Elias Pipping <pipping@gentoo.org>.
45497
45498 2008-01-14  Eric Blake  <ebb9@byu.net>
45499
45500         Touch up previous patch.
45501         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
45502         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
45503
45504         Convert strcasestr module to use Two-Way algorithm.
45505         * modules/strcasestr-simple: New module, based on the old
45506         strcasestr, but with Two-Way rather than KMP.
45507         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
45508         * lib/string.in.h (rpl_strcasestr): Declare.
45509         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
45510         performance.
45511         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
45512         * modules/string (Makefile.am): Support strcasestr.
45513         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45514         * modules/strcasestr-tests (Depends-on): Check for alarm.
45515         * tests/test-strcasestr.c: Augment test.
45516         * lib/str-two-way.h: Clean up stray macro.
45517         * NEWS: Document new module.
45518         * MODULES.html.sh (string handling): Likewise.
45519         * doc/functions/strcasestr.texi: New file.
45520         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
45521         here, since it is not a POSIX function.
45522
45523 2008-01-14  Colin Watson  <cjwatson@debian.org>
45524             Bruno Haible  <bruno@clisp.org>
45525
45526         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
45527         works fine; if not, set REPLACE_STRSIGNAL.
45528         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
45529         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45530         REPLACE_STRSIGNAL.
45531         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
45532         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
45533         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
45534
45535 2008-01-14  Bruno Haible  <bruno@clisp.org>
45536
45537         * modules/strsignal (Include): Change to <string.h>.
45538
45539 2008-01-14  Colin Watson  <cjwatson@debian.org>
45540
45541         * modules/argp (Notice): Add a notice recommending to change
45542         XGETTEXT_OPTIONS.
45543         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
45544
45545 2008-01-13  Colin Watson  <cjwatson@debian.org>
45546
45547         * modules/strsignal-tests: New file.
45548         * tests/test-strsignal.c: New file.
45549
45550         * lib/strsignal.c: New file, from glibc with modifications.
45551         * lib/siglist.h: New file, from glibc with modifications.
45552         * lib/string.in.h (strsignal): New declaration.
45553         * m4/strsignal.m4: New file.
45554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45555         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
45556         * modules/strsignal: New file.
45557         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
45558         HAVE_DECL_STRSIGNAL.
45559
45560 2008-01-13  Bruno Haible  <bruno@clisp.org>
45561
45562         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
45563         locale encoding is not ASCII. Needed for OpenBSD 4.0.
45564         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45565         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45566
45567 2008-01-13  Bruno Haible  <bruno@clisp.org>
45568
45569         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
45570         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
45571         * lib/argp.h (__attribute__): Likewise.
45572         * lib/c-stack.c (__attribute__): Likewise.
45573         * lib/error.h (__attribute__): Likewise.
45574         * lib/fts.c (__attribute__): Likewise.
45575         * lib/openat.h (__attribute__): Likewise.
45576         * lib/stdio.in.h (__attribute__): Likewise.
45577         * lib/string.in.h (__attribute__): Likewise.
45578         * lib/utimens.c (__attribute__): Likewise.
45579         * lib/vasnprintf.h (__attribute__): Likewise.
45580         * lib/xalloc.h (__attribute__): Likewise.
45581         * lib/xprintf.h (__attribute__): Likewise.
45582         * lib/xstrtol.h (__attribute__): Likewise.
45583         * lib/xvasprintf.h (__attribute__): Likewise.
45584
45585 2008-01-12  Bruno Haible  <bruno@clisp.org>
45586
45587         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
45588         * doc/glibc-headers/a.out.texi: New file.
45589         * doc/glibc-headers/aliases.texi: New file.
45590         * doc/glibc-headers/alloca.texi: New file.
45591         * doc/glibc-headers/ar.texi: New file.
45592         * doc/glibc-headers/argp.texi: New file.
45593         * doc/glibc-headers/argz.texi: New file.
45594         * doc/glibc-headers/byteswap.texi: New file.
45595         * doc/glibc-headers/crypt.texi: New file.
45596         * doc/glibc-headers/endian.texi: New file.
45597         * doc/glibc-headers/envz.texi: New file.
45598         * doc/glibc-headers/err.texi: New file.
45599         * doc/glibc-headers/error.texi: New file.
45600         * doc/glibc-headers/execinfo.texi: New file.
45601         * doc/glibc-headers/fpu_control.texi: New file.
45602         * doc/glibc-headers/fstab.texi: New file.
45603         * doc/glibc-headers/fts.texi: New file.
45604         * doc/glibc-headers/getopt.texi: New file.
45605         * doc/glibc-headers/ieee754.texi: New file.
45606         * doc/glibc-headers/ifaddrs.texi: New file.
45607         * doc/glibc-headers/libintl.texi: New file.
45608         * doc/glibc-headers/mcheck.texi: New file.
45609         * doc/glibc-headers/mntent.texi: New file.
45610         * doc/glibc-headers/obstack.texi: New file.
45611         * doc/glibc-headers/paths.texi: New file.
45612         * doc/glibc-headers/printf.texi: New file.
45613         * doc/glibc-headers/pty.texi: New file.
45614         * doc/glibc-headers/resolv.texi: New file.
45615         * doc/glibc-headers/shadow.texi: New file.
45616         * doc/glibc-headers/sysexits.texi: New file.
45617         * doc/glibc-headers/ttyent.texi: New file.
45618
45619 2008-01-12  Jim Meyering  <meyering@redhat.com>
45620
45621         announce-gen: emit Gnulib's git-based version string.
45622         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
45623         New option --gnulib-version=V, where V is expected to be
45624         the output of running git describe in the gnulib directory.
45625         (get_tool_versions): Request feedback on xdelta.  I suspect it's
45626         not useful, and plan to stop publishing an xdelta file with each
45627         coreutils release.
45628
45629         * build-aux/announce-gen: Also check for lzma-compressed files.
45630
45631 2008-01-11  Bruno Haible  <bruno@clisp.org>
45632
45633         * tests/test-memmem.c (main): Increase maximum allowed time.
45634         * tests/test-strstr.c (main): Likewise.
45635
45636 2008-01-11  Bruno Haible  <bruno@clisp.org>
45637
45638         * doc/functions/memmem.texi: Add more precisions about platforms.
45639         * doc/functions/strstr.texi: Likewise.
45640
45641 2008-01-10  Eric Blake  <ebb9@byu.net>
45642
45643         * m4/strstr.m4: Delete cruft from copy-n-paste.
45644         Reported by Bruno Haible.
45645
45646 2008-01-10  Bruno Haible  <bruno@clisp.org>
45647
45648         Make c-strstr rely on strstr.
45649         * lib/c-strstr.c: Don't include str-kmp.h.
45650         (c_strstr): Define in terms of strstr.
45651         * modules/c-strstr (Files): Remove lib/str-kmp.h.
45652         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
45653
45654 2008-01-10  Bruno Haible  <bruno@clisp.org>
45655
45656         * doc/gnulib.texi (String Functions in C Locale): New section.
45657         * doc/c-ctype.texi: New file.
45658         * doc/c-strcase.texi: New file.
45659         * doc/c-strcaseeq.texi: New file.
45660         * doc/c-strcasestr.texi: New file.
45661         * doc/c-strstr.texi: New file.
45662         * doc/c-strtod.texi: New file.
45663         * doc/c-strtold.texi: New file.
45664
45665 2008-01-10  Eric Blake  <ebb9@byu.net>
45666
45667         * lib/relocatable.h: Fix a comment.
45668
45669 2008-01-10  Eric Blake  <ebb9@byu.net>
45670
45671         Share two-way algorithm.
45672         * lib/str-two-way.h: New file, merged from...
45673         * lib/memmem.c: ...here...
45674         * lib/strstr.c: ...and here.
45675         * modules/memmem (Files): Use it.
45676         * modules/strstr (Files): Likewise.
45677
45678         Avoid quadratic strstr implementations.
45679         * lib/strstr.c: New file.
45680         * m4/strstr.m4: Likewise.
45681         * modules/strstr: Likewise.
45682         * modules/strstr-tests: Likewise.
45683         * tests/test-strstr.c: Likewise.
45684         * lib/string.in.h (rpl_strstr): Declare.
45685         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
45686         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
45687         * modules/string (Makefile.am): Likewise.
45688         * MODULES.html.sh (string handling): Mention new module.
45689         * doc/functions/strstr.texi (strstr): Document the bug.
45690
45691 2008-01-10  Bruno Haible  <bruno@clisp.org>
45692
45693         * lib/relocatable.h (relocate): State whether result is freshly
45694         allocated or not.
45695         * lib/relocatable.c (relocate): Return a freshly allocated string
45696         instead of a pointer to a privately held string.
45697         Reported by Sylvain Beucler <beuc@gnu.org>.
45698
45699 2008-01-10  Colin Watson  <cjwatson@debian.org>
45700
45701         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
45702         s/S_ISNLK/S_ISLNK/.
45703
45704 2008-01-09  Bruno Haible  <bruno@clisp.org>
45705
45706         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
45707         and other files.
45708         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
45709         if it's only a guess.
45710         * modules/memmem: Simplify by depending on memmem-simple.
45711
45712 2008-01-09  Bruno Haible  <bruno@clisp.org>
45713
45714         Work around OpenBSD 4.0 tdelete() bug.
45715         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
45716         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
45717         macros and don't redefine the enum values.
45718         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
45719         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
45720         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
45721
45722 2008-01-09  Bruno Haible  <bruno@clisp.org>
45723
45724         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
45725         (main): Don't perform the tests if setlocale did not install a UTF-8
45726         locale. Needed on OpenBSD 4.0.
45727         * modules/wcwidth-tests (Depends-on): Add localcharset.
45728
45729 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45730
45731         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
45732         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
45733         * NEWS: announce this.
45734         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
45735
45736 2008-01-09  Simon Josefsson  <simon@josefsson.org>
45737         and Eric Blake  <ebb9@byu.net>
45738
45739         Add memmem-simple module.
45740         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
45741         (gl_FUNC_MEMMEM): Separate performance from presence checks.
45742         * modules/memmem-simple: New file.
45743         * modules/memmem (Description): Tweak.
45744         * MODULES.html.sh (string handling): Mention new module.
45745         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
45746         addressed by memmem-simple.
45747         * NEWS: Document the difference.
45748
45749 2008-01-09  Eric Blake  <ebb9@byu.net>
45750
45751         Give gcc some memmem optimization hints.
45752         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
45753         (strcasestr): Declare as pure.
45754         * modules/memmem (Maintainer): Claim my implementation.
45755
45756 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45757
45758         Support AIX 6.1 and higher.
45759         * build-aux/config.libpath: Likewise.
45760         * build-aux/config.rpath: Likewise.
45761
45762 2008-01-08  Jim Meyering  <meyering@redhat.com>
45763             Bruno Haible  <bruno@clisp.org>
45764
45765         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
45766         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
45767         Reported by Peter Fales in
45768         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
45769
45770 2008-01-08  Bruno Haible  <bruno@clisp.org>
45771
45772         * modules/unictype/category-of (Depends-on): Add
45773         unictype/category-none.
45774         * modules/unictype/category-and-tests (Depends-on): Add
45775         unictype/category-{L,N,Lu,Nd}.
45776         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
45777         * modules/unictype/category-or-tests (Depends-on): Add
45778         unictype/category-{L,N}.
45779         * modules/unictype/category-name-tests (Depends-on): Add
45780         unictype/category-{Z,Nl}.
45781         Reported by Simon Josefsson.
45782
45783 2008-01-08  Bruno Haible  <bruno@clisp.org>
45784
45785         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
45786         convention better.
45787         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
45788         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
45789         Reported by Peter Miller <millerp@canb.auug.org.au>.
45790
45791 2008-01-08  Eric Blake  <ebb9@byu.net>
45792
45793         Rewrite memmem to guarantee linear complexity without malloc.
45794         * lib/memmem.c (memmem): Use Two-Way rather than
45795         Knuth-Morris-Pratt, to allow O(1) space usage.
45796         (critical_factorization, two_way_short_needle)
45797         (two_way_long_needle): New functions.
45798         (knuth_morris_pratt): Delete.
45799         * modules/memmem (Depends-on): No longer need malloca or stdbool.
45800         Add stdint.
45801         * tests/test-memmem.c (main): Add tests for periodic needle and
45802         sublinear performance.
45803         * doc/functions/memmem.texi (memmem): Document other deficiencies
45804         in cygwin and older glibc.
45805
45806 2008-01-08  Bruno Haible  <bruno@clisp.org>
45807
45808         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
45809         augmentation.
45810
45811 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
45812
45813         Add a configure time option: --disable-acl.
45814         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
45815         AC_ARG_ENABLE(acl).
45816
45817 2008-01-06  Simon Josefsson  <simon@josefsson.org>
45818
45819         * tests/test-localename.c: Don't include obsolete "setenv.h".
45820
45821         * modules/localename-tests (Depends-on): Need unsetenv.
45822
45823 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45824
45825         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
45826
45827 2008-01-06  Colin Watson  <cjwatson@debian.org>
45828
45829         * users.txt: Add man-db.
45830
45831 2008-01-07  Bruno Haible  <bruno@clisp.org>
45832
45833         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
45834         previous section name.
45835
45836 2008-01-07  Bruno Haible  <bruno@clisp.org>
45837
45838         * lib/progname.c (set_program_name): Don't strip off a leading
45839         "lt-" prefix outside a .libs directory.
45840         Suggested by Paul Eggert.
45841
45842 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
45843             Bruno Haible  <bruno@clisp.org>
45844
45845         Improve memory cleanup in 'relocatable' module.
45846         * lib/relocatable.h (compute_curr_prefix): Change return type to
45847         'char *'.
45848         * lib/relocatable.c (compute_curr_prefix): Change return type to
45849         'char *'. Free curr_installdir after use.
45850         (relocate): Free curr_prefix_better after use.
45851         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
45852
45853 2008-01-01  Bruno Haible  <bruno@clisp.org>
45854
45855         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
45856         failure on older glibc systems.
45857         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45858
45859 2008-01-05  Eric Blake  <ebb9@byu.net>
45860
45861         Avoid quadratic system memmem.
45862         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
45863         Reported by Ralf Wildenhues.
45864
45865         Fix memmem test for mingw.
45866         * modules/memmem-tests (configure.ac): Check for alarm.
45867         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
45868         it.
45869         * doc/functions/memmem.texi: New file.
45870         * doc/gnulib.texi (Function Substitutes): Add memmem.
45871         Reported by Bruno Haible.
45872
45873 2008-01-04  Bruno Haible  <bruno@clisp.org>
45874
45875         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
45876         Require gl_HEADER_STRINGS_H_DEFAULTS, not
45877         gl_HEADER_STRING_H_DEFAULTS.
45878
45879 2008-01-04  Eric Blake  <ebb9@byu.net>
45880
45881         Shorten duration of memmem test.
45882         * tests/test-memmem.c (main): Use alarm to declare failure if test
45883         is taking too long.
45884         Reported by Ralf Wildenhues.
45885
45886 2007-12-21  Simon Josefsson  <simon@josefsson.org>
45887
45888         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
45889         string, needed by strerror.
45890
45891 2008-01-03  Colin Watson  <cjwatson@debian.org>
45892             Bruno Haible  <bruno@clisp.org>
45893
45894         * doc/gnulib-tool.texi (Localization): New section.
45895
45896 2008-01-02  Bruno Haible  <bruno@clisp.org>
45897
45898         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
45899         variables to 'unsigned char *' type.
45900         Reported by Paul Eggert.
45901
45902 2008-01-02  Jim Meyering  <jim@meyering.net>
45903
45904         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
45905
45906 2007-12-31  Jim Meyering  <jim@meyering.net>
45907
45908         Avoid use of private FTS type name.
45909         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
45910
45911 2007-12-30  Karl Berry  <karl@gnu.org>
45912
45913         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
45914         work around defect in Texinfo and/or the standalone Info browser.
45915
45916 2007-12-30  Bruno Haible  <bruno@clisp.org>
45917
45918         Unify 5 copies of the KMP code.
45919         * lib/str-kmp.h: New file.
45920         * lib/c-strcasestr.c: Include str-kmp.h.
45921         (knuth_morris_pratt): Remove function.
45922         (c_strcasestr): Update.
45923         * lib/c-strstr.c: Include str-kmp.h.
45924         (knuth_morris_pratt): Remove function.
45925         (c_strcasestr): Update.
45926         * lib/mbscasestr.c: Include str-kmp.h.
45927         (knuth_morris_pratt_unibyte): Remove function.
45928         * lib/mbsstr.c: Include str-kmp.h.
45929         (knuth_morris_pratt_unibyte): Remove function.
45930         * lib/strcasestr.c: Include str-kmp.h.
45931         (knuth_morris_pratt): Remove function.
45932         (strcasestr): Update.
45933         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
45934         * modules/c-strstr (Files): Likewise.
45935         * modules/mbscasestr (Files): Likewise.
45936         * modules/mbsstr (Files): Likewise.
45937         * modules/strcasestr (Files): Likewise.
45938         Suggested by Paul Eggert.
45939
45940 2007-12-30  Bruno Haible  <bruno@clisp.org>
45941
45942         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
45943         defined.
45944
45945 2007-12-30  Bruno Haible  <bruno@clisp.org>
45946
45947         * lib/xmalloca.h: Include xalloc.h.
45948         (xnmalloca): New macro.
45949
45950 2007-12-30  Bruno Haible  <bruno@clisp.org>
45951
45952         * lib/malloca.h (nmalloca): New macro.
45953         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
45954         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
45955         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
45956         knuth_morris_pratt_multibyte): Likewise.
45957         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
45958         knuth_morris_pratt_multibyte): Likewise.
45959         * lib/memmem.c (knuth_morris_pratt): Likewise.
45960         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
45961
45962 2007-12-25  Bruno Haible  <bruno@clisp.org>
45963
45964         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
45965         * lib/glob.c: Don't include openat.h.
45966         (link_exists2_p): Add back the code that deals with the
45967         !GLOB_ALTDIRFUNC case.
45968         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
45969         let it do the filename concatenation.
45970         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
45971         * modules/glob (Depends-on): Remove openat.
45972
45973 2007-12-31  Bruno Haible  <bruno@clisp.org>
45974
45975         * modules/dirfd (License): Change to LGPLv2+.
45976         Approved by Jim Meyering.
45977
45978 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45979
45980         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
45981         when multiplying M by sizeof (size_t).
45982
45983 2007-12-10  Martin Lambers  <marlam@marlam.de>
45984
45985         Override getpagesize on mingw.
45986         * lib/getpagesize.c: New file.
45987         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
45988         * modules/getpagesize (Files): Add lib/getpagesize.c.
45989         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
45990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45991         REPLACE_GETPAGESIZE.
45992         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
45993
45994 2007-12-25  Bruno Haible  <bruno@clisp.org>
45995
45996         * modules/localcharset (Notice): New field.
45997         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
45998         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
45999
46000 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
46001             Bruno Haible  <bruno@clisp.org>
46002
46003         Avoid using the syntax symbol() in formatted documentation.
46004         * MODULES.html.sh (func_module): When replacing symbol() with a
46005         hyperlink, remove the parentheses. Show an error if some remain.
46006         Recognize and render the '...' syntax.
46007         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
46008         Rework. Add paragraph about GCC's inlining.
46009         * doc/alloca.texi: Likewise.
46010         * doc/error.texi: Remove parentheses from symbol reference.
46011         * doc/gnulib-intro.texi: Likewise.
46012         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
46013         * modules/fnmatch (Description): Reword to say "the ... function".
46014         * modules/full-read (Description): Likewise.
46015         * modules/full-write (Description): Likewise.
46016         * modules/safe-read (Description): Likewise.
46017         * modules/safe-write (Description): Likewise.
46018         * modules/strchrnul (Description): Likewise.
46019         * modules/trim (Description): Likewise.
46020         * modules/error (Description): Remove parentheses from symbol
46021         references.
46022         * modules/verror (Description): Likewise.
46023         Reported by Karl Berry.
46024
46025 2007-12-25  Bruno Haible  <bruno@clisp.org>
46026
46027         Fixup after 2007-10-16 commit.
46028         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
46029
46030 2007-12-24  Bruno Haible  <bruno@clisp.org>
46031
46032         Make --enable-relocatable work with DESTDIR.
46033         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
46034         to compute installdir from destprog.
46035         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
46036         also set the RELOC_DESTDIR variable.
46037         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46038
46039 2007-12-24  Bruno Haible  <bruno@clisp.org>
46040
46041         Fix link error due to xalloc_die().
46042         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
46043         of xreadlink.
46044         * lib/relocwrapper.c: Update comments.
46045         * build-aux/install-reloc: Remove xreadlink.c from file list.
46046         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
46047         xreadlink.c.
46048         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46049
46050 2007-12-24  Bruno Haible  <bruno@clisp.org>
46051
46052         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
46053         * lib/setenv.h: Remove file.
46054         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
46055         lib/setenv.h.
46056         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
46057         (Depends-on): Add stdlib.
46058         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
46059         gl_FUNC_UNSETENV.
46060         (Include): Replace setenv.h with <stdlib.h>.
46061         * modules/unsetenv: New file.
46062         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
46063         * lib/unsetenv.c: Include <stdlib.h> first.
46064         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
46065         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
46066         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
46067         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
46068         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
46069         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
46070         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
46071         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
46072         * doc/functions/unsetenv.texi: Update.
46073         * modules/xsetenv (Depends-on): Add unsetenv.
46074         * modules/getdate (Depends-on): Likewise.
46075         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
46076         * lib/xsetenv.c: Don't include setenv.h.
46077         * lib/getdate.y: Likewise.
46078         * lib/relocwrapper.c: Likewise.
46079         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
46080         (Depends-on): Add stdlib.
46081         * NEWS: Mention the changes.
46082         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46083
46084 2007-12-23  Bruno Haible  <bruno@clisp.org>
46085
46086         * lib/memmem.c (memmem): Use lowercase variable names. Tab
46087         indentation.
46088
46089 2007-12-23  Bruno Haible  <bruno@clisp.org>
46090
46091         * lib/c-strcasestr.c: Add more comments.
46092         * lib/c-strstr.c: Likewise.
46093         * lib/mbscasestr.c: Likewise.
46094         * lib/mbsstr.c: Likewise.
46095         * lib/strcasestr.c: Likewise.
46096         * lib/memmem.c: Likewise.
46097
46098 2007-12-23  Bruno Haible  <bruno@clisp.org>
46099
46100         * tests/test-memmem.c: Include <string.h> first.
46101
46102 2007-12-22  Bruno Haible  <bruno@clisp.org>
46103
46104         * gnulib-tool (func_create_testdir): Change $auxdir while generating
46105         the contents of $testsbase.
46106         Reported by Ralf Wildenhues.
46107
46108 2007-12-22  Bruno Haible  <bruno@clisp.org>
46109
46110         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
46111         two variables local_ldadd_before, local_ldadd_last.
46112
46113 2007-12-20  Eric Blake  <ebb9@byu.net>
46114
46115         Work around circular library issue when cross-compiling.
46116         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
46117         that progname.o does not need to pull in rpl_memcmp.
46118
46119 2007-12-19  Eric Blake  <ebb9@byu.net>
46120
46121         Fix memmem to avoid O(n^2) worst-case complexity.
46122         * lib/memmem.c (knuth_morris_pratt): New function.
46123         (memmem): Use it if first few naive iterations fail.
46124         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
46125         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
46126         * modules/memchr (License): Likewise.
46127         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
46128         malloca.
46129         * tests/test-memmem.c: Rewrite, borrowing ideas from
46130         test-mbsstr1.c; the old version wouldn't even compile!
46131         * modules/memmem-tests: New file.
46132         * lib/string.in.h (rpl_memmem): Add declaration.
46133         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
46134         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
46135         REPLACE_MEMMEM.
46136
46137 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46138
46139         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
46140         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
46141         before any system include files, and undef after them all.  This
46142         should fix a problem on VMS reported by John E. Malmberg in
46143         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
46144
46145 2007-12-17  Eric Blake  <ebb9@byu.net>
46146
46147         Revert addition of verify, for BSD/OS.
46148         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
46149         can't handle large files, for the sake of obsolete platforms.
46150         * modules/fseeko (Depends-on): Remove verify.
46151         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
46152         * doc/functions/ftello.texi (ftello): Likewise.
46153         * doc/functions/fgetpos.texi (fgetpos): Likewise.
46154         Reported by Larry Jones.
46155
46156 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
46157
46158         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
46159         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
46160
46161 2007-12-17  Jim Meyering  <meyering@redhat.com>
46162
46163         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
46164         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
46165         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
46166         * modules/getcwd (Depends-on): Add openat.
46167         Reported by Petr Salinger.
46168
46169 2007-12-17  Bruno Haible  <bruno@clisp.org>
46170
46171         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
46172         avoid a segmentation fault of the configure test on x86_64 systems.
46173
46174 2007-12-15  Jim Meyering  <meyering@redhat.com>
46175
46176         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
46177
46178 2007-12-13  Eric Blake  <ebb9@byu.net>
46179
46180         Another fseek test.
46181         * tests/test-fseek.c (main): Also test ungetc handling.
46182         * tests/test-fseeko.c (main): Likewise.
46183         * modules/fseeko (Depends-on): Add verify.
46184         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
46185         large.
46186         Reported by Larry Jones.
46187
46188         Fix fseeko on mingw.
46189         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
46190         seek.
46191
46192         Beef up fseek tests.
46193         * tests/test-fseek.c (main): Also test eof handling.
46194         * tests/test-fseeko.c (main): Likewise.
46195         Reported by Larry Jones.
46196
46197 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
46198
46199         Fix fseeko on BSD-based platforms.
46200         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
46201         successful seek.
46202
46203 2007-12-12  Eric Blake  <ebb9@byu.net>
46204
46205         Allow circular dependency of separate libtests.a
46206         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
46207         when use_libtests.
46208
46209 2007-12-11  Eric Blake  <ebb9@byu.net>
46210
46211         Fix bug with -0.0L in previous patch.
46212         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
46213         * tests/test-isnan.c (main): Also test on zeroes.
46214         * tests/test-isnanf.c (main): Likewise.
46215         * tests/test-isnanl.h (main): Likewise.
46216
46217         Detect pseudo-denormals on x86 even when cross-compiling.
46218         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
46219         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
46220         invalid bit patterns that happen to satisfy ==.
46221
46222         Avoid link failures with separate libtests.a.
46223         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
46224         last, to satisfy circular dependencies.
46225
46226 2007-12-11  Eric Blake  <ebb9@byu.net>
46227         and Bruno Haible  <bruno@clisp.org>
46228
46229         Fix OpenBSD 4.0 <float.h> handling of long double.
46230         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
46231         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
46232         * doc/headers/float.texi (float.h): Document OpenBSD bug.
46233
46234 2007-12-11  Jim Meyering  <meyering@redhat.com>
46235
46236         * users.txt: Add libvirt.
46237
46238         Support versions of autoconf prior to 2.59c.
46239         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
46240         if it is not already defined.
46241
46242 2007-12-09  Bruno Haible  <bruno@clisp.org>
46243
46244         Let 'gnulib-tool --import' collect sources needed for the tests in
46245         tests/ rather than in lib/.
46246         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
46247         argument. If true, add rules to generate libtests.a, and put libtests.a
46248         into $(LDADD). Consider source files in subdirectories and set
46249         uses_subdirs.
46250         (func_emit_initmacro_start, func_emit_initmacro_end,
46251         func_emit_initmacro_done): Pass all arguments explicitly.
46252         (func_import): Determine two module lists main_modules,
46253         testsrelated_modules. Determine use_libtests. Determine two variables
46254         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
46255         instead of just sed_transform_lib_file. Determine two variables
46256         main_files and testsrelated_files. Compute 'files' as the union of
46257         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
46258         func_add_or_update. In the generated gnulib-comp.m4, collect the
46259         object files for tests/ in different variables than those for lib/.
46260         Substitute LIBTESTS_LIBDEPS.
46261         (func_create_testdir): Combine the uses_subdirs results from
46262         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
46263
46264 2007-12-09  Bruno Haible  <bruno@clisp.org>
46265
46266         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
46267         the build-aux directory.
46268
46269 2007-12-09  Bruno Haible  <bruno@clisp.org>
46270
46271         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
46272         introduced on 2006-09-09.
46273
46274 2007-12-07  Jim Meyering  <meyering@redhat.com>
46275
46276         Let these macros work also with autoconf-2.59.
46277         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
46278         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
46279         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46280
46281 2007-12-06  Jim Meyering  <meyering@redhat.com>
46282
46283         Avoid a configure-time syntax error in gl_FUNC_ACL.
46284         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
46285         function in each branch, before testing the cache variable.
46286
46287 2007-12-04  Eric Blake  <ebb9@byu.net>
46288
46289         Make scripts executable.
46290         * build-aux/config.guess: Add execute permissions.
46291         * build-aux/config.sub: Likewise.
46292         * build-aux/gendocs.sh: Likewise.
46293
46294         Fix frexp on mingw.
46295         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
46296         cross-compiling.
46297         * doc/functions/frexp.texi (frexp): Document the bug.
46298
46299         Make cygwin fseeko check more reliable.
46300         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
46301         version numbers, rather than unrelated feature check.
46302         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
46303         * doc/functions/ftello.texi (ftello): Likewise.
46304         Reported by Bruno Haible.
46305
46306         * m4/strerror.m4: Bump version number.
46307
46308 2007-12-03  Bruno Haible  <bruno@clisp.org>
46309
46310         * doc/functions/mprotect.texi: Mention the mingw problem.
46311
46312 2007-12-03  Eric Blake  <ebb9@byu.net>
46313
46314         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
46315         REPLACE_STRERROR is initialized before this macro.
46316
46317 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
46318
46319         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
46320         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
46321         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
46322         put -lsec in even for programs other than 'ls'.  This fixes a problem
46323         for gettext reported by Bruno Haible in
46324         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
46325         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
46326         Add support for Solaris 10.  This isn't efficient, but should get the
46327         job done for now.
46328
46329 2007-12-03  James Youngman  <jay@gnu.org>
46330
46331         * doc/regexprops-generic.texi: change "an close-group" to "a
46332         close-group" and "illegal" to "not allowed".
46333
46334 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46335
46336         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
46337         pr_byname.h. Needed for the rare case when the maintainer has done
46338         "make maintainer-clean" in the source directory and then attempts a
46339         build outside the source directory.
46340         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
46341         scripts_byname.h.
46342
46343 2007-12-02  Martin Lambers <marlam@marlam.de>
46344             Bruno Haible  <bruno@clisp.org>
46345
46346         * lib/getpagesize.h: Remove file.
46347         * lib/unistd.in.h: Include declaration of getpagesize here.
46348         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
46349         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
46350         HAVE_SYS_PARAM_H.
46351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
46352         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
46353         * modules/getpagesize (Files): Remove lib/getpagesize.h.
46354         (Depends-on): Add unistd.
46355         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46356         (Include): Use <unistd.h> instead of getpagesize.h.
46357         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
46358         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
46359         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
46360         gl_GETPAGESIZE invocation, already handled by module dependency.
46361         * lib/pagealign_alloc.c: Don't include getpagesize.h.
46362
46363 2007-12-02  Bruno Haible  <bruno@clisp.org>
46364
46365         * modules/strings-tests: New file.
46366         * tests/test-strings.c: New file.
46367
46368         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
46369         * lib/strings.in.h: New file.
46370         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
46371         * m4/strings_h.m4: New file.
46372         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
46373         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
46374         * modules/strings: New file.
46375         * modules/string (Makefile.am): Update.
46376         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
46377         Reported by Karl Berry.
46378
46379 2007-12-01  Eric Blake  <ebb9@byu.net>
46380
46381         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
46382         accomodate fix in cygwin 1.5.25.
46383
46384 2007-12-01  Jim Meyering  <meyering@redhat.com>
46385
46386         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
46387         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
46388         that would inhibit utf8-optimization of a regexp containing line-
46389         or buffer-anchors, e.g., `^', `$'.
46390
46391 2007-11-30  Bruno Haible  <bruno@clisp.org>
46392
46393         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
46394         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
46395         glthread_recursive_lock_init.
46396         * lib/lock.c (glthread_recursive_lock_init)
46397         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
46398         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46399
46400 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
46401
46402         New function qset_acl, like set_acl but with syscall semantics.
46403         * lib/acl.h (qset_acl): New decl.
46404         * lib/acl.c (qset_acl): New function.
46405         (set_acl): Use new function.  Use more-consistent diagnostics.
46406
46407 2007-11-28  Jim Meyering  <meyering@redhat.com>
46408
46409         * modules/physmem (License): Change from GPL to LGPLv2+.
46410
46411 2007-11-26  Bruno Haible  <bruno@clisp.org>
46412
46413         * lib/vasnprintf.c (decode_long_double): Don't abort if the
46414         'long double' type has excess precision.
46415         Reported by Jim Meyering in
46416         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
46417
46418 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46419
46420         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
46421         Sync from <http://gnu.org/licenses>.
46422         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
46423         with license text from same location.
46424         * doc/maintain.texi, doc/standards.texi:  Sync from
46425         <http://savannah.gnu.org/projects/gnustandards>.
46426
46427 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
46428         and Jim Meyering  <meyering@redhat.com>
46429
46430         Adjust getdate' grammar to accept a slightly more regular language.
46431         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
46432         Before, the former was rejected.
46433         * lib/getdate.y (digits_to_date_time): New function, factored
46434         out of ...
46435         (number): ...here.  Just call digits_to_date_time.
46436         (hybrid): New non-terminal to handle an <unsigned number,
46437         signed relative offset> sequence consistently.
46438
46439 2007-11-18  Jim Meyering  <meyering@redhat.com>
46440
46441         Pull my changes from coreutils:
46442         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
46443         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
46444         use of $gnulib_tool_option_extras, so that it's separated from the
46445         preceding argument.
46446
46447         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
46448         * build-aux/bootstrap (cp_mark_as_generated): Create any required
46449         parent destination directories before copying a file into place.
46450
46451 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46452
46453         bootstrap: work also with 4-argument variant of AC_INIT
46454         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
46455
46456 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46457
46458         Port test-getaddrinfo to Solaris.
46459         Problem reported by Bruno Haible in
46460         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
46461         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
46462         explanation of setting 'hints'.
46463         Don't reject an implementation merely because it returns EAI_SERVICE.
46464         (EAI_SERVICE): Define to 0 if not defined.
46465
46466 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
46467
46468         The license of gnu-make and posix-shell is now "GPLed build tool".
46469         * modules/gnu-make (License): Likewise.
46470         * modules/posix-shell (License): Likewise.
46471
46472         New module posix-shell, for determining a POSIX shell
46473         or perhaps something that is close enough to a POSIX shell.
46474         * m4/posix-shell.m4: New file.
46475         * modules/posix-shell: New file.
46476
46477         * MODULES.html.sh: Mention new module.
46478
46479         New module gnu-make, for determining whether we're using GNU Make.
46480         * m4/gnu-make.m4: New file.
46481         * modules/gnu-make: New file.
46482         * MODULES.html.sh: Mention new module.
46483
46484 2007-11-14  Jim Meyering  <meyering@redhat.com>
46485
46486         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
46487         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
46488         use this macro to create a function _definition_.
46489         Remove useless "#undef ARGMATCH_DIE".
46490
46491 2007-11-14  Bruno Haible  <bruno@clisp.org>
46492
46493         * lib/config.charset: Update for OpenBSD 4.1.
46494         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
46495
46496 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
46497
46498         Document 64-bit #if problems in stdint.texi.
46499         * doc/headers/stdint.texi (stdint.h): Mention problems with
46500         64-bit-#if, and how to work around them.
46501
46502         Don't insist on 'long long int' support in the preprocessor.  It
46503         breaks too many things.  For example, PRIdMAX still uses a 'long
46504         long int' format with the latest Sun compiler, even though
46505         HAVE_LONG_LONG_INT isn't defined due to that compiler's
46506         preprocessor problem.  This causes the latest coreutils to dump
46507         core on Solaris 10 sparc with the Sun C compiler.
46508         Instead, fix the 2007-10-16 problem in a different way, by evaluating
46509         the troublesome expressions at configure-time, not at #if-time.
46510         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
46511         preprocessor.
46512         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
46513         compile-time C checks, done at 'configure'-time.
46514         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
46515         * modules/inttypes (Makefile): Substitute the new symbols that
46516         gl_INTTYPES_H now generates.
46517         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
46518
46519 2007-11-12  Bruno Haible  <bruno@clisp.org>
46520
46521         Tests for Unicode character classification functions.
46522
46523         * modules/unictype/bidicategory-byname-tests: New file.
46524         * modules/unictype/bidicategory-name-tests: New file.
46525         * modules/unictype/bidicategory-of-tests: New file.
46526         * modules/unictype/bidicategory-test-tests: New file.
46527         * modules/unictype/block-list-tests: New file.
46528         * modules/unictype/block-of-tests: New file.
46529         * modules/unictype/block-test-tests: New file.
46530         * modules/unictype/category-C-tests: New file.
46531         * modules/unictype/category-Cc-tests: New file.
46532         * modules/unictype/category-Cf-tests: New file.
46533         * modules/unictype/category-Cn-tests: New file.
46534         * modules/unictype/category-Co-tests: New file.
46535         * modules/unictype/category-Cs-tests: New file.
46536         * modules/unictype/category-L-tests: New file.
46537         * modules/unictype/category-Ll-tests: New file.
46538         * modules/unictype/category-Lm-tests: New file.
46539         * modules/unictype/category-Lo-tests: New file.
46540         * modules/unictype/category-Lt-tests: New file.
46541         * modules/unictype/category-Lu-tests: New file.
46542         * modules/unictype/category-M-tests: New file.
46543         * modules/unictype/category-Mc-tests: New file.
46544         * modules/unictype/category-Me-tests: New file.
46545         * modules/unictype/category-Mn-tests: New file.
46546         * modules/unictype/category-N-tests: New file.
46547         * modules/unictype/category-Nd-tests: New file.
46548         * modules/unictype/category-Nl-tests: New file.
46549         * modules/unictype/category-No-tests: New file.
46550         * modules/unictype/category-P-tests: New file.
46551         * modules/unictype/category-Pc-tests: New file.
46552         * modules/unictype/category-Pd-tests: New file.
46553         * modules/unictype/category-Pe-tests: New file.
46554         * modules/unictype/category-Pf-tests: New file.
46555         * modules/unictype/category-Pi-tests: New file.
46556         * modules/unictype/category-Po-tests: New file.
46557         * modules/unictype/category-Ps-tests: New file.
46558         * modules/unictype/category-S-tests: New file.
46559         * modules/unictype/category-Sc-tests: New file.
46560         * modules/unictype/category-Sk-tests: New file.
46561         * modules/unictype/category-Sm-tests: New file.
46562         * modules/unictype/category-So-tests: New file.
46563         * modules/unictype/category-Z-tests: New file.
46564         * modules/unictype/category-Zl-tests: New file.
46565         * modules/unictype/category-Zp-tests: New file.
46566         * modules/unictype/category-Zs-tests: New file.
46567         * modules/unictype/category-and-not-tests: New file.
46568         * modules/unictype/category-and-tests: New file.
46569         * modules/unictype/category-byname-tests: New file.
46570         * modules/unictype/category-name-tests: New file.
46571         * modules/unictype/category-none-tests: New file.
46572         * modules/unictype/category-of-tests: New file.
46573         * modules/unictype/category-or-tests: New file.
46574         * modules/unictype/category-test-withtable-tests: New file.
46575         * modules/unictype/combining-class-tests: New file.
46576         * modules/unictype/ctype-alnum-tests: New file.
46577         * modules/unictype/ctype-alpha-tests: New file.
46578         * modules/unictype/ctype-blank-tests: New file.
46579         * modules/unictype/ctype-cntrl-tests: New file.
46580         * modules/unictype/ctype-digit-tests: New file.
46581         * modules/unictype/ctype-graph-tests: New file.
46582         * modules/unictype/ctype-lower-tests: New file.
46583         * modules/unictype/ctype-print-tests: New file.
46584         * modules/unictype/ctype-punct-tests: New file.
46585         * modules/unictype/ctype-space-tests: New file.
46586         * modules/unictype/ctype-upper-tests: New file.
46587         * modules/unictype/ctype-xdigit-tests: New file.
46588         * modules/unictype/decimal-digit-tests: New file.
46589         * modules/unictype/digit-tests: New file.
46590         * modules/unictype/mirror-tests: New file.
46591         * modules/unictype/numeric-tests: New file.
46592         * modules/unictype/property-alphabetic-tests: New file.
46593         * modules/unictype/property-ascii-hex-digit-tests: New file.
46594         * modules/unictype/property-bidi-arabic-digit-tests: New file.
46595         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
46596         * modules/unictype/property-bidi-block-separator-tests: New file.
46597         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
46598         * modules/unictype/property-bidi-common-separator-tests: New file.
46599         * modules/unictype/property-bidi-control-tests: New file.
46600         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
46601         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
46602         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
46603         * modules/unictype/property-bidi-european-digit-tests: New file.
46604         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
46605         * modules/unictype/property-bidi-left-to-right-tests: New file.
46606         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
46607         * modules/unictype/property-bidi-other-neutral-tests: New file.
46608         * modules/unictype/property-bidi-pdf-tests: New file.
46609         * modules/unictype/property-bidi-segment-separator-tests: New file.
46610         * modules/unictype/property-bidi-whitespace-tests: New file.
46611         * modules/unictype/property-byname-tests: New file.
46612         * modules/unictype/property-combining-tests: New file.
46613         * modules/unictype/property-composite-tests: New file.
46614         * modules/unictype/property-currency-symbol-tests: New file.
46615         * modules/unictype/property-dash-tests: New file.
46616         * modules/unictype/property-decimal-digit-tests: New file.
46617         * modules/unictype/property-default-ignorable-code-point-tests: New file.
46618         * modules/unictype/property-deprecated-tests: New file.
46619         * modules/unictype/property-diacritic-tests: New file.
46620         * modules/unictype/property-extender-tests: New file.
46621         * modules/unictype/property-format-control-tests: New file.
46622         * modules/unictype/property-grapheme-base-tests: New file.
46623         * modules/unictype/property-grapheme-extend-tests: New file.
46624         * modules/unictype/property-grapheme-link-tests: New file.
46625         * modules/unictype/property-hex-digit-tests: New file.
46626         * modules/unictype/property-hyphen-tests: New file.
46627         * modules/unictype/property-id-continue-tests: New file.
46628         * modules/unictype/property-id-start-tests: New file.
46629         * modules/unictype/property-ideographic-tests: New file.
46630         * modules/unictype/property-ids-binary-operator-tests: New file.
46631         * modules/unictype/property-ids-trinary-operator-tests: New file.
46632         * modules/unictype/property-ignorable-control-tests: New file.
46633         * modules/unictype/property-iso-control-tests: New file.
46634         * modules/unictype/property-join-control-tests: New file.
46635         * modules/unictype/property-left-of-pair-tests: New file.
46636         * modules/unictype/property-line-separator-tests: New file.
46637         * modules/unictype/property-logical-order-exception-tests: New file.
46638         * modules/unictype/property-lowercase-tests: New file.
46639         * modules/unictype/property-math-tests: New file.
46640         * modules/unictype/property-non-break-tests: New file.
46641         * modules/unictype/property-not-a-character-tests: New file.
46642         * modules/unictype/property-numeric-tests: New file.
46643         * modules/unictype/property-other-alphabetic-tests: New file.
46644         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
46645         * modules/unictype/property-other-grapheme-extend-tests: New file.
46646         * modules/unictype/property-other-id-continue-tests: New file.
46647         * modules/unictype/property-other-id-start-tests: New file.
46648         * modules/unictype/property-other-lowercase-tests: New file.
46649         * modules/unictype/property-other-math-tests: New file.
46650         * modules/unictype/property-other-uppercase-tests: New file.
46651         * modules/unictype/property-paired-punctuation-tests: New file.
46652         * modules/unictype/property-paragraph-separator-tests: New file.
46653         * modules/unictype/property-pattern-syntax-tests: New file.
46654         * modules/unictype/property-pattern-white-space-tests: New file.
46655         * modules/unictype/property-private-use-tests: New file.
46656         * modules/unictype/property-punctuation-tests: New file.
46657         * modules/unictype/property-quotation-mark-tests: New file.
46658         * modules/unictype/property-radical-tests: New file.
46659         * modules/unictype/property-sentence-terminal-tests: New file.
46660         * modules/unictype/property-soft-dotted-tests: New file.
46661         * modules/unictype/property-space-tests: New file.
46662         * modules/unictype/property-terminal-punctuation-tests: New file.
46663         * modules/unictype/property-test-tests: New file.
46664         * modules/unictype/property-titlecase-tests: New file.
46665         * modules/unictype/property-unassigned-code-value-tests: New file.
46666         * modules/unictype/property-unified-ideograph-tests: New file.
46667         * modules/unictype/property-uppercase-tests: New file.
46668         * modules/unictype/property-variation-selector-tests: New file.
46669         * modules/unictype/property-white-space-tests: New file.
46670         * modules/unictype/property-xid-continue-tests: New file.
46671         * modules/unictype/property-xid-start-tests: New file.
46672         * modules/unictype/property-zero-width-tests: New file.
46673         * modules/unictype/scripts-tests: New file.
46674         * modules/unictype/syntax-c-ident-tests: New file.
46675         * modules/unictype/syntax-c-whitespace-tests: New file.
46676         * modules/unictype/syntax-java-ident-tests: New file.
46677         * modules/unictype/syntax-java-whitespace-tests: New file.
46678         * tests/unictype/test-bidi_byname.c: New file.
46679         * tests/unictype/test-bidi_name.c: New file.
46680         * tests/unictype/test-bidi_of.c: New file.
46681         * tests/unictype/test-bidi_test.c: New file.
46682         * tests/unictype/test-block_list.c: New file.
46683         * tests/unictype/test-block_of.c: New file.
46684         * tests/unictype/test-block_test.c: New file.
46685         * tests/unictype/test-categ_and.c: New file.
46686         * tests/unictype/test-categ_and_not.c: New file.
46687         * tests/unictype/test-categ_byname.c: New file.
46688         * tests/unictype/test-categ_name.c: New file.
46689         * tests/unictype/test-categ_none.c: New file.
46690         * tests/unictype/test-categ_of.c: New file.
46691         * tests/unictype/test-categ_or.c: New file.
46692         * tests/unictype/test-categ_test_withtable.c: New file.
46693         * tests/unictype/test-combining.c: New file.
46694         * tests/unictype/test-decdigit.c: New file.
46695         * tests/unictype/test-digit.c: New file.
46696         * tests/unictype/test-mirror.c: New file.
46697         * tests/unictype/test-numeric.c: New file.
46698         * tests/unictype/test-pr_byname.c: New file.
46699         * tests/unictype/test-pr_test.c: New file.
46700         * tests/unictype/test-predicate-part1.h: New file.
46701         * tests/unictype/test-predicate-part2.h: New file.
46702         * tests/unictype/test-scripts.c: New file.
46703         * tests/unictype/test-sy_c_ident.c: New file.
46704         * tests/unictype/test-sy_java_ident.c: New file.
46705
46706         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
46707         for Unicode 5.0.0.
46708         * tests/unictype/test-categ_Cc.c: Likewise.
46709         * tests/unictype/test-categ_Cf.c: Likewise.
46710         * tests/unictype/test-categ_Cn.c: Likewise.
46711         * tests/unictype/test-categ_Co.c: Likewise.
46712         * tests/unictype/test-categ_Cs.c: Likewise.
46713         * tests/unictype/test-categ_L.c: Likewise.
46714         * tests/unictype/test-categ_Ll.c: Likewise.
46715         * tests/unictype/test-categ_Lm.c: Likewise.
46716         * tests/unictype/test-categ_Lo.c: Likewise.
46717         * tests/unictype/test-categ_Lt.c: Likewise.
46718         * tests/unictype/test-categ_Lu.c: Likewise.
46719         * tests/unictype/test-categ_M.c: Likewise.
46720         * tests/unictype/test-categ_Mc.c: Likewise.
46721         * tests/unictype/test-categ_Me.c: Likewise.
46722         * tests/unictype/test-categ_Mn.c: Likewise.
46723         * tests/unictype/test-categ_N.c: Likewise.
46724         * tests/unictype/test-categ_Nd.c: Likewise.
46725         * tests/unictype/test-categ_Nl.c: Likewise.
46726         * tests/unictype/test-categ_No.c: Likewise.
46727         * tests/unictype/test-categ_P.c: Likewise.
46728         * tests/unictype/test-categ_Pc.c: Likewise.
46729         * tests/unictype/test-categ_Pd.c: Likewise.
46730         * tests/unictype/test-categ_Pe.c: Likewise.
46731         * tests/unictype/test-categ_Pf.c: Likewise.
46732         * tests/unictype/test-categ_Pi.c: Likewise.
46733         * tests/unictype/test-categ_Po.c: Likewise.
46734         * tests/unictype/test-categ_Ps.c: Likewise.
46735         * tests/unictype/test-categ_S.c: Likewise.
46736         * tests/unictype/test-categ_Sc.c: Likewise.
46737         * tests/unictype/test-categ_Sk.c: Likewise.
46738         * tests/unictype/test-categ_Sm.c: Likewise.
46739         * tests/unictype/test-categ_So.c: Likewise.
46740         * tests/unictype/test-categ_Z.c: Likewise.
46741         * tests/unictype/test-categ_Zl.c: Likewise.
46742         * tests/unictype/test-categ_Zp.c: Likewise.
46743         * tests/unictype/test-categ_Zs.c: Likewise.
46744         * tests/unictype/test-ctype_alnum.c: Likewise.
46745         * tests/unictype/test-ctype_alpha.c: Likewise.
46746         * tests/unictype/test-ctype_blank.c: Likewise.
46747         * tests/unictype/test-ctype_cntrl.c: Likewise.
46748         * tests/unictype/test-ctype_digit.c: Likewise.
46749         * tests/unictype/test-ctype_graph.c: Likewise.
46750         * tests/unictype/test-ctype_lower.c: Likewise.
46751         * tests/unictype/test-ctype_print.c: Likewise.
46752         * tests/unictype/test-ctype_punct.c: Likewise.
46753         * tests/unictype/test-ctype_space.c: Likewise.
46754         * tests/unictype/test-ctype_upper.c: Likewise.
46755         * tests/unictype/test-ctype_xdigit.c: Likewise.
46756         * tests/unictype/test-decdigit.h: Likewise.
46757         * tests/unictype/test-digit.h: Likewise.
46758         * tests/unictype/test-numeric.h: Likewise.
46759         * tests/unictype/test-pr_alphabetic.c: Likewise.
46760         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
46761         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
46762         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
46763         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
46764         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
46765         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
46766         * tests/unictype/test-pr_bidi_control.c: Likewise.
46767         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
46768         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
46769         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
46770         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
46771         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
46772         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
46773         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
46774         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
46775         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
46776         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
46777         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
46778         * tests/unictype/test-pr_combining.c: Likewise.
46779         * tests/unictype/test-pr_composite.c: Likewise.
46780         * tests/unictype/test-pr_currency_symbol.c: Likewise.
46781         * tests/unictype/test-pr_dash.c: Likewise.
46782         * tests/unictype/test-pr_decimal_digit.c: Likewise.
46783         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
46784         * tests/unictype/test-pr_deprecated.c: Likewise.
46785         * tests/unictype/test-pr_diacritic.c: Likewise.
46786         * tests/unictype/test-pr_extender.c: Likewise.
46787         * tests/unictype/test-pr_format_control.c: Likewise.
46788         * tests/unictype/test-pr_grapheme_base.c: Likewise.
46789         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
46790         * tests/unictype/test-pr_grapheme_link.c: Likewise.
46791         * tests/unictype/test-pr_hex_digit.c: Likewise.
46792         * tests/unictype/test-pr_hyphen.c: Likewise.
46793         * tests/unictype/test-pr_id_continue.c: Likewise.
46794         * tests/unictype/test-pr_id_start.c: Likewise.
46795         * tests/unictype/test-pr_ideographic.c: Likewise.
46796         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
46797         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
46798         * tests/unictype/test-pr_ignorable_control.c: Likewise.
46799         * tests/unictype/test-pr_iso_control.c: Likewise.
46800         * tests/unictype/test-pr_join_control.c: Likewise.
46801         * tests/unictype/test-pr_left_of_pair.c: Likewise.
46802         * tests/unictype/test-pr_line_separator.c: Likewise.
46803         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
46804         * tests/unictype/test-pr_lowercase.c: Likewise.
46805         * tests/unictype/test-pr_math.c: Likewise.
46806         * tests/unictype/test-pr_non_break.c: Likewise.
46807         * tests/unictype/test-pr_not_a_character.c: Likewise.
46808         * tests/unictype/test-pr_numeric.c: Likewise.
46809         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
46810         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
46811         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
46812         * tests/unictype/test-pr_other_id_continue.c: Likewise.
46813         * tests/unictype/test-pr_other_id_start.c: Likewise.
46814         * tests/unictype/test-pr_other_lowercase.c: Likewise.
46815         * tests/unictype/test-pr_other_math.c: Likewise.
46816         * tests/unictype/test-pr_other_uppercase.c: Likewise.
46817         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
46818         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
46819         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
46820         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
46821         * tests/unictype/test-pr_private_use.c: Likewise.
46822         * tests/unictype/test-pr_punctuation.c: Likewise.
46823         * tests/unictype/test-pr_quotation_mark.c: Likewise.
46824         * tests/unictype/test-pr_radical.c: Likewise.
46825         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
46826         * tests/unictype/test-pr_soft_dotted.c: Likewise.
46827         * tests/unictype/test-pr_space.c: Likewise.
46828         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
46829         * tests/unictype/test-pr_titlecase.c: Likewise.
46830         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
46831         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
46832         * tests/unictype/test-pr_uppercase.c: Likewise.
46833         * tests/unictype/test-pr_variation_selector.c: Likewise.
46834         * tests/unictype/test-pr_white_space.c: Likewise.
46835         * tests/unictype/test-pr_xid_continue.c: Likewise.
46836         * tests/unictype/test-pr_xid_start.c: Likewise.
46837         * tests/unictype/test-pr_zero_width.c: Likewise.
46838         * tests/unictype/test-sy_c_whitespace.c: Likewise.
46839         * tests/unictype/test-sy_java_whitespace.c: Likewise.
46840
46841 2007-11-12  Bruno Haible  <bruno@clisp.org>
46842
46843         Unicode character classification functions.
46844         * lib/unictype.h: New file.
46845         * modules/unictype/base: New file.
46846         * modules/unictype/category-L: New file.
46847         * modules/unictype/category-Lu: New file.
46848         * modules/unictype/category-Ll: New file.
46849         * modules/unictype/category-Lt: New file.
46850         * modules/unictype/category-Lm: New file.
46851         * modules/unictype/category-Lo: New file.
46852         * modules/unictype/category-M: New file.
46853         * modules/unictype/category-Mn: New file.
46854         * modules/unictype/category-Mc: New file.
46855         * modules/unictype/category-Me: New file.
46856         * modules/unictype/category-N: New file.
46857         * modules/unictype/category-Nd: New file.
46858         * modules/unictype/category-Nl: New file.
46859         * modules/unictype/category-No: New file.
46860         * modules/unictype/category-P: New file.
46861         * modules/unictype/category-Pc: New file.
46862         * modules/unictype/category-Pd: New file.
46863         * modules/unictype/category-Ps: New file.
46864         * modules/unictype/category-Pe: New file.
46865         * modules/unictype/category-Pi: New file.
46866         * modules/unictype/category-Pf: New file.
46867         * modules/unictype/category-Po: New file.
46868         * modules/unictype/category-S: New file.
46869         * modules/unictype/category-Sm: New file.
46870         * modules/unictype/category-Sc: New file.
46871         * modules/unictype/category-Sk: New file.
46872         * modules/unictype/category-So: New file.
46873         * modules/unictype/category-Z: New file.
46874         * modules/unictype/category-Zs: New file.
46875         * modules/unictype/category-Zl: New file.
46876         * modules/unictype/category-Zp: New file.
46877         * modules/unictype/category-C: New file.
46878         * modules/unictype/category-Cc: New file.
46879         * modules/unictype/category-Cf: New file.
46880         * modules/unictype/category-Cs: New file.
46881         * modules/unictype/category-Co: New file.
46882         * modules/unictype/category-Cn: New file.
46883         * modules/unictype/category-or: New file.
46884         * modules/unictype/category-of: New file.
46885         * modules/unictype/category-test: New file.
46886         * modules/unictype/category-test-withtable: New file.
46887         * modules/unictype/category-byname: New file.
46888         * modules/unictype/category-none: New file.
46889         * modules/unictype/category-and: New file.
46890         * modules/unictype/category-and-not: New file.
46891         * modules/unictype/category-name: New file.
46892         * modules/unictype/combining-class: New file.
46893         * modules/unictype/category-all: New file.
46894         * modules/unictype/bidicategory-all: New file.
46895         * modules/unictype/bidicategory-byname: New file.
46896         * modules/unictype/bidicategory-name: New file.
46897         * modules/unictype/bidicategory-of: New file.
46898         * modules/unictype/bidicategory-test: New file.
46899         * modules/unictype/decimal-digit: New file.
46900         * modules/unictype/digit: New file.
46901         * modules/unictype/numeric: New file.
46902         * modules/unictype/mirror: New file.
46903         * modules/unictype/property-white-space: New file.
46904         * modules/unictype/property-alphabetic: New file.
46905         * modules/unictype/property-other-alphabetic: New file.
46906         * modules/unictype/property-not-a-character: New file.
46907         * modules/unictype/property-default-ignorable-code-point: New file.
46908         * modules/unictype/property-other-default-ignorable-code-point: New
46909         file.
46910         * modules/unictype/property-deprecated: New file.
46911         * modules/unictype/property-logical-order-exception: New file.
46912         * modules/unictype/property-variation-selector: New file.
46913         * modules/unictype/property-private-use: New file.
46914         * modules/unictype/property-unassigned-code-value: New file.
46915         * modules/unictype/property-uppercase: New file.
46916         * modules/unictype/property-other-uppercase: New file.
46917         * modules/unictype/property-lowercase: New file.
46918         * modules/unictype/property-other-lowercase: New file.
46919         * modules/unictype/property-titlecase: New file.
46920         * modules/unictype/property-soft-dotted: New file.
46921         * modules/unictype/property-id-start: New file.
46922         * modules/unictype/property-other-id-start: New file.
46923         * modules/unictype/property-id-continue: New file.
46924         * modules/unictype/property-other-id-continue: New file.
46925         * modules/unictype/property-xid-start: New file.
46926         * modules/unictype/property-xid-continue: New file.
46927         * modules/unictype/property-pattern-white-space: New file.
46928         * modules/unictype/property-pattern-syntax: New file.
46929         * modules/unictype/property-join-control: New file.
46930         * modules/unictype/property-grapheme-base: New file.
46931         * modules/unictype/property-grapheme-extend: New file.
46932         * modules/unictype/property-other-grapheme-extend: New file.
46933         * modules/unictype/property-grapheme-link: New file.
46934         * modules/unictype/property-bidi-control: New file.
46935         * modules/unictype/property-bidi-left-to-right: New file.
46936         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
46937         * modules/unictype/property-bidi-arabic-right-to-left: New file.
46938         * modules/unictype/property-bidi-european-digit: New file.
46939         * modules/unictype/property-bidi-eur-num-separator: New file.
46940         * modules/unictype/property-bidi-eur-num-terminator: New file.
46941         * modules/unictype/property-bidi-arabic-digit: New file.
46942         * modules/unictype/property-bidi-common-separator: New file.
46943         * modules/unictype/property-bidi-block-separator: New file.
46944         * modules/unictype/property-bidi-segment-separator: New file.
46945         * modules/unictype/property-bidi-whitespace: New file.
46946         * modules/unictype/property-bidi-non-spacing-mark: New file.
46947         * modules/unictype/property-bidi-boundary-neutral: New file.
46948         * modules/unictype/property-bidi-pdf: New file.
46949         * modules/unictype/property-bidi-embedding-or-override: New file.
46950         * modules/unictype/property-bidi-other-neutral: New file.
46951         * modules/unictype/property-hex-digit: New file.
46952         * modules/unictype/property-ascii-hex-digit: New file.
46953         * modules/unictype/property-ideographic: New file.
46954         * modules/unictype/property-unified-ideograph: New file.
46955         * modules/unictype/property-radical: New file.
46956         * modules/unictype/property-ids-binary-operator: New file.
46957         * modules/unictype/property-ids-trinary-operator: New file.
46958         * modules/unictype/property-zero-width: New file.
46959         * modules/unictype/property-space: New file.
46960         * modules/unictype/property-non-break: New file.
46961         * modules/unictype/property-iso-control: New file.
46962         * modules/unictype/property-format-control: New file.
46963         * modules/unictype/property-dash: New file.
46964         * modules/unictype/property-hyphen: New file.
46965         * modules/unictype/property-punctuation: New file.
46966         * modules/unictype/property-line-separator: New file.
46967         * modules/unictype/property-paragraph-separator: New file.
46968         * modules/unictype/property-quotation-mark: New file.
46969         * modules/unictype/property-sentence-terminal: New file.
46970         * modules/unictype/property-terminal-punctuation: New file.
46971         * modules/unictype/property-currency-symbol: New file.
46972         * modules/unictype/property-math: New file.
46973         * modules/unictype/property-other-math: New file.
46974         * modules/unictype/property-paired-punctuation: New file.
46975         * modules/unictype/property-left-of-pair: New file.
46976         * modules/unictype/property-combining: New file.
46977         * modules/unictype/property-composite: New file.
46978         * modules/unictype/property-decimal-digit: New file.
46979         * modules/unictype/property-numeric: New file.
46980         * modules/unictype/property-diacritic: New file.
46981         * modules/unictype/property-extender: New file.
46982         * modules/unictype/property-ignorable-control: New file.
46983         * modules/unictype/property-test: New file.
46984         * modules/unictype/property-byname: New file.
46985         * modules/unictype/property-all: New file.
46986         * modules/unictype/scripts: New file.
46987         * modules/unictype/scripts-all: New file.
46988         * modules/unictype/block-of: New file.
46989         * modules/unictype/block-test: New file.
46990         * modules/unictype/block-list: New file.
46991         * modules/unictype/block-all: New file.
46992         * modules/unictype/syntax-c-whitespace: New file.
46993         * modules/unictype/syntax-java-whitespace: New file.
46994         * modules/unictype/syntax-c-ident: New file.
46995         * modules/unictype/syntax-java-ident: New file.
46996         * modules/unictype/ctype-alnum: New file.
46997         * modules/unictype/ctype-alpha: New file.
46998         * modules/unictype/ctype-cntrl: New file.
46999         * modules/unictype/ctype-digit: New file.
47000         * modules/unictype/ctype-graph: New file.
47001         * modules/unictype/ctype-lower: New file.
47002         * modules/unictype/ctype-print: New file.
47003         * modules/unictype/ctype-punct: New file.
47004         * modules/unictype/ctype-space: New file.
47005         * modules/unictype/ctype-upper: New file.
47006         * modules/unictype/ctype-xdigit: New file.
47007         * modules/unictype/ctype-blank: New file.
47008         * lib/unictype/bidi_byname.c: New file.
47009         * lib/unictype/bidi_name.c: New file.
47010         * lib/unictype/bidi_of.c: New file.
47011         * lib/unictype/bidi_test.c: New file.
47012         * lib/unictype/bitmap.h: New file.
47013         * lib/unictype/block_test.c: New file.
47014         * lib/unictype/blocks.c: New file.
47015         * lib/unictype/categ_C.c: New file.
47016         * lib/unictype/categ_Cc.c: New file.
47017         * lib/unictype/categ_Cf.c: New file.
47018         * lib/unictype/categ_Cn.c: New file.
47019         * lib/unictype/categ_Co.c: New file.
47020         * lib/unictype/categ_Cs.c: New file.
47021         * lib/unictype/categ_L.c: New file.
47022         * lib/unictype/categ_Ll.c: New file.
47023         * lib/unictype/categ_Lm.c: New file.
47024         * lib/unictype/categ_Lo.c: New file.
47025         * lib/unictype/categ_Lt.c: New file.
47026         * lib/unictype/categ_Lu.c: New file.
47027         * lib/unictype/categ_M.c: New file.
47028         * lib/unictype/categ_Mc.c: New file.
47029         * lib/unictype/categ_Me.c: New file.
47030         * lib/unictype/categ_Mn.c: New file.
47031         * lib/unictype/categ_N.c: New file.
47032         * lib/unictype/categ_Nd.c: New file.
47033         * lib/unictype/categ_Nl.c: New file.
47034         * lib/unictype/categ_No.c: New file.
47035         * lib/unictype/categ_P.c: New file.
47036         * lib/unictype/categ_Pc.c: New file.
47037         * lib/unictype/categ_Pd.c: New file.
47038         * lib/unictype/categ_Pe.c: New file.
47039         * lib/unictype/categ_Pf.c: New file.
47040         * lib/unictype/categ_Pi.c: New file.
47041         * lib/unictype/categ_Po.c: New file.
47042         * lib/unictype/categ_Ps.c: New file.
47043         * lib/unictype/categ_S.c: New file.
47044         * lib/unictype/categ_Sc.c: New file.
47045         * lib/unictype/categ_Sk.c: New file.
47046         * lib/unictype/categ_Sm.c: New file.
47047         * lib/unictype/categ_So.c: New file.
47048         * lib/unictype/categ_Z.c: New file.
47049         * lib/unictype/categ_Zl.c: New file.
47050         * lib/unictype/categ_Zp.c: New file.
47051         * lib/unictype/categ_Zs.c: New file.
47052         * lib/unictype/categ_and.c: New file.
47053         * lib/unictype/categ_and_not.c: New file.
47054         * lib/unictype/categ_byname.c: New file.
47055         * lib/unictype/categ_name.c: New file.
47056         * lib/unictype/categ_none.c: New file.
47057         * lib/unictype/categ_of.c: New file.
47058         * lib/unictype/categ_or.c: New file.
47059         * lib/unictype/categ_test.c: New file.
47060         * lib/unictype/combining.c: New file.
47061         * lib/unictype/ctype_alnum.c: New file.
47062         * lib/unictype/ctype_alpha.c: New file.
47063         * lib/unictype/ctype_blank.c: New file.
47064         * lib/unictype/ctype_cntrl.c: New file.
47065         * lib/unictype/ctype_digit.c: New file.
47066         * lib/unictype/ctype_graph.c: New file.
47067         * lib/unictype/ctype_lower.c: New file.
47068         * lib/unictype/ctype_print.c: New file.
47069         * lib/unictype/ctype_punct.c: New file.
47070         * lib/unictype/ctype_space.c: New file.
47071         * lib/unictype/ctype_upper.c: New file.
47072         * lib/unictype/ctype_xdigit.c: New file.
47073         * lib/unictype/decdigit.c: New file.
47074         * lib/unictype/digit.c: New file.
47075         * lib/unictype/identsyntaxmap.h: New file.
47076         * lib/unictype/mirror.c: New file.
47077         * lib/unictype/numeric.c: New file.
47078         * lib/unictype/pr_alphabetic.c: New file.
47079         * lib/unictype/pr_ascii_hex_digit.c: New file.
47080         * lib/unictype/pr_bidi_arabic_digit.c: New file.
47081         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
47082         * lib/unictype/pr_bidi_block_separator.c: New file.
47083         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
47084         * lib/unictype/pr_bidi_common_separator.c: New file.
47085         * lib/unictype/pr_bidi_control.c: New file.
47086         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
47087         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
47088         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
47089         * lib/unictype/pr_bidi_european_digit.c: New file.
47090         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
47091         * lib/unictype/pr_bidi_left_to_right.c: New file.
47092         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
47093         * lib/unictype/pr_bidi_other_neutral.c: New file.
47094         * lib/unictype/pr_bidi_pdf.c: New file.
47095         * lib/unictype/pr_bidi_segment_separator.c: New file.
47096         * lib/unictype/pr_bidi_whitespace.c: New file.
47097         * lib/unictype/pr_byname.c: New file.
47098         * lib/unictype/pr_byname.gperf: New file.
47099         * lib/unictype/pr_combining.c: New file.
47100         * lib/unictype/pr_composite.c: New file.
47101         * lib/unictype/pr_currency_symbol.c: New file.
47102         * lib/unictype/pr_dash.c: New file.
47103         * lib/unictype/pr_decimal_digit.c: New file.
47104         * lib/unictype/pr_default_ignorable_code_point.c: New file.
47105         * lib/unictype/pr_deprecated.c: New file.
47106         * lib/unictype/pr_diacritic.c: New file.
47107         * lib/unictype/pr_extender.c: New file.
47108         * lib/unictype/pr_format_control.c: New file.
47109         * lib/unictype/pr_grapheme_base.c: New file.
47110         * lib/unictype/pr_grapheme_extend.c: New file.
47111         * lib/unictype/pr_grapheme_link.c: New file.
47112         * lib/unictype/pr_hex_digit.c: New file.
47113         * lib/unictype/pr_hyphen.c: New file.
47114         * lib/unictype/pr_id_continue.c: New file.
47115         * lib/unictype/pr_id_start.c: New file.
47116         * lib/unictype/pr_ideographic.c: New file.
47117         * lib/unictype/pr_ids_binary_operator.c: New file.
47118         * lib/unictype/pr_ids_trinary_operator.c: New file.
47119         * lib/unictype/pr_ignorable_control.c: New file.
47120         * lib/unictype/pr_iso_control.c: New file.
47121         * lib/unictype/pr_join_control.c: New file.
47122         * lib/unictype/pr_left_of_pair.c: New file.
47123         * lib/unictype/pr_line_separator.c: New file.
47124         * lib/unictype/pr_logical_order_exception.c: New file.
47125         * lib/unictype/pr_lowercase.c: New file.
47126         * lib/unictype/pr_math.c: New file.
47127         * lib/unictype/pr_non_break.c: New file.
47128         * lib/unictype/pr_not_a_character.c: New file.
47129         * lib/unictype/pr_numeric.c: New file.
47130         * lib/unictype/pr_other_alphabetic.c: New file.
47131         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
47132         * lib/unictype/pr_other_grapheme_extend.c: New file.
47133         * lib/unictype/pr_other_id_continue.c: New file.
47134         * lib/unictype/pr_other_id_start.c: New file.
47135         * lib/unictype/pr_other_lowercase.c: New file.
47136         * lib/unictype/pr_other_math.c: New file.
47137         * lib/unictype/pr_other_uppercase.c: New file.
47138         * lib/unictype/pr_paired_punctuation.c: New file.
47139         * lib/unictype/pr_paragraph_separator.c: New file.
47140         * lib/unictype/pr_pattern_syntax.c: New file.
47141         * lib/unictype/pr_pattern_white_space.c: New file.
47142         * lib/unictype/pr_private_use.c: New file.
47143         * lib/unictype/pr_punctuation.c: New file.
47144         * lib/unictype/pr_quotation_mark.c: New file.
47145         * lib/unictype/pr_radical.c: New file.
47146         * lib/unictype/pr_sentence_terminal.c: New file.
47147         * lib/unictype/pr_soft_dotted.c: New file.
47148         * lib/unictype/pr_space.c: New file.
47149         * lib/unictype/pr_terminal_punctuation.c: New file.
47150         * lib/unictype/pr_test.c: New file.
47151         * lib/unictype/pr_titlecase.c: New file.
47152         * lib/unictype/pr_unassigned_code_value.c: New file.
47153         * lib/unictype/pr_unified_ideograph.c: New file.
47154         * lib/unictype/pr_uppercase.c: New file.
47155         * lib/unictype/pr_variation_selector.c: New file.
47156         * lib/unictype/pr_white_space.c: New file.
47157         * lib/unictype/pr_xid_continue.c: New file.
47158         * lib/unictype/pr_xid_start.c: New file.
47159         * lib/unictype/pr_zero_width.c: New file.
47160         * lib/unictype/scripts.c: New file.
47161         * lib/unictype/sy_c_ident.c: New file.
47162         * lib/unictype/sy_c_whitespace.c: New file.
47163         * lib/unictype/sy_java_ident.c: New file.
47164         * lib/unictype/sy_java_whitespace.c: New file.
47165
47166         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
47167         Unicode 5.0.0.
47168         * lib/unictype/blocks.h: Likewise.
47169         * lib/unictype/categ_C.h: Likewise.
47170         * lib/unictype/categ_Cc.h: Likewise.
47171         * lib/unictype/categ_Cf.h: Likewise.
47172         * lib/unictype/categ_Cn.h: Likewise.
47173         * lib/unictype/categ_Co.h: Likewise.
47174         * lib/unictype/categ_Cs.h: Likewise.
47175         * lib/unictype/categ_L.h: Likewise.
47176         * lib/unictype/categ_Ll.h: Likewise.
47177         * lib/unictype/categ_Lm.h: Likewise.
47178         * lib/unictype/categ_Lo.h: Likewise.
47179         * lib/unictype/categ_Lt.h: Likewise.
47180         * lib/unictype/categ_Lu.h: Likewise.
47181         * lib/unictype/categ_M.h: Likewise.
47182         * lib/unictype/categ_Mc.h: Likewise.
47183         * lib/unictype/categ_Me.h: Likewise.
47184         * lib/unictype/categ_Mn.h: Likewise.
47185         * lib/unictype/categ_N.h: Likewise.
47186         * lib/unictype/categ_Nd.h: Likewise.
47187         * lib/unictype/categ_Nl.h: Likewise.
47188         * lib/unictype/categ_No.h: Likewise.
47189         * lib/unictype/categ_P.h: Likewise.
47190         * lib/unictype/categ_Pc.h: Likewise.
47191         * lib/unictype/categ_Pd.h: Likewise.
47192         * lib/unictype/categ_Pe.h: Likewise.
47193         * lib/unictype/categ_Pf.h: Likewise.
47194         * lib/unictype/categ_Pi.h: Likewise.
47195         * lib/unictype/categ_Po.h: Likewise.
47196         * lib/unictype/categ_Ps.h: Likewise.
47197         * lib/unictype/categ_S.h: Likewise.
47198         * lib/unictype/categ_Sc.h: Likewise.
47199         * lib/unictype/categ_Sk.h: Likewise.
47200         * lib/unictype/categ_Sm.h: Likewise.
47201         * lib/unictype/categ_So.h: Likewise.
47202         * lib/unictype/categ_Z.h: Likewise.
47203         * lib/unictype/categ_Zl.h: Likewise.
47204         * lib/unictype/categ_Zp.h: Likewise.
47205         * lib/unictype/categ_Zs.h: Likewise.
47206         * lib/unictype/categ_of.h: Likewise.
47207         * lib/unictype/combining.h: Likewise.
47208         * lib/unictype/ctype_alnum.h: Likewise.
47209         * lib/unictype/ctype_alpha.h: Likewise.
47210         * lib/unictype/ctype_blank.h: Likewise.
47211         * lib/unictype/ctype_cntrl.h: Likewise.
47212         * lib/unictype/ctype_digit.h: Likewise.
47213         * lib/unictype/ctype_graph.h: Likewise.
47214         * lib/unictype/ctype_lower.h: Likewise.
47215         * lib/unictype/ctype_print.h: Likewise.
47216         * lib/unictype/ctype_punct.h: Likewise.
47217         * lib/unictype/ctype_space.h: Likewise.
47218         * lib/unictype/ctype_upper.h: Likewise.
47219         * lib/unictype/ctype_xdigit.h: Likewise.
47220         * lib/unictype/decdigit.h: Likewise.
47221         * lib/unictype/digit.h: Likewise.
47222         * lib/unictype/mirror.h: Likewise.
47223         * lib/unictype/numeric.h: Likewise.
47224         * lib/unictype/pr_alphabetic.h: Likewise.
47225         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
47226         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
47227         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
47228         * lib/unictype/pr_bidi_block_separator.h: Likewise.
47229         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
47230         * lib/unictype/pr_bidi_common_separator.h: Likewise.
47231         * lib/unictype/pr_bidi_control.h: Likewise.
47232         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
47233         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
47234         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
47235         * lib/unictype/pr_bidi_european_digit.h: Likewise.
47236         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
47237         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
47238         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
47239         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
47240         * lib/unictype/pr_bidi_pdf.h: Likewise.
47241         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
47242         * lib/unictype/pr_bidi_whitespace.h: Likewise.
47243         * lib/unictype/pr_combining.h: Likewise.
47244         * lib/unictype/pr_composite.h: Likewise.
47245         * lib/unictype/pr_currency_symbol.h: Likewise.
47246         * lib/unictype/pr_dash.h: Likewise.
47247         * lib/unictype/pr_decimal_digit.h: Likewise.
47248         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
47249         * lib/unictype/pr_deprecated.h: Likewise.
47250         * lib/unictype/pr_diacritic.h: Likewise.
47251         * lib/unictype/pr_extender.h: Likewise.
47252         * lib/unictype/pr_format_control.h: Likewise.
47253         * lib/unictype/pr_grapheme_base.h: Likewise.
47254         * lib/unictype/pr_grapheme_extend.h: Likewise.
47255         * lib/unictype/pr_grapheme_link.h: Likewise.
47256         * lib/unictype/pr_hex_digit.h: Likewise.
47257         * lib/unictype/pr_hyphen.h: Likewise.
47258         * lib/unictype/pr_id_continue.h: Likewise.
47259         * lib/unictype/pr_id_start.h: Likewise.
47260         * lib/unictype/pr_ideographic.h: Likewise.
47261         * lib/unictype/pr_ids_binary_operator.h: Likewise.
47262         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
47263         * lib/unictype/pr_ignorable_control.h: Likewise.
47264         * lib/unictype/pr_iso_control.h: Likewise.
47265         * lib/unictype/pr_join_control.h: Likewise.
47266         * lib/unictype/pr_left_of_pair.h: Likewise.
47267         * lib/unictype/pr_line_separator.h: Likewise.
47268         * lib/unictype/pr_logical_order_exception.h: Likewise.
47269         * lib/unictype/pr_lowercase.h: Likewise.
47270         * lib/unictype/pr_math.h: Likewise.
47271         * lib/unictype/pr_non_break.h: Likewise.
47272         * lib/unictype/pr_not_a_character.h: Likewise.
47273         * lib/unictype/pr_numeric.h: Likewise.
47274         * lib/unictype/pr_other_alphabetic.h: Likewise.
47275         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
47276         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
47277         * lib/unictype/pr_other_id_continue.h: Likewise.
47278         * lib/unictype/pr_other_id_start.h: Likewise.
47279         * lib/unictype/pr_other_lowercase.h: Likewise.
47280         * lib/unictype/pr_other_math.h: Likewise.
47281         * lib/unictype/pr_other_uppercase.h: Likewise.
47282         * lib/unictype/pr_paired_punctuation.h: Likewise.
47283         * lib/unictype/pr_paragraph_separator.h: Likewise.
47284         * lib/unictype/pr_pattern_syntax.h: Likewise.
47285         * lib/unictype/pr_pattern_white_space.h: Likewise.
47286         * lib/unictype/pr_private_use.h: Likewise.
47287         * lib/unictype/pr_punctuation.h: Likewise.
47288         * lib/unictype/pr_quotation_mark.h: Likewise.
47289         * lib/unictype/pr_radical.h: Likewise.
47290         * lib/unictype/pr_sentence_terminal.h: Likewise.
47291         * lib/unictype/pr_soft_dotted.h: Likewise.
47292         * lib/unictype/pr_space.h: Likewise.
47293         * lib/unictype/pr_terminal_punctuation.h: Likewise.
47294         * lib/unictype/pr_titlecase.h: Likewise.
47295         * lib/unictype/pr_unassigned_code_value.h: Likewise.
47296         * lib/unictype/pr_unified_ideograph.h: Likewise.
47297         * lib/unictype/pr_uppercase.h: Likewise.
47298         * lib/unictype/pr_variation_selector.h: Likewise.
47299         * lib/unictype/pr_white_space.h: Likewise.
47300         * lib/unictype/pr_xid_continue.h: Likewise.
47301         * lib/unictype/pr_xid_start.h: Likewise.
47302         * lib/unictype/pr_zero_width.h: Likewise.
47303         * lib/unictype/scripts.h: Likewise.
47304         * lib/unictype/scripts_byname.gperf: Likewise.
47305         * lib/unictype/sy_c_ident.h: Likewise.
47306         * lib/unictype/sy_c_whitespace.h: Likewise.
47307         * lib/unictype/sy_java_ident.h: Likewise.
47308         * lib/unictype/sy_java_whitespace.h: Likewise.
47309
47310         * lib/unictype/Makefile: New file.
47311         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
47312         glibc.
47313         * lib/unictype/3level.h: New file, copied from glibc.
47314         * lib/unictype/3levelbit.h: New file.
47315
47316 2007-11-11  Bruno Haible  <bruno@clisp.org>
47317
47318         * modules/gperf: New file.
47319         * modules/iconv_open (Depends-on): Add it.
47320         (Makefile.am): Remove the GPERF definition.
47321
47322 2007-11-11  Bruno Haible  <bruno@clisp.org>
47323
47324         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
47325         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
47326
47327 2007-11-11  Bruno Haible  <bruno@clisp.org>
47328
47329         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
47330         (usage): Remove function.
47331
47332 2007-11-11  Bruno Haible  <bruno@clisp.org>
47333
47334         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
47335         gl_FUNC_CEILF_LIBS.
47336         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
47337         gl_FUNC_CEIL_LIBS.
47338         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
47339         gl_FUNC_CEILL_LIBS.
47340         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
47341         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
47342         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
47343
47344 2007-11-11  Bruno Haible  <bruno@clisp.org>
47345
47346         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
47347         roundf were declared but do not exist on functions.
47348         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
47349         roundl were declared but do not exist on functions.
47350         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
47351         HAVE_FLOORL_AND_CEILL, respectively.
47352         Needed for Sun C on Solaris 10.
47353
47354 2007-11-11  Bruno Haible  <bruno@clisp.org>
47355
47356         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
47357         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
47358         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
47359         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
47360         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
47361         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
47362         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
47363         HAVE_DECL_ROUNDF.
47364         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
47365         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
47366         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
47367         of HAVE_DECL_ROUND*.
47368         * modules/math (Makefile.am): Update.
47369
47370 2007-11-10  Bruno Haible  <bruno@clisp.org>
47371
47372         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
47373         ptrdiff_t as m4/intl.m4.
47374
47375 2007-11-10  Jim Meyering  <meyering@redhat.com>
47376
47377         Avoid link failure for the argmatch test.
47378         * tests/test-argmatch.c (usage): Define function to avoid a link
47379         failure: argmatch_die requires a usage function.
47380
47381 2007-11-09  Bruno Haible  <bruno@clisp.org>
47382
47383         * doc/functions/snprintf.texi: Mention BeOS deficiency.
47384         * doc/functions/vsnprintf.texi: Likewise.
47385         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
47386         with a size argument < 2.
47387
47388 2007-11-09  Bruno Haible  <bruno@clisp.org>
47389
47390         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
47391         buffer. Fixes an inefficiency introduced on 2007-11-03.
47392
47393 2007-11-09  Bruno Haible  <bruno@clisp.org>
47394
47395         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
47396         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
47397
47398 2007-11-08  Jim Meyering  <meyering@redhat.com>
47399
47400         Change cache variable name prefix "jm_" to "gl_" everywhere.
47401         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
47402         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
47403         * m4/uptime.m4: s/gl_/jm_/
47404
47405 2007-11-07  Bruno Haible  <bruno@clisp.org>
47406
47407         Update to GNU gettext 0.17.
47408         * m4/intl.m4: Update to GNU gettext 0.17.
47409         * m4/po.m4: Likewise.
47410         * modules/gettext (Files): Remove m4/ulonglong.m4.
47411         (configure.ac): Require gettext infrastructure from version 0.17.
47412
47413 2007-11-06  Bruno Haible  <bruno@clisp.org>
47414
47415         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
47416         symbolic values are not defined in a public header.
47417         * lib/freadable.c (freadable) [QNX]: Likewise.
47418         * lib/freadahead.c (freadahead) [QNX]: Likewise.
47419         * lib/freading.c (freading) [QNX]: Likewise.
47420         * lib/fseterr.c (fseterr) [QNX]: Likewise.
47421         * lib/fwritable.c (fwritable) [QNX]: Likewise.
47422         * lib/fwriting.c (fwriting) [QNX]: Likewise.
47423         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
47424         Reported by Alain Magloire.
47425
47426         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
47427
47428 2007-11-05  Bruno Haible  <bruno@clisp.org>
47429
47430         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
47431         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
47432         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
47433         Reported by Eric Blake.
47434
47435 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47436             Bruno Haible  <bruno@clisp.org>
47437
47438         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
47439         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
47440         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
47441         (malloc): Undefine also before including <stdlib.h>.
47442         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
47443         Needed on OSF/1 4.0.
47444
47445 2007-11-05  Jim Meyering  <meyering@redhat.com>
47446
47447         git-version-gen: sync from coreutils.
47448         * build-aux/git-version-gen: Add comments.
47449         Change the first '-' to '.' in the snapshot version string,
47450         e.g., 6.9-377-08144 -> 6.9.377-08144
47451         Remove first parameter.
47452         Don't declare a version "-dirty" merely because a time
47453         stamp has changed.
47454
47455 2007-11-04  Bruno Haible  <bruno@clisp.org>
47456
47457         * lib/lock.h: Protect all macro definitions containing an 'if'
47458         statement through a "do { ... } while (0)".
47459         * lib/tls.h: Likewise.
47460
47461 2007-11-04  Bruno Haible  <bruno@clisp.org>
47462
47463         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
47464
47465 2007-11-04  Bruno Haible  <bruno@clisp.org>
47466
47467         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
47468         * modules/fprintf-posix (Depends-on): Add nocrash.
47469         * modules/snprintf-posix (Depends-on): Likewise.
47470         * modules/sprintf-posix (Depends-on): Likewise.
47471         * modules/vasnprintf-posix (Depends-on): Likewise.
47472         * modules/vasprintf-posix (Depends-on): Likewise.
47473         * modules/vfprintf-posix (Depends-on): Likewise.
47474         * modules/vsnprintf-posix (Depends-on): Likewise.
47475         * modules/vsprintf-posix (Depends-on): Likewise.
47476         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47477         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47478         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47479         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47480         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47481         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47482         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47483
47484 2007-11-04  Bruno Haible  <bruno@clisp.org>
47485
47486         * modules/nocrash: New file.
47487         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
47488         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
47489
47490 2007-11-04  Bruno Haible  <bruno@clisp.org>
47491
47492         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
47493         precision handling.
47494         * tests/test-vasprintf-posix.c (test_function): Likewise.
47495         * tests/test-snprintf-posix.h (test_function): Likewise.
47496         * tests/test-sprintf-posix.h (test_function): Likewise.
47497
47498         Fix *printf behaviour for large precisions on mingw and BeOS.
47499         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
47500         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
47501         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
47502         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47503         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47504         gl_PRINTF_PRECISION and test its result. Invoke
47505         gl_PREREQ_VASNPRINTF_PRECISION.
47506         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47507         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47508         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47509         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47510         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47511         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47512         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47513         * doc/functions/fprintf.texi: Update.
47514         * doc/functions/printf.texi: Update.
47515         * doc/functions/snprintf.texi: Update.
47516         * doc/functions/sprintf.texi: Update.
47517         * doc/functions/vfprintf.texi: Update.
47518         * doc/functions/vprintf.texi: Update.
47519         * doc/functions/vsnprintf.texi: Update.
47520         * doc/functions/vsprintf.texi: Update.
47521
47522 2007-11-04  Bruno Haible  <bruno@clisp.org>
47523
47524         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
47525
47526 2007-11-04  Bruno Haible  <bruno@clisp.org>
47527
47528         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
47529         Reported by Sylvain Beucler <beuc@gnu.org>.
47530
47531 2007-11-03  Bruno Haible  <bruno@clisp.org>
47532
47533         * tests/test-fprintf-posix2.sh: New file.
47534         * tests/test-fprintf-posix2.c: New file.
47535         * modules/fprintf-posix-tests (Files): Add them.
47536         (TESTS): Add test-fprintf-posix2.sh.
47537         (configure.ac): Check for getrlimit and setrlimit.
47538         (check_PROGRAMS): Add test-fprintf-posix2.
47539
47540         * tests/test-printf-posix2.sh: New file.
47541         * tests/test-printf-posix2.c: New file.
47542         * modules/printf-posix-tests (Files): Add them.
47543         (TESTS): Add test-printf-posix2.sh.
47544         (configure.ac): Check for getrlimit and setrlimit.
47545         (check_PROGRAMS): Add test-printf-posix2.
47546
47547         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
47548         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
47549         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
47550         (decode_double): New function, copied from decode_long_double.
47551         (scale10_round_decimal_decoded): New function, extracted from
47552         scale10_round_decimal_long_double.
47553         (scale10_round_decimal_long_double): Use it.
47554         (scale10_round_decimal_double): New function.
47555         (floorlog10): New function.
47556         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
47557         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
47558         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47559         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47560         gl_PRINTF_ENOMEM and test its result. Invoke
47561         gl_PREREQ_VASNPRINTF_ENOMEM.
47562         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47563         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47564         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47565         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47566         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47567         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47568         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47569         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
47570         * modules/snprintf-posix (Depends-on): Likewise.
47571         * modules/sprintf-posix (Depends-on): Likewise.
47572         * modules/vasnprintf-posix (Depends-on): Likewise.
47573         * modules/vasprintf-posix (Depends-on): Likewise.
47574         * modules/vfprintf-posix (Depends-on): Likewise.
47575         * modules/vsnprintf-posix (Depends-on): Likewise.
47576         * modules/vsprintf-posix (Depends-on): Likewise.
47577         * doc/functions/fprintf.texi: Update.
47578         * doc/functions/printf.texi: Update.
47579         * doc/functions/snprintf.texi: Update.
47580         * doc/functions/sprintf.texi: Update.
47581         * doc/functions/vfprintf.texi: Update.
47582         * doc/functions/vprintf.texi: Update.
47583         * doc/functions/vsnprintf.texi: Update.
47584         * doc/functions/vsprintf.texi: Update.
47585
47586 2007-11-03  Bruno Haible  <bruno@clisp.org>
47587
47588         * modules/frexp-nolibm-tests: New file.
47589
47590         * modules/frexp-nolibm: New file.
47591         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
47592
47593 2007-11-03  Bruno Haible  <bruno@clisp.org>
47594
47595         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
47596         value is C99 compliant.
47597         Needed for OSF/1 5.1.
47598
47599 2007-11-03  Bruno Haible  <bruno@clisp.org>
47600
47601         Fix out-of-memory handling of vasnprintf.
47602         * lib/printf-parse.c: Include <errno.h>.
47603         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
47604         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
47605         is already set.
47606
47607 2007-11-02  Eric Blake  <ebb9@byu.net>
47608
47609         Fix tests on cygwin.
47610         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
47611
47612 2007-11-01  Bruno Haible  <bruno@clisp.org>
47613
47614         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
47615         warning.
47616         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
47617         needed for POSIX compatibility.
47618
47619 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
47620
47621         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
47622         for compatibility with GNU.
47623
47624 2007-11-01  Bruno Haible  <bruno@clisp.org>
47625
47626         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
47627         (putenv): Renamed from rpl_putenv. Change argument type from
47628         'const char *' to 'char *'.
47629         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
47630         of defining putenv in config.h, just set REPLACE_PUTENV.
47631         * modules/putenv (Depends-on): Add stdlib.
47632         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47633         (Include): Use <stdlib.h>.
47634         * lib/stdlib.in.h (putenv): New declaration.
47635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
47636         REPLACE_PUTENV.
47637         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
47638         REPLACE_PUTENV.
47639         Needed for MacOS X 10.5.0.
47640         Reported by Peter O'Gorman <peter@pogma.com>.
47641
47642 2007-11-01  Jim Meyering  <meyering@redhat.com>
47643
47644         Treat an empty date string exactly like "0".
47645         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
47646         if the remaining date string (to be parsed) is empty, use "0".
47647         Reported by Mischa Molhoek and discussed in this thread:
47648         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
47649
47650 2007-10-31  Bruno Haible  <bruno@clisp.org>
47651
47652         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
47653         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
47654         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
47655         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
47656         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
47657         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
47658
47659 2007-10-31  Bruno Haible  <bruno@clisp.org>
47660
47661         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
47662         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
47663         (AC_TYPE_LONG_LONG_INT): Use it.
47664         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
47665         it as well.
47666         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
47667         to m4/longlong.m4.
47668         * modules/stdint (Files): Remove m4/ulonglong.m4.
47669         * modules/strtoull (Files): Use m4/longlong.m4 instead of
47670         m4/ulonglong.m4.
47671         * modules/strtoumax (Files): Likewise.
47672
47673 2007-10-30  Bruno Haible  <bruno@clisp.org>
47674
47675         * modules/xvasprintf-posix: New file.
47676         Suggested by Eric Blake.
47677
47678 2007-10-30  Bruno Haible  <bruno@clisp.org>
47679
47680         * modules/xprintf-posix-tests: New file.
47681         * tests/test-xprintf-posix.sh: New file.
47682         * tests/test-xprintf-posix.c: New file.
47683         * tests/test-xfprintf-posix.c: New file.
47684
47685         * modules/xprintf-posix: New file.
47686
47687 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47688
47689         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
47690         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
47691         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
47692
47693 2007-10-29  Bruno Haible  <bruno@clisp.org>
47694
47695         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
47696         contain the special marker '_cv_'.
47697         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47698         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47699         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47700         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
47701         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47702         Reported by Ralf Wildenhues.
47703
47704 2007-10-29  Bruno Haible  <bruno@clisp.org>
47705
47706         * gnulib-tool (func_import): When --lgpl is not specified, set
47707         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
47708         GPLv3.
47709         Reported by Simon Josefsson.
47710
47711 2007-10-28  Bruno Haible  <bruno@clisp.org>
47712
47713         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
47714         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
47715         HAVE_DECL_ISFINITE.
47716         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47717         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
47718         HAVE_DECL_ISFINITE.
47719
47720 2007-10-28  Bruno Haible  <bruno@clisp.org>
47721
47722         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
47723         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
47724
47725 2007-10-28  Bruno Haible  <bruno@clisp.org>
47726
47727         Fix link errors with Sun C 5.0 on Solaris 10.
47728         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
47729         function is declared but not present in the compiler's libm.
47730         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47731         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47732         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
47733         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
47734         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
47735         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
47736         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
47737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47738         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
47739         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
47740         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
47741         HAVE_DECL_FLOORL.
47742
47743 2007-10-28  Bruno Haible  <bruno@clisp.org>
47744
47745         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
47746         gl_FUNC_FLOORL. Cache the result.
47747         (gl_FUNC_FLOORL): Use it.
47748         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
47749         gl_FUNC_CEILL. Cache the result.
47750         (gl_FUNC_CEILL): Use it.
47751
47752         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
47753         gl_FUNC_FLOOR. Cache the result.
47754         (gl_FUNC_FLOOR): Use it.
47755         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
47756         gl_FUNC_CEIL. Cache the result.
47757         (gl_FUNC_CEIL): Use it.
47758
47759         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
47760         gl_FUNC_FLOORF. Cache the result.
47761         (gl_FUNC_FLOORF): Use it.
47762         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
47763         gl_FUNC_CEILF. Cache the result.
47764         (gl_FUNC_CEILF): Use it.
47765
47766 2007-10-28  Bruno Haible  <bruno@clisp.org>
47767
47768         * gnulib-tool: Allow specifying the LGPL version number through
47769         --lgpl=2 or --lgpl=3.
47770         (func_usage): Document --lgpl with argument.
47771         Handle --lgpl=... arguments.
47772         (func_import): Recognize also gl_LGPL calls with an argument. When
47773         --lgpl=2 is used and the module's license is just LGPL, report an
47774         error. Set sed_transform_lib_file according to the lgpl variable. In
47775         the generated files, use --lgpl or gl_LGPL invocations with argument,
47776         if necessary.
47777         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
47778         an LGPv2+ license.
47779         * doc/gnulib-tool.texi (Modified imports): Update explanation of
47780         gl_LGPL macro.
47781
47782 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47783             Bruno Haible  <bruno@clisp.org>
47784
47785         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
47786         (u16_uctomb_aux): Likewise.
47787         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
47788         !HAVE_INLINE.
47789         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
47790
47791 2007-10-28  Bruno Haible  <bruno@clisp.org>
47792
47793         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
47794         Invoke AM_GETTEXT_OPTION if it exists.
47795         * modules/vasprintf: Likewise.
47796         * modules/verror: Likewise.
47797         * modules/xprintf: Likewise.
47798         * modules/xvasprintf: Likewise.
47799
47800 2007-10-27  Ben Pfaff  <blp@gnu.org>
47801
47802         * lib/math.in.h: Define isfinite macro and prototypes for
47803         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
47804         implementations.
47805         * m4/math_h.m4: New substitutions for isfinite module.
47806         * lib/isfinite.c: New file.
47807         * m4/isfinite.m4: New file.
47808         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
47809         * modules/isfinite: New file.
47810         * modules/isfinite-tests: New file.
47811         * tests/tests-isfinite.c: New file.
47812         * doc/functions/isfinite.texi: Mention isfinite module.
47813         * MODULES.html.sh: Mention new module.
47814
47815 2007-10-27  Ben Pfaff  <blp@gnu.org>
47816
47817         Ralf Wildenhues reported that Tru64 4.0D declares the round
47818         functions but does not have definitions.
47819         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
47820         cannot be found in any library, set the output variable to
47821         "missing" instead of "".
47822         * m4/round.m4: Also use our substitute if we cannot find round in
47823         any library, even if it is declared.
47824         * m4/roundf.m4: Likewise for roundf.
47825         * m4/roundl.m4: Likewise for roundl.
47826         * lib/math.in.h: Undefine roundf, round, roundl before defining
47827         their replacements, to allow for hypothetical systems where these
47828         may be defined as macros but not available in libraries.
47829
47830 2007-10-27  Bruno Haible  <bruno@clisp.org>
47831
47832         * doc/gnulib.texi: Invoke @firstparagraphindent.
47833         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
47834         changes in gnulib.
47835         (Source changes): New section.
47836
47837 2007-10-26  Bruno Haible  <bruno@clisp.org>
47838
47839         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
47840         borrowed from autoconf.
47841
47842 2007-10-26  Bruno Haible  <bruno@clisp.org>
47843
47844         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
47845         strerror returned the empty string. Needed on HP-UX 11.00.
47846
47847 2007-10-24  Micah Cowan  <micah@cowan.name>
47848
47849         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
47850         * build-aux/bootstrap: Remove support for now-unnecessary option,
47851         --cvs-user, and envvars CVS_USER, CVS_RSH.
47852
47853 2007-10-24  Jim Meyering  <meyering@redhat.com>
47854
47855         Avoid diagnostics from sha1sum when there is no cached checksum.
47856         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
47857         if the po.s1 file hasn't been created yet.
47858
47859         * build-aux/bootstrap: Sync from coreutils:
47860         2007-10-24  Jim Meyering  <meyering@redhat.com>
47861         Get gnulib from the git repository, not from an obsolete cvs one.
47862         * build-aux/bootstrap: Suggestion from Micah Cowan.
47863         2007-10-04  Jim Meyering  <jim@meyering.net>
47864         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
47865         (update_po_files): Work also when there are no .po files in po/.
47866
47867 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47868
47869         * README: Append ".git" to git and cg examples.
47870         Problem reported by Benoit Sigoure.
47871
47872 2007-10-23  Micah Cowan  <micah@cowan.name>
47873
47874         * users.txt: Add wget.
47875
47876 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47877
47878         Fix linking of some unistdio tests on FreeBSD.
47879         * modules/unistdio/u16-vsnprintf-tests
47880         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
47881         * modules/unistdio/u16-vsprintf-tests
47882         (test_u16_vsnprintf1_LDADD): Likewise.
47883         * modules/unistdio/u32-vsnprintf-tests
47884         (test_u32_vsnprintf1_LDADD): Likewise.
47885         * modules/unistdio/u32-vsprintf-tests
47886         (test_u32_vsprintf1_LDADD): Likewise.
47887         * modules/unistdio/u8-vsnprintf-tests
47888         (test_u8_vsnprintf1_LDADD): Likewise.
47889         * modules/unistdio/u8-vsprintf-tests
47890         (test_u8_vsprintf1_LDADD): Likewise.
47891         * modules/unistdio/ulc-vsnprintf-tests
47892         (test_ulc_vsnprintf1_LDADD): Likewise.
47893         * modules/unistdio/ulc-vsprintf-tests
47894         (test_ulc_vsprintf1_LDADD): Likewise.
47895
47896         Fix linking of some uniconv tests on FreeBSD.
47897         * modules/uniconv/u16-conv-from-enc-tests
47898         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
47899         * modules/uniconv/u16-conv-to-enc-tests
47900         (test_u16_conv_to_enc_LDADD): Likewise.
47901         * modules/uniconv/u16-strconv-from-enc-tests
47902         (test_u16_strconv_from_enc_LDADD): Likewise.
47903         * modules/uniconv/u16-strconv-to-enc-tests
47904         (test_u16_strconv_to_enc_LDADD): Likewise.
47905         * modules/uniconv/u32-conv-from-enc-tests
47906         (test_u32_conv_from_enc_LDADD): Likewise.
47907         * modules/uniconv/u32-conv-to-enc-tests
47908         (test_u32_conv_to_enc_LDADD): Likewise.
47909         * modules/uniconv/u32-strconv-from-enc-tests
47910         (test_u32_strconv_from_enc_LDADD): Likewise.
47911         * modules/uniconv/u32-strconv-to-enc-tests
47912         (test_u32_strconv_to_enc_LDADD): Likewise.
47913         * modules/uniconv/u8-conv-from-enc-tests
47914         (test_u8_conv_from_enc_LDADD): Likewise.
47915         * modules/uniconv/u8-conv-to-enc-tests
47916         (test_u8_conv_to_enc_LDADD): Likewise.
47917         * modules/uniconv/u8-strconv-from-enc-tests
47918         (test_u8_strconv_from_enc_LDADD): Likewise.
47919         * modules/uniconv/u8-strconv-to-enc-tests
47920         (test_u8_strconv_to_enc_LDADD): Likewise.
47921
47922 2007-10-22  Bruno Haible  <bruno@clisp.org>
47923
47924         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
47925         size.
47926
47927 2007-10-22  Eric Blake  <ebb9@byu.net>
47928
47929         Tweak x*printf documentation.
47930         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
47931         variable name and comments.
47932         Suggested by Bruno Haible.
47933
47934 2007-10-22  Bruno Haible  <bruno@clisp.org>
47935
47936         * lib/acl.c (copy_acl): Fix file name in comment.
47937
47938 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47939
47940         Fix Tru64 problem with stdbool.h.
47941         * lib/stdbool.in.h (false, true):
47942         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
47943         Don't declare as an enum in this situation; it runs afoul of Tru64.
47944         Problem reported by Steven M. Schweda in
47945         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
47946
47947 2007-10-22  Eric Blake  <ebb9@byu.net>
47948
47949         Also wrap vf?printf.
47950         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
47951         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
47952         (xvprintf, xvfprintf): New functions.
47953
47954 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47955
47956         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
47957         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
47958
47959         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
47960         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
47961
47962 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47963
47964         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
47965         by Bruno Haible.
47966
47967 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47968
47969         * lib/getloadavg.c
47970         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
47971         Undef `sys' after including sys/table.h, for Tru64 4.0D.
47972
47973         * tests/test-i-ring.c: Work for C89.
47974
47975 2007-10-22  Bruno Haible  <bruno@clisp.org>
47976
47977         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
47978         -1u, in preprocessor expression, so that we don't test for the bug
47979         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
47980         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
47981
47982 2007-10-22  Eric Blake  <ebb9@byu.net>
47983
47984         * tests/test-yesno.sh: Silence stderr during test.
47985
47986 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47987
47988         * modules/crypto/gc-camellia: New file.
47989
47990         * m4/gc-camellia.m4: New file.
47991
47992         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
47993
47994         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
47995
47996 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47997
47998         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
47999         --help to stdout.  Reported by sms@antinode.org (Steven
48000         M. Schweda).
48001
48002 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48003
48004         * users.txt: Fix link to libksba.
48005
48006 2007-10-21  Ben Pfaff  <blp@gnu.org>
48007
48008         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
48009         round.c roundf implementation that depends on floorf and ceilf to
48010         be tested unconditionally.
48011
48012 2007-10-21  Ben Pfaff  <blp@gnu.org>
48013
48014         * m4/check-libm-func.m4: Removed.
48015         * m4/check-math-lib.m4: New file.
48016         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
48017         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
48018         definition and lack of AC_LIBOBJ([roundf]).
48019         * m4/roundl.m4: Ditto, and similarly for roundl.
48020         * modules/round: Reference new m4 file.
48021         * modules/roundf: Ditto.
48022         * modules/roundl: Ditto.
48023         * tests/test-round2.c (main): Use ROUND instead of round.
48024         Bug report from Bruno Haible.
48025
48026 2007-10-21  Bruno Haible  <bruno@clisp.org>
48027
48028         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
48029         context.
48030
48031 2007-10-21  Bruno Haible  <bruno@clisp.org>
48032
48033         * tests/test-wcwidth.c (main): Allow negative result for some control
48034         characters.
48035
48036         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
48037         Needed on OSF/1 5.1.
48038
48039 2007-10-21  Bruno Haible  <bruno@clisp.org>
48040
48041         * tests/test-floorf1.c: Include isnanf.h.
48042         (main): Use isnanf() instead of isnan().
48043         * tests/test-ceilf1.c: Include isnanf.h.
48044         (main): Use isnanf() instead of isnan().
48045         * tests/test-truncf1.c: Include isnanf.h.
48046         (main): Use isnanf() instead of isnan().
48047         * tests/test-roundf1.c: Include isnanf.h.
48048         (main): Use isnanf() instead of isnan().
48049
48050 2007-10-21  Eric Blake  <ebb9@byu.net>
48051
48052         * users.txt: Update URL for m4.
48053
48054 2007-10-21  Bruno Haible  <bruno@clisp.org>
48055
48056         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
48057
48058 2007-10-21  Bruno Haible  <bruno@clisp.org>
48059
48060         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
48061         Git's management files if the CVS files are not present.
48062
48063 2007-10-20  Bruno Haible  <bruno@clisp.org>
48064
48065         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
48066         gcc-3.4.x.
48067
48068 2007-10-20  Ben Pfaff  <blp@gnu.org>
48069
48070         * lib/math.in.h: Declare round, roundf, roundl if we are providing
48071         implementations.
48072         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
48073         * lib/round.c: New file.
48074         * lib/roundf.c: New file.
48075         * lib/roundl.c: New file.
48076         * m4/round.m4: New file.
48077         * m4/roundf.m4: New file.
48078         * m4/roundl.m4: New file.
48079         * m4/check-libm-func-m4: New file.
48080         * modules/math: Replace round, roundf, roundl related @VARS@ in
48081         math.in.h.
48082         * modules/round: New file.
48083         * modules/round-tests: New file.
48084         * modules/roundf: New file.
48085         * modules/roundf-tests: New file.
48086         * modules/roundl: New file.
48087         * modules/roundl-tests: New file.
48088         * tests/test-round1.c: New file.
48089         * tests/test-round2.c: New file.
48090         * tests/test-roundf1.c: New file.
48091         * tests/test-roundf2.c: New file.
48092         * tests/test-roundl.c: New file.
48093         * doc/functions/round.texi: Mention round module.
48094         * doc/functions/roundf.texi: Mention roundf module.
48095         * doc/functions/roundl.texi: Mention roundl module.
48096         * MODULES.html.sh: Mention new modules.
48097         Thanks to Bruno Haible for suggestions.
48098
48099 2007-10-20  Jim Meyering  <meyering@redhat.com>
48100
48101         * lib/xprintf.c: Include <config.h> unconditionally.
48102
48103         Change xprintf's license to GPL.
48104         * modules/xprintf (License): s/LGPL/GPL/, since this module
48105         depends on modules (exit and exitfail) which are GPL.
48106         Suggestion from Bruno Haible.
48107
48108         xprintf fixes.
48109         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
48110         Use a clearer diagnostic.
48111         Patch from Bruno Haible.
48112
48113 2007-10-20  Bruno Haible  <bruno@clisp.org>
48114
48115         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
48116         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
48117         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48118
48119 2007-10-20  Bruno Haible  <bruno@clisp.org>
48120
48121         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
48122         precision in the comparison result > x - 1 or similar.
48123         * tests/test-ceilf2.c (correct_result_p): Likewise.
48124         * tests/test-truncf2.c (correct_result_p): Likewise.
48125         * tests/test-trunc2.c (correct_result_p): Likewise.
48126         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48127
48128 2007-10-20  Bruno Haible  <bruno@clisp.org>
48129
48130         * modules/ceil: New file.
48131         * m4/ceil.m4: New file.
48132         * doc/functions/ceil.texi: Mention the 'ceil' module.
48133
48134 2007-10-20  Bruno Haible  <bruno@clisp.org>
48135
48136         * modules/floor: New file.
48137         * m4/floor.m4: New file.
48138         * doc/functions/floor.texi: Mention the 'floor' module.
48139
48140 2007-10-20  Bruno Haible  <bruno@clisp.org>
48141
48142         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
48143         of %a.
48144         * modules/floorf-tests (Depends-on): Likewise.
48145         * modules/truncf-tests (Depends-on): Likewise.
48146         * modules/trunc-tests (Depends-on): Likewise.
48147         Reported by Ben Pfaff.
48148
48149 2007-10-19  Jim Meyering  <meyering@redhat.com>
48150
48151         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
48152         Don't bother testing specific errno values.  Just test ferror.
48153
48154         New module: xprintf
48155         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
48156
48157 2007-10-19  Bruno Haible  <bruno@clisp.org>
48158
48159         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
48160         syntax.
48161         * modules/javaexec (Makefile.am): Likewise.
48162         * modules/relocatable-prog (Makefile.am): Likewise.
48163         Suggested by Jim Meyering.
48164
48165 2007-10-18  Bruno Haible  <bruno@clisp.org>
48166
48167         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
48168         Reported by Jim Meyering.
48169
48170 2007-10-18  Eric Blake  <ebb9@byu.net>
48171
48172         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
48173
48174 2007-10-18  Bruno Haible  <bruno@clisp.org>
48175
48176         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
48177         the format string into writable memory. Needed in Fortify conditions.
48178
48179 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
48180             Bruno Haible  <bruno@clisp.org>
48181
48182         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
48183         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
48184         * modules/trim (Depends-on): Add mbchar.
48185         (configure.ac): Add gl_FUNC_MBRTOWC.
48186         (Makefile.am): Augment lib_SOURCES.
48187
48188 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48189
48190         Modify glob.c to use fstatat and dirfd, to simplify it.
48191         Suggested by Eric Blake.
48192         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
48193         Don't include <stdbool.h>; not used.
48194         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
48195         (link_exists_p): Simplify implementation, since we can now assume
48196         dirfd and fstatat.
48197         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
48198
48199 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48200
48201         * gnulib-tool (func_get_dependencies): Fix sed script to
48202         match only tests.
48203
48204 2007-10-17  Bruno Haible  <bruno@clisp.org>
48205
48206         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
48207         allow locale names without encoding suffix.
48208         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48209         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48210
48211 2007-10-16  Bruno Haible  <bruno@clisp.org>
48212
48213         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
48214         * lib/getgroups.c (getgroups): Likewise.
48215         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
48216
48217 2007-10-16  Bruno Haible  <bruno@clisp.org>
48218
48219         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
48220         * modules/malloc-posix (License): Likewise.
48221         * modules/realloc-posix (License): Likewise.
48222         * modules/calloc-posix (License): Likewise.
48223         * modules/intprops (License): Change from GPL to LGPL, with
48224         Paul Eggert's approval.
48225
48226 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48227
48228         Merge glibc changes into lib/glob.c.
48229
48230         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
48231         2007-10-15 04:59:03 UTC.  Here are the changes:
48232
48233         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
48234
48235         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
48236
48237         * lib/glob.c: Add some branch prediction throughout.
48238
48239         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
48240
48241         [BZ #5103]
48242         * lib/glob.c (glob): Recognize patterns starting \/.
48243
48244         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
48245
48246         [BZ #3996]
48247         * lib/glob.c (attribute_hidden): Define if not defined.
48248         (glob): Unescape dirname, filename or username when needed and not
48249         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
48250         is NULL.  Handle unescaped [ in pattern without closing ].
48251         Don't pass GLOB_CHECK down to recursive glob for directories.
48252         (__glob_pattern_type): New function.
48253         (__glob_pattern_p): Implement using __glob_pattern_type.
48254         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
48255         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
48256         Remove unreachable code.
48257
48258         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
48259
48260         * lib/glob.c (glob_in_dir): Add some comments and asserts to
48261         explain why there are no leaks.
48262
48263         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
48264
48265         [BZ #3253]
48266         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
48267         time, rather allocate increasingly bigger arrays of pointers, if
48268         possible with alloca, if too large with malloc.
48269
48270 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48271
48272         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
48273         Problem reported by H.Merijn Brand in
48274         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
48275         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
48276         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
48277
48278 2007-10-15  Bruno Haible  <bruno@clisp.org>
48279
48280         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
48281         with explicit rpl_ prefix.
48282         * lib/fopen.c (fopen): Likewise.
48283         * lib/freopen.c (freopen): Likewise.
48284         * lib/iconv.c (iconv): Likewise.
48285         * lib/iconv_close.c (iconv_close): Likewise.
48286
48287 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48288
48289         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
48290
48291 2007-10-15  Bruno Haible  <bruno@clisp.org>
48292
48293         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
48294         <stddef.h> instead of <stdlib.h> since we only need NULL.
48295         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48296
48297 2007-10-15  Bruno Haible  <bruno@clisp.org>
48298
48299         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
48300         Replace paragraph talking about LIBOBJS.
48301         Reported by Colin Watson <cjwatson@debian.org>.
48302
48303 2007-10-15  Bruno Haible  <bruno@clisp.org>
48304
48305         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
48306         <stdlib.h> before using NULL.
48307
48308 2007-10-15  Simon Josefsson  <simon@josefsson.org>
48309
48310         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
48311         Reported by Albert Chin <china@thewrittenword.com>.
48312
48313 2007-10-14  Bruno Haible  <bruno@clisp.org>
48314
48315         * modules/iconv_open-utf-tests: New file.
48316         * tests/test-iconv-utf.c: New file.
48317
48318         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
48319         * modules/iconv_open-utf: New file.
48320         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
48321         (iconv, iconv_close): New declarations.
48322         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
48323         be defined.
48324         (iconv_open): Add special handling of conversion between UTF-8 and
48325         UTF-{16,32}{BE,LE}.
48326         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
48327         * lib/iconv_close.c: New file.
48328         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
48329         gl_FUNC_ICONV_OPEN.
48330         (gl_FUNC_ICONV_OPEN): Use it.
48331         (gl_FUNC_ICONV_OPEN_UTF): New macro.
48332         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
48333         and REPLACE_ICONV_UTF.
48334         * modules/iconv_open (Depends-on): Add c-strcase.
48335         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
48336         ICONV_CONST.
48337         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
48338
48339 2007-10-13  Albert Chin  <china@thewrittenword.com>
48340             Bruno Haible  <bruno@clisp.org>
48341
48342         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
48343         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
48344
48345 2007-10-13  Bruno Haible  <bruno@clisp.org>
48346
48347         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
48348         defined, use the ISO C99 inline semantics.
48349         * lib/argp.h (ARGP_EI): Likewise.
48350
48351 2007-10-13  Bruno Haible  <bruno@clisp.org>
48352
48353         Handle 'inline' change in gcc 4.3.0.
48354         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
48355         argp_fmtstream_write, argp_fmtstream_set_lmargin,
48356         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
48357         argp_fmtstream_point): Disable 'extern' declaration if the function
48358         definition is going to be provided inline.
48359         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
48360         semantics, not the ISO C99 inline semantics.
48361         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
48362         'extern' declaration if the function definition is going to be provided
48363         inline.
48364         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
48365         the GNU C inline semantics, not the ISO C99 inline semantics. With
48366         GCC 4.2, avoid a warning.
48367
48368 2007-10-13  Bruno Haible  <bruno@clisp.org>
48369
48370         * lib/freading.h (freading): Enable the use of __freading for
48371         glibc >= 2.7.
48372         * lib/freading.c (freading): Likewise.
48373
48374 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48375
48376         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
48377         "warning: C99 inline functions are not supported; using GNU89".
48378
48379 2007-10-12  Bruno Haible  <bruno@clisp.org>
48380
48381         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
48382         of 2.
48383         * tests/test-ceilf2.c: New file.
48384         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
48385
48386         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
48387         * modules/ceilf-tests: Update.
48388
48389 2007-10-12  Bruno Haible  <bruno@clisp.org>
48390
48391         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
48392         of 2.
48393         * tests/test-floorf2.c: New file.
48394         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
48395
48396         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
48397         * modules/floorf-tests: Update.
48398
48399 2007-10-12  Bruno Haible  <bruno@clisp.org>
48400
48401         * tests/test-trunc2.c: New file.
48402         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
48403
48404         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
48405         * modules/trunc-tests: Update.
48406
48407 2007-10-12  Bruno Haible  <bruno@clisp.org>
48408
48409         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
48410         of 2.
48411         * tests/test-truncf2.c: New file.
48412         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
48413
48414         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
48415         * modules/truncf-tests: Update.
48416
48417 2007-10-11  Eric Blake  <ebb9@byu.net>
48418
48419         Don't claim strerror is broken on Interix.
48420         * doc/functions/strerror.texi (strerror): Known broken systems are
48421         now Solaris 8, and not Interix.
48422         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
48423         Interix on cross-compile.
48424         Reported by Martin Koeppe in
48425         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
48426
48427 2007-10-11  Bruno Haible  <bruno@clisp.org>
48428
48429         * modules/i-ring-tests: New file.
48430         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
48431         instead of assert.
48432
48433 2007-10-11  Bruno Haible  <bruno@clisp.org>
48434
48435         * modules/filenamecat-tests: New file.
48436         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
48437         * lib/filenamecat.c: Remove test code.
48438
48439 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48440
48441         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
48442
48443         * lib/strerror.c: Include <string.h> always, to test interface,
48444         and to remove the need for the dummy.
48445         Include intprops.h to compute width instead of doing it ourselves
48446         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
48447         (strerror): Define it to return NULL if there's no system strerror.
48448         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
48449         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
48450         ancient pre-strerror Unix systems well any more.  Saying "unknown
48451         system error" is enough.
48452         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
48453         simpler strerror.c implementation.
48454         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
48455         Simplify the tests to reflect the simpler strerror implementation.
48456         * modules/strerror (Depends-on): Add intprops.
48457
48458 2007-10-09  Eric Blake  <ebb9@byu.net>
48459
48460         Silence test-fpending.
48461         * modules/fpending-tests (Files): Add wrapper script.
48462         * tests/test-fpending.sh: New file.
48463
48464 2007-10-09  Bruno Haible  <bruno@clisp.org>
48465
48466         * MODULES.html.sh (func_module): Don't create a hyperlink for
48467         function names like 'printf_frexp'.
48468         (Misc): Add crc, memxor.
48469         (Characteristics of floating types): New section.
48470         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
48471         isnanf-nolibm, signbit, trunc, truncf, truncl.
48472         (Enhancements for ISO C 99 functions): New subsection Input/output.
48473         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
48474         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
48475         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
48476         (Compatibility checks for POSIX:2001 functions): Add clock-time.
48477         (Enhancements for POSIX:2001 functions): Add chdir-long.
48478         (File system functions): Add areadlink, chdir-safer, read-file.
48479         Remove cycle-check.
48480         (File system as inode set): New section.
48481         (Date and time): Add gethrxtime.
48482         (Multithreading): Add openmp.
48483         (Internationalization functions): Add localename.
48484         (Unicode string functions): Add unistr/u*-mbsnlen.
48485         (Support for maintaining and releasing projects): Add git-version-gen.
48486         (Lone files): Remove directories.
48487
48488 2007-10-08  Ben Pfaff  <blp@gnu.org>
48489
48490         * lib/xmalloca.h: Fix typo in comment.
48491
48492 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48493
48494         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
48495         when avoiding problems with integer overflow.  Use a portable test
48496         instead.
48497
48498 2007-10-08  Simon Josefsson  <simon@josefsson.org>
48499
48500         * modules/dummy (License): Change to LGPLv2+.
48501         * modules/float (License): Likewise
48502         * modules/realloc (License): Likewise
48503         * modules/stdlib (License): Likewise
48504
48505 2007-10-07  Bruno Haible  <bruno@clisp.org>
48506
48507         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
48508         * floor.c (TWO_MANT_DIG): Likewise.
48509         * ceil.c (TWO_MANT_DIG): Likewise.
48510         Reported by Ben Pfaff.
48511
48512 2007-10-07  Bruno Haible  <bruno@clisp.org>
48513
48514         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
48515         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
48516         * lib/frexp.c (FUNC): Likewise.
48517         * lib/printf-frexp.h (printf_frexp): Likewise.
48518         * lib/printf-frexpl.h (printf_frexpl): Likewise.
48519         * lib/printf-frexp.c (FUNC): Likewise.
48520         Suggested by Jim Meyering.
48521
48522 2007-10-07  Jim Meyering  <meyering@redhat.com>
48523
48524         Make xnanosleep's integer overflow test more robust.
48525         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
48526         so that gcc-4.3.0 doesn't optimize away this test for overflow.
48527
48528 2007-10-07  Bruno Haible  <bruno@clisp.org>
48529
48530         * NEWS: Mention the license change.
48531
48532         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
48533         abbreviations in the modules files.
48534
48535         Change copyright notice from GPLv2+ to GPLv3+.
48536         * README: Change copyright notice.
48537         * MODULES.html.sh: Likewise.
48538         * build-aux/bootstrap.conf: Likewise.
48539         * build-aux/config.libpath: Likewise.
48540         * build-aux/csharpcomp.sh.in: Likewise.
48541         * build-aux/csharpexec.sh.in: Likewise.
48542         * build-aux/install-reloc: Likewise.
48543         * build-aux/javacomp.sh.in: Likewise.
48544         * build-aux/javaexec.sh.in: Likewise.
48545         * build-aux/ldd.sh.in: Likewise.
48546         * build-aux/reloc-ldflags: Likewise.
48547         * build-aux/relocatable.sh.in: Likewise.
48548         * build-aux/x-to-1.in: Likewise.
48549         * check-module: Likewise.
48550         * config/srclistvars.sh: Likewise.
48551         * gnulib-tool: Likewise.
48552         * lib/acl-internal.h: Likewise.
48553         * lib/acl.c: Likewise.
48554         * lib/acl.h: Likewise.
48555         * lib/acl_entries.c: Likewise.
48556         * lib/areadlink-with-size.c: Likewise.
48557         * lib/areadlink.c: Likewise.
48558         * lib/areadlink.h: Likewise.
48559         * lib/argmatch.c: Likewise.
48560         * lib/argmatch.h: Likewise.
48561         * lib/argp-ba.c: Likewise.
48562         * lib/argp-eexst.c: Likewise.
48563         * lib/argp-fmtstream.c: Likewise.
48564         * lib/argp-fmtstream.h: Likewise.
48565         * lib/argp-fs-xinl.c: Likewise.
48566         * lib/argp-help.c: Likewise.
48567         * lib/argp-namefrob.h: Likewise.
48568         * lib/argp-parse.c: Likewise.
48569         * lib/argp-pin.c: Likewise.
48570         * lib/argp-pv.c: Likewise.
48571         * lib/argp-pvh.c: Likewise.
48572         * lib/argp-xinl.c: Likewise.
48573         * lib/argp.h: Likewise.
48574         * lib/at-func.c: Likewise.
48575         * lib/atanl.c: Likewise.
48576         * lib/backupfile.c: Likewise.
48577         * lib/backupfile.h: Likewise.
48578         * lib/basename.c: Likewise.
48579         * lib/binary-io.h: Likewise.
48580         * lib/byteswap.in.h: Likewise.
48581         * lib/c-stack.c: Likewise.
48582         * lib/c-stack.h: Likewise.
48583         * lib/c-strcasestr.c: Likewise.
48584         * lib/c-strcasestr.h: Likewise.
48585         * lib/c-strstr.c: Likewise.
48586         * lib/c-strstr.h: Likewise.
48587         * lib/c-strtod.c: Likewise.
48588         * lib/calloc.c: Likewise.
48589         * lib/canon-host.c: Likewise.
48590         * lib/canon-host.h: Likewise.
48591         * lib/canonicalize-lgpl.c: Likewise.
48592         * lib/canonicalize.c: Likewise.
48593         * lib/canonicalize.h: Likewise.
48594         * lib/ceil.c: Likewise.
48595         * lib/ceilf.c: Likewise.
48596         * lib/ceill.c: Likewise.
48597         * lib/chdir-long.c: Likewise.
48598         * lib/chdir-long.h: Likewise.
48599         * lib/chdir-safer.c: Likewise.
48600         * lib/chdir-safer.h: Likewise.
48601         * lib/chown.c: Likewise.
48602         * lib/classpath.c: Likewise.
48603         * lib/classpath.h: Likewise.
48604         * lib/clean-temp.c: Likewise.
48605         * lib/clean-temp.h: Likewise.
48606         * lib/cloexec.c: Likewise.
48607         * lib/close-stream.c: Likewise.
48608         * lib/closein.c: Likewise.
48609         * lib/closein.h: Likewise.
48610         * lib/closeout.c: Likewise.
48611         * lib/closeout.h: Likewise.
48612         * lib/concat-filename.c: Likewise.
48613         * lib/copy-file.c: Likewise.
48614         * lib/copy-file.h: Likewise.
48615         * lib/count-one-bits.h: Likewise.
48616         * lib/crc.c: Likewise.
48617         * lib/crc.h: Likewise.
48618         * lib/creat-safer.c: Likewise.
48619         * lib/csharpcomp.c: Likewise.
48620         * lib/csharpcomp.h: Likewise.
48621         * lib/csharpexec.c: Likewise.
48622         * lib/csharpexec.h: Likewise.
48623         * lib/cycle-check.c: Likewise.
48624         * lib/cycle-check.h: Likewise.
48625         * lib/diacrit.c: Likewise.
48626         * lib/diacrit.h: Likewise.
48627         * lib/diffseq.h: Likewise.
48628         * lib/dirchownmod.c: Likewise.
48629         * lib/dirent.in.h: Likewise.
48630         * lib/dirfd.c: Likewise.
48631         * lib/dirfd.h: Likewise.
48632         * lib/dirname.c: Likewise.
48633         * lib/dirname.h: Likewise.
48634         * lib/dummy.c: Likewise.
48635         * lib/dup-safer.c: Likewise.
48636         * lib/dup2.c: Likewise.
48637         * lib/eealloc.h: Likewise.
48638         * lib/error.c: Likewise.
48639         * lib/error.h: Likewise.
48640         * lib/euidaccess.c: Likewise.
48641         * lib/exclude.c: Likewise.
48642         * lib/exclude.h: Likewise.
48643         * lib/execute.c: Likewise.
48644         * lib/execute.h: Likewise.
48645         * lib/exitfail.c: Likewise.
48646         * lib/exitfail.h: Likewise.
48647         * lib/expl.c: Likewise.
48648         * lib/fatal-signal.c: Likewise.
48649         * lib/fatal-signal.h: Likewise.
48650         * lib/fbufmode.c: Likewise.
48651         * lib/fbufmode.h: Likewise.
48652         * lib/fchdir.c: Likewise.
48653         * lib/fchmodat.c: Likewise.
48654         * lib/fchownat.c: Likewise.
48655         * lib/fcntl--.h: Likewise.
48656         * lib/fcntl-safer.h: Likewise.
48657         * lib/fcntl.in.h: Likewise.
48658         * lib/fd-safer.c: Likewise.
48659         * lib/fflush.c: Likewise.
48660         * lib/file-has-acl.c: Likewise.
48661         * lib/file-set.c: Likewise.
48662         * lib/file-type.c: Likewise.
48663         * lib/file-type.h: Likewise.
48664         * lib/fileblocks.c: Likewise.
48665         * lib/filemode.c: Likewise.
48666         * lib/filemode.h: Likewise.
48667         * lib/filename.h: Likewise.
48668         * lib/filenamecat.c: Likewise.
48669         * lib/filenamecat.h: Likewise.
48670         * lib/findprog.c: Likewise.
48671         * lib/findprog.h: Likewise.
48672         * lib/float.in.h: Likewise.
48673         * lib/floor.c: Likewise.
48674         * lib/floorf.c: Likewise.
48675         * lib/floorl.c: Likewise.
48676         * lib/fopen-safer.c: Likewise.
48677         * lib/fopen.c: Likewise.
48678         * lib/fpending.c: Likewise.
48679         * lib/fpending.h: Likewise.
48680         * lib/fprintf.c: Likewise.
48681         * lib/fprintftime.h: Likewise.
48682         * lib/fpucw.h: Likewise.
48683         * lib/fpurge.c: Likewise.
48684         * lib/fpurge.h: Likewise.
48685         * lib/freadable.c: Likewise.
48686         * lib/freadable.h: Likewise.
48687         * lib/freadahead.c: Likewise.
48688         * lib/freadahead.h: Likewise.
48689         * lib/freading.c: Likewise.
48690         * lib/freading.h: Likewise.
48691         * lib/free.c: Likewise.
48692         * lib/freopen.c: Likewise.
48693         * lib/frexp.c: Likewise.
48694         * lib/frexpl.c: Likewise.
48695         * lib/fseek.c: Likewise.
48696         * lib/fseterr.c: Likewise.
48697         * lib/fseterr.h: Likewise.
48698         * lib/fstatat.c: Likewise.
48699         * lib/fstrcmp.c: Likewise.
48700         * lib/fstrcmp.h: Likewise.
48701         * lib/fsusage.c: Likewise.
48702         * lib/fsusage.h: Likewise.
48703         * lib/ftell.c: Likewise.
48704         * lib/ftello.c: Likewise.
48705         * lib/fts-cycle.c: Likewise.
48706         * lib/fts.c: Likewise.
48707         * lib/fts_.h: Likewise.
48708         * lib/full-read.c: Likewise.
48709         * lib/full-read.h: Likewise.
48710         * lib/full-write.c: Likewise.
48711         * lib/full-write.h: Likewise.
48712         * lib/fwritable.c: Likewise.
48713         * lib/fwritable.h: Likewise.
48714         * lib/fwriteerror.c: Likewise.
48715         * lib/fwriteerror.h: Likewise.
48716         * lib/fwriting.c: Likewise.
48717         * lib/fwriting.h: Likewise.
48718         * lib/gcd.c: Likewise.
48719         * lib/gcd.h: Likewise.
48720         * lib/getcwd.c: Likewise.
48721         * lib/getdate.h: Likewise.
48722         * lib/getdate.y: Likewise.
48723         * lib/getdomainname.c: Likewise.
48724         * lib/getdomainname.h: Likewise.
48725         * lib/getgroups.c: Likewise.
48726         * lib/gethostname.c: Likewise.
48727         * lib/gethrxtime.c: Likewise.
48728         * lib/gethrxtime.h: Likewise.
48729         * lib/getloadavg.c: Likewise.
48730         * lib/getndelim2.c: Likewise.
48731         * lib/getndelim2.h: Likewise.
48732         * lib/getnline.c: Likewise.
48733         * lib/getnline.h: Likewise.
48734         * lib/getopt.c: Likewise.
48735         * lib/getopt.in.h: Likewise.
48736         * lib/getopt1.c: Likewise.
48737         * lib/getopt_int.h: Likewise.
48738         * lib/getpagesize.h: Likewise.
48739         * lib/getsubopt.c: Likewise.
48740         * lib/gettime.c: Likewise.
48741         * lib/getugroups.c: Likewise.
48742         * lib/getugroups.h: Likewise.
48743         * lib/getusershell.c: Likewise.
48744         * lib/gl_anyavltree_list1.h: Likewise.
48745         * lib/gl_anyavltree_list2.h: Likewise.
48746         * lib/gl_anyhash_list1.h: Likewise.
48747         * lib/gl_anyhash_list2.h: Likewise.
48748         * lib/gl_anylinked_list1.h: Likewise.
48749         * lib/gl_anylinked_list2.h: Likewise.
48750         * lib/gl_anyrbtree_list1.h: Likewise.
48751         * lib/gl_anyrbtree_list2.h: Likewise.
48752         * lib/gl_anytree_list1.h: Likewise.
48753         * lib/gl_anytree_list2.h: Likewise.
48754         * lib/gl_anytree_oset.h: Likewise.
48755         * lib/gl_anytreehash_list1.h: Likewise.
48756         * lib/gl_anytreehash_list2.h: Likewise.
48757         * lib/gl_array_list.c: Likewise.
48758         * lib/gl_array_list.h: Likewise.
48759         * lib/gl_array_oset.c: Likewise.
48760         * lib/gl_array_oset.h: Likewise.
48761         * lib/gl_avltree_list.c: Likewise.
48762         * lib/gl_avltree_list.h: Likewise.
48763         * lib/gl_avltree_oset.c: Likewise.
48764         * lib/gl_avltree_oset.h: Likewise.
48765         * lib/gl_avltreehash_list.c: Likewise.
48766         * lib/gl_avltreehash_list.h: Likewise.
48767         * lib/gl_carray_list.c: Likewise.
48768         * lib/gl_carray_list.h: Likewise.
48769         * lib/gl_linked_list.c: Likewise.
48770         * lib/gl_linked_list.h: Likewise.
48771         * lib/gl_linkedhash_list.c: Likewise.
48772         * lib/gl_linkedhash_list.h: Likewise.
48773         * lib/gl_list.c: Likewise.
48774         * lib/gl_list.h: Likewise.
48775         * lib/gl_oset.c: Likewise.
48776         * lib/gl_oset.h: Likewise.
48777         * lib/gl_rbtree_list.c: Likewise.
48778         * lib/gl_rbtree_list.h: Likewise.
48779         * lib/gl_rbtree_oset.c: Likewise.
48780         * lib/gl_rbtree_oset.h: Likewise.
48781         * lib/gl_rbtreehash_list.c: Likewise.
48782         * lib/gl_rbtreehash_list.h: Likewise.
48783         * lib/gl_sublist.c: Likewise.
48784         * lib/gl_sublist.h: Likewise.
48785         * lib/group-member.c: Likewise.
48786         * lib/group-member.h: Likewise.
48787         * lib/hard-locale.c: Likewise.
48788         * lib/hard-locale.h: Likewise.
48789         * lib/hash-pjw.c: Likewise.
48790         * lib/hash-pjw.h: Likewise.
48791         * lib/hash-triple.c: Likewise.
48792         * lib/hash.c: Likewise.
48793         * lib/hash.h: Likewise.
48794         * lib/human.c: Likewise.
48795         * lib/human.h: Likewise.
48796         * lib/i-ring.c: Likewise.
48797         * lib/i-ring.h: Likewise.
48798         * lib/idcache.c: Likewise.
48799         * lib/imaxabs.c: Likewise.
48800         * lib/imaxdiv.c: Likewise.
48801         * lib/inet_pton.c: Likewise.
48802         * lib/inet_pton.h: Likewise.
48803         * lib/intprops.h: Likewise.
48804         * lib/inttostr.c: Likewise.
48805         * lib/inttostr.h: Likewise.
48806         * lib/inttypes.in.h: Likewise.
48807         * lib/isapipe.c: Likewise.
48808         * lib/isdir.c: Likewise.
48809         * lib/isnan.c: Likewise.
48810         * lib/isnan.h: Likewise.
48811         * lib/isnanf.c: Likewise.
48812         * lib/isnanf.h: Likewise.
48813         * lib/isnanl-nolibm.h: Likewise.
48814         * lib/isnanl.c: Likewise.
48815         * lib/isnanl.h: Likewise.
48816         * lib/javacomp.c: Likewise.
48817         * lib/javacomp.h: Likewise.
48818         * lib/javaexec.c: Likewise.
48819         * lib/javaexec.h: Likewise.
48820         * lib/javaversion.c: Likewise.
48821         * lib/javaversion.h: Likewise.
48822         * lib/javaversion.java: Likewise.
48823         * lib/lbrkprop.h: Likewise.
48824         * lib/lchmod.h: Likewise.
48825         * lib/lchown.c: Likewise.
48826         * lib/ldexpl.c: Likewise.
48827         * lib/linebreak.c: Likewise.
48828         * lib/linebreak.h: Likewise.
48829         * lib/linebuffer.c: Likewise.
48830         * lib/linebuffer.h: Likewise.
48831         * lib/locale.in.h: Likewise.
48832         * lib/logl.c: Likewise.
48833         * lib/long-options.c: Likewise.
48834         * lib/long-options.h: Likewise.
48835         * lib/lstat.c: Likewise.
48836         * lib/lstat.h: Likewise.
48837         * lib/math.in.h: Likewise.
48838         * lib/mbchar.c: Likewise.
48839         * lib/mbchar.h: Likewise.
48840         * lib/mbfile.h: Likewise.
48841         * lib/mbiter.h: Likewise.
48842         * lib/mbscasecmp.c: Likewise.
48843         * lib/mbscasestr.c: Likewise.
48844         * lib/mbschr.c: Likewise.
48845         * lib/mbscspn.c: Likewise.
48846         * lib/mbslen.c: Likewise.
48847         * lib/mbsncasecmp.c: Likewise.
48848         * lib/mbsnlen.c: Likewise.
48849         * lib/mbspbrk.c: Likewise.
48850         * lib/mbspcasecmp.c: Likewise.
48851         * lib/mbsrchr.c: Likewise.
48852         * lib/mbssep.c: Likewise.
48853         * lib/mbsspn.c: Likewise.
48854         * lib/mbsstr.c: Likewise.
48855         * lib/mbstok_r.c: Likewise.
48856         * lib/mbswidth.c: Likewise.
48857         * lib/mbswidth.h: Likewise.
48858         * lib/mbuiter.h: Likewise.
48859         * lib/memcasecmp.c: Likewise.
48860         * lib/memcasecmp.h: Likewise.
48861         * lib/memchr.c: Likewise.
48862         * lib/memcmp.c: Likewise.
48863         * lib/memcoll.c: Likewise.
48864         * lib/memcoll.h: Likewise.
48865         * lib/memcpy.c: Likewise.
48866         * lib/memrchr.c: Likewise.
48867         * lib/mkancesdirs.c: Likewise.
48868         * lib/mkdir-p.c: Likewise.
48869         * lib/mkdir-p.h: Likewise.
48870         * lib/mkdir.c: Likewise.
48871         * lib/mkdirat.c: Likewise.
48872         * lib/mkdtemp.c: Likewise.
48873         * lib/mkstemp-safer.c: Likewise.
48874         * lib/mkstemp.c: Likewise.
48875         * lib/modechange.c: Likewise.
48876         * lib/modechange.h: Likewise.
48877         * lib/mountlist.c: Likewise.
48878         * lib/mountlist.h: Likewise.
48879         * lib/mpsort.c: Likewise.
48880         * lib/nanosleep.c: Likewise.
48881         * lib/obstack.c: Likewise.
48882         * lib/obstack.h: Likewise.
48883         * lib/open-safer.c: Likewise.
48884         * lib/open.c: Likewise.
48885         * lib/openat-die.c: Likewise.
48886         * lib/openat-priv.h: Likewise.
48887         * lib/openat-proc.c: Likewise.
48888         * lib/openat.c: Likewise.
48889         * lib/openat.h: Likewise.
48890         * lib/pagealign_alloc.c: Likewise.
48891         * lib/pagealign_alloc.h: Likewise.
48892         * lib/physmem.c: Likewise.
48893         * lib/physmem.h: Likewise.
48894         * lib/pipe-safer.c: Likewise.
48895         * lib/pipe.c: Likewise.
48896         * lib/pipe.h: Likewise.
48897         * lib/posixtm.c: Likewise.
48898         * lib/posixtm.h: Likewise.
48899         * lib/posixver.c: Likewise.
48900         * lib/printf-frexp.c: Likewise.
48901         * lib/printf-frexp.h: Likewise.
48902         * lib/printf-frexpl.c: Likewise.
48903         * lib/printf-frexpl.h: Likewise.
48904         * lib/printf.c: Likewise.
48905         * lib/progname.c: Likewise.
48906         * lib/progname.h: Likewise.
48907         * lib/progreloc.c: Likewise.
48908         * lib/putenv.c: Likewise.
48909         * lib/quote.c: Likewise.
48910         * lib/quote.h: Likewise.
48911         * lib/quotearg.c: Likewise.
48912         * lib/quotearg.h: Likewise.
48913         * lib/raise.c: Likewise.
48914         * lib/readline.c: Likewise.
48915         * lib/readline.h: Likewise.
48916         * lib/readlink.c: Likewise.
48917         * lib/readtokens.c: Likewise.
48918         * lib/readtokens.h: Likewise.
48919         * lib/readtokens0.c: Likewise.
48920         * lib/readtokens0.h: Likewise.
48921         * lib/readutmp.c: Likewise.
48922         * lib/readutmp.h: Likewise.
48923         * lib/realloc.c: Likewise.
48924         * lib/relocwrapper.c: Likewise.
48925         * lib/rename-dest-slash.c: Likewise.
48926         * lib/rename.c: Likewise.
48927         * lib/rmdir.c: Likewise.
48928         * lib/rpmatch.c: Likewise.
48929         * lib/safe-read.c: Likewise.
48930         * lib/safe-read.h: Likewise.
48931         * lib/safe-write.c: Likewise.
48932         * lib/safe-write.h: Likewise.
48933         * lib/same-inode.h: Likewise.
48934         * lib/same.c: Likewise.
48935         * lib/same.h: Likewise.
48936         * lib/save-cwd.c: Likewise.
48937         * lib/save-cwd.h: Likewise.
48938         * lib/savedir.c: Likewise.
48939         * lib/savedir.h: Likewise.
48940         * lib/savewd.c: Likewise.
48941         * lib/savewd.h: Likewise.
48942         * lib/search.in.h: Likewise.
48943         * lib/setenv.c: Likewise.
48944         * lib/setenv.h: Likewise.
48945         * lib/settime.c: Likewise.
48946         * lib/sh-quote.c: Likewise.
48947         * lib/sh-quote.h: Likewise.
48948         * lib/sig2str.c: Likewise.
48949         * lib/sig2str.h: Likewise.
48950         * lib/signal.in.h: Likewise.
48951         * lib/signbitd.c: Likewise.
48952         * lib/signbitf.c: Likewise.
48953         * lib/signbitl.c: Likewise.
48954         * lib/sigprocmask.c: Likewise.
48955         * lib/sincosl.c: Likewise.
48956         * lib/sleep.c: Likewise.
48957         * lib/sprintf.c: Likewise.
48958         * lib/sqrtl.c: Likewise.
48959         * lib/stat-time.h: Likewise.
48960         * lib/stdio--.h: Likewise.
48961         * lib/stdio-safer.h: Likewise.
48962         * lib/stdlib--.h: Likewise.
48963         * lib/stdlib-safer.h: Likewise.
48964         * lib/stdlib.in.h: Likewise.
48965         * lib/stpcpy.c: Likewise.
48966         * lib/stpncpy.c: Likewise.
48967         * lib/strchrnul.c: Likewise.
48968         * lib/strcspn.c: Likewise.
48969         * lib/strerror.c: Likewise.
48970         * lib/strftime.c: Likewise.
48971         * lib/strftime.h: Likewise.
48972         * lib/striconveh.c: Likewise.
48973         * lib/striconveh.h: Likewise.
48974         * lib/striconveha.c: Likewise.
48975         * lib/striconveha.h: Likewise.
48976         * lib/stripslash.c: Likewise.
48977         * lib/strnlen1.c: Likewise.
48978         * lib/strnlen1.h: Likewise.
48979         * lib/strtod.c: Likewise.
48980         * lib/strtoimax.c: Likewise.
48981         * lib/strtok_r.c: Likewise.
48982         * lib/strtol.c: Likewise.
48983         * lib/strtoll.c: Likewise.
48984         * lib/strtoul.c: Likewise.
48985         * lib/strtoull.c: Likewise.
48986         * lib/sysexits.in.h: Likewise.
48987         * lib/tempname.c: Likewise.
48988         * lib/tempname.h: Likewise.
48989         * lib/timespec.h: Likewise.
48990         * lib/tls.c: Likewise.
48991         * lib/tls.h: Likewise.
48992         * lib/tmpdir.c: Likewise.
48993         * lib/tmpdir.h: Likewise.
48994         * lib/tmpfile-safer.c: Likewise.
48995         * lib/tmpfile.c: Likewise.
48996         * lib/trigl.c: Likewise.
48997         * lib/trigl.h: Likewise.
48998         * lib/trim.c: Likewise.
48999         * lib/trim.h: Likewise.
49000         * lib/trunc.c: Likewise.
49001         * lib/truncf.c: Likewise.
49002         * lib/truncl.c: Likewise.
49003         * lib/tsearch.c: Likewise.
49004         * lib/unicodeio.c: Likewise.
49005         * lib/unicodeio.h: Likewise.
49006         * lib/unistd--.h: Likewise.
49007         * lib/unistd-safer.h: Likewise.
49008         * lib/unistdio/ulc-fprintf.c: Likewise.
49009         * lib/unistdio/ulc-vfprintf.c: Likewise.
49010         * lib/unlinkdir.c: Likewise.
49011         * lib/unlinkdir.h: Likewise.
49012         * lib/unlocked-io.h: Likewise.
49013         * lib/unsetenv.c: Likewise.
49014         * lib/userspec.c: Likewise.
49015         * lib/utime.c: Likewise.
49016         * lib/utimecmp.c: Likewise.
49017         * lib/utimecmp.h: Likewise.
49018         * lib/utimens.c: Likewise.
49019         * lib/verify.h: Likewise.
49020         * lib/verror.c: Likewise.
49021         * lib/verror.h: Likewise.
49022         * lib/version-etc-fsf.c: Likewise.
49023         * lib/version-etc.c: Likewise.
49024         * lib/version-etc.h: Likewise.
49025         * lib/vfprintf.c: Likewise.
49026         * lib/vprintf.c: Likewise.
49027         * lib/vsprintf.c: Likewise.
49028         * lib/w32spawn.h: Likewise.
49029         * lib/wait-process.c: Likewise.
49030         * lib/wait-process.h: Likewise.
49031         * lib/wcwidth.c: Likewise.
49032         * lib/write-any-file.c: Likewise.
49033         * lib/xalloc-die.c: Likewise.
49034         * lib/xalloc.h: Likewise.
49035         * lib/xasprintf.c: Likewise.
49036         * lib/xgetcwd.c: Likewise.
49037         * lib/xgetcwd.h: Likewise.
49038         * lib/xgetdomainname.c: Likewise.
49039         * lib/xgetdomainname.h: Likewise.
49040         * lib/xgethostname.c: Likewise.
49041         * lib/xmalloc.c: Likewise.
49042         * lib/xmalloca.c: Likewise.
49043         * lib/xmalloca.h: Likewise.
49044         * lib/xmemcoll.c: Likewise.
49045         * lib/xnanosleep.c: Likewise.
49046         * lib/xreadlink.c: Likewise.
49047         * lib/xreadlink.h: Likewise.
49048         * lib/xsetenv.c: Likewise.
49049         * lib/xsetenv.h: Likewise.
49050         * lib/xstriconv.c: Likewise.
49051         * lib/xstriconv.h: Likewise.
49052         * lib/xstrndup.c: Likewise.
49053         * lib/xstrndup.h: Likewise.
49054         * lib/xstrtod.c: Likewise.
49055         * lib/xstrtod.h: Likewise.
49056         * lib/xstrtol-error.c: Likewise.
49057         * lib/xstrtol.c: Likewise.
49058         * lib/xstrtol.h: Likewise.
49059         * lib/xtime.h: Likewise.
49060         * lib/xvasprintf.c: Likewise.
49061         * lib/xvasprintf.h: Likewise.
49062         * lib/yesno.c: Likewise.
49063         * lib/yesno.h: Likewise.
49064         * posix-modules: Likewise.
49065         * tests/test-alloca-opt.c: Likewise.
49066         * tests/test-arcfour.c: Likewise.
49067         * tests/test-arctwo.c: Likewise.
49068         * tests/test-argmatch.c: Likewise.
49069         * tests/test-argp-2.sh: Likewise.
49070         * tests/test-argp.c: Likewise.
49071         * tests/test-arpa_inet.c: Likewise.
49072         * tests/test-array_list.c: Likewise.
49073         * tests/test-array_oset.c: Likewise.
49074         * tests/test-atexit.c: Likewise.
49075         * tests/test-avltree_list.c: Likewise.
49076         * tests/test-avltree_oset.c: Likewise.
49077         * tests/test-avltreehash_list.c: Likewise.
49078         * tests/test-base64.c: Likewise.
49079         * tests/test-binary-io.c: Likewise.
49080         * tests/test-byteswap.c: Likewise.
49081         * tests/test-c-ctype.c: Likewise.
49082         * tests/test-c-strcasecmp.c: Likewise.
49083         * tests/test-c-strcasestr.c: Likewise.
49084         * tests/test-c-strncasecmp.c: Likewise.
49085         * tests/test-c-strstr.c: Likewise.
49086         * tests/test-canonicalize-lgpl.c: Likewise.
49087         * tests/test-canonicalize.c: Likewise.
49088         * tests/test-carray_list.c: Likewise.
49089         * tests/test-ceilf.c: Likewise.
49090         * tests/test-ceill.c: Likewise.
49091         * tests/test-count-one-bits.c: Likewise.
49092         * tests/test-crc.c: Likewise.
49093         * tests/test-dirname.c: Likewise.
49094         * tests/test-fbufmode.c: Likewise.
49095         * tests/test-fcntl.c: Likewise.
49096         * tests/test-fflush.c: Likewise.
49097         * tests/test-floorf.c: Likewise.
49098         * tests/test-floorl.c: Likewise.
49099         * tests/test-fopen.c: Likewise.
49100         * tests/test-fprintf-posix.c: Likewise.
49101         * tests/test-fprintf-posix.h: Likewise.
49102         * tests/test-fpurge.c: Likewise.
49103         * tests/test-freadable.c: Likewise.
49104         * tests/test-freadahead.c: Likewise.
49105         * tests/test-freading.c: Likewise.
49106         * tests/test-freopen.c: Likewise.
49107         * tests/test-frexp.c: Likewise.
49108         * tests/test-frexpl.c: Likewise.
49109         * tests/test-fseek.c: Likewise.
49110         * tests/test-fseeko.c: Likewise.
49111         * tests/test-fseterr.c: Likewise.
49112         * tests/test-fstrcmp.c: Likewise.
49113         * tests/test-ftell.c: Likewise.
49114         * tests/test-ftello.c: Likewise.
49115         * tests/test-fwritable.c: Likewise.
49116         * tests/test-fwriting.c: Likewise.
49117         * tests/test-getaddrinfo.c: Likewise.
49118         * tests/test-getpass.c: Likewise.
49119         * tests/test-gettimeofday.c: Likewise.
49120         * tests/test-hmac-md5.c: Likewise.
49121         * tests/test-hmac-sha1.c: Likewise.
49122         * tests/test-iconv.c: Likewise.
49123         * tests/test-iconvme.c: Likewise.
49124         * tests/test-inttypes.c: Likewise.
49125         * tests/test-isnan.c: Likewise.
49126         * tests/test-isnanf.c: Likewise.
49127         * tests/test-isnanl-nolibm.c: Likewise.
49128         * tests/test-isnanl.c: Likewise.
49129         * tests/test-isnanl.h: Likewise.
49130         * tests/test-ldexpl.c: Likewise.
49131         * tests/test-linked_list.c: Likewise.
49132         * tests/test-linkedhash_list.c: Likewise.
49133         * tests/test-locale.c: Likewise.
49134         * tests/test-localename.c: Likewise.
49135         * tests/test-lock.c: Likewise.
49136         * tests/test-lseek.c: Likewise.
49137         * tests/test-malloca.c: Likewise.
49138         * tests/test-math.c: Likewise.
49139         * tests/test-mbscasecmp.c: Likewise.
49140         * tests/test-mbscasestr1.c: Likewise.
49141         * tests/test-mbscasestr2.c: Likewise.
49142         * tests/test-mbscasestr3.c: Likewise.
49143         * tests/test-mbscasestr4.c: Likewise.
49144         * tests/test-mbschr.c: Likewise.
49145         * tests/test-mbscspn.c: Likewise.
49146         * tests/test-mbsncasecmp.c: Likewise.
49147         * tests/test-mbspbrk.c: Likewise.
49148         * tests/test-mbspcasecmp.c: Likewise.
49149         * tests/test-mbsrchr.c: Likewise.
49150         * tests/test-mbsspn.c: Likewise.
49151         * tests/test-mbsstr1.c: Likewise.
49152         * tests/test-mbsstr2.c: Likewise.
49153         * tests/test-mbsstr3.c: Likewise.
49154         * tests/test-md5.c: Likewise.
49155         * tests/test-memmem.c: Likewise.
49156         * tests/test-netinet_in.c: Likewise.
49157         * tests/test-open.c: Likewise.
49158         * tests/test-printf-frexp.c: Likewise.
49159         * tests/test-printf-frexpl.c: Likewise.
49160         * tests/test-printf-posix.c: Likewise.
49161         * tests/test-printf-posix.h: Likewise.
49162         * tests/test-rbtree_list.c: Likewise.
49163         * tests/test-rbtree_oset.c: Likewise.
49164         * tests/test-rbtreehash_list.c: Likewise.
49165         * tests/test-read-file.c: Likewise.
49166         * tests/test-rijndael.c: Likewise.
49167         * tests/test-search.c: Likewise.
49168         * tests/test-signbit.c: Likewise.
49169         * tests/test-sleep.c: Likewise.
49170         * tests/test-snprintf-posix.c: Likewise.
49171         * tests/test-snprintf-posix.h: Likewise.
49172         * tests/test-snprintf.c: Likewise.
49173         * tests/test-sprintf-posix.c: Likewise.
49174         * tests/test-sprintf-posix.h: Likewise.
49175         * tests/test-stat-time.c: Likewise.
49176         * tests/test-stdbool.c: Likewise.
49177         * tests/test-stdint.c: Likewise.
49178         * tests/test-stdio.c: Likewise.
49179         * tests/test-stdlib.c: Likewise.
49180         * tests/test-stpncpy.c: Likewise.
49181         * tests/test-strcasestr.c: Likewise.
49182         * tests/test-striconv.c: Likewise.
49183         * tests/test-striconveh.c: Likewise.
49184         * tests/test-striconveha.c: Likewise.
49185         * tests/test-string.c: Likewise.
49186         * tests/test-sys_select.c: Likewise.
49187         * tests/test-sys_socket.c: Likewise.
49188         * tests/test-sys_stat.c: Likewise.
49189         * tests/test-sys_time.c: Likewise.
49190         * tests/test-sysexits.c: Likewise.
49191         * tests/test-time.c: Likewise.
49192         * tests/test-tls.c: Likewise.
49193         * tests/test-trunc.c: Likewise.
49194         * tests/test-truncf.c: Likewise.
49195         * tests/test-truncl.c: Likewise.
49196         * tests/test-unistd.c: Likewise.
49197         * tests/test-vasnprintf-posix.c: Likewise.
49198         * tests/test-vasnprintf-posix2.c: Likewise.
49199         * tests/test-vasnprintf.c: Likewise.
49200         * tests/test-vasprintf-posix.c: Likewise.
49201         * tests/test-vasprintf.c: Likewise.
49202         * tests/test-verify.c: Likewise.
49203         * tests/test-vfprintf-posix.c: Likewise.
49204         * tests/test-vprintf-posix.c: Likewise.
49205         * tests/test-vsnprintf-posix.c: Likewise.
49206         * tests/test-vsnprintf.c: Likewise.
49207         * tests/test-vsprintf-posix.c: Likewise.
49208         * tests/test-wchar.c: Likewise.
49209         * tests/test-wctype.c: Likewise.
49210         * tests/test-wcwidth.c: Likewise.
49211         * tests/test-xstrtol.c: Likewise.
49212         * tests/test-xvasprintf.c: Likewise.
49213         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
49214         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
49215         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49216         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49217         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49218         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
49219         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49220         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49221         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49222         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
49223         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49224         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49225         * tests/uniname/test-uninames.c: Likewise.
49226         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
49227         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
49228         * tests/unistdio/test-u16-printf1.h: Likewise.
49229         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
49230         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
49231         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
49232         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
49233         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
49234         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
49235         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
49236         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
49237         * tests/unistdio/test-u32-printf1.h: Likewise.
49238         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
49239         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
49240         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
49241         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
49242         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
49243         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
49244         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
49245         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
49246         * tests/unistdio/test-u8-printf1.h: Likewise.
49247         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
49248         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
49249         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
49250         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
49251         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
49252         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
49253         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
49254         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
49255         * tests/unistdio/test-ulc-printf1.h: Likewise.
49256         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
49257         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
49258         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
49259         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
49260         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
49261         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
49262         * tests/uniwidth/test-u16-strwidth.c: Likewise.
49263         * tests/uniwidth/test-u16-width.c: Likewise.
49264         * tests/uniwidth/test-u32-strwidth.c: Likewise.
49265         * tests/uniwidth/test-u32-width.c: Likewise.
49266         * tests/uniwidth/test-u8-strwidth.c: Likewise.
49267         * tests/uniwidth/test-u8-width.c: Likewise.
49268         * tests/uniwidth/test-uc_width.c: Likewise.
49269         * config/srclist-update: Likewise.
49270         (fixlicense): Update to GPLv3+.
49271
49272         Change copyright notice from LGPLv2.1+ to LGPLv3+.
49273         * tests/test-tsearch.c: Change copyright notice.
49274
49275         Change copyright notice from LGPLv2.0+ to LGPLv3+.
49276         * lib/c-strcaseeq.h: Change copyright notice.
49277         * lib/streq.h: Likewise.
49278         * lib/uniconv.h: Likewise.
49279         * lib/uniconv/u-conv-from-enc.h: Likewise.
49280         * lib/uniconv/u-conv-to-enc.h: Likewise.
49281         * lib/uniconv/u-strconv-from-enc.h: Likewise.
49282         * lib/uniconv/u-strconv-to-enc.h: Likewise.
49283         * lib/uniconv/u16-conv-from-enc.c: Likewise.
49284         * lib/uniconv/u16-conv-to-enc.c: Likewise.
49285         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
49286         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
49287         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
49288         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
49289         * lib/uniconv/u32-conv-from-enc.c: Likewise.
49290         * lib/uniconv/u32-conv-to-enc.c: Likewise.
49291         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
49292         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
49293         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
49294         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
49295         * lib/uniconv/u8-conv-from-enc.c: Likewise.
49296         * lib/uniconv/u8-conv-to-enc.c: Likewise.
49297         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
49298         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
49299         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
49300         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
49301         * lib/uniname.h: Likewise.
49302         * lib/uniname/uniname.c: Likewise.
49303         * lib/unistdio.h: Likewise.
49304         * lib/unistdio/u-asnprintf.h: Likewise.
49305         * lib/unistdio/u-asprintf.h: Likewise.
49306         * lib/unistdio/u-printf-args.c: Likewise.
49307         * lib/unistdio/u-printf-args.h: Likewise.
49308         * lib/unistdio/u-printf-parse.h: Likewise.
49309         * lib/unistdio/u-snprintf.h: Likewise.
49310         * lib/unistdio/u-sprintf.h: Likewise.
49311         * lib/unistdio/u-vasprintf.h: Likewise.
49312         * lib/unistdio/u-vsnprintf.h: Likewise.
49313         * lib/unistdio/u-vsprintf.h: Likewise.
49314         * lib/unistdio/u16-asnprintf.c: Likewise.
49315         * lib/unistdio/u16-asprintf.c: Likewise.
49316         * lib/unistdio/u16-printf-parse.c: Likewise.
49317         * lib/unistdio/u16-snprintf.c: Likewise.
49318         * lib/unistdio/u16-sprintf.c: Likewise.
49319         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
49320         * lib/unistdio/u16-u16-asprintf.c: Likewise.
49321         * lib/unistdio/u16-u16-snprintf.c: Likewise.
49322         * lib/unistdio/u16-u16-sprintf.c: Likewise.
49323         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
49324         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
49325         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
49326         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
49327         * lib/unistdio/u16-vasnprintf.c: Likewise.
49328         * lib/unistdio/u16-vasprintf.c: Likewise.
49329         * lib/unistdio/u16-vsnprintf.c: Likewise.
49330         * lib/unistdio/u16-vsprintf.c: Likewise.
49331         * lib/unistdio/u32-asnprintf.c: Likewise.
49332         * lib/unistdio/u32-asprintf.c: Likewise.
49333         * lib/unistdio/u32-printf-parse.c: Likewise.
49334         * lib/unistdio/u32-snprintf.c: Likewise.
49335         * lib/unistdio/u32-sprintf.c: Likewise.
49336         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
49337         * lib/unistdio/u32-u32-asprintf.c: Likewise.
49338         * lib/unistdio/u32-u32-snprintf.c: Likewise.
49339         * lib/unistdio/u32-u32-sprintf.c: Likewise.
49340         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
49341         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
49342         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
49343         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
49344         * lib/unistdio/u32-vasnprintf.c: Likewise.
49345         * lib/unistdio/u32-vasprintf.c: Likewise.
49346         * lib/unistdio/u32-vsnprintf.c: Likewise.
49347         * lib/unistdio/u32-vsprintf.c: Likewise.
49348         * lib/unistdio/u8-asnprintf.c: Likewise.
49349         * lib/unistdio/u8-asprintf.c: Likewise.
49350         * lib/unistdio/u8-printf-parse.c: Likewise.
49351         * lib/unistdio/u8-snprintf.c: Likewise.
49352         * lib/unistdio/u8-sprintf.c: Likewise.
49353         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
49354         * lib/unistdio/u8-u8-asprintf.c: Likewise.
49355         * lib/unistdio/u8-u8-snprintf.c: Likewise.
49356         * lib/unistdio/u8-u8-sprintf.c: Likewise.
49357         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
49358         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
49359         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
49360         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
49361         * lib/unistdio/u8-vasnprintf.c: Likewise.
49362         * lib/unistdio/u8-vasprintf.c: Likewise.
49363         * lib/unistdio/u8-vsnprintf.c: Likewise.
49364         * lib/unistdio/u8-vsprintf.c: Likewise.
49365         * lib/unistdio/ulc-asnprintf.c: Likewise.
49366         * lib/unistdio/ulc-asprintf.c: Likewise.
49367         * lib/unistdio/ulc-printf-parse.c: Likewise.
49368         * lib/unistdio/ulc-snprintf.c: Likewise.
49369         * lib/unistdio/ulc-sprintf.c: Likewise.
49370         * lib/unistdio/ulc-vasnprintf.c: Likewise.
49371         * lib/unistdio/ulc-vasprintf.c: Likewise.
49372         * lib/unistdio/ulc-vsnprintf.c: Likewise.
49373         * lib/unistdio/ulc-vsprintf.c: Likewise.
49374         * lib/unistr.h: Likewise.
49375         * lib/unistr/u-cpy-alloc.h: Likewise.
49376         * lib/unistr/u-cpy.h: Likewise.
49377         * lib/unistr/u-endswith.h: Likewise.
49378         * lib/unistr/u-move.h: Likewise.
49379         * lib/unistr/u-set.h: Likewise.
49380         * lib/unistr/u-startswith.h: Likewise.
49381         * lib/unistr/u-stpcpy.h: Likewise.
49382         * lib/unistr/u-stpncpy.h: Likewise.
49383         * lib/unistr/u-strcat.h: Likewise.
49384         * lib/unistr/u-strcpy.h: Likewise.
49385         * lib/unistr/u-strcspn.h: Likewise.
49386         * lib/unistr/u-strdup.h: Likewise.
49387         * lib/unistr/u-strlen.h: Likewise.
49388         * lib/unistr/u-strncat.h: Likewise.
49389         * lib/unistr/u-strncpy.h: Likewise.
49390         * lib/unistr/u-strnlen.h: Likewise.
49391         * lib/unistr/u-strpbrk.h: Likewise.
49392         * lib/unistr/u-strspn.h: Likewise.
49393         * lib/unistr/u-strstr.h: Likewise.
49394         * lib/unistr/u-strtok.h: Likewise.
49395         * lib/unistr/u16-check.c: Likewise.
49396         * lib/unistr/u16-chr.c: Likewise.
49397         * lib/unistr/u16-cmp.c: Likewise.
49398         * lib/unistr/u16-cpy-alloc.c: Likewise.
49399         * lib/unistr/u16-cpy.c: Likewise.
49400         * lib/unistr/u16-endswith.c: Likewise.
49401         * lib/unistr/u16-mblen.c: Likewise.
49402         * lib/unistr/u16-mbsnlen.c: Likewise.
49403         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49404         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49405         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49406         * lib/unistr/u16-mbtouc.c: Likewise.
49407         * lib/unistr/u16-mbtoucr.c: Likewise.
49408         * lib/unistr/u16-move.c: Likewise.
49409         * lib/unistr/u16-next.c: Likewise.
49410         * lib/unistr/u16-prev.c: Likewise.
49411         * lib/unistr/u16-set.c: Likewise.
49412         * lib/unistr/u16-startswith.c: Likewise.
49413         * lib/unistr/u16-stpcpy.c: Likewise.
49414         * lib/unistr/u16-stpncpy.c: Likewise.
49415         * lib/unistr/u16-strcat.c: Likewise.
49416         * lib/unistr/u16-strchr.c: Likewise.
49417         * lib/unistr/u16-strcmp.c: Likewise.
49418         * lib/unistr/u16-strcpy.c: Likewise.
49419         * lib/unistr/u16-strcspn.c: Likewise.
49420         * lib/unistr/u16-strdup.c: Likewise.
49421         * lib/unistr/u16-strlen.c: Likewise.
49422         * lib/unistr/u16-strmblen.c: Likewise.
49423         * lib/unistr/u16-strmbtouc.c: Likewise.
49424         * lib/unistr/u16-strncat.c: Likewise.
49425         * lib/unistr/u16-strncmp.c: Likewise.
49426         * lib/unistr/u16-strncpy.c: Likewise.
49427         * lib/unistr/u16-strnlen.c: Likewise.
49428         * lib/unistr/u16-strpbrk.c: Likewise.
49429         * lib/unistr/u16-strrchr.c: Likewise.
49430         * lib/unistr/u16-strspn.c: Likewise.
49431         * lib/unistr/u16-strstr.c: Likewise.
49432         * lib/unistr/u16-strtok.c: Likewise.
49433         * lib/unistr/u16-to-u32.c: Likewise.
49434         * lib/unistr/u16-to-u8.c: Likewise.
49435         * lib/unistr/u16-uctomb-aux.c: Likewise.
49436         * lib/unistr/u16-uctomb.c: Likewise.
49437         * lib/unistr/u32-check.c: Likewise.
49438         * lib/unistr/u32-chr.c: Likewise.
49439         * lib/unistr/u32-cmp.c: Likewise.
49440         * lib/unistr/u32-cpy-alloc.c: Likewise.
49441         * lib/unistr/u32-cpy.c: Likewise.
49442         * lib/unistr/u32-endswith.c: Likewise.
49443         * lib/unistr/u32-mblen.c: Likewise.
49444         * lib/unistr/u32-mbsnlen.c: Likewise.
49445         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49446         * lib/unistr/u32-mbtouc.c: Likewise.
49447         * lib/unistr/u32-mbtoucr.c: Likewise.
49448         * lib/unistr/u32-move.c: Likewise.
49449         * lib/unistr/u32-next.c: Likewise.
49450         * lib/unistr/u32-prev.c: Likewise.
49451         * lib/unistr/u32-set.c: Likewise.
49452         * lib/unistr/u32-startswith.c: Likewise.
49453         * lib/unistr/u32-stpcpy.c: Likewise.
49454         * lib/unistr/u32-stpncpy.c: Likewise.
49455         * lib/unistr/u32-strcat.c: Likewise.
49456         * lib/unistr/u32-strchr.c: Likewise.
49457         * lib/unistr/u32-strcmp.c: Likewise.
49458         * lib/unistr/u32-strcpy.c: Likewise.
49459         * lib/unistr/u32-strcspn.c: Likewise.
49460         * lib/unistr/u32-strdup.c: Likewise.
49461         * lib/unistr/u32-strlen.c: Likewise.
49462         * lib/unistr/u32-strmblen.c: Likewise.
49463         * lib/unistr/u32-strmbtouc.c: Likewise.
49464         * lib/unistr/u32-strncat.c: Likewise.
49465         * lib/unistr/u32-strncmp.c: Likewise.
49466         * lib/unistr/u32-strncpy.c: Likewise.
49467         * lib/unistr/u32-strnlen.c: Likewise.
49468         * lib/unistr/u32-strpbrk.c: Likewise.
49469         * lib/unistr/u32-strrchr.c: Likewise.
49470         * lib/unistr/u32-strspn.c: Likewise.
49471         * lib/unistr/u32-strstr.c: Likewise.
49472         * lib/unistr/u32-strtok.c: Likewise.
49473         * lib/unistr/u32-to-u16.c: Likewise.
49474         * lib/unistr/u32-to-u8.c: Likewise.
49475         * lib/unistr/u32-uctomb.c: Likewise.
49476         * lib/unistr/u8-check.c: Likewise.
49477         * lib/unistr/u8-chr.c: Likewise.
49478         * lib/unistr/u8-cmp.c: Likewise.
49479         * lib/unistr/u8-cpy-alloc.c: Likewise.
49480         * lib/unistr/u8-cpy.c: Likewise.
49481         * lib/unistr/u8-endswith.c: Likewise.
49482         * lib/unistr/u8-mblen.c: Likewise.
49483         * lib/unistr/u8-mbsnlen.c: Likewise.
49484         * lib/unistr/u8-mbtouc-aux.c: Likewise.
49485         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49486         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49487         * lib/unistr/u8-mbtouc.c: Likewise.
49488         * lib/unistr/u8-mbtoucr.c: Likewise.
49489         * lib/unistr/u8-move.c: Likewise.
49490         * lib/unistr/u8-next.c: Likewise.
49491         * lib/unistr/u8-prev.c: Likewise.
49492         * lib/unistr/u8-set.c: Likewise.
49493         * lib/unistr/u8-startswith.c: Likewise.
49494         * lib/unistr/u8-stpcpy.c: Likewise.
49495         * lib/unistr/u8-stpncpy.c: Likewise.
49496         * lib/unistr/u8-strcat.c: Likewise.
49497         * lib/unistr/u8-strchr.c: Likewise.
49498         * lib/unistr/u8-strcmp.c: Likewise.
49499         * lib/unistr/u8-strcpy.c: Likewise.
49500         * lib/unistr/u8-strcspn.c: Likewise.
49501         * lib/unistr/u8-strdup.c: Likewise.
49502         * lib/unistr/u8-strlen.c: Likewise.
49503         * lib/unistr/u8-strmblen.c: Likewise.
49504         * lib/unistr/u8-strmbtouc.c: Likewise.
49505         * lib/unistr/u8-strncat.c: Likewise.
49506         * lib/unistr/u8-strncmp.c: Likewise.
49507         * lib/unistr/u8-strncpy.c: Likewise.
49508         * lib/unistr/u8-strnlen.c: Likewise.
49509         * lib/unistr/u8-strpbrk.c: Likewise.
49510         * lib/unistr/u8-strrchr.c: Likewise.
49511         * lib/unistr/u8-strspn.c: Likewise.
49512         * lib/unistr/u8-strstr.c: Likewise.
49513         * lib/unistr/u8-strtok.c: Likewise.
49514         * lib/unistr/u8-to-u16.c: Likewise.
49515         * lib/unistr/u8-to-u32.c: Likewise.
49516         * lib/unistr/u8-uctomb-aux.c: Likewise.
49517         * lib/unistr/u8-uctomb.c: Likewise.
49518         * lib/unitypes.h: Likewise.
49519         * lib/uniwidth.h: Likewise.
49520         * lib/uniwidth/cjk.h: Likewise.
49521         * lib/uniwidth/u16-strwidth.c: Likewise.
49522         * lib/uniwidth/u16-width.c: Likewise.
49523         * lib/uniwidth/u32-strwidth.c: Likewise.
49524         * lib/uniwidth/u32-width.c: Likewise.
49525         * lib/uniwidth/u8-strwidth.c: Likewise.
49526         * lib/uniwidth/u8-width.c: Likewise.
49527         * lib/uniwidth/width.c: Likewise.
49528
49529 2007-10-07  Bruno Haible  <bruno@clisp.org>
49530
49531         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
49532         The file is still under LGPL (see modules/inttypes).
49533
49534 2007-10-06  Bruno Haible  <bruno@clisp.org>
49535
49536         * modules/trunc (Dependencies): Add 'extensions'.
49537         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
49538         Reported by Ben Pfaff <blp@gnu.org>.
49539
49540 2007-10-06  Bruno Haible  <bruno@clisp.org>
49541
49542         * modules/freopen-tests: New file.
49543         * tests/test-freopen.c: New file.
49544
49545         * modules/fopen-tests: New file.
49546         * tests/test-fopen.c: New file.
49547
49548         * modules/fopen: New file.
49549         * lib/fopen.c: New file.
49550         * m4/fopen.m4: New file.
49551         * modules/freopen: New file.
49552         * lib/freopen.c: New file.
49553         * m4/freopen.m4: New file.
49554         * lib/stdio.in.h (fopen, freopen): New declarations.
49555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
49556         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49557         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
49558         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49559         * doc/functions/fopen.texi: Mention the 'fopen' module.
49560         * doc/functions/freopen.texi: Mention the 'freopen' module.
49561
49562 2007-10-06  Bruno Haible  <bruno@clisp.org>
49563
49564         * modules/open-tests: New file.
49565         * tests/test-open.c: New file.
49566
49567         * modules/open: New file.
49568         * lib/open.c: New file.
49569         * m4/open.m4: New file.
49570         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
49571         lib/open.c does.
49572         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
49573         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
49574         macros.
49575         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
49576         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
49577         REPLACE_OPEN.
49578         * doc/functions/open.texi: Mention the 'open' module.
49579
49580 2007-10-04  Bruno Haible  <bruno@clisp.org>
49581
49582         * modules/ceill-tests: New file.
49583         * tests/test-ceill.c: New file.
49584
49585         * modules/ceill: New file.
49586         * lib/ceill.c: Replace entire file.
49587         * m4/ceill.m4: New file.
49588         * lib/math.in.h (ceill): Replace declaration.
49589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
49590         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
49591         * doc/functions/ceill.texi: Mention the 'ceill' module.
49592         * modules/mathl (Files): Remove lib/ceill.c.
49593         (Depends-on): Add ceill.
49594
49595 2007-10-04  Bruno Haible  <bruno@clisp.org>
49596
49597         * modules/ceilf-tests: New file.
49598         * tests/test-ceilf.c: New file.
49599
49600         * modules/ceilf: New file.
49601         * lib/ceil.c: New file.
49602         * lib/ceilf.c: New file.
49603         * m4/ceilf.m4: New file.
49604         * lib/math.in.h (ceilf): New declaration.
49605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
49606         HAVE_DECL_CEILF.
49607         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
49608         HAVE_DECL_CEILF.
49609         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
49610
49611 2007-10-04  Bruno Haible  <bruno@clisp.org>
49612
49613         * modules/floorl-tests: New file.
49614         * tests/test-floorl.c: New file.
49615
49616         * modules/floorl: New file.
49617         * lib/floorl.c: Replace entire file.
49618         * m4/floorl.m4: New file.
49619         * lib/math.in.h (floorl): Replace declaration.
49620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
49621         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
49622         * doc/functions/floorl.texi: Mention the 'floorl' module.
49623         * modules/mathl (Files): Remove lib/floorl.c.
49624         (Depends-on): Add floorl.
49625
49626 2007-10-04  Bruno Haible  <bruno@clisp.org>
49627
49628         * modules/floorf-tests: New file.
49629         * tests/test-floorf.c: New file.
49630
49631         * modules/floorf: New file.
49632         * lib/floor.c: New file.
49633         * lib/floorf.c: New file.
49634         * m4/floorf.m4: New file.
49635         * lib/math.in.h (floorf): New declaration.
49636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
49637         HAVE_DECL_FLOORF.
49638         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
49639         HAVE_DECL_FLOORF.
49640         * doc/functions/floorf.texi: Mention the 'floorf' module.
49641
49642 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
49643             Bruno Haible  <bruno@clisp.org>
49644
49645         Advertise for the Git server instead of the CVS server.
49646         * doc/gnulib-intro.texi (Steady Development): Mention the Git
49647         repository instead of the CVS one.
49648         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
49649         about all VCS systems generically.
49650         * doc/gnulib.texi (Introduction): Capitalize `Git'.
49651
49652 2007-10-04  Bruno Haible  <bruno@clisp.org>
49653
49654         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
49655         means.
49656         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
49657
49658 2007-10-04  Bruno Haible  <bruno@clisp.org>
49659
49660         * modules/truncl-tests: New file.
49661         * tests/test-truncl.c: New file.
49662
49663         * modules/truncl: New file.
49664         * lib/truncl.c: New file.
49665         * m4/truncl.m4: New file.
49666         * lib/math.in.h (truncl): New declaration.
49667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
49668         HAVE_DECL_TRUNCL.
49669         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
49670         HAVE_DECL_TRUNCL.
49671         * doc/functions/truncl.texi: Mention the 'truncl' module.
49672
49673 2007-10-04  Bruno Haible  <bruno@clisp.org>
49674
49675         * modules/truncf-tests: New file.
49676         * tests/test-truncf.c: New file.
49677
49678         * modules/truncf: New file.
49679         * lib/trunc.c: Make paramerizable through USE_* macros.
49680         * lib/truncf.c: New file.
49681         * m4/truncf.m4: New file.
49682         * lib/math.in.h (truncf): New declaration.
49683         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
49684         HAVE_DECL_TRUNCF.
49685         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
49686         HAVE_DECL_TRUNCF.
49687         * doc/functions/truncf.texi: Mention the 'truncf' module.
49688
49689 2007-10-03  Bruno Haible  <bruno@clisp.org>
49690
49691         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49692         augmentation also for tests modules.
49693         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
49694         * modules/atexit-tests (Makefile.am): Likewise.
49695         * modules/binary-io-tests (Makefile.am): Likewise.
49696         * modules/c-strcase-tests (Makefile.am): Likewise.
49697         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
49698         * modules/canonicalize-tests (Makefile.am): Likewise.
49699         * modules/closein-tests (Makefile.am): Likewise.
49700         * modules/fprintf-posix-tests (Makefile.am): Likewise.
49701         * modules/freadahead-tests (Makefile.am): Likewise.
49702         * modules/fseek-tests (Makefile.am): Likewise.
49703         * modules/fseeko-tests (Makefile.am): Likewise.
49704         * modules/ftell-tests (Makefile.am): Likewise.
49705         * modules/ftello-tests (Makefile.am): Likewise.
49706         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
49707         * modules/isnanl-tests (Makefile.am): Likewise.
49708         * modules/lseek-tests (Makefile.am): Likewise.
49709         * modules/mbscasecmp-tests (Makefile.am): Likewise.
49710         * modules/mbscasestr-tests (Makefile.am): Likewise.
49711         * modules/mbschr-tests (Makefile.am): Likewise.
49712         * modules/mbscspn-tests (Makefile.am): Likewise.
49713         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
49714         * modules/mbspbrk-tests (Makefile.am): Likewise.
49715         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
49716         * modules/mbsrchr-tests (Makefile.am): Likewise.
49717         * modules/mbsspn-tests (Makefile.am): Likewise.
49718         * modules/mbsstr-tests (Makefile.am): Likewise.
49719         * modules/printf-posix-tests (Makefile.am): Likewise.
49720         * modules/snprintf-posix-tests (Makefile.am): Likewise.
49721         * modules/sprintf-posix-tests (Makefile.am): Likewise.
49722         * modules/tsearch-tests (Makefile.am): Likewise.
49723         * modules/uniname/uniname-tests (Makefile.am): Likewise.
49724         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
49725         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
49726         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
49727         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
49728         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
49729         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
49730         * modules/vprintf-posix-tests (Makefile.am): Likewise.
49731         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
49732         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
49733         * modules/xstrtoimax-tests (Makefile.am): Likewise.
49734         * modules/xstrtol-tests (Makefile.am): Likewise.
49735         * modules/xstrtoumax-tests (Makefile.am): Likewise.
49736         * modules/yesno-tests (Makefile.am): Likewise.
49737
49738 2007-10-03  Bruno Haible  <bruno@clisp.org>
49739
49740         * modules/trunc-tests: New file.
49741         * tests/test-trunc.c: New file.
49742
49743         * modules/trunc: New file.
49744         * lib/trunc.c: New file.
49745         * m4/trunc.m4: New file.
49746         * lib/math.in.h (trunc): New declaration.
49747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
49748         HAVE_DECL_TRUNC.
49749         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
49750         HAVE_DECL_TRUNC.
49751         * doc/functions/trunc.texi: Mention the 'trunc' module.
49752
49753 2007-10-03  Bruno Haible  <bruno@clisp.org>
49754
49755         * tests/test-fpending.c: New file, mostly copied
49756         from coreutils/lib/t-fpending.c.
49757         * modules/fpending-tests: New file.
49758
49759 2007-10-03  Bruno Haible  <bruno@clisp.org>
49760
49761         Port the stdio extensions to QNX (untested).
49762         * lib/fseterr.c (fseterr): Add support for QNX.
49763         * lib/fbufmode.c (fbufmode): Likewise.
49764         * lib/freadable.c (freadable): Likewise.
49765         * lib/fwritable.c (fwritable): Likewise.
49766         * lib/freading.c (freading): Likewise.
49767         * lib/fwriting.c (fwriting): Likewise.
49768         * lib/freadahead.c (freadahed): Likewise.
49769         * lib/fpurge.c (fpurge): Likewise.
49770         * lib/fseeko.c (rpl_fseeko): Likewise.
49771
49772 2007-10-03  Bruno Haible  <bruno@clisp.org>
49773             Jim Meyering  <jim@meyering.net>
49774             Eric Blake  <ebb9@byu.net>
49775
49776         * doc/relocatable.texi: Use @command instead of @program.
49777
49778 2007-10-02  Jim Meyering  <jim@meyering.net>
49779
49780         Perform one more "_.h" -> ".in.h" substitution.
49781         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
49782         instead of unistd_.h here, too.
49783
49784 2007-10-01  Bruno Haible  <bruno@clisp.org>
49785
49786         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
49787         Needed for the alloca-opt module.
49788
49789 2007-09-30  Bruno Haible  <bruno@clisp.org>
49790
49791         * lib/alloca.in.h: Renamed from lib/alloca_.h.
49792         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
49793         alloca_.h.
49794         * lib/argz.in.h: Renamed from lib/argz_.h.
49795         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
49796         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
49797         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
49798         byteswap_.h.
49799         * lib/dirent.in.h: Renamed from lib/dirent_.h.
49800         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
49801         dirent_.h.
49802         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
49803         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
49804         fcntl_.h.
49805         * lib/float.in.h: Renamed from lib/float_.h.
49806         * modules/float (Files, Makefile.am): Use float.in.h instead of
49807         float_.h.
49808         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
49809         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
49810         fnmatch_.h.
49811         * lib/getopt.in.h: Renamed from lib/getopt_.h.
49812         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
49813         getopt_.h.
49814         * lib/glob.in.h: Renamed from lib/glob_.h.
49815         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
49816         * lib/iconv.in.h: Renamed from lib/iconv_.h.
49817         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
49818         iconv_.h.
49819         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
49820         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
49821         inttypes_.h.
49822         * lib/locale.in.h: Renamed from lib/locale_.h.
49823         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
49824         locale_.h.
49825         * lib/math.in.h: Renamed from lib/math_.h.
49826         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
49827         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
49828         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
49829         of netinet_in_.h. Add dependency.
49830         * lib/poll.in.h: Renamed from lib/poll_.h.
49831         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
49832         * lib/search.in.h: Renamed from lib/search_.h.
49833         * modules/search (Files, Makefile.am): Use search.in.h instead of
49834         search_.h.
49835         * lib/signal.in.h: Renamed from lib/signal_.h.
49836         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
49837         _signal.h.
49838         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
49839         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
49840         stdbool_.h.
49841         * lib/stdint.in.h: Renamed from lib/stdint_.h.
49842         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
49843         stdint_.h.
49844         * lib/stdio.in.h: Renamed from lib/stdio_.h.
49845         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
49846         stdio_.h.
49847         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
49848         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
49849         stdlib_.h.
49850         * lib/string.in.h: Renamed from lib/string_.h.
49851         * modules/string (Files, Makefile.am): Use string.in.h instead of
49852         string_.h.
49853         * doc/gnulib-tool.texi (Initial import): Update.
49854         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
49855         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
49856         of sys_select_.h. Add dependency.
49857         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
49858         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
49859         of sys_socket_.h.
49860         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
49861         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
49862         sys_stat_.h.
49863         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
49864         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
49865         sys_time_.h.
49866         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
49867         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
49868         sysexits_.h.
49869         * lib/time.in.h: Renamed from lib/time_.h.
49870         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
49871         * lib/unistd.in.h: Renamed from lib/unistd_.h.
49872         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
49873         unistd_.h.
49874         * lib/wchar.in.h: Renamed from lib/wchar_.h.
49875         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
49876         wchar_.h.
49877         * lib/wctype.in.h: Renamed from lib/wctype_.h.
49878         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
49879         wctype_.h.
49880         * build-aux/bootstrap (slurp): Update.
49881         * lib/.cppi-disable: Update.
49882
49883 2007-09-30  Bruno Haible  <bruno@clisp.org>
49884
49885         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
49886         Needed on BeOS.
49887
49888 2007-09-30  Bruno Haible  <bruno@clisp.org>
49889
49890         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
49891
49892 2007-09-29  Bruno Haible  <bruno@clisp.org>
49893
49894         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
49895
49896 2007-09-29  Bruno Haible  <bruno@clisp.org>
49897
49898         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
49899         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
49900         * build-aux/install-reloc: Compile also areadlink.c.
49901         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
49902
49903 2007-09-29  Bruno Haible  <bruno@clisp.org>
49904
49905         * gnulib-tool (func_emit_initmacro_done): Indentation.
49906
49907 2007-09-29  Bruno Haible  <bruno@clisp.org>
49908
49909         * README: Add CVS checkout update instructions.
49910         Info from Bob Proulx <bob@proulx.com>.
49911
49912 2007-09-28  Eric Blake  <ebb9@byu.net>
49913
49914         Provide move-if-change.
49915         * build-aux/move-if-change: New file, based on best practice
49916         rather than any canonical upstream location.
49917
49918 2007-09-28  Jim Meyering  <jim@meyering.net>
49919
49920         Fix canonicalize loop-detection corner case.
49921         Do not attempt to stat the symlink values stored via seen_triple.
49922         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
49923         on linux-2.6.18, (but not 2.6.22).
49924         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
49925         triple_compare.  The former compares dev,ino,filename, while the latter
49926         would actually stat dirname(filename) when dev and ino were equal.
49927         * lib/hash-triple.c: Install <string.h>.
49928         (STREQ): Define.
49929         (triple_compare_ino_str): New function.
49930         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
49931
49932 2007-09-28  Eric Blake  <ebb9@byu.net>
49933
49934         Enforce that AC_REPLACE_FUNCS files exist.
49935         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
49936         override check for typos.
49937
49938         Fix test-closein on Solaris 10.
49939         * tests/test-closein.c (main): Don't assume stdin can be inherited
49940         closed on all systems.
49941         * tests/test-closein.sh: Likewise.
49942         Reported by Piotr Tarnowski.
49943
49944 2007-09-28  Jim Meyering  <jim@meyering.net>
49945
49946         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
49947
49948 2007-09-27  Jim Meyering  <jim@meyering.net>
49949
49950         canonicalize: Avoid a false-positive cycle failure.
49951         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
49952         Sort.  Remove cycle-check.
49953         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
49954         not cycle-check.h.
49955         (seen_triple): New function.
49956         (canonicalize_filename_mode): Use it instead of cycle-check.
49957         * tests/test-canonicalize.c: Add a test for this bug.
49958         * tests/test-canonicalize.sh: Set up and run the test.
49959
49960         New module, file-set, from coreutils.
49961         * modules/file-set: Define it.
49962         * lib/file-set.c, lib/file-set.h: Implement.
49963
49964         New module, hash-triple, from coreutils.
49965         * modules/hash-triple: Define it.
49966         * lib/hash-triple.c, lib/hash-triple.h: Implement.
49967
49968 2007-09-25  Eric Blake  <ebb9@byu.net>
49969
49970         Fix strerror on Interix.
49971         * lib/string_.h (strerror): Declare replacement.
49972         * doc/functions/strerror.texi (strerror): Document the Interix
49973         shortcoming.
49974         * modules/string (Makefile.am): Support new hooks.
49975         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
49976         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
49977         gl_FUNC_STRERROR_SEPARATE.
49978         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
49979         * lib/strerror.c (rpl_strerror): Provide replacement.
49980         * modules/strerror (Depends-on): Add string.
49981         (configure.ac): Detect use of module.
49982         * tests/test-strerror.c: New file.
49983         * modules/strerror-tests: New test module.
49984         * modules/argp (Depends-on): Add strerror.
49985         * modules/error (Depends-on): Likewise.
49986         Reported by Martin Koeppe.
49987
49988 2007-09-24  Bruno Haible  <bruno@clisp.org>
49989
49990         * README: Update git instructions.
49991
49992 2007-09-24  Eric Blake  <ebb9@byu.net>
49993
49994         Revert fpending breakage from 2007-09-08.
49995         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
49996         __fpending.c.
49997
49998 2007-09-24  Jim Meyering  <jim@meyering.net>
49999
50000         filenamecat.c: Add a test.
50001         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
50002         showing how the function works when DIR is the empty string.
50003
50004 2007-09-21  Simon Josefsson  <simon@josefsson.org>
50005
50006         * tests/test-canonicalize.sh: Turn on executable bit.
50007
50008 2007-09-19  Eric Blake  <ebb9@byu.net>
50009
50010         * README: Update CVS instructions.
50011
50012 2007-09-18  Bruno Haible  <bruno@clisp.org>
50013
50014         * modules/areadlink: New file.
50015         * lib/areadlink.h (areadlink): New declaration.
50016         * lib/areadlink.c: New file, based on lib/xreadlink.c.
50017
50018 2007-09-17  Jim Meyering  <jim@meyering.net>
50019
50020         * lib/savewd.c (ESTALE) [!defined]: Define.
50021         Reported to be required on Interix by Martin Koeppe.
50022
50023 2007-09-17  Bruno Haible  <bruno@clisp.org>
50024
50025         * gnulib-tool (func_version): Use $version.
50026
50027 2007-09-16  Bruno Haible  <bruno@clisp.org>
50028
50029         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
50030         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
50031         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
50032         Reported by Greg Schafer <gschafer@zip.com.au>.
50033
50034 2007-09-15  Bruno Haible  <bruno@clisp.org>
50035
50036         * gnulib-tool (sed): Try a little harder to make bash understand the
50037         alias.
50038         Reported by Bruce Korb <bruce.korb@gmail.com>.
50039
50040 2007-09-13  Eric Blake  <ebb9@byu.net>
50041
50042         * ChangeLog: Remove conflict markers.
50043
50044 2007-09-13  Simon Josefsson  <simon@josefsson.org>
50045
50046         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
50047         Reported by Bruno Haible <bruno@clisp.org>.
50048
50049 2007-09-12  Bruno Haible  <bruno@clisp.org>
50050
50051         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
50052         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
50053         is not defined.
50054
50055 2007-09-12  Eric Blake  <ebb9@byu.net>
50056
50057         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
50058         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
50059         Autoconf definition.
50060         * modules/euidaccess (Depends-on): Add extensions, for
50061         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
50062         * modules/fnmatch (Depends-on): Likewise.
50063         * modules/getaddrinfo (Depends-on): Likewise.
50064         * modules/getdelim (Depends-on): Likewise.
50065         * modules/getline (Depends-on): Likewise.
50066         * modules/getsubopt (Depends-on): Likewise.
50067         * modules/gettext (Depends-on): Likewise.
50068         * modules/group-member (Depends-on): Likewise.
50069         * modules/mbchar (Depends-on): Likewise.
50070         * modules/memmem (Depends-on): Likewise.
50071         * modules/mempcpy (Depends-on): Likewise.
50072         * modules/memrchr (Depends-on): Likewise.
50073         * modules/pagealign_alloc (Depends-on): Likewise.
50074         * modules/readutmp (Depends-on): Likewise.
50075         * modules/stpcpy (Depends-on): Likewise.
50076         * modules/stpncpy (Depends-on): Likewise.
50077         * modules/strchrnul (Depends-on): Likewise.
50078         * modules/strndup (Depends-on): Likewise.
50079         * modules/strsep (Depends-on): Likewise.
50080         * modules/strverscmp (Depends-on): Likewise.
50081         * modules/vasprintf (Depends-on): Likewise.
50082         * modules/wcwidth (Depends-on): Likewise.
50083         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
50084         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
50085         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
50086         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
50087         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
50088         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
50089         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
50090         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50091         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
50092         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
50093         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50094         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
50095         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
50096         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
50097         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
50098         * m4/readutmp.m4 (gl_READUTMP): Likewise.
50099         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50100         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
50101         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50102         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
50103         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50104         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
50105         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
50106         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
50107         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
50108         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50109         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
50110         so that lock.m4 can be used in gettext without extensions module.
50111
50112 2007-09-11  Bruno Haible  <bruno@clisp.org>
50113
50114         * m4/isc-posix.m4: Remove file.
50115         Suggested by Eric Blake.
50116
50117 2007-09-11  Eric Blake  <ebb9@byu.net>
50118
50119         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
50120
50121 2007-09-10  Bruno Haible  <bruno@clisp.org>
50122
50123         * posix-modules: Fix typo in error message.
50124         Reported by Matt <mkraai@beckman.com>.
50125
50126 2007-09-09  Bruno Haible  <bruno@clisp.org>
50127
50128         * doc/functions/getdelim.texi: Update list of platforms lacking the
50129         function.
50130         * doc/functions/getline.texi: Likewise.
50131
50132 2007-09-09  Jim Meyering  <jim@meyering.net>
50133
50134         * lib/hash.c (hash_initialize): Detect calloc failure.
50135         Reported by Bruno Haible.
50136
50137 2007-09-09  Bruno Haible  <bruno@clisp.org>
50138
50139         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
50140         malloc or realloc fails.
50141
50142 2007-09-09  Bruno Haible  <bruno@clisp.org>
50143
50144         * modules/getcwd (Depends-on): Add malloc-posix.
50145         * modules/glob (Depends-on): Likewise.
50146         * modules/putenv (Depends-on): Likewise.
50147         * modules/strdup (Depends-on): Likewise.
50148         * modules/getdelim (Depends-on): Add realloc-posix.
50149         * modules/read-file (Depends-on): Likewise.
50150
50151 2007-09-09  Bruno Haible  <bruno@clisp.org>
50152
50153         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
50154         (gl_FUNC_MALLOC_POSIX): Require it.
50155         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
50156         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
50157         * modules/realloc (Files): Add m4/malloc.m4.
50158         * modules/calloc (Files): Likewise.
50159
50160 2007-09-09  Bruno Haible  <bruno@clisp.org>
50161
50162         * modules/malloc-posix: New file.
50163         * modules/malloc (Depends-on): Add malloc-posix.
50164         * lib/malloc.c: Include errno.h.
50165         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
50166         and a POSIX-compatible malloc into a single function. Set ENOMEM
50167         when returning NULL.
50168         * m4/malloc.m4: New file.
50169         * doc/functions/malloc.texi: Mention the malloc-posix module.
50170         * lib/stdlib_.h (malloc): New declaration.
50171         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50172         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
50173         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
50174         and HAVE_MALLOC_POSIX.
50175
50176 2007-09-09  Bruno Haible  <bruno@clisp.org>
50177
50178         * modules/realloc-posix: New file.
50179         * modules/realloc (Depends-on): Add realloc-posix.
50180         * lib/realloc.c: Include errno.h.
50181         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
50182         and a POSIX-compatible realloc into a single function. Set ENOMEM
50183         when returning NULL.
50184         * m4/realloc.m4: New file.
50185         * doc/functions/realloc.texi: Mention the realloc-posix module.
50186         * lib/stdlib_.h (realloc): New declaration.
50187         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50188         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
50189         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
50190         and HAVE_REALLOC_POSIX.
50191
50192 2007-09-09  Bruno Haible  <bruno@clisp.org>
50193
50194         * modules/calloc-posix: New file.
50195         * modules/calloc (Depends-on): Add calloc-posix.
50196         * lib/calloc.c: Include errno.h.
50197         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
50198         and a POSIX-compatible calloc into a single function. Set ENOMEM
50199         when returning NULL.
50200         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
50201         * doc/functions/calloc.texi: Mention the calloc-posix module.
50202         * lib/stdlib_.h (calloc): New declaration.
50203         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50204         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
50205         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
50206         and HAVE_CALLOC_POSIX.
50207
50208 2007-09-09  Bruno Haible  <bruno@clisp.org>
50209
50210         Allow for modules to show an arbitrary notice.
50211         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
50212         * gnulib-tool: New option --extract-notice.
50213         (func_usage): Document it.
50214         (sed_extract_prog): Update.
50215         (func_get_notice): New function.
50216         (func_modules_notice): New function.
50217         (func_import, func_create_testdir): Invoke it.
50218         Suggested by Jim Meyering.
50219
50220 2007-09-09  Bruno Haible  <bruno@clisp.org>
50221
50222         * gnulib-tool: New options --verbose, --quiet.
50223         (func_usage): Document them.
50224         (verbose): New variable.
50225         (func_execute_command): New function.
50226         (func_import): Don't show the module list and the file list if
50227         $verbose < 0.
50228         (func_create_testdir): Likewise. Use func_execute_command.
50229         (func_create_megatestdir): Use func_execute_command.
50230
50231 2007-09-08  Bruno Haible  <bruno@clisp.org>
50232
50233         * gnulib-tool (func_import): Prefer rsync over wget when available,
50234         for fetching the PO files.
50235
50236 2007-09-08  Bruno Haible  <bruno@clisp.org>
50237
50238         * posix-modules: New file. Portions copied from gnulib-tool.
50239         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
50240
50241 2007-09-08  Jim Meyering  <jim@meyering.net>
50242
50243         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
50244         * lib/fpending.h: Rename from __fpending.h.
50245         * lib/fpending.c: Rename from __fpending.c.
50246         Include "fpending.h", not "__fpending.h".
50247         * lib/__fpending.h, lib/__fpending.c: Remove files.
50248         * modules/fpending (Files): Reflect new file names.
50249         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
50250
50251 2007-09-08  Bruno Haible  <bruno@clisp.org>
50252
50253         * m4/inttypes-h.m4: Remove stub file.
50254
50255 2007-09-07  Simon Josefsson  <simon@josefsson.org>
50256
50257         * doc/headers/stdint.texi: Discuss #include_next issue.
50258
50259 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50260
50261         * build-aux/bootstrap: Remove obsolete comment about wget --help.
50262
50263 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50264
50265         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
50266         in variable name.
50267
50268 2007-09-03  Jim Meyering  <jim@meyering.net>
50269
50270         New module: git-version-gen.
50271         * modules/git-version-gen: New file.
50272
50273         Import changes from coreutils for bootstrap script.
50274
50275         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
50276
50277         bootstrap: uses rsync to download the .po files
50278         * build-aux/bootstrap (po_download_command_format): New global.
50279         (download_po_files): Use rsync.
50280         (update_po_files): Don't remove .po files after download,
50281         so future rsync runs can take advantage of the copies.
50282
50283         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
50284
50285         Solve the unnecessary-.po-file-regeneration problem once and for all.
50286         * build-aux/bootstrap (download_po_files): New function, renamed from
50287         get_translations.  Now, downloads, but doesn't update LINGUAS.
50288         (update_po_files): New function.
50289
50290         bootstrap: Ignore more.
50291         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
50292         uniwidth to e.g., lib/.gitignore.
50293         (slurp): Handle the sys_stat_.h -> sys mapping, too.
50294
50295         * build-aux/bootstrap: New setting: vc_ignore.
50296         (insert_sorted_if_absent): Create $file if absent.
50297         Adapt to new, possibly empty, list: $vc_ignore.
50298
50299         bootstrap: generate more ignorable names
50300         * build-aux/bootstrap (slurp): When generating ignorable names,
50301         also map .sin to .sed, .gperf to .c, and .y to .c.
50302
50303 2007-09-03  Jim Meyering  <jim@meyering.net>
50304
50305         * build-aux/git-version-gen: New file, from coreutils.  For details, see
50306         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
50307
50308 2007-09-02  Bruno Haible  <bruno@clisp.org>
50309
50310         Fix mis-recognition of 'mcs' on QNX 6.
50311         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
50312         output contains the string "Mono".
50313         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
50314         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
50315
50316 2007-09-01  Bruno Haible  <bruno@clisp.org>
50317
50318         Fix collision between uniwidth/* and linebreak modules.
50319         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
50320         u32_width): Remove declarations.
50321         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
50322         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
50323         streq3, streq2, streq1, streq0): Remove functions.
50324         (STREQ): Remove macro.
50325         (is_cjk_encoding): Remove function.
50326         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
50327         (uc_width, u8_width, u16_width, u32_width): Remove functions.
50328         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
50329         * NEWS: Document the change.
50330
50331 2007-09-01  Bruno Haible  <bruno@clisp.org>
50332
50333         * lib/streq.h: Add double-inclusion guard.
50334
50335 2007-09-01  Karl Berry  <karl@gnu.org>
50336
50337         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
50338
50339 2007-08-28  Jim Meyering  <jim@meyering.net>
50340
50341         Rename mreadlink_with_size to areadlink_with_size.
50342         * NEWS: Document the change.
50343         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
50344         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
50345         * lib/mreadlink.h: Rename this to...
50346         * lib/areadlink.h: ...this.
50347         * modules/mreadlink-with-size: Rename this to...
50348         * modules/areadlink-with-size: ...this.
50349         * lib/canonicalize.c: Reflect the renaming.
50350         * modules/canonicalize: Likewise.
50351
50352 2007-08-26  Bruno Haible  <bruno@clisp.org>
50353
50354         * gnulib-tool (func_import): When deciding which files to remove,
50355         consider also dangling symbolic links.
50356         Reported by Eric Blake.
50357
50358 2007-08-26  Bruno Haible  <bruno@clisp.org>
50359
50360         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
50361
50362 2007-08-23  Simon Josefsson  <simon@josefsson.org>
50363
50364         * lib/readline.c: Don't include getline.h, the prototype is now
50365         found in stdio.h.
50366
50367 2007-08-23  Jim Meyering  <jim@meyering.net>
50368
50369         Getdelim touchup.
50370         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
50371         around the funlockfile call, since funlockfile never sets errno.
50372         Don't set errno upon failed realloc.
50373
50374 2007-08-22  Eric Blake  <ebb9@byu.net>
50375
50376         Getline touchups.
50377         * lib/getdelim.c (getdelim): Revert regression that required *n to
50378         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
50379         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
50380         getdelim, rather than whether implementation is missing.
50381         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
50382         * lib/stdio_.h (getline): Also declare if replacement is
50383         required.
50384         * doc/functions/getdelim.texi: New file.
50385         * doc/functions/getline.texi: Likewise.
50386         * doc/gnulib.texi (Function Substitutes): Add new files.
50387         Reported by Bruno Haible.
50388
50389 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
50390
50391         * users.txt: Add Guile.
50392
50393 2007-08-22  Eric Blake  <ebb9@byu.net>
50394
50395         * tests/test-getdelim.c (main): Use remove, not unlink.
50396         * tests/test-getline.c (main): Likewise.
50397
50398         Move getline and getdelim into stdio.h, per POSIX 200x.
50399         * modules/getline (Files): Remove getline.h.
50400         (Depends-on): Add stdio.
50401         (configure.ac): Add module indicator.
50402         * modules/getdelim (Files): Remove getdelim.h.
50403         (Depends-on): Add stdio.
50404         (configure.ac): Add module indicator.
50405         * modules/stdio (Makefile.am): Work with new indicators.
50406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
50407         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
50408         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
50409         * lib/getdelim.h: Delete.
50410         * lib/getline.h: Delete.
50411         * lib/stdio_.h (getdelim, getline): Declare.
50412         * modules/getdelim-tests: New module.
50413         * modules/getline-tests: Likewise.
50414         * tests/test-getdelim.c: New file.
50415         * tests/test-getline.c: Likewise.
50416         * NEWS: Document the change.
50417         * lib/getline.c: Update choice of header.
50418         * lib/csharpcomp.c: Likewise.
50419         * lib/getpass.c: Likewise.
50420         * lib/javacomp.c: Likewise.
50421         * lib/javaversion.c: Likewise.
50422         * lib/yesno.c: Likewise.
50423         * lib/getdelim.c: Likewise.
50424         (getdelim): Set errno on failure, and avoid memory leak.
50425
50426 2007-08-19  Bruno Haible  <bruno@clisp.org>
50427
50428         * modules/closein (Depends-on): Add freadahead.
50429         * lib/closein.c: Include freadahead.h.
50430         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
50431         is zero.
50432
50433 2007-08-19  Bruno Haible  <bruno@clisp.org>
50434
50435         * modules/freadahead-tests: New file.
50436         * tests/test-freadahead.sh: New file.
50437         * tests/test-freadahead.c: New file.
50438
50439         * modules/freadahead: New file.
50440         * lib/freadahead.h: New file.
50441         * lib/freadahead.c: New file.
50442         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
50443         fbufmode, fpurge, freadable, fwritable.
50444
50445 2007-08-19  Eric Blake  <ebb9@byu.net>
50446
50447         Test yesno in combination with closein.
50448         * lib/yesno.c (yesno): Document use of stdin.
50449         * modules/yesno-tests (Files): New module.
50450         * tests/test-yesno.c (main): New file.
50451         * tests/test-yesno.sh: Likewise.
50452
50453 2007-08-19  Bruno Haible  <bruno@clisp.org>
50454
50455         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
50456         * lib/fseeko.c (rpl_fseeko): Likewise.
50457         * lib/fseterr.c (fseterr): Likewise.
50458
50459 2007-08-19  Bruno Haible  <bruno@clisp.org>
50460
50461         * tests/test-lseek.c (main): Disable a test for BeOS.
50462         * doc/functions/lseek.texi: Document the BeOS bug.
50463
50464 2007-08-19  Bruno Haible  <bruno@clisp.org>
50465             Eric Blake  <ebb9@byu.net>
50466
50467         * lib/lseek.c: Include <sys/stat.h>.
50468         (rpl_lseek): Add workaround code also for Unix platforms.
50469         Needed for BeOS.
50470         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
50471         * doc/functions/lseek.texi: Document BeOS definiency.
50472
50473 2007-08-18  Bruno Haible  <bruno@clisp.org>
50474
50475         * modules/fstrcmp-tests: New file.
50476         * tests/test-fstrcmp.c: New file.
50477
50478 2007-08-18  Bruno Haible  <bruno@clisp.org>
50479
50480         * modules/fstrcmp: New file, from GNU gettext with modifications.
50481         * lib/fstrcmp.h: New file, from GNU gettext.
50482         * lib/fstrcmp.c: New file, from GNU gettext.
50483         * MODULES.html.sh (String handling): Add fstrcmp.
50484
50485 2007-08-18  Bruno Haible  <bruno@clisp.org>
50486
50487         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
50488         'bool'.
50489         (diag, compareseq): Remove const from the ctxt argument.
50490         (USE_HEURISTIC): Undefine at the end.
50491
50492 2007-08-18  Jim Meyering  <jim@meyering.net>
50493
50494         New file: lib/idcache.h
50495         * NEWS: Mention the addition.
50496         * modules/idcache (Files): Add lib/idcache.h
50497         * lib/idcache.c: Include "idcache.h".
50498         Don't include <sys/types.h>.
50499         Add a FIXME comment.
50500         Move file-scoped "static" declarations to the top.
50501         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
50502
50503 2007-08-17  Bruno Haible  <bruno@clisp.org>
50504         and Paul Eggert  <eggert@cs.ucla.edu>
50505
50506         * MODULES.html.sh: Add diffseq.
50507         * modules/diffseq: New file.
50508         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
50509         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
50510
50511 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50512
50513         Import changes from coreutils for bootstrap script.
50514
50515         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
50516
50517         * build-aux/bootstrap (slurp): Work even in environments where
50518         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
50519         current code does not slurp files whose names start with ".", and
50520         this looks like it might be a troublesome area.
50521
50522         2007-07-11  Jim Meyering  <jim@meyering.net>
50523
50524         If there's a GPL vN copyright comment, require that N == 3.
50525
50526         2007-07-08  Jim Meyering  <jim@meyering.net>
50527
50528         Run the coreutils-specific code only if tests/Makefile.am.in exists.
50529         * build-aux/bootstrap (mam_template): Move definition out of loop.
50530
50531         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
50532
50533         * build-aux/bootstrap (symlink_to_dir): Rename function from
50534         symlink_to_gnulib.  Add a directory parameter.  Update all
50535         callers.
50536         (cp_mark_as_generated): Also check for -- and link to -- files in
50537         gl/.
50538
50539         2007-07-08  Jim Meyering  <jim@meyering.net>
50540
50541         Adapt to deeper hierarchy in gnulib.
50542         * build-aux/bootstrap (symlink_to_dir): If the destination
50543         directory doesn't exist, create it. This is required at least for
50544         "lib/uniwidth/cjk.h".
50545
50546         2007-05-15  Jim Meyering  <jim@meyering.net>
50547
50548         * build-aux/bootstrap: Now that generated Makefile.am files
50549         are no longer under version control, they must be created at
50550         bootstrap time.
50551
50552 2007-08-14  Ben Pfaff  <blp@gnu.org>
50553
50554         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
50555
50556 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50557
50558         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
50559         given the changes below.
50560         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
50561         even on hosts that have padding bits beyond the supported 64.
50562
50563 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50564
50565         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
50566         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
50567         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
50568         depends on it.
50569         (xstrtol_error): Remove.
50570         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
50571         but with a different signature.
50572         (ATTRIBUTE_NORETURN, __attribute__): New macros.
50573         * lib/xstrtol-error.c: Include exitfail.h.
50574         (xstrtol_fatal): New function, with a different signature from the
50575         old xstrtol_error, so that the caller need not worry about passing
50576         in an exit status, or about storage management of the option argument.
50577         (xstrtol_error): Now a static function.  Redo signature to
50578         implement xstrtol_fatal.  Output the correct number of hyphens in
50579         front of the option so that the caller need not worry about
50580         storage management.
50581         (N_): New macro.
50582         (_): Remove; not used now.
50583         * modules/xstrtol: Depend on getopt.
50584         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
50585         of old STRTOL_FATAL_ERROR macro.
50586         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
50587         of test program.
50588         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
50589         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
50590
50591 2007-08-08  Eric Blake  <ebb9@byu.net>
50592
50593         * lib/xstrtol-error.c: Add missing include.
50594
50595         Move xstrtol messages into gnulib domain, when --pobase is used.
50596         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
50597         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
50598         * modules/xstrtol (Files): Distribute new file.
50599         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
50600         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
50601         * tests/test-xstrtol.c: ...into new file.
50602         * tests/test-xstrtoul.c: Also test xstrtoul.
50603         * tests/test-xstrtoimax.c: Also test xstrtoimax.
50604         * tests/test-xstrtoumax.c: Also test xstrtoumax.
50605         * tests/test-xstrtol.sh: Drive the tests.
50606         * tests/test-xstrtoimax.sh: Likewise.
50607         * tests/test-xstrtoumax.sh: Likewise.
50608         * modules/xstrtol-tests: New module.
50609         * modules/xstrtoimax-tests: Likewise.
50610         * modules/xstrtoumax-tests: Likewise.
50611
50612 2007-08-08  Jim Meyering  <jim@meyering.net>
50613
50614         New function: mfile_name_concat.
50615         * lib/filenamecat.c (mfile_name_concat): New function, just like
50616         file_name_concat, but return NULL upon failure rather than exiting
50617         with a diagnostic.
50618         * lib/filenamecat.h: Declare it.
50619
50620 2007-08-07  Bruno Haible  <bruno@clisp.org>
50621
50622         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
50623         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
50624         warning from gcc.
50625         Reported by Eric Blake.
50626
50627 2007-08-07  Simon Josefsson  <simon@josefsson.org>
50628
50629         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
50630         * modules/crypto/arcfour (License): Likewise.
50631         * modules/crypto/des-tests (License): Likewise.
50632         * modules/crypto/gc-arctwo-tests (License): Likewise.
50633         * modules/crypto/gc-des-tests (License): Likewise.
50634         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
50635         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
50636         * modules/crypto/gc-md2-tests (License): Likewise.
50637         * modules/crypto/gc-md4-tests (License): Likewise.
50638         * modules/crypto/gc-md5-tests (License): Likewise.
50639         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
50640         * modules/crypto/gc-rijndael-tests (License): Likewise.
50641         * modules/crypto/gc-sha1-tests (License): Likewise.
50642         * modules/crypto/gc-tests (License): Likewise.
50643         * modules/crypto/hmac-md5 (License): Likewise.
50644         * modules/crypto/hmac-sha1 (License): Likewise.
50645         * modules/crypto/md2-tests (License): Likewise.
50646         * modules/crypto/md4-tests (License): Likewise.
50647         * modules/crypto/md5 (License): Likewise.
50648         * modules/crypto/rijndael (License): Likewise.
50649         * modules/crypto/sha1 (License): Likewise.
50650         * modules/memxor (License): Likewise.
50651
50652 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
50653         and Bruno Haible  <bruno@clisp.org>
50654
50655         * NEWS: Describe interface changes to human, xstrtol.
50656         * lib/human.h: Include <xstrtol.h>.
50657         (human_options): Return enum strtol_error, not int.  Remove
50658         bool arg; take int * instead.
50659         * lib/human.c: Don't include "gettext.h".
50660         (_): Remove; no longer used.
50661         Don't include <xstrtol.h>, since human.h does it.
50662         (human_options): Adjust to abovementioned interface changes.
50663         Do not report error to stderr; that's now the caller's
50664         responsibility.
50665         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
50666         interface change.
50667         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
50668         Str, Argument_type_string.  All uses changed.  Put " argument"
50669         in diagnostics to make them clearer.  Change wording of suffix
50670         message for clarity.
50671         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
50672         Argument_type_string.
50673         (STRTOL_FATAL_WARN): Remove; no longer used.
50674         * modules/human (Depends-on): Remove gettext-h.
50675
50676 2007-08-06  Simon Josefsson  <simon@josefsson.org>
50677
50678         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
50679
50680 2007-07-31  Bruno Haible  <bruno@clisp.org>
50681
50682         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
50683         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
50684         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
50685
50686 2007-07-31  Bruno Haible  <bruno@clisp.org>
50687
50688         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
50689         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
50690
50691 2007-07-30  Bruno Haible  <bruno@clisp.org>
50692
50693         * modules/base64 (License): Use the synonymous term "LGPLv2+".
50694         * modules/c-ctype (License): Likewise.
50695         * modules/c-strcase (License): Likewise.
50696         * modules/check-version (License): Likewise.
50697         * modules/iconv (License): Likewise.
50698         * modules/iconv_open (License): Likewise.
50699         * modules/read-file (License): Likewise.
50700         * modules/striconv (License): Likewise.
50701         * modules/strverscmp (License): Likewise.
50702         * modules/vasprintf (License): Likewise.
50703         * modules/crypto/des (License): Likewise.
50704         * modules/crypto/gc (License): Likewise.
50705         * modules/crypto/gc-arcfour (License): Likewise.
50706         * modules/crypto/gc-arctwo (License): Likewise.
50707         * modules/crypto/gc-des (License): Likewise.
50708         * modules/crypto/gc-hmac-md5 (License): Likewise.
50709         * modules/crypto/gc-hmac-sha1 (License): Likewise.
50710         * modules/crypto/gc-md2 (License): Likewise.
50711         * modules/crypto/gc-md4 (License): Likewise.
50712         * modules/crypto/gc-md5 (License): Likewise.
50713         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
50714         * modules/crypto/gc-random (License): Likewise.
50715         * modules/crypto/gc-rijndael (License): Likewise.
50716         * modules/crypto/gc-sha1 (License): Likewise.
50717         * modules/crypto/md2 (License): Likewise.
50718         * modules/crypto/md4 (License): Likewise.
50719
50720 2007-07-30  Jim Meyering  <jim@meyering.net>
50721
50722         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
50723         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
50724         it has valid stat data.  This bug would cause du not to count the
50725         sizes of inaccessible directories.
50726         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
50727         in <http://bugzilla.redhat.com/250077>.
50728
50729 2007-07-25  Peter O'Gorman  <peter@pogma.com>
50730             Bruno Haible  <bruno@clisp.org>
50731
50732         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
50733         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
50734         #include_next, gives a diagnostic about it, but reports no error in
50735         the exit code.
50736         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50737
50738 2007-07-24  Ben Pfaff  <blp@gnu.org>
50739
50740         Improve name: "count-one-bits" is better than "popcount".
50741         * MODULES.html.sh: Update name.
50742         * lib/popcount.h: Renamed lib/count-one-bits.h.
50743         (popcount): Renamed count_one_bits.
50744         (popcountl): Renamed count_one_bits_l.
50745         (popcountll): Renamed count_one_bits_ll.
50746         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
50747         * modules/popcount: Renamed module/count-one-bits.
50748         * modules/popcount-tests: Renamed module/count-one-bits-tests.
50749         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
50750
50751 2007-07-23  Ben Pfaff  <blp@gnu.org>
50752
50753         * lib/popcount.h (popcount32): Reduce size of constants, to allow
50754         better code generation, and add U to large constants to avoid
50755         warnings, in non-GCC case.
50756         Suggested by Bruno Haible.
50757
50758 2007-07-23  Ben Pfaff  <blp@gnu.org>
50759
50760         * lib/popcount.h: Use verify_true instead of if...abort.
50761         * modules/popcount: Depend on verify module.
50762         Suggested by Jim Meyering.
50763
50764 2007-07-23  Bruno Haible  <bruno@clisp.org>
50765
50766         * gnulib-tool (func_import): Create a .cvsignore file also when the
50767         directory is not yet in CVS but the toplevel directory is. When
50768         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
50769         Reported by Karl Berry.
50770
50771 2007-07-22  Ben Pfaff  <blp@gnu.org>
50772
50773         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
50774         case.
50775         Suggested by Eric Blake.
50776
50777 2007-07-22  Ben Pfaff  <blp@gnu.org>
50778
50779         New module: popcount.
50780         * MODULES.html.sh: Add popcount.
50781         * modules/popcount: New file.
50782         * modules/popcount-tests: New file.
50783         * tests/test-popcount.c: New file.
50784         * lib/popcount.h: New file.
50785         * m4/popcount.m4: New file.
50786
50787 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50788
50789         * build-aux/announce-gen: Update to GPLv3.
50790
50791         * build-aux/config.guess: Update from config.
50792
50793 2007-07-21  Bruno Haible  <bruno@clisp.org>
50794
50795         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
50796         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
50797
50798 2007-07-20  Jim Meyering  <jim@meyering.net>
50799
50800         * check-module: Diagnose a self-dependency.
50801
50802 2007-07-19  Bruno Haible  <bruno@clisp.org>
50803
50804         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
50805         empty.
50806         Reported by Eric Blake.
50807
50808 2007-07-18  Bruno Haible  <bruno@clisp.org>
50809
50810         * gnulib-tool: New options --po-base, --po-domain.
50811         (func_usage): Document them.
50812         (pobase, po_domain): New variables.
50813         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
50814         DEFAULT_TEXT_DOMAIN.
50815         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
50816         (func_import): Consider pobase and po_domain. Create a po/ directory.
50817         (func_create_testdir): Set pobase and po_domain to empty.
50818         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
50819         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
50820
50821 2007-07-18  Bruno Haible  <bruno@clisp.org>
50822
50823         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50824         EXTRA_DIST augmentation for files in build-aux/.
50825
50826 2007-07-16  Bruno Haible  <bruno@clisp.org>
50827
50828         * modules/lseek (License): Use the synonymous term "LGPLv2+".
50829         * modules/getdelim (License): Likewise.
50830
50831 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50832
50833         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
50834         * modules/d-type (License): Likewise.
50835         * modules/extensions (License): Likewise.
50836         * modules/fnmatch (License): Likewise.
50837         * modules/fseeko (License): Likewise.
50838         * modules/getaddrinfo (License): Likewise.
50839         * modules/getline (License): Likewise.
50840         * modules/getlogin_r (License): Likewise.
50841         * modules/getpass (License): Likewise.
50842         * modules/gettimeofday (License): Likewise.
50843         * modules/glob (License): Likewise.
50844         * modules/inet_ntop (License): Likewise.
50845         * modules/malloc (License): Likewise.
50846         * modules/malloca (License): Likewise.
50847         * modules/memmem (License): Likewise.
50848         * modules/mempcpy (License): Likewise.
50849         * modules/memset (License): Likewise.
50850         * modules/minmax (License): Likewise.
50851         * modules/mktime (License): Likewise.
50852         * modules/netinet_in (License): Likewise.
50853         * modules/pathmax (License): Likewise.
50854         * modules/poll (License): Likewise.
50855         * modules/regex (License): Likewise.
50856         * modules/snprintf (License): Likewise.
50857         * modules/stdbool (License): Likewise.
50858         * modules/stdint (License): Likewise.
50859         * modules/stdio (License): Likewise.
50860         * modules/strcase (License): Likewise.
50861         * modules/strcasestr (License): Likewise.
50862         * modules/strdup (License): Likewise.
50863         * modules/string (License): Likewise.
50864         * modules/strndup (License): Likewise.
50865         * modules/strnlen (License): Likewise.
50866         * modules/strpbrk (License): Likewise.
50867         * modules/strptime (License): Likewise.
50868         * modules/strsep (License): Likewise.
50869         * modules/sys_select (License): Likewise.
50870         * modules/sys_socket (License): Likewise.
50871         * modules/sys_stat (License): Likewise.
50872         * modules/sys_time (License): Likewise.
50873         * modules/time (License): Likewise.
50874         * modules/time_r (License): Likewise.
50875         * modules/timegm (License): Likewise.
50876         * modules/unistd (License): Likewise.
50877         * modules/vsnprintf (License): Likewise.
50878         * modules/wctype (License): Likewise.
50879
50880 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50881
50882         * modules/argz (License): LGPLv2+.
50883
50884 2007-07-15  Karl Berry  <karl@gnu.org>
50885
50886         * doc/gnulib.texi: revise node structure per new fdl.texi.
50887
50888 2007-07-14  Bruno Haible  <bruno@clisp.org>
50889
50890         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
50891         the output file.
50892         * lib/uniname/uninames.h: Regenerated.
50893
50894 2007-07-14  Karl Berry  <karl@gnu.org>
50895
50896         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
50897         omitting sectioning and index commands.
50898
50899 2007-07-13  Bruno Haible  <bruno@clisp.org>
50900
50901         New gnulib-tool option --more-symlinks.
50902         * gnulib-tool (func_usage): Document --more-symlinks.
50903         (do_copyrights): New variable.
50904         Recognize option --more-symlinks.
50905         (func_import): Don't add a copyright notice transform to
50906         sed_transform_lib_file if do_copyrights is empty.
50907
50908 2007-07-13  Bruno Haible  <bruno@clisp.org>
50909
50910         * lib/vasnprintf.c (decimal_point_char): Define also if
50911         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
50912         && !NEED_PRINTF_DIRECTIVE_A.
50913         Reported by Clemens Koller <clemens.koller@anagramm.de> via
50914         Gary V. Vaughan <gary@gnu.org>.
50915
50916 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
50917
50918         * lib/inttypes_.h: Undo previous change, since it was fixed
50919         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
50920
50921 2007-07-13  Bruno Haible  <bruno@clisp.org>
50922
50923         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
50924         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
50925
50926 2007-07-13  Jim Meyering  <jim@meyering.net>
50927
50928         df: Don't fail for Tru64's "file-on-file mount".
50929         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
50930         so we fall through and use statfs instead.  Details here:
50931         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
50932         Reported by Albert Chin.
50933
50934 2007-07-13  Bruno Haible  <bruno@clisp.org>
50935
50936         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
50937         * modules/configmake (License): Likewise.
50938         * modules/gettext (License): Likewise.
50939         * modules/gettext-h (License): Likewise.
50940         * modules/include_next (License): Likewise.
50941         * modules/link-warning (License): Likewise.
50942         * modules/localcharset (License): Likewise.
50943         * modules/localename (License): Likewise.
50944         * modules/lock (License): Likewise.
50945         * modules/relocatable-lib-lgpl (License): Likewise.
50946         * modules/size_max (License): Likewise.
50947         * modules/vasnprintf (License): Likewise.
50948         * modules/wchar (License): Likewise.
50949         * modules/xsize (License): Likewise.
50950
50951 2007-07-13  Bruno Haible  <bruno@clisp.org>
50952
50953         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
50954         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
50955
50956 2007-07-12  Bruno Haible  <bruno@clisp.org>
50957
50958         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
50959         in the modules files.
50960
50961 2007-07-11  Karl Berry  <karl@gnu.org>
50962
50963         * MODULES.html.sh (func_module): use
50964          sed -e '\|^'"${includefile}"'$|d'
50965          instead of /.../d, to avoid errors on $includefile's containing /.
50966
50967 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50968
50969         * gnulib-tool (func_import): Avoid duplication of --avoid
50970         statements
50971         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
50972         names to `_' in variable names.
50973
50974 2007-07-10  Eric Blake  <ebb9@byu.net>
50975
50976         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
50977         * NEWS: Document this change.
50978
50979 2007-07-08  Bruno Haible  <bruno@clisp.org>
50980
50981         Update to Unicode 5.0.
50982         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
50983         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
50984         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
50985         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
50986         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
50987         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
50988         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
50989         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
50990         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
50991         U+10A3F, U+1D242..U+1D244.
50992         (nonspacing_table_ind): Update.
50993         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
50994         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
50995
50996 2007-07-08  Bruno Haible  <bruno@clisp.org>
50997
50998         Update to Unicode 5.0.
50999         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
51000         code transform. Extend the name index field of unicode_name_to_code and
51001         unicode_code_to_name from 16 to 24 bits.
51002         * lib/uniname/uniname.c (unicode_character_name,
51003         unicode_name_character): Add the range 0x12xxx to the code transform.
51004         * lib/uniname/uninames.h: Regenerated.
51005         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
51006
51007 2007-07-07  Bruno Haible  <bruno@clisp.org>
51008
51009         * modules/wcwidth-tests: New file.
51010         * tests/test-wcwidth.c: New file.
51011
51012         Work around MacOS X wcwidth() bug.
51013         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
51014         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
51015         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
51016         original wcwidth in non-UTF-8 locales.
51017         * modules/wcwidth (Depends-on): Add localcharset, streq,
51018         uniwidth/width.
51019         * doc/functions/wcwidth.texi: Update.
51020
51021 2007-07-07  Bruno Haible  <bruno@clisp.org>
51022
51023         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
51024         (wcwidth): New declaration.
51025         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
51026         macros.
51027         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
51028         here. Prepare for creating <wchar.h> unconditionally.
51029         * modules/wchar (Depends-on): Add link-warning.
51030         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
51031         REPLACE_WCWIDTH, and GL_LINK_WARNING.
51032         * lib/wcwidth.h: Remove file.
51033         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
51034         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
51035         * modules/wcwidth (Files): Remove lib/wcwidth.h.
51036         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
51037         (Include): Replace wcwidth.h with <wchar.h>.
51038         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
51039         * lib/mbchar.h: Don't include wcwidth.h.
51040         * lib/mbswidth.c: Likewise.
51041         * NEWS: Mention the change.
51042
51043 2007-07-07  Bruno Haible  <bruno@clisp.org>
51044
51045         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
51046         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
51047         definition with an external declaration.
51048         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
51049         defined as a function. Remove AC_C_INLINE requirement.
51050         * modules/wcwidth (Files): Add lib/wcwidth.c.
51051         (Makefile.am): Remove redundant statement.
51052
51053 2007-07-07  Bruno Haible  <bruno@clisp.org>
51054
51055         * MODULES.html.sh (Unicode string functions): Add the new modules.
51056
51057         * tests/uniwidth/test-u32-strwidth.c: New file.
51058         * modules/uniwidth/u32-strwidth-tests: New file.
51059
51060         * lib/uniwidth/u32-strwidth.c: New file.
51061         * modules/uniwidth/u32-strwidth: New file.
51062
51063         * tests/uniwidth/test-u16-strwidth.c: New file.
51064         * modules/uniwidth/u16-strwidth-tests: New file.
51065
51066         * lib/uniwidth/u16-strwidth.c: New file.
51067         * modules/uniwidth/u16-strwidth: New file.
51068
51069         * tests/uniwidth/test-u8-strwidth.c: New file.
51070         * modules/uniwidth/u8-strwidth-tests: New file.
51071
51072         * lib/uniwidth/u8-strwidth.c: New file.
51073         * modules/uniwidth/u8-strwidth: New file.
51074
51075         * tests/uniwidth/test-u32-width.c: New file.
51076         * modules/uniwidth/u32-width-tests: New file.
51077
51078         * lib/uniwidth/u32-width.c: New file.
51079         * modules/uniwidth/u32-width: New file.
51080
51081         * tests/uniwidth/test-u16-width.c: New file.
51082         * modules/uniwidth/u16-width-tests: New file.
51083
51084         * lib/uniwidth/u16-width.c: New file.
51085         * modules/uniwidth/u16-width: New file.
51086
51087         * tests/uniwidth/test-u8-width.c: New file.
51088         * modules/uniwidth/u8-width-tests: New file.
51089
51090         * lib/uniwidth/u8-width.c: New file.
51091         * modules/uniwidth/u8-width: New file.
51092
51093         * tests/uniwidth/test-uc_width.c: New file.
51094         * modules/uniwidth/width-tests: New file.
51095
51096         * lib/uniwidth/width.c: New file, from GNU libiconv.
51097         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
51098         * modules/uniwidth/width: New file.
51099
51100         * lib/uniwidth.h: New file, from GNU libiconv.
51101         * modules/uniwidth/base: New file.
51102
51103 2007-07-07  Bruno Haible  <bruno@clisp.org>
51104
51105         * lib/uniname.h: New file, from GNU gettext.
51106         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
51107         * lib/uniname/uninames.h: New file, from GNU gettext.
51108         * lib/uniname/uniname.c: New file, from GNU gettext.
51109         * tests/uniname/test-uninames.sh: New file.
51110         * tests/uniname/test-uninames.c: New file, from GNU gettext.
51111         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
51112         * modules/uniname/base: New file.
51113         * modules/uniname/uniname: New file.
51114         * modules/uniname/uniname-tests: New file.
51115         * MODULES.html.sh (Unicode string functions): Add the new modules.
51116
51117 2007-07-06  Bruno Haible  <bruno@clisp.org>
51118
51119         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
51120
51121 2007-07-06  Bruno Haible  <bruno@clisp.org>
51122
51123         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
51124         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
51125         includes <cygwin/sys_time.h> which includes <sys/select.h> which
51126         include <sys/time.h>.
51127         Reported by Eric Blake.
51128
51129 2007-07-06  Eric Blake  <ebb9@byu.net>
51130
51131         Fix testing canonicalize on cygwin.
51132         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51133         Revert patch from 2007-06-19.
51134         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
51135         canonicalize module is also in use.
51136         * tests/test-canonicalize.c: New file.
51137         * tests/test-canonicalize.sh: Likewise.
51138         * modules/canonicalize-tests: Likewise.
51139
51140 2007-07-06  Jim Meyering  <jim@meyering.net>
51141
51142         * lib/getugroups.c (getugroups): Detect getgrent failure.
51143         Adjust comment to reflect reality: this function may return -1.
51144
51145 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
51146
51147         * build-aux/bootstrap (TP_URL,get_translations): Update to use
51148         the new TP address.
51149         (usage): Fix typo
51150         (gnulib_mk): New variable.
51151
51152 2007-07-05  Jim Meyering  <jim@meyering.net>
51153
51154         Don't let endgrent clobber errno, no matter how improbable.
51155         * lib/getugroups.c (getugroups): Save and restore errno around
51156         endgrent call.
51157
51158         Close the group DB even when failing with 2^31 or more members.
51159         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
51160
51161 2007-07-04  Jim Meyering  <jim@meyering.net>
51162
51163         * lib/getugroups.h: New file.
51164         * lib/getugroups.c: Include "getugroups.h".
51165         Remove uses of "register" keyword.
51166         Move local variable, "cp", down into scope where used.
51167         Give "username" parameter the "const" attribute.
51168         * modules/getugroups (Files): Add lib/getugroups.h
51169
51170 2007-07-04  Karl Berry  <karl@gnu.org>
51171
51172         * MODULES.html.sh (func_all_modules): Complete rename of
51173         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
51174
51175 2007-07-02  Bruno Haible  <bruno@clisp.org>
51176
51177         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
51178         mode, when inttypes.h comes from gnulib.
51179         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51180
51181 2007-07-02  Simon Josefsson  <simon@josefsson.org>
51182
51183         * NEWS: Mention lgpl module name change.
51184
51185         * modules/lgpl-2.1: Renamed from lgpl.
51186
51187         * NEWS: Mention gpl module name change.
51188
51189         * modules/gpl-3.0: New file, based on gpl-2.0.
51190
51191         * modules/gpl-2.0: Renamed from gpl.
51192
51193         * modules/gpl: Fix filename, doc/gpl.texi is now found at
51194         doc/gpl-2.0.texi.
51195
51196 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51197
51198         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
51199         #define __STDC_LIMIT_MACROS temporarily while including
51200         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
51201         Problem reported by Joel E. Denny in
51202         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
51203
51204 2007-07-01  Bruno Haible  <bruno@clisp.org>
51205
51206         * lib/unistdio.h: New file.
51207         * lib/unistdio/u-asnprintf.h: New file.
51208         * lib/unistdio/u-asprintf.h: New file.
51209         * lib/unistdio/u-printf-args.c: New file.
51210         * lib/unistdio/u-printf-args.h: New file.
51211         * lib/unistdio/u-printf-parse.h: New file.
51212         * lib/unistdio/u-snprintf.h: New file.
51213         * lib/unistdio/u-sprintf.h: New file.
51214         * lib/unistdio/u-vasprintf.h: New file.
51215         * lib/unistdio/u-vsnprintf.h: New file.
51216         * lib/unistdio/u-vsprintf.h: New file.
51217         * lib/unistdio/ulc-asnprintf.c: New file.
51218         * lib/unistdio/ulc-asprintf.c: New file.
51219         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
51220         * lib/unistdio/ulc-printf-parse.c: New file.
51221         * lib/unistdio/ulc-snprintf.c: New file.
51222         * lib/unistdio/ulc-sprintf.c: New file.
51223         * lib/unistdio/ulc-vasnprintf.c: New file.
51224         * lib/unistdio/ulc-vasprintf.c: New file.
51225         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
51226         * lib/unistdio/ulc-vsnprintf.c: New file.
51227         * lib/unistdio/ulc-vsprintf.c: New file.
51228         * lib/unistdio/u8-asnprintf.c: New file.
51229         * lib/unistdio/u8-asprintf.c: New file.
51230         * lib/unistdio/u8-printf-parse.c: New file.
51231         * lib/unistdio/u8-snprintf.c: New file.
51232         * lib/unistdio/u8-sprintf.c: New file.
51233         * lib/unistdio/u8-vasnprintf.c: New file.
51234         * lib/unistdio/u8-vasprintf.c: New file.
51235         * lib/unistdio/u8-vsnprintf.c: New file.
51236         * lib/unistdio/u8-vsprintf.c: New file.
51237         * lib/unistdio/u8-u8-asnprintf.c: New file.
51238         * lib/unistdio/u8-u8-asprintf.c: New file.
51239         * lib/unistdio/u8-u8-snprintf.c: New file.
51240         * lib/unistdio/u8-u8-sprintf.c: New file.
51241         * lib/unistdio/u8-u8-vasnprintf.c: New file.
51242         * lib/unistdio/u8-u8-vasprintf.c: New file.
51243         * lib/unistdio/u8-u8-vsnprintf.c: New file.
51244         * lib/unistdio/u8-u8-vsprintf.c: New file.
51245         * lib/unistdio/u16-asnprintf.c: New file.
51246         * lib/unistdio/u16-asprintf.c: New file.
51247         * lib/unistdio/u16-printf-parse.c: New file.
51248         * lib/unistdio/u16-snprintf.c: New file.
51249         * lib/unistdio/u16-sprintf.c: New file.
51250         * lib/unistdio/u16-vasnprintf.c: New file.
51251         * lib/unistdio/u16-vasprintf.c: New file.
51252         * lib/unistdio/u16-vsnprintf.c: New file.
51253         * lib/unistdio/u16-vsprintf.c: New file.
51254         * lib/unistdio/u16-u16-asnprintf.c: New file.
51255         * lib/unistdio/u16-u16-asprintf.c: New file.
51256         * lib/unistdio/u16-u16-snprintf.c: New file.
51257         * lib/unistdio/u16-u16-sprintf.c: New file.
51258         * lib/unistdio/u16-u16-vasnprintf.c: New file.
51259         * lib/unistdio/u16-u16-vasprintf.c: New file.
51260         * lib/unistdio/u16-u16-vsnprintf.c: New file.
51261         * lib/unistdio/u16-u16-vsprintf.c: New file.
51262         * lib/unistdio/u32-asnprintf.c: New file.
51263         * lib/unistdio/u32-asprintf.c: New file.
51264         * lib/unistdio/u32-printf-parse.c: New file.
51265         * lib/unistdio/u32-snprintf.c: New file.
51266         * lib/unistdio/u32-sprintf.c: New file.
51267         * lib/unistdio/u32-vasnprintf.c: New file.
51268         * lib/unistdio/u32-vasprintf.c: New file.
51269         * lib/unistdio/u32-vsnprintf.c: New file.
51270         * lib/unistdio/u32-vsprintf.c: New file.
51271         * lib/unistdio/u32-u32-asnprintf.c: New file.
51272         * lib/unistdio/u32-u32-asprintf.c: New file.
51273         * lib/unistdio/u32-u32-snprintf.c: New file.
51274         * lib/unistdio/u32-u32-sprintf.c: New file.
51275         * lib/unistdio/u32-u32-vasnprintf.c: New file.
51276         * lib/unistdio/u32-u32-vasprintf.c: New file.
51277         * lib/unistdio/u32-u32-vsnprintf.c: New file.
51278         * lib/unistdio/u32-u32-vsprintf.c: New file.
51279         * tests/unistdio/test-ulc-asnprintf1.c: New file.
51280         * tests/unistdio/test-ulc-asnprintf1.h: New file.
51281         * tests/unistdio/test-ulc-printf1.h: New file.
51282         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
51283         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
51284         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
51285         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
51286         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
51287         * tests/unistdio/test-ulc-vasprintf1.c: New file.
51288         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
51289         * tests/unistdio/test-ulc-vsprintf1.c: New file.
51290         * tests/unistdio/test-u8-asnprintf1.c: New file.
51291         * tests/unistdio/test-u8-asnprintf1.h: New file.
51292         * tests/unistdio/test-u8-printf1.h: New file.
51293         * tests/unistdio/test-u8-vasnprintf1.c: New file.
51294         * tests/unistdio/test-u8-vasnprintf2.c: New file.
51295         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
51296         * tests/unistdio/test-u8-vasnprintf3.c: New file.
51297         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
51298         * tests/unistdio/test-u8-vasprintf1.c: New file.
51299         * tests/unistdio/test-u8-vsnprintf1.c: New file.
51300         * tests/unistdio/test-u8-vsprintf1.c: New file.
51301         * tests/unistdio/test-u16-asnprintf1.c: New file.
51302         * tests/unistdio/test-u16-asnprintf1.h: New file.
51303         * tests/unistdio/test-u16-printf1.h: New file.
51304         * tests/unistdio/test-u16-vasnprintf1.c: New file.
51305         * tests/unistdio/test-u16-vasnprintf2.c: New file.
51306         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
51307         * tests/unistdio/test-u16-vasnprintf3.c: New file.
51308         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
51309         * tests/unistdio/test-u16-vasprintf1.c: New file.
51310         * tests/unistdio/test-u16-vsnprintf1.c: New file.
51311         * tests/unistdio/test-u16-vsprintf1.c: New file.
51312         * tests/unistdio/test-u32-asnprintf1.c: New file.
51313         * tests/unistdio/test-u32-asnprintf1.h: New file.
51314         * tests/unistdio/test-u32-printf1.h: New file.
51315         * tests/unistdio/test-u32-vasnprintf1.c: New file.
51316         * tests/unistdio/test-u32-vasnprintf2.c: New file.
51317         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
51318         * tests/unistdio/test-u32-vasnprintf3.c: New file.
51319         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
51320         * tests/unistdio/test-u32-vasprintf1.c: New file.
51321         * tests/unistdio/test-u32-vsnprintf1.c: New file.
51322         * tests/unistdio/test-u32-vsprintf1.c: New file.
51323         * modules/unistdio/base: New file.
51324         * modules/unistdio/u-printf-args: New file.
51325         * modules/unistdio/ulc-asnprintf: New file.
51326         * modules/unistdio/ulc-asprintf: New file.
51327         * modules/unistdio/ulc-fprintf: New file.
51328         * modules/unistdio/ulc-printf-parse: New file.
51329         * modules/unistdio/ulc-snprintf: New file.
51330         * modules/unistdio/ulc-sprintf: New file.
51331         * modules/unistdio/ulc-vasnprintf: New file.
51332         * modules/unistdio/ulc-vasprintf: New file.
51333         * modules/unistdio/ulc-vfprintf: New file.
51334         * modules/unistdio/ulc-vsnprintf: New file.
51335         * modules/unistdio/ulc-vsprintf: New file.
51336         * modules/unistdio/u8-asnprintf: New file.
51337         * modules/unistdio/u8-asprintf: New file.
51338         * modules/unistdio/u8-printf-parse: New file.
51339         * modules/unistdio/u8-snprintf: New file.
51340         * modules/unistdio/u8-sprintf: New file.
51341         * modules/unistdio/u8-vasnprintf: New file.
51342         * modules/unistdio/u8-vasprintf: New file.
51343         * modules/unistdio/u8-vsnprintf: New file.
51344         * modules/unistdio/u8-vsprintf: New file.
51345         * modules/unistdio/u8-u8-asnprintf: New file.
51346         * modules/unistdio/u8-u8-asprintf: New file.
51347         * modules/unistdio/u8-u8-snprintf: New file.
51348         * modules/unistdio/u8-u8-sprintf: New file.
51349         * modules/unistdio/u8-u8-vasnprintf: New file.
51350         * modules/unistdio/u8-u8-vasprintf: New file.
51351         * modules/unistdio/u8-u8-vsnprintf: New file.
51352         * modules/unistdio/u8-u8-vsprintf: New file.
51353         * modules/unistdio/u16-asnprintf: New file.
51354         * modules/unistdio/u16-asprintf: New file.
51355         * modules/unistdio/u16-printf-parse: New file.
51356         * modules/unistdio/u16-snprintf: New file.
51357         * modules/unistdio/u16-sprintf: New file.
51358         * modules/unistdio/u16-vasnprintf: New file.
51359         * modules/unistdio/u16-vasprintf: New file.
51360         * modules/unistdio/u16-vsnprintf: New file.
51361         * modules/unistdio/u16-vsprintf: New file.
51362         * modules/unistdio/u16-u16-asnprintf: New file.
51363         * modules/unistdio/u16-u16-asprintf: New file.
51364         * modules/unistdio/u16-u16-snprintf: New file.
51365         * modules/unistdio/u16-u16-sprintf: New file.
51366         * modules/unistdio/u16-u16-vasnprintf: New file.
51367         * modules/unistdio/u16-u16-vasprintf: New file.
51368         * modules/unistdio/u16-u16-vsnprintf: New file.
51369         * modules/unistdio/u16-u16-vsprintf: New file.
51370         * modules/unistdio/u32-asnprintf: New file.
51371         * modules/unistdio/u32-asprintf: New file.
51372         * modules/unistdio/u32-printf-parse: New file.
51373         * modules/unistdio/u32-snprintf: New file.
51374         * modules/unistdio/u32-sprintf: New file.
51375         * modules/unistdio/u32-vasnprintf: New file.
51376         * modules/unistdio/u32-vasprintf: New file.
51377         * modules/unistdio/u32-vsnprintf: New file.
51378         * modules/unistdio/u32-vsprintf: New file.
51379         * modules/unistdio/u32-u32-asnprintf: New file.
51380         * modules/unistdio/u32-u32-asprintf: New file.
51381         * modules/unistdio/u32-u32-snprintf: New file.
51382         * modules/unistdio/u32-u32-sprintf: New file.
51383         * modules/unistdio/u32-u32-vasnprintf: New file.
51384         * modules/unistdio/u32-u32-vasprintf: New file.
51385         * modules/unistdio/u32-u32-vsnprintf: New file.
51386         * modules/unistdio/u32-u32-vsprintf: New file.
51387         * modules/unistdio/ulc-asnprintf-tests: New file.
51388         * modules/unistdio/ulc-vasnprintf-tests: New file.
51389         * modules/unistdio/ulc-vasprintf-tests: New file.
51390         * modules/unistdio/ulc-vsnprintf-tests: New file.
51391         * modules/unistdio/ulc-vsprintf-tests: New file.
51392         * modules/unistdio/u8-asnprintf-tests: New file.
51393         * modules/unistdio/u8-vasnprintf-tests: New file.
51394         * modules/unistdio/u8-vasprintf-tests: New file.
51395         * modules/unistdio/u8-vsnprintf-tests: New file.
51396         * modules/unistdio/u8-vsprintf-tests: New file.
51397         * modules/unistdio/u16-asnprintf-tests: New file.
51398         * modules/unistdio/u16-vasnprintf-tests: New file.
51399         * modules/unistdio/u16-vasprintf-tests: New file.
51400         * modules/unistdio/u16-vsnprintf-tests: New file.
51401         * modules/unistdio/u16-vsprintf-tests: New file.
51402         * modules/unistdio/u32-asnprintf-tests: New file.
51403         * modules/unistdio/u32-vasnprintf-tests: New file.
51404         * modules/unistdio/u32-vasprintf-tests: New file.
51405         * modules/unistdio/u32-vsnprintf-tests: New file.
51406         * modules/unistdio/u32-vsprintf-tests: New file.
51407         * MODULES.html.sh (Unicode string functions): Add the new modules.
51408
51409 2007-07-01  Bruno Haible  <bruno@clisp.org>
51410
51411         * lib/sprintf.c (sprintf): Limit the available length estimation,
51412         to avoid address wraparound.
51413         * lib/vsprintf.c (vsprintf): Likewise.
51414         * modules/sprintf-posix (Dependencies): Add stdint.
51415         * modules/vsprintf-posix (Dependencies): Likewise.
51416
51417 2007-07-01  Bruno Haible  <bruno@clisp.org>
51418
51419         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
51420         Windows PATH as well. Conservative double-quoting. Comments.
51421
51422 2007-07-01  Bruno Haible  <bruno@clisp.org>
51423             Eric Blake  <ebb9@byu.net>
51424             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51425
51426         * gnulib-tool (self_abspathname): Fix algorithm to cope with
51427         empty components in $PATH, denoting '.'.
51428
51429 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51430
51431         * gnulib-tool: Fix indentation.
51432         (func_create_megatestdir): Likewise.
51433         Report by Bruno Haible.
51434
51435 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51436
51437         Sync from Automake.
51438         * build-aux/gnupload: Fix shell portability issues with for loops.
51439         Report by Karl Berry.
51440
51441 2007-06-29  Simon Josefsson  <simon@josefsson.org>
51442
51443         * build-aux/maint.mk (POURL): Use translationproject.org.
51444
51445 2007-06-27  Simon Josefsson  <simon@josefsson.org>
51446             Bruno Haible  <bruno@clisp.org>
51447
51448         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
51449         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
51450         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
51451         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
51452         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
51453
51454 2007-06-27  Bruno Haible  <bruno@clisp.org>
51455
51456         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
51457         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
51458
51459 2007-06-26  Karl Berry  <karl@gnu.org>
51460
51461         * MODULES.html.sh: remove xreadlink-with-size.
51462
51463 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51464
51465         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
51466         method that I hope also handles the double-include problem noted
51467         by Bruno Haible in
51468         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
51469
51470 2007-06-23  Bruno Haible  <bruno@clisp.org>
51471
51472         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51473         Don't let the 'mostlyclean' target fail if the last subdirectory could
51474         not be removed.
51475         Reported by Karl Berry.
51476
51477 2007-06-23  Bruno Haible  <bruno@clisp.org>
51478
51479         * gnulib-tool (echo): Add a speedier workaround for ksh.
51480         * tests/test-echo.sh: Likewise.
51481
51482 2007-06-23  Bruno Haible  <bruno@clisp.org>
51483
51484         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
51485         * tests/test-echo.sh: Likewise.
51486
51487 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51488
51489         * gnulib-tool (IFS): Initialize early, so we don't set it to
51490         empty later.
51491         (self_abspathname): Rewrite algorithm to set it, reindent.
51492         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
51493         (func_create_megatestdir): Merge some sed scripts.
51494
51495 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51496
51497         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
51498         exposed by Sun Studio 11 cc on Solaris 8.
51499
51500 2007-06-22  Bruno Haible  <bruno@clisp.org>
51501
51502         * gnulib-tool (echo): Ensure the echo primitive does not interpret
51503         backslashes.
51504         * tests/test-echo.sh: New file.
51505
51506 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51507
51508         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
51509         simplify `sed_replace_build_aux' scripts, they are portable but
51510         echoing them with `echo' is not.
51511         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
51512
51513 2007-06-21  Karl Berry  <karl@gnu.org>
51514
51515         * config/srclist.txt: guess we can't handle the licenses via
51516         srclist at the moment.
51517
51518 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51519
51520         * MODULES.html.sh: Add include_next.
51521         * modules/include_next: New file.
51522
51523 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51524
51525         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
51526         INCLUDE_NEXT.
51527         (gl_CHECK_NEXT_HEADERS): New macro.
51528         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
51529         the obsolescent gl_ABSOLUTE_HEADER.
51530         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
51531         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
51532         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
51533         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51534         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
51535         * m4/math_h.m4 (gl_MATH_H): Likewise.
51536         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51537         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
51538         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
51539         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51540         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
51541         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
51542         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
51543         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51544         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51545         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
51546         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
51547         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
51548         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
51549         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
51550         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
51551         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
51552         * m4/inttypes.m4 (gl_INTTYPES_H): Define
51553         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
51554         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
51555         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
51556         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
51557         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
51558         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
51559         * lib/float_.h: Likewise.
51560         * lib/inttypes_.h: Likewise.
51561         * lib/math_.h: Likewise.
51562         * lib/search_.h: Likewise.
51563         * lib/signal_.h: Likewise.
51564         * lib/stdint_.h: Likewise.
51565         * lib/stdio_.h: Likewise.
51566         * lib/stdlib_.h: Likewise.
51567         * lib/string_.h: Likewise.
51568         * lib/sys_stat_.h: Likewise.
51569         * lib/sys_time_.h: Likewise.
51570         * lib/time_.h: Likewise.
51571         * lib/unistd_.h: Likewise.
51572         * lib/wchar_.h: Likewise.
51573         * lib/wctype_.h: Likewise.
51574         * lib/dirent_.h: Likewise.
51575         * lib/iconv_.h: Likewise.
51576         * lib/locale_.h: Likewise.
51577         * lib/netinet_in_.h: Likewise.
51578         * lib/sys_select_.h: Likewise.
51579         * lib/sys_socket_.h: Likewise.
51580         * lib/sysexits_.h: Likewise.
51581         * modules/fcntl (Depends-on): Depend on include_next, not
51582         absolute_header.
51583         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
51584         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
51585         * modules/fchdir: Likewise.
51586         * modules/float: Likewise.
51587         * modules/iconv_open: Likewise.
51588         * modules/inttypes: Likewise.
51589         * modules/locale: Likewise.
51590         * modules/math: Likewise.
51591         * modules/netinet_in: Likewise.
51592         * modules/search: Likewise.
51593         * modules/signal: Likewise.
51594         * modules/stdint: Likewise.
51595         * modules/stdio: Likewise.
51596         * modules/stdlib: Likewise.
51597         * modules/string: Likewise.
51598         * modules/sys_select: Likewise.
51599         * modules/sys_socket: Likewise.
51600         * modules/sys_stat: Likewise.
51601         * modules/sys_time: Likewise.
51602         * modules/sysexits: Likewise.
51603         * modules/time: Likewise.
51604         * modules/unistd: Likewise.
51605         * modules/wchar: Likewise.
51606         * modules/wctype: Likewise.
51607         * modules/sys_stat: Change maintainer to "all".
51608         * modules/unistd: Likewise.
51609
51610 2007-06-20  Karl Berry  <karl@gnu.org>
51611
51612         * config/srclist.txt: track www changes in license files.
51613
51614 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
51615
51616         * build-aux/bootstrap: Remove stray dot.
51617         Make sure build_aux settings are honored when linking
51618         gnulib_extra_files.
51619
51620 2007-06-19  Eric Blake  <ebb9@byu.net>
51621
51622         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51623         Allow compilation on cygwin.
51624
51625 2007-06-19  Jim Meyering  <jim@meyering.net>
51626
51627         xreadlink-with-size: Remove module.  No longer used.
51628         Ex-callers now use xreadlink or mreadlink-with-size.
51629         * modules/xreadlink-with-size: Remove module.
51630         * lib/xreadlink-with-size.c: Remove file.
51631         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
51632         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
51633         just before the function definition *is* accurate.
51634
51635         Eliminate one way canonicalize_filename_mode could exit.
51636         * lib/canonicalize.c (canonicalize_filename_mode):
51637         Use mreadlink_with_size, not xreadlink_with_size.
51638
51639 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
51640
51641         Detect porting problems to FreeBSD/arm, which has time_t wider than
51642         long int.  Original problem reported for GNU diff by Xin Li in
51643         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
51644         * modules/getdate (Depends-on): Add intprops, verify.
51645         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
51646         is an integer type no wider than long int.
51647
51648 2007-06-18  Jim Meyering  <jim@meyering.net>
51649
51650         New module: mreadlink-with-size.
51651         * MODULES.html.sh: Add mreadlink-with-size.
51652         * modules/mreadlink-with-size: New module
51653         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
51654         not xreadlink-with-size.
51655         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
51656
51657 2007-06-16  Bruno Haible  <bruno@clisp.org>
51658
51659         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
51660         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
51661         Reported by Gary V. Vaughan <gary@gnu.org>.
51662
51663 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
51664
51665         Revamp lchown so that it lives in unistd.h where it belongs.
51666         * lib/lchown.h: Remove.
51667         * lib/dirchownmod.c: Don't include lib/lchown.h.
51668         * lib/fchownat.c: Likewise.
51669         * lib/openat.c: Likewise.
51670         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
51671         does not follow symlinks.
51672         (EOPNOTSUPP): Define if not defined.
51673         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
51674         is defined to 0.
51675         (lchown): New decl.
51676         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
51677         Do not check for lchown decl.
51678         Set REPLACE_LCHOWN.
51679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
51680         REPLACE_LCHOWN.
51681         * modules/chown: Make it clear it follows symlinks.
51682         * modules/lchown: Make it clear it doesn't follow symlinks.
51683         (Files): Remove lib/lchown.h
51684         (Depends-on): Add unistd.
51685         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
51686         (Include): Include <unistd.h>, not "lchown.h".
51687         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
51688         REPLACE_LCHOWN.
51689
51690 2007-06-15  Jim Meyering  <jim@meyering.net>
51691
51692         Change license (GPL to LGPL) of fsusage and dependents.
51693         * modules/fsusage (License): Change to LGPL.
51694         * modules/full-read (License): Likewise.
51695         * modules/full-write (License): Likewise.
51696         * modules/safe-read (License): Likewise.
51697         * modules/safe-write (License): Likewise.
51698
51699 2007-06-14  Ben Pfaff  <blp@gnu.org>
51700
51701         Missing part of allocsa -> malloca transition.
51702         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
51703         gl_MALLOCA.
51704
51705 2007-06-12  Bruno Haible  <bruno@clisp.org>
51706
51707         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
51708         to ia64, x86_64, i386.
51709         Reported by Eric Blake.
51710
51711 2007-06-12  Bruno Haible  <bruno@clisp.org>
51712
51713         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
51714         cross-compiling to x86_64.
51715
51716 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
51717
51718         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
51719         glitch reported by Ralf Wildenhues in
51720         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
51721
51722         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
51723         Vin Shelton.
51724
51725 2007-06-11  Bruno Haible  <bruno@clisp.org>
51726
51727         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
51728         replacement string.
51729         Reported by Eric Blake.
51730
51731 2007-06-10  Bruno Haible  <bruno@clisp.org>
51732
51733         Prepare vasnprintf code for use with Unicode strings.
51734         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
51735         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
51736         TYPE_U32_STRING.
51737         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
51738         a_u32_string variants.
51739         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51740         * lib/printf-args.c: Don't include config.h and the specification
51741         header if PRINTF_FETCHARGS is already defined.
51742         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51743         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
51744         TYPE_U16_STRING, TYPE_U32_STRING.
51745         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
51746         u16_directive, u16_directives, u32_directive, u32_directives): New
51747         types.
51748         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
51749         New declarations.
51750         * lib/printf-parse.c: Don't include config.h and the specification
51751         header if PRINTF_PARSE is already defined. Eliminate the set of
51752         parameters for WIDE_CHAR_VERSION; the user of this file must provide
51753         them now. Include c-ctype.h.
51754         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
51755         directive and CHAR_T_ONLY_ASCII.
51756         * lib/vasnprintf.c: Don't include config.h and the specification header
51757         if VASNPRINTF is already defined.
51758         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
51759         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
51760         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
51761         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
51762         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
51763         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
51764         code accordingly.
51765         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
51766         pad_ourselves also in this case, with the 'c' and 's' directives, and
51767         with a different notion of "width".
51768         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
51769
51770 2007-06-10  Bruno Haible  <bruno@clisp.org>
51771
51772         * modules/unistr/u32-mbsnlen: New file.
51773         * lib/unistr/u32-mbsnlen.c: New file.
51774
51775         * modules/unistr/u16-mbsnlen: New file.
51776         * lib/unistr/u16-mbsnlen.c: New file.
51777
51778         * modules/unistr/u8-mbsnlen: New file.
51779         * lib/unistr/u8-mbsnlen.c: New file.
51780
51781         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
51782         declarations.
51783
51784 2007-06-10  Bruno Haible  <bruno@clisp.org>
51785
51786         * lib/string_.h (mbsnlen): New declaration.
51787         * lib/mbsnlen.c: New file.
51788         * m4/mbsnlen.m4: New file.
51789         * modules/mbsnlen: New file.
51790         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
51791         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
51792         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
51793
51794 2007-06-10  Bruno Haible  <bruno@clisp.org>
51795
51796         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
51797
51798 2007-06-10  Bruno Haible  <bruno@clisp.org>
51799
51800         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
51801         * lib/mbuiter.h: Likewise.
51802
51803 2007-06-10  Bruno Haible  <bruno@clisp.org>
51804
51805         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
51806         declaration.
51807
51808 2007-06-10  Karl Berry  <karl@gnu.org>
51809
51810         * config/srclist.txt: remove gettext entries, Bruno prefers
51811         to update individually.
51812
51813 2007-06-10  Bruno Haible  <bruno@clisp.org>
51814
51815         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
51816         'maxlen'. Ensure only length + width bytes are allocated, not
51817         length + 1 + width.
51818
51819 2007-06-09  Bruno Haible  <bruno@clisp.org>
51820
51821         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
51822         (CHAR_T): Remove macro.
51823         (VASNPRINTF): Update.
51824
51825 2007-06-09  Bruno Haible  <bruno@clisp.org>
51826
51827         * MODULES.html.sh (Unicode string functions): Add the new modules.
51828
51829         * modules/uniconv/u32-conv-to-enc: New file.
51830         * lib/uniconv/u32-conv-to-enc.c: New file.
51831         * modules/uniconv/u32-conv-to-enc-tests: New file.
51832         * tests/uniconv/test-u32-conv-to-enc.c: New file.
51833
51834         * modules/uniconv/u16-conv-to-enc: New file.
51835         * lib/uniconv/u16-conv-to-enc.c: New file.
51836         * lib/uniconv/u-conv-to-enc.h: New file.
51837         * modules/uniconv/u16-conv-to-enc-tests: New file.
51838         * tests/uniconv/test-u16-conv-to-enc.c: New file.
51839
51840         * modules/uniconv/u8-conv-to-enc: New file.
51841         * lib/uniconv/u8-conv-to-enc.c: New file.
51842         * modules/uniconv/u8-conv-to-enc-tests: New file.
51843         * tests/uniconv/test-u8-conv-to-enc.c: New file.
51844
51845         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
51846         u32_conv_to_encoding): New declarations.
51847
51848 2007-06-09  Bruno Haible  <bruno@clisp.org>
51849
51850         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
51851
51852 2007-06-09  Bruno Haible  <bruno@clisp.org>
51853
51854         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
51855         * modules/malloca: Renamed from modules/allocsa, updated.
51856         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
51857         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
51858         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
51859         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
51860         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
51861         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
51862         * modules/xmalloca: Renamed from modules/xallocsa, updated.
51863         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
51864         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
51865         * modules/c-strcasestr (Depends-on): Update.
51866         * lib/c-strcasestr.c: Update.
51867         * modules/c-strstr (Depends-on): Update.
51868         * lib/c-strstr.c: Update.
51869         * modules/canonicalize-lgpl (Depends-on): Update.
51870         * lib/canonicalize-lgpl.c: Update.
51871         * modules/clean-temp (Depends-on): Update.
51872         * lib/clean-temp.c: Update.
51873         * modules/csharpcomp (Depends-on): Update.
51874         * lib/csharpcomp.c: Update.
51875         * modules/csharpexec (Depends-on): Update.
51876         * lib/csharpexec.c: Update.
51877         * modules/javacomp (Depends-on): Update.
51878         * lib/javacomp.c: Update.
51879         * modules/javaexec (Depends-on): Update.
51880         * lib/javaexec.c: Update.
51881         * modules/mbscasestr (Depends-on): Update.
51882         * lib/mbscasestr.c: Update.
51883         * modules/mbsstr (Depends-on): Update.
51884         * lib/mbsstr.c: Update.
51885         * modules/setenv (Depends-on): Update.
51886         * lib/setenv.c: Update.
51887         * modules/strcasestr (Depends-on): Update.
51888         * lib/strcasestr.c: Update.
51889         * modules/striconveha (Depends-on): Update.
51890         * lib/striconveha.c: Update.
51891         * modules/relocatable-prog-wrapper (Files): Update.
51892         * lib/relocwrapper.c: Update.
51893         * build-aux/install-reloc: Update.
51894         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
51895
51896 2007-06-08  Bruno Haible  <bruno@clisp.org>
51897
51898         Port to uClibc.
51899         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
51900         * lib/fpurge.c (fpurge): Likewise.
51901         * lib/freading.c (freading): Likewise.
51902         * lib/fseeko.c (rpl_fseeko): Likewise.
51903         * lib/fseterr.c (fseterr): Likewise.
51904         * lib/fwriting.c (fwriting): Likewise.
51905         * tests/test-fflush.c (main): Avoid a failure on uClibc.
51906
51907 2007-06-08  Bruno Haible  <bruno@clisp.org>
51908
51909         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
51910         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
51911         * modules/gettext (Files): Add m4/intlmacosx.m4.
51912
51913 2007-06-07  Bruno Haible  <bruno@clisp.org>
51914
51915         * modules/localename-tests: New file.
51916         * tests/test-localename.c: New file.
51917
51918         New module 'localename'.
51919         * lib/localename.h: New file.
51920         * lib/localename.c: New file, from GNU gettext.
51921         * m4/localename.m4: New file.
51922         * modules/localename: New file.
51923
51924 2007-06-07  Bruno Haible  <bruno@clisp.org>
51925
51926         Work around the lack of <wchar.h> on some builds of uClibc.
51927         * doc/headers/wchar.texi: Update.
51928         * lib/wchar_.h: Include <wchar.h> only if it exists.
51929         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
51930         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
51931         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
51932         doesn't exist.
51933         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
51934         * modules/mbfile (Depends-on): Add wchar.
51935         * modules/mbiter (Depends-on): Likewise.
51936         * modules/mbuiter (Depends-on): Likewise.
51937         Reported by Simon Josefsson.
51938
51939 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51940
51941         Work around problem reported by Steven M. Schweda in
51942         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
51943         Tru64 5.1B with the Compaq compiler environment installed declares
51944         an 'isblank' function but does not define it in the C library.
51945         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
51946         * lib/regex_internal.h (isblank): Likewise.
51947         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
51948         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51949
51950 2007-06-05  Bruno Haible  <bruno@clisp.org>
51951
51952         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
51953         ia64.
51954         * modules/printf-safe: New file.
51955         * modules/fprintf-posix (Depends-on): Add printf-safe.
51956         * modules/printf-posix (Depends-on): Likewise.
51957         * modules/snprintf-posix (Depends-on): Likewise.
51958         * modules/sprintf-posix (Depends-on): Likewise.
51959         * modules/vasnprintf-posix (Depends-on): Likewise.
51960         * modules/vasprintf-posix (Depends-on): Likewise.
51961         * modules/vfprintf-posix (Depends-on): Likewise.
51962         * modules/vprintf-posix (Depends-on): Likewise.
51963         * modules/vsnprintf-posix (Depends-on): Likewise.
51964         * modules/vsprintf-posix (Depends-on): Likewise.
51965         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
51966         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
51967         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
51968         "no" on i386, x86_64, ia64.
51969         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
51970         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51971         on i386, x86_64, ia64.
51972         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
51973         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51974         on i386, x86_64, ia64.
51975         * tests/test-vasnprintf-posix.c: Include float.h.
51976         (LDBL80_WORDS): New macro.
51977         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51978         on i386, x86_64, ia64.
51979         * tests/test-vasprintf-posix.c: Include float.h.
51980         (LDBL80_WORDS): New macro.
51981         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51982         on i386, x86_64, ia64.
51983         * tests/test-snprintf-posix.c: Include float.h.
51984         * tests/test-sprintf-posix.c: Likewise.
51985         * tests/test-vsnprintf-posix.c: Likewise.
51986         * tests/test-vsprintf-posix.c: Likewise.
51987
51988 2007-06-05  Bruno Haible  <bruno@clisp.org>
51989
51990         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
51991         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
51992         non-IEEE numbers on i386, x86_64, ia64.
51993         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
51994         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
51995         * tests/test-isnanl.h: Include float.h.
51996         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
51997
51998 2007-06-05  Bruno Haible  <bruno@clisp.org>
51999
52000         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
52001         also the %a / %A. Handle the %a / %A code before this extra handling.
52002
52003 2007-06-05  Bruno Haible  <bruno@clisp.org>
52004
52005         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
52006         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
52007
52008 2007-06-05  Bruno Haible  <bruno@clisp.org>
52009
52010         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
52011         typo in variable name.
52012
52013 2007-06-05  Eric Blake  <ebb9@byu.net>
52014
52015         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
52016         Reported by Simon Josefsson.
52017
52018 2007-06-04  Bruno Haible  <bruno@clisp.org>
52019
52020         Avoid test failures on some PowerPC platforms.
52021         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
52022         Define differently for PowerPC.
52023         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
52024         Reported by Gary V. Vaughan <gary@gnu.org>.
52025
52026 2007-06-02  Bruno Haible  <bruno@clisp.org>
52027
52028         Fix test-stdint failure on FreeBSD/ia64.
52029         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
52030         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
52031         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
52032         * doc/headers/stdint.texi: Update.
52033
52034 2007-06-01  Bruno Haible  <bruno@clisp.org>
52035
52036         * tests/test-binary-io.c (main): Pass a third argument to open().
52037         Reported by Gary V. Vaughan <gary@gnu.org>.
52038
52039 2007-06-01  Bruno Haible  <bruno@clisp.org>
52040
52041         * doc/functions/frexpl.texi: Update for mingw.
52042
52043 2007-06-01  Bruno Haible  <bruno@clisp.org>
52044
52045         * tests/test-lseek.c (main): Disable test of errno for invalid third
52046         argument.
52047         * doc/functions/lseek.texi: Update.
52048         Reported by Gary V. Vaughan <gary@gnu.org>.
52049
52050 2007-05-28  Bruno Haible  <bruno@clisp.org>
52051
52052         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
52053
52054 2007-05-31  Eric Blake  <ebb9@byu.net>
52055
52056         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
52057         cross compiling.
52058
52059 2007-05-30  Eric Blake  <ebb9@byu.net>
52060         and Bruno Haible  <bruno@clisp.org>
52061
52062         Work around mingw test failures exposed by m4-1.4.9b.
52063         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
52064         * tests/test-unistd.c: Disable uid_t and git_t tests for the
52065         moment.
52066
52067 2007-05-30  Bruno Haible  <bruno@clisp.org>
52068
52069         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
52070         assuming that they are closed. Needed on HP-UX 11.
52071
52072 2007-05-29  Bruno Haible  <bruno@clisp.org>
52073
52074         Fix a problem with #include_next.
52075         * lib/dirent_.h: Split the double-inclusion guard.
52076         * lib/fcntl_.h: Likewise.
52077         * lib/float_.h: Likewise.
52078         * lib/iconv_.h: Likewise.
52079         * lib/inttypes_.h: Likewise.
52080         * lib/locale_.h: Likewise.
52081         * lib/math_.h: Likewise.
52082         * lib/netinet_in_.h: Likewise.
52083         * lib/search_.h: Likewise.
52084         * lib/signal_.h: Likewise.
52085         * lib/stdint_.h: Likewise.
52086         * lib/stdio_.h: Likewise.
52087         * lib/stdlib_.h: Likewise.
52088         * lib/string_.h: Likewise.
52089         * lib/sys_select_.h: Likewise.
52090         * lib/sys_socket_.h: Likewise.
52091         * lib/sys_stat_.h: Likewise.
52092         * lib/sys_time_.h: Likewise.
52093         * lib/sysexits_.h: Likewise.
52094         * lib/time_.h: Likewise.
52095         * lib/unistd_.h: Likewise.
52096         * lib/wchar_.h: Likewise.
52097         * lib/wctype_.h: Likewise.
52098
52099 2007-05-29  Bruno Haible  <bruno@clisp.org>
52100
52101         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
52102         for the moment.
52103
52104 2007-05-29  Bruno Haible  <bruno@clisp.org>
52105
52106         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
52107         invocation.
52108         Reported by Eric Blake.
52109
52110 2007-05-29  Bruno Haible  <bruno@clisp.org>
52111
52112         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
52113         compiling case.
52114
52115 2007-05-29  Eric Blake  <ebb9@byu.net>
52116             Bruno Haible  <bruno@clisp.org>
52117
52118         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
52119         cross compiles.
52120
52121 2007-05-28  Eric Blake  <ebb9@byu.net>
52122
52123         * modules/closein-tests (test_closein_LDADD): Support test on
52124         cygwin with libtool.
52125
52126 2007-05-28  Bruno Haible  <bruno@clisp.org>
52127
52128         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
52129         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52130         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52131         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52132         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52133         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52134         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52135         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52136         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52137
52138 2007-05-28  Eric Blake  <ebb9@byu.net>
52139
52140         Unconditionally include <config.h> in unit tests.
52141         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
52142         * tests/test-allocsa.c, tests/test-arcfour.c,
52143         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
52144         tests/test-array_list.c, tests/test-array_oset.c,
52145         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
52146         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
52147         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
52148         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
52149         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
52150         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
52151         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
52152         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
52153         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
52154         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
52155         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
52156         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
52157         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
52158         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
52159         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
52160         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
52161         test-md5.c, test-memmem.c, test-printf-posix.c,
52162         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
52163         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
52164         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
52165         test-strcasestr.c, test-striconv.c, test-striconveh.c,
52166         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
52167         test-vasnprintf-posix2.c, test-vasnprintf.c,
52168         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
52169         test-vfprintf-posix.c, test-vprintf-posix.c,
52170         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
52171         test-xvasprintf.c: Likewise.
52172
52173 2007-05-28  Bruno Haible  <bruno@clisp.org>
52174
52175         * gnulib-tool (func_import): Remember the --with-tests command-line
52176         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
52177         Reported by Eric Blake.
52178
52179 2007-05-28  Bruno Haible  <bruno@clisp.org>
52180
52181         * modules/ftell-tests: New file.
52182         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
52183         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
52184
52185         * lib/ftell.c: New file.
52186         * modules/ftell: New file.
52187         * m4/ftell.m4: New file.
52188         * doc/functions/ftell.texi: Update.
52189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
52190         REPLACE_FTELL.
52191         * lib/stdio_.h (rpl_ftell): New declaration.
52192         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
52193         REPLACE_FTELL.
52194
52195 2007-05-28  Eric Blake  <ebb9@byu.net>
52196
52197         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
52198
52199 2007-05-28  Bruno Haible  <bruno@clisp.org>
52200
52201         * modules/fseek-tests: New file.
52202         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
52203         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
52204
52205         * lib/fseek.c: New file.
52206         * modules/fseek: New file.
52207         * m4/fseek.m4: New file.
52208         * doc/functions/fseek.texi: Update.
52209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
52210         REPLACE_FSEEK.
52211         * lib/stdio_.h (rpl_fseek): New declaration.
52212         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
52213         REPLACE_FSEEK.
52214
52215 2007-05-28  Bruno Haible  <bruno@clisp.org>
52216
52217         * lib/stdio_.h (fflush): More comments.
52218
52219 2007-05-28  Bruno Haible  <bruno@clisp.org>
52220
52221         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
52222         runtime test.
52223
52224 2007-05-28  Eric Blake  <ebb9@byu.net>
52225
52226         Improve lseek module.
52227         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
52228         * lib/unistd_.h (lseek): Scale back link warning message.
52229         * tests/test-lseek.c: Beef up test.
52230         * tests/test-lseek.sh: Exercise more facets of lseek.
52231         Reported by Bruno Haible.
52232
52233 2007-05-28  Bruno Haible  <bruno@clisp.org>
52234
52235         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
52236         to define.
52237
52238 2007-05-27  Bruno Haible  <bruno@clisp.org>
52239
52240         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
52241
52242 2007-05-27  Bruno Haible  <bruno@clisp.org>
52243
52244         * modules/openmp: New file.
52245         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
52246         Noah Misch.
52247
52248 2007-05-26  Bruno Haible  <bruno@clisp.org>
52249
52250         * modules/chdir-long (Depends-on): Add fchdir.
52251         * modules/chdir-safer (Depends-on): Likewise.
52252         * modules/fts (Depends-on): Likewise.
52253         * modules/fts-lgpl (Depends-on): Likewise.
52254         * modules/openat (Depends-on): Likewise.
52255         * modules/savewd (Depends-on): Likewise.
52256
52257 2007-05-24  Eric Blake  <ebb9@byu.net>
52258
52259         Fix lseek on mingw.
52260         * modules/lseek: New module.
52261         * m4/lseek.m4: New file.
52262         * lib/lseek.c: New file.
52263         * modules/lseek-tests: New file.
52264         * tests/test-lseek.c: New file.
52265         * tests/test-lseek.sh: New file.
52266         * MODULES.html.sh: Document lseek module.
52267         * modules/fflush (Depends-on): Add lseek, fseeko.
52268         * modules/fseeko (Depends-on): Likewise.
52269         * modules/ftello (Depends-on): Likewise.
52270         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
52271         broken.
52272         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
52273         broken.
52274         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
52275         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
52276         * lib/ftello.c (rpl_ftello): Likewise.
52277         * tests/test-fseeko.c (main): Test this.
52278         * tests/test-fseeko.sh: Likewise.
52279         * tests/test-ftello.c (main): Likewise.
52280         * tests/test-ftello.sh: Likewise.
52281         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
52282         implies replacing fseek.
52283         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
52284         HAVE_FTELLO.
52285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
52286         * modules/unistd (Makefile.am): Likewise.
52287         * lib/unistd_.h (lseek): Declare a replacement.
52288         * doc/functions/lseek.texi (lseek): Document this fix.
52289         * doc/functions/fseek.texi (fseek): Likewise.
52290         * doc/functions/ftell.texi (ftell): Likewise.
52291
52292 2007-05-24  Bruno Haible  <bruno@clisp.org>
52293
52294         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
52295         in the printed representation of a NaN.
52296         * tests/test-vasprintf-posix.c (test_function): Likewise.
52297         * tests/test-snprintf-posix.h (test_function): Likewise.
52298         * tests/test-sprintf-posix.h (test_function): Likewise.
52299         Reported by Eric Blake.
52300
52301 2007-05-23  Eric Blake  <ebb9@byu.net>
52302
52303         Fix fseeko/ftello on cygwin 1.5.24.
52304         * doc/functions/fseeko.texi (fseeko): Document the fix.
52305         * doc/functions/ftello.texi (ftello): Document the fix.
52306         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
52307         * doc/functions/stdout.text (stdout): New file.
52308         * doc/functions/stderr.text (stderr): New file.
52309         * doc/gnulib.texi (Function Substitutes): Use new files.
52310         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
52311         prior to 1.7.0.
52312         * tests/test-ftello.c (main): Likewise for ftello.
52313         * tests/test-fseeko.sh: New file.
52314         * tests/test-ftello.sh: New file.
52315         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
52316         with seekable stdin.
52317         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
52318         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
52319         (gl_REPLACE_FSEEKO): New macro.
52320         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
52321         * modules/fseeko (Files): Distribute fseeko.c.
52322         * modules/ftello (Files): Distribute ftello.c.
52323         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
52324         mode.
52325         * lib/ftello.c (rpl_ftello): New file.
52326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
52327         fseeko, ftello.
52328         (gl_STDIN_LARGE_OFFSET): New macro.
52329         * modules/stdio (Makefile.am): Perform the replacement.
52330         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
52331
52332 2007-05-23  Bruno Haible  <bruno@clisp.org>
52333
52334         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
52335         GNULIB_POSIXCHECK is defined.
52336
52337 2007-05-21  Bruno Haible  <bruno@clisp.org>
52338
52339         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
52340         Check also the output for NaN arguments. When cross-compiling, guess
52341         no on IRIX.
52342         * lib/vasnprintf.c: Update comments.
52343         * tests/test-vasnprintf-posix.c (strisnan): New function.
52344         (test_function): Use it.
52345         * tests/test-vasprintf-posix.c (strisnan): New function.
52346         (test_function): Use it.
52347         * tests/test-snprintf-posix.h (strisnan): New function.
52348         (test_function): Use it.
52349         * tests/test-sprintf-posix.h (strisnan): New function.
52350         (test_function): Use it.
52351         Reported by Eric Blake.
52352
52353 2007-05-20  Bruno Haible  <bruno@clisp.org>
52354
52355         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
52356         numbers that fails on BeOS.
52357         * doc/functions/frexpl.texi: Update.
52358
52359 2007-05-20  Jim Meyering  <jim@meyering.net>
52360
52361         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
52362         forced upon us by glibc-2.6.
52363
52364 2007-05-20  Bruno Haible  <bruno@clisp.org>
52365
52366         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
52367         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
52368         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
52369         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
52370         NEED_PRINTF_INFINITE.
52371         (is_infinitel): New function.
52372         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
52373         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
52374         gl_PREREQ_VASNPRINTF_INFINITE.
52375         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
52376         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52377         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
52378         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
52379         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
52380         gl_PREREQ_VASNPRINTF_INFINITE.
52381         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52382         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52383         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52384         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52385         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52386         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52387         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52388         * doc/functions/fprintf.texi: Update.
52389         * doc/functions/printf.texi: Update.
52390         * doc/functions/snprintf.texi: Update.
52391         * doc/functions/sprintf.texi: Update.
52392         * doc/functions/vfprintf.texi: Update.
52393         * doc/functions/vprintf.texi: Update.
52394         * doc/functions/vsnprintf.texi: Update.
52395         * doc/functions/vsprintf.texi: Update.
52396
52397 2007-05-20  Bruno Haible  <bruno@clisp.org>
52398
52399         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
52400         was not found in libc.
52401         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
52402
52403 2007-05-20  Bruno Haible  <bruno@clisp.org>
52404
52405         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
52406         printed as "-nan" instead of "nan".
52407         * tests/test-vasprintf-posix.c (test_function): Likewise.
52408         * tests/test-snprintf-posix.h (test_function): Likewise.
52409         * tests/test-sprintf-posix.h (test_function): Likewise.
52410         Needed for HP-UX 11.
52411
52412 2007-05-20  Jim Meyering  <jim@meyering.net>
52413
52414         Fix buggy test for the fchownat-deref bug.
52415         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
52416         symlink required for the run-test.  Without it, this test would
52417         always declare that fchownat doesn't work, and client code would
52418         unnecessarily use the replacement function with fixed libc.
52419         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
52420         Reported by Greg Schafer.
52421
52422 2007-05-19  Bruno Haible  <bruno@clisp.org>
52423
52424         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
52425         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
52426         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
52427         Needed for IRIX 6.5 and Solaris 2.5.1.
52428
52429 2007-05-19  Bruno Haible  <bruno@clisp.org>
52430
52431         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
52432         (test_function): Skip tests involving -0.0 on platforms where
52433         -0.0 = 0.0.
52434         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
52435         (test_function): Skip tests involving -0.0 on platforms where
52436         -0.0 = 0.0.
52437         * tests/test-snprintf-posix.h (have_minus_zero): New function.
52438         (test_function): Skip tests involving -0.0 on platforms where
52439         -0.0 = 0.0.
52440         * tests/test-sprintf-posix.h (have_minus_zero): New function.
52441         (test_function): Skip tests involving -0.0 on platforms where
52442         -0.0 = 0.0.
52443         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
52444         tests.
52445         * tests/test-printf-posix.h (test_function): Likewise.
52446         * tests/test-printf-posix.output: Remove all -0.0 related results.
52447         Needed for IRIX 6.5.
52448
52449 2007-05-19  Bruno Haible  <bruno@clisp.org>
52450
52451         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
52452         printed as "nan0x7fffffff" instead of "nan".
52453         * tests/test-vasprintf-posix.c (test_function): Likewise.
52454         * tests/test-snprintf-posix.h (test_function): Likewise.
52455         * tests/test-sprintf-posix.h (test_function): Likewise.
52456         * tests/test-fprintf-posix.h (NaN): Remove macro.
52457         (test_function): Remove all NaN related tests.
52458         * tests/test-printf-posix.h (NaN): Remove macro.
52459         (test_function): Remove all NaN related tests.
52460         * tests/test-printf-posix.output: Remove all NaN related results.
52461         Needed for IRIX 6.5.
52462
52463 2007-05-19  Bruno Haible  <bruno@clisp.org>
52464
52465         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
52466         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
52467
52468 2007-05-19  Bruno Haible  <bruno@clisp.org>
52469
52470         * lib/float_.h: New file.
52471         * m4/float_h.m4: New file.
52472         * modules/float: New file.
52473         * modules/isnanl (Dependencies): Add float.
52474         * modules/isnanl-nolibm (Dependencies): Likewise.
52475         * modules/mathl (Dependencies): Likewise.
52476         * modules/printf-frexpl (Dependencies): Likewise.
52477         * modules/signbit (Dependencies): Likewise.
52478         * modules/vasnprintf (Dependencies): Likewise.
52479         * doc/headers/float.texi: Update.
52480
52481 2007-05-19  Jim Meyering  <jim@meyering.net>
52482
52483         * lib/utimens.c (gl_futimens): Rename from futimens,
52484         now that glibc-2.6 declares futimens.
52485         * lib/utimens.h: Likewise.
52486
52487 2007-05-19  Bruno Haible  <bruno@clisp.org>
52488
52489         Avoid test failures on mingw.
52490         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
52491         * tests/test-printf-posix.sh: Likewise.
52492         * tests/test-vfprintf-posix.sh: Likewise.
52493         * tests/test-vprintf-posix.sh: Likewise.
52494
52495 2007-05-19  Bruno Haible  <bruno@clisp.org>
52496
52497         Fix *printf result for NaN, Inf, -0.0 on mingw.
52498         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
52499         * lib/vasnprintf.c: Include math.h and isnan.h.
52500         (is_infinite_or_zero): New function.
52501         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
52502         values in the %f, %F, %e, %E, %g, %G directives.
52503         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
52504         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52505         gl_PRINTF_INFINITE and test its result. Invoke
52506         gl_PREREQ_VASNPRINTF_INFINITE.
52507         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52508         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52509         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52510         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52511         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52512         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52513         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52514         * doc/functions/fprintf.texi: Update.
52515         * doc/functions/printf.texi: Update.
52516         * doc/functions/snprintf.texi: Update.
52517         * doc/functions/sprintf.texi: Update.
52518         * doc/functions/vfprintf.texi: Update.
52519         * doc/functions/vprintf.texi: Update.
52520         * doc/functions/vsnprintf.texi: Update.
52521         * doc/functions/vsprintf.texi: Update.
52522
52523 2007-05-19  Bruno Haible  <bruno@clisp.org>
52524
52525         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
52526         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
52527         Instead of multiplying with 10^k, set extra_zeroes to k.
52528         (scale10_round_long_double): Remove function.
52529
52530 2007-05-18  Bruno Haible  <bruno@clisp.org>
52531
52532         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
52533         introduced on 2007-05-06.
52534
52535 2007-05-18  Bruno Haible  <bruno@clisp.org>
52536
52537         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
52538         %g directives.
52539         * tests/test-vasprintf-posix.c (test_function): Likewise.
52540         * tests/test-snprintf-posix.h (test_function): Likewise.
52541         * tests/test-sprintf-posix.h (test_function): Likewise.
52542
52543 2007-05-18  Bruno Haible  <bruno@clisp.org>
52544
52545         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
52546         (strmatch): New function.
52547         (test_function): Test the %f directive on numbers of various exponents.
52548         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
52549         (strmatch): New function.
52550         (test_function): Test the %f directive on numbers of various exponents.
52551         * tests/test-snprintf-posix.h (strmatch): New function.
52552         (test_function): Test the %f directive on numbers of various exponents.
52553         * tests/test-sprintf-posix.h (strmatch): New function.
52554         (test_function): Test the %f directive on numbers of various exponents.
52555         * tests/test-snprintf-posix.c (SIZEOF): New macro.
52556         * tests/test-sprintf-posix.c (SIZEOF): New macro.
52557         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
52558         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
52559
52560 2007-05-18  Bruno Haible  <bruno@clisp.org>
52561
52562         Add support for 'long double' number output.
52563         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
52564         * lib/vasnprintf.c: Include math.h and float+.h.
52565         (mp_limb_t): New type.
52566         (GMP_LIMB_BITS): New macro.
52567         (mp_twolimb_t): New type.
52568         (GMP_TWOLIMB_BITS): New macro.
52569         (mpn_t): New type.
52570         (multiply, divide, convert_to_decimal, decode_long_double,
52571         scale10_round_long_double, scale10_round_decimal_long_double,
52572         floorlog10l): New functions.
52573         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
52574         for the %f, %F, %e, %E, %g, %G directives.
52575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
52576         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52577         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
52578         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
52579         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52580         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52581         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52582         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52583         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52584         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52585         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52586         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
52587         * modules/snprintf-posix (Depends-on): Likewise.
52588         * modules/sprintf-posix (Depends-on): Likewise.
52589         * modules/vasnprintf-posix (Depends-on): Likewise.
52590         * modules/vasprintf-posix (Depends-on): Likewise.
52591         * modules/vfprintf-posix (Depends-on): Likewise.
52592         * modules/vsnprintf-posix (Depends-on): Likewise.
52593         * modules/vsprintf-posix (Depends-on): Likewise.
52594         * modules/vasnprintf (Files): Add lib/float+.h.
52595         * doc/functions/fprintf.texi: Update.
52596         * doc/functions/printf.texi: Update.
52597         * doc/functions/snprintf.texi: Update.
52598         * doc/functions/sprintf.texi: Update.
52599         * doc/functions/vfprintf.texi: Update.
52600         * doc/functions/vprintf.texi: Update.
52601         * doc/functions/vsnprintf.texi: Update.
52602         * doc/functions/vsprintf.texi: Update.
52603
52604 2007-05-18  Bruno Haible  <bruno@clisp.org>
52605
52606         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
52607
52608 2007-05-18  Bruno Haible  <bruno@clisp.org>
52609
52610         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
52611         for printing 64-bit integers. Needed for mingw.
52612
52613 2007-05-18  Bruno Haible  <bruno@clisp.org>
52614
52615         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52616         gl_FUNC_FREXPL_WORKS.
52617         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
52618
52619 2007-05-18  Bruno Haible  <bruno@clisp.org>
52620
52621         * modules/frexpl-nolibm-tests: New file.
52622
52623         * modules/frexpl-nolibm: New file.
52624         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
52625
52626 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52627
52628         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
52629         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52630         GCC 4.2, which otherwise issues a lot of warnings.
52631         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
52632         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
52633         Likewise.
52634         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
52635         * modules/iconv_open (iconv.h): Likewise.
52636         * modules/locale (locale.h): Likewise.
52637         * modules/netinet_in (netinet/in.h): Likewise.
52638         * modules/sys_select (sys_select.h): Likewise.
52639         * modules/sys_socket (sys/socket.h): Likewise.
52640         * modules/sys_stat (sys/stat.h): Likewise.
52641         * modules/sysexits (sysexits.h): Likewise.
52642         * modules/unistd (unistd.h): Likewise.
52643
52644 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52645
52646         * modules/closein-tests (Makefile.am): Distribute
52647         `test-closein.sh'.
52648
52649 2007-05-17  Bruno Haible  <bruno@clisp.org>
52650
52651         * tests/test-printf-posix.output: Renamed from
52652         tests/test-fprintf-posix.out.
52653         * modules/fprintf-posix-tests: Update.
52654         * modules/printf-posix-tests: Update.
52655         * modules/vfprintf-posix-tests: Update.
52656         * modules/vprintf-posix-tests: Update.
52657         * tests/test-fprintf-posix.sh: Update.
52658         * tests/test-printf-posix.sh: Update.
52659         * tests/test-vfprintf-posix.sh: Update.
52660         * tests/test-vprintf-posix.sh: Update.
52661         Reported by Ralf Wildenhues.
52662
52663 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52664
52665         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
52666         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52667         GCC 4.2, which otherwise issues a lot of warnings.
52668         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
52669         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
52670         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
52671         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
52672         it should no longer be needed.
52673         * lib/string_.h: Likewise.
52674         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
52675         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
52676         * modules/inttypes (inttypes.h): Likewise.
52677         * modules/math (math.h): Likewise.
52678         * modules/search (search.h): Likewise.
52679         * modules/signal (signal.h): Likewise.
52680         * modules/stdint (stdint.h): Likewise.
52681         * modules/stdio (stdio.h): Likewise.
52682         * modules/stdlib (stdlib.h): Likewise.
52683         * modules/string (string.h): Likewise.
52684         * modules/sys_time (sys/time.h): Likewise.
52685         * modules/time (time.h): Likewise.
52686         * modules/wchar (wchar.h): Likewise.
52687         * modules/wctype (wtype.h): Likewise.
52688
52689 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52690
52691         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
52692
52693 2007-05-13  Bruno Haible  <bruno@clisp.org>
52694
52695         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
52696         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52697         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
52698         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52699         (gl_PREREQ_STRTOK_R): Don't require it here.
52700
52701 2007-05-13  Bruno Haible  <bruno@clisp.org>
52702
52703         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
52704         when used in C++ mode.
52705
52706 2007-05-12  Bruno Haible  <bruno@clisp.org>
52707
52708         * lib/linebuffer.h: Tweak doc.
52709         * lib/linebuffer.c: Likewise.
52710
52711 2007-05-12  James Youngman  <jay@gnu.org>
52712
52713         * lib/linebuffer.c (readlinebuffer_delim): New function,
52714         like readlinebuffer, but use a caller-specified delimiter.
52715         (readlinebuffer): Just call readlinebuffer_delim with '\n'
52716         as the delimiter.
52717         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
52718
52719 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52720
52721         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
52722         * modules/openat (Files): Remove openat-die.c.
52723         (Depends-on): Add openat-die.
52724         * modules/openat-die: New module.
52725
52726 2007-05-06  Bruno Haible  <bruno@clisp.org>
52727
52728         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
52729         Update with info about Cygwin.
52730         * doc/functions/fprintf.texi: Update.
52731         * doc/functions/printf.texi: Update.
52732         * doc/functions/snprintf.texi: Update.
52733         * doc/functions/sprintf.texi: Update.
52734         * doc/functions/vfprintf.texi: Update.
52735         * doc/functions/vprintf.texi: Update.
52736         * doc/functions/vsnprintf.texi: Update.
52737         * doc/functions/vsprintf.texi: Update.
52738         Reported by Eric Blake.
52739
52740 2007-05-06  Bruno Haible  <bruno@clisp.org>
52741
52742         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
52743         padding ourselves for the floating-point directives.
52744         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
52745         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
52746         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52747         gl_PRINTF_FLAG_ZERO and test its result. Invoke
52748         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
52749         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52750         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52751         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52752         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52753         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52754         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52755         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52756         * tests/test-snprintf-posix.h (test_function): Also check the width
52757         and some flags in the %f directive.
52758         * tests/test-sprintf-posix.h (test_function): Likewise.
52759         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52760         * tests/test-vasprintf-posix.c (test_function): Likewise.
52761         * doc/functions/fprintf.texi: Update.
52762         * doc/functions/printf.texi: Update.
52763         * doc/functions/snprintf.texi: Update.
52764         * doc/functions/sprintf.texi: Update.
52765         * doc/functions/vfprintf.texi: Update.
52766         * doc/functions/vprintf.texi: Update.
52767         * doc/functions/vsnprintf.texi: Update.
52768         * doc/functions/vsprintf.texi: Update.
52769
52770 2007-05-06  Bruno Haible  <bruno@clisp.org>
52771
52772         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
52773         pass the ' flag character to sprintf or snprintf.
52774         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
52775         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
52776         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52777         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
52778         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
52779         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52780         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52781         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52782         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52783         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52784         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52785         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52786         * tests/test-snprintf-posix.h (test_function): Also check the grouping
52787         flag.
52788         * tests/test-sprintf-posix.h (test_function): Likewise.
52789         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52790         * tests/test-vasprintf-posix.c (test_function): Likewise.
52791         * doc/functions/fprintf.texi: Update.
52792         * doc/functions/printf.texi: Update.
52793         * doc/functions/snprintf.texi: Update.
52794         * doc/functions/sprintf.texi: Update.
52795         * doc/functions/vfprintf.texi: Update.
52796         * doc/functions/vprintf.texi: Update.
52797         * doc/functions/vsnprintf.texi: Update.
52798         * doc/functions/vsprintf.texi: Update.
52799
52800 2007-05-01  Bruno Haible  <bruno@clisp.org>
52801
52802         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
52803
52804 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
52805
52806         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
52807         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
52808
52809 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52810
52811         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
52812         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
52813         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
52814
52815 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
52816
52817         * lib/argp-help.c (struct hol_entry): New member `ord'.
52818         (HOL_ENTRY_PTRCMP): Use ord for comparison
52819         (hol_sort): Initialize ord.
52820
52821 2007-05-01  Bruno Haible  <bruno@clisp.org>
52822
52823         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
52824         Reported by Eric Blake.
52825         * doc/gnulib.texi (Function Substitutes): Update.
52826
52827 2007-05-01  Bruno Haible  <bruno@clisp.org>
52828
52829         * doc/functions.texi: Remove file, now redundant through
52830         doc/functions/*.texi.
52831
52832 2007-05-01  Bruno Haible  <bruno@clisp.org>
52833
52834         * modules/argp (Depends-on): Add sleep.
52835
52836 2007-05-01  Bruno Haible  <bruno@clisp.org>
52837
52838         * modules/sleep-tests: New file.
52839         * tests/test-sleep.c: New file.
52840
52841         * modules/sleep: New file.
52842         * lib/sleep.c: New file.
52843         * m4/sleep.m4: New file.
52844         * lib/unistd_.h (sleep): New declaration.
52845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
52846         HAVE_SLEEP.
52847         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
52848         * doc/functions/sleep.texi: Document the sleep module.
52849
52850 2007-05-01  Bruno Haible  <bruno@clisp.org>
52851
52852         * lib/sigprocmask.h: Remove file.
52853         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
52854         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
52855         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
52856         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
52857         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
52858         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
52859         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
52860         HAVE_SIGSET_T as a shell variable.
52861         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
52862         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
52863         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
52864         (Depends-on): Add signal. Remove verify.
52865         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
52866         (Include): Mention <signal.h> instead of sigprocmask.h.
52867         * NEWS: Mention the change.
52868         * lib/fatal-signal.c: Don't include sigprocmask.h.
52869
52870 2007-05-01  Bruno Haible  <bruno@clisp.org>
52871
52872         * modules/signal: New file.
52873         * lib/signal_.h: New file.
52874         * m4/signal_h.m4: New file.
52875
52876 2007-05-01  Bruno Haible  <bruno@clisp.org>
52877
52878         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
52879         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
52880         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
52881         HAVE_WCTYPE_CTMP_BUG into wctype.h.
52882
52883 2007-05-01  Bruno Haible  <bruno@clisp.org>
52884
52885         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
52886         configure time.
52887         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
52888         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
52889         * modules/sys_stat (Makefile.am): Substitute their values into
52890         sys/stat.h.
52891
52892 2007-05-01  Bruno Haible  <bruno@clisp.org>
52893
52894         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
52895         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
52896         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
52897
52898 2007-05-01  Bruno Haible  <bruno@clisp.org>
52899
52900         * doc/header/assert.texi: Undo last change: don't mention the gnulib
52901         'assert' module here.
52902
52903 2007-05-01  Bruno Haible  <bruno@clisp.org>
52904
52905         * doc/functions/*.texi: New files.
52906         * doc/functions/google-ranking.txt: New file.
52907         * doc/gnulib.texi (Function Substitutes): New chapter.
52908         (ctime, inet_ntoa): Remove sections.
52909         * doc/ctime.texi: Remove file.
52910         * doc/inet_ntoa.texi: Remove file.
52911         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
52912         dependencies.
52913         (%.info): New rule, specifying a --reference-limit.
52914
52915 2007-05-01  Bruno Haible  <bruno@clisp.org>
52916
52917         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
52918
52919 2007-05-01  Bruno Haible  <bruno@clisp.org>
52920
52921         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
52922         the portability of 'mkdir' to mingw systems.
52923
52924 2007-05-01  Bruno Haible  <bruno@clisp.org>
52925
52926         * doc/headers/google-ranking.txt: New file.
52927
52928 2007-04-30  Eric Blake  <ebb9@byu.net>
52929
52930         Prefer fseeko to fseek.
52931         * modules/getpass (Depends-on): Add fseeko.
52932         * lib/getpass.c (getpass): Use fseeko, not fseek.
52933
52934 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
52935
52936         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
52937         assumes the sorting is stable, while most qsort implementations
52938         are not.  Use argument addresses to ensure they never compare as
52939         equal.
52940
52941         * tests/test-argp-2.sh (usage-indent test): Fix output
52942         (func_compare): Restore diff options
52943         * tests/test-argp.c: Restore #include "progname.h"
52944
52945 2007-04-29  Bruno Haible  <bruno@clisp.org>
52946
52947         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
52948         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52949         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
52950         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52951         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
52952         (configure.ac): Define CHECK_SNPRINTF_POSIX.
52953         (TESTS, check_PROGRAMS): Add test-snprintf.
52954         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
52955         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
52956         (TESTS, check_PROGRAMS): Add test-vsnprintf.
52957         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
52958         assertions that fail on HP-UX, OSF/1, or IRIX.
52959         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
52960
52961 2007-04-29  Bruno Haible  <bruno@clisp.org>
52962
52963         * MODULES.html.sh (posix_functions): Remove 'contents'.
52964
52965 2007-04-29  Karl Berry  <karl@gnu.org>
52966
52967         * config/srclist.txt (gendocs_template_min): new entry.
52968
52969 2007-04-29  Bruno Haible  <bruno@clisp.org>
52970
52971         Work around fpurge bug on BSD systems.
52972         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
52973         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
52974         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
52975         fpurge to rpl_fpurge if the system already has this function.
52976         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
52977         the case where the system already has this function. Correct invariants
52978         on BSD systems.
52979         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
52980         BSD systems.
52981
52982 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52983
52984         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
52985         proposed by Sven Verdoolaege.
52986
52987         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
52988         options.
52989         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
52990         (usage and help tests): Update
52991
52992 2007-04-29  Bruno Haible  <bruno@clisp.org>
52993
52994         * tests/test-fflush.c (main): Use a file of size 17, not 10.
52995         Print more information in case of failure. Disable a test on BeOS.
52996
52997 2007-04-29  Bruno Haible  <bruno@clisp.org>
52998
52999         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
53000         This helps debugging on systems on which no gdb is available.
53001
53002 2007-04-29  Bruno Haible  <bruno@clisp.org>
53003
53004         * lib/freading.h: Improve comments.
53005         * lib/fwriting.h: Likewise.
53006         * tests/test-freading.c (main): Don't check freading immediately after
53007         repositioning. Needed for glibc.
53008
53009 2007-04-29  Bruno Haible  <bruno@clisp.org>
53010
53011         * lib/freading.c (freading): Trivial simplification.
53012
53013 2007-04-28  Bruno Haible  <bruno@clisp.org>
53014
53015         * tests/test-fwriting.c (main): Also test the interaction between
53016         fflush and fwriting.
53017         * modules/fwriting-tests (Depends-on): Add fflush.
53018
53019         * tests/test-freading.c (main): Also test the interaction between
53020         fflush and freading.
53021         * modules/freading-tests (Depends-on): Add fflush.
53022
53023 2007-04-28  Bruno Haible  <bruno@clisp.org>
53024
53025         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
53026         fseeko and ftello.
53027         Suggested by Eric Blake.
53028
53029 2007-04-28  Jim Meyering  <jim@meyering.net>
53030
53031         Avoid false-negative in gl_STDINT_H's C99 conformance test.
53032         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
53033         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
53034
53035 2007-04-27  Eric Blake  <ebb9@byu.net>
53036
53037         * doc/headers/assert.texi (assert.h): Document assert module use.
53038
53039 2007-04-27  Bruno Haible  <bruno@clisp.org>
53040
53041         * doc/headers/*.texi: New files.
53042         * doc/gnulib.texi (Header File Substitutes): New chapter.
53043         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
53044         dependencies.
53045         (standards.info ,standards.html, standards.dvi): Update dependencies.
53046         (mostlyclean, clean): New targets.
53047
53048 2007-04-27  Bruno Haible  <bruno@clisp.org>
53049
53050         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
53051         * modules/sysexits (Files, Makefile.am): Update.
53052
53053         * lib/sys_socket_.h: Renamed from lib/socket_.h.
53054         * modules/sys_socket (Files, Makefile.am): Update.
53055
53056         * lib/sys_stat_.h: Renamed from lib/stat_.h.
53057         * modules/sys_stat (Files, Makefile.am): Update.
53058
53059 2007-04-27  Eric Blake  <ebb9@byu.net>
53060
53061         * lib/freading.h: Improve comments.
53062         * lib/fwriting.h: Likewise.
53063         * lib/fflush.c: Likewise.
53064
53065         Fix closein for mingw.
53066         * modules/closein-tests: Add tests for closein.
53067         * tests/test-closein.c: New file.
53068         * tests/test-closein.sh: Likewise.
53069         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
53070         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
53071
53072 2007-04-27  Bruno Haible  <bruno@clisp.org>
53073
53074         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
53075         version is < 6.
53076         * lib/math_.h [__DECC]: Likewise.
53077         * lib/stdio_.h [__DECC]: Likewise.
53078         * lib/stdlib_.h [__DECC]: Likewise.
53079         * lib/string_.h [__DECC]: Likewise.
53080         * lib/time_.h [__DECC]: Likewise.
53081         * lib/wchar_.h [__DECC]: Likewise.
53082         * lib/wctype_.h [__DECC]: Likewise.
53083
53084 2007-04-27  Bruno Haible  <bruno@clisp.org>
53085
53086         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
53087
53088 2007-04-27  Bruno Haible  <bruno@clisp.org>
53089
53090         * lib/fflush.c: Add comments.
53091         * modules/fpurge-tests (Depends-on): Add fflush.
53092         * modules/freadable-tests (Depends-on): Likewise.
53093         * modules/fwritable-tests (Depends-on): Likewise.
53094
53095 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
53096
53097         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
53098         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
53099         Report by Bruno Haible <bruno@clisp.org>.
53100
53101 2007-04-26  Eric Blake  <ebb9@byu.net>
53102
53103         Fix fflush on mingw.
53104         * modules/fflush (Depends-on): Add freading.
53105         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
53106         but unread data.
53107
53108 2007-04-26  Eric Blake  <ebb9@byu.net>
53109         and Bruno Haible  <bruno@clisp.org>
53110
53111         Implement freading and fwriting.
53112         * lib/freading.c: New file.
53113         * lib/freading.h: Likewise.
53114         * m4/freading.m4: Likewise.
53115         * modules/freading: Likewise.
53116         * modules/freading-tests: Likewise.
53117         * tests/test-freading.c: Likewise.
53118         * lib/fwriting.c: New file.
53119         * lib/fwriting.h: Likewise.
53120         * m4/fwriting.m4: Likewise.
53121         * modules/fwriting: Likewise.
53122         * modules/fwriting-tests: Likewise.
53123         * tests/test-fwriting.c: Likewise.
53124         * MODULES.html.sh (File stream based Input/Output): Mention them.
53125
53126 2007-04-26  Bruno Haible  <bruno@clisp.org>
53127
53128         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
53129         'long' when we assume it.
53130         Suggested by Eric Blake.
53131
53132 2007-04-26  Bruno Haible  <bruno@clisp.org>
53133
53134         Ensure fseeko, ftello are declared on glibc systems.
53135         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
53136         * modules/fseeko (configure.ac-early): Likewise.
53137         * modules/ftello (configure.ac-early): Likewise.
53138         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
53139         AC_FUNC_FSEEKO for this.
53140         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
53141         (gl_CHECK_FSEEKO): Remove macro.
53142
53143 2007-04-26  Bruno Haible  <bruno@clisp.org>
53144
53145         * tests/test-fflush.c (main): Also check the ftell result after
53146         fflush and fseek/fseeko.
53147         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
53148         file descriptor position cache in the stream.
53149         * lib/fseeko.c (rpl_fseeko): Likewise.
53150
53151 2007-04-26  Bruno Haible  <bruno@clisp.org>
53152
53153         * modules/fflush-tests (Depends-on): Add fseeko.
53154
53155 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
53156             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53157
53158         * lib/argz_.h: ensure error_t definition is obtained in same
53159         mechanism system argz.h would have.
53160         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
53161         argz facilities are known bad.  Err on the side of caution if
53162         cross-compiling.
53163
53164 2007-04-25  Eric Blake  <ebb9@byu.net>
53165
53166         * lib/fpurge.c (includes): Use stdlib.h for free.
53167         * tests/test-fflush.c (main): Also test fflush-fseeko.
53168
53169 2007-04-25  Bruno Haible  <bruno@clisp.org>
53170
53171         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
53172         * lib/fseeko.c: New file.
53173         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
53174         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
53175         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
53176         gl_FUNC_FSEEKO.
53177         (gl_FUNC_FSEEKO): Invoke it.
53178         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
53179         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
53180         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
53181
53182 2007-04-25  Bruno Haible  <bruno@clisp.org>
53183
53184         * modules/fflush (Depends-on): Add ftello.
53185
53186 2007-04-25  Bruno Haible  <bruno@clisp.org>
53187
53188         * modules/ftello-tests: New file.
53189         * tests/test-ftello.c: New file.
53190
53191         * modules/ftello: New file.
53192         * m4/ftello.m4: New file.
53193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
53194         HAVE_FTELLO.
53195         * lib/stdio_.h (ftello): New declaration.
53196         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
53197         HAVE_FTELLO.
53198
53199 2007-04-25  Bruno Haible  <bruno@clisp.org>
53200
53201         * modules/fseeko-tests: New file.
53202         * tests/test-fseeko.c: New file.
53203
53204         * modules/fseeko: New file.
53205         * m4/fseeko.m4: New file.
53206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
53207         HAVE_FSEEKO.
53208         * lib/stdio_.h (fseeko): New declaration.
53209         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
53210         HAVE_FSEEKO.
53211
53212 2007-04-25  Bruno Haible  <bruno@clisp.org>
53213
53214         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
53215
53216 2007-04-25  Bruno Haible  <bruno@clisp.org>
53217
53218         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
53219         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
53220         * tests/test-unistd.c: Likewise.
53221         * tests/test-fcntl.c: Likewise.
53222
53223 2007-04-23  Eric Blake  <ebb9@byu.net>
53224
53225         * lib/fflush.c: Fix missing include.
53226         Reported by Bruno Haible.
53227
53228 2007-04-23  Bruno Haible  <bruno@clisp.org>
53229
53230         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
53231         Reported by Eric Blake.
53232
53233 2007-04-23  Bruno Haible  <bruno@clisp.org>
53234
53235         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
53236
53237 2007-04-23  Bruno Haible  <bruno@clisp.org>
53238
53239         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
53240
53241 2007-04-23  Bruno Haible  <bruno@clisp.org>
53242
53243         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
53244         Needed on HP-UX 11.
53245
53246 2007-04-16  Eric Blake  <ebb9@byu.net>
53247
53248         Make fflush rely on fpurge.
53249         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
53250         open coding all variants.
53251         * modules/fflush (Depends-on): Add fpurge and unistd.
53252         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
53253         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
53254
53255         Fix --with-tests compilation on cygwin.
53256         * modules/argmatch-tests (Makefile.am): List gnulib library first
53257         in LDADD.
53258         * modules/argp-tests (Makefile.am): Likewise.
53259         * modules/array-list-tests (Makefile.am): Likewise.
53260         * modules/array-oset-tests (Makefile.am): Likewise.
53261         * modules/avltree-list-tests (Makefile.am): Likewise.
53262         * modules/avltree-oset-tests (Makefile.am): Likewise.
53263         * modules/avltreehash-list-tests (Makefile.am): Likewise.
53264         * modules/carray-list-tests (Makefile.am): Likewise.
53265         * modules/dirname-tests (Makefile.am): Likewise.
53266         * modules/frexp-tests (Makefile.am): Likewise.
53267         * modules/isnanl-tests (Makefile.am): Likewise.
53268         * modules/linked-list-tests (Makefile.am): Likewise.
53269         * modules/linkedhash-list-tests (Makefile.am): Likewise.
53270         * modules/lock-tests (Makefile.am): Likewise.
53271         * modules/rbtree-list-tests (Makefile.am): Likewise.
53272         * modules/rbtree-oset-tests (Makefile.am): Likewise.
53273         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
53274         * modules/tls-tests (Makefile.am): Likewise.
53275         * modules/tsearch-tests (Makefile.am): Likewise.
53276         * modules/xvasprintf-tests (Makefile.am): Likewise.
53277
53278         Fix fpurge for cygwin.
53279         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
53280         value.
53281         * modules/fpurge-tests (Depends-on): Clean up trash.
53282
53283 2007-04-16  Simon Josefsson  <simon@josefsson.org>
53284
53285         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
53286
53287         * m4/autobuild.m4: Re-indent.
53288
53289 2007-04-13  Bruno Haible  <bruno@clisp.org>
53290
53291         * modules/fpurge-tests: New file.
53292         * tests/test-fpurge.c: New file.
53293
53294         * modules/fpurge: New file.
53295         * lib/fpurge.h: New file.
53296         * lib/fpurge.c: New file.
53297         * m4/fpurge.m4: New file.
53298
53299 2007-04-13  Bruno Haible  <bruno@clisp.org>
53300
53301         * modules/fbufmode-tests: New file.
53302         * tests/test-fbufmode.c: New file.
53303
53304         * modules/fbufmode: New file.
53305         * lib/fbufmode.h: New file.
53306         * lib/fbufmode.c: New file.
53307         * m4/fbufmode.m4: New file.
53308
53309 2007-04-13  Bruno Haible  <bruno@clisp.org>
53310
53311         * modules/fwritable-tests: New file.
53312         * tests/test-fwritable.c: New file.
53313
53314         * modules/fwritable: New file.
53315         * lib/fwritable.h: New file.
53316         * lib/fwritable.c: New file.
53317         * m4/fwritable.m4: New file.
53318
53319 2007-04-13  Bruno Haible  <bruno@clisp.org>
53320
53321         * modules/freadable-tests: New file.
53322         * tests/test-freadable.c: New file.
53323
53324         * modules/freadable: New file.
53325         * lib/freadable.h: New file.
53326         * lib/freadable.c: New file.
53327         * m4/freadable.m4: New file.
53328
53329 2007-04-13  Bruno Haible  <bruno@clisp.org>
53330
53331         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
53332         MOSTLYCLEANFILES.
53333
53334 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53335
53336         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
53337         gzip bootstrap.conf to avoid dragging in i18n machinery.
53338         (gnulib_tool_option): Use it.
53339
53340 2007-04-13  Bruno Haible  <bruno@clisp.org>
53341
53342         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
53343         %F directives.
53344         * tests/test-vasprintf-posix.c (test_function): Likewise.
53345         * tests/test-snprintf-posix.h (test_function): Likewise.
53346         * tests/test-sprintf-posix.h (test_function): Likewise.
53347         * tests/test-fprintf-posix.h (test_function): Likewise.
53348         * tests/test-printf-posix.h (test_function): Likewise.
53349         * tests/test-fprintf-posix.out: Likewise.
53350
53351 2007-04-13  Bruno Haible  <bruno@clisp.org>
53352
53353         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
53354         * modules/tls-tests (configure.ac): Likewise.
53355         Reported by Arto C. Nirkko <anirkko@insel.ch>.
53356
53357 2007-04-13  Bruno Haible  <bruno@clisp.org>
53358
53359         * lib/tls.c (glthread_tls_get): Fix return type.
53360         Patch by Arto C. Nirkko <anirkko@insel.ch>.
53361
53362 2007-04-12  Eric Blake  <ebb9@byu.net>
53363
53364         * modules/gettime (Depends-on): Remove gettime.
53365         Reported by Dmitry V. Levin.
53366
53367 2007-04-12  Bruno Haible  <bruno@clisp.org>
53368
53369         * modules/fflush (Include): Mention <stdio.h>.
53370         * modules/strtoimax (Include): Mention <inttypes.h>.
53371         * modules/strtoumax (Include): Likewise.
53372
53373 2007-04-12  Eric Blake  <ebb9@byu.net>
53374
53375         * .cvsignore: New file.
53376         * .gitignore: Likewise.
53377
53378 2007-04-12  Bruno Haible  <bruno@clisp.org>
53379
53380         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
53381         not before, since $(LDADD) often contains libgnu.a.
53382         * modules/striconv-tests (test_striconv_LDADD): Likewise.
53383         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
53384         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
53385         Needed on Cygwin.
53386
53387 2007-04-12  Eric Blake  <ebb9@byu.net>
53388
53389         Work around glibc's failure to flush stdin on fclose.
53390         * lib/closein.c (close_stdin): Flush stdin before closing.
53391
53392         Work around glibc's failure to reset seekable stdin on exit.
53393         * modules/closein: New module.
53394         * lib/closein.c: New file.
53395         * lib/closein.h: Likewise.
53396         * m4/closein.m4: Likewise.
53397         * MODULES.html.sh (File stream based Input/Output): Document it.
53398
53399 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53400
53401         * gnulib-tool: Rename generated 'autobuild' script to
53402         'do-autobuild' in --create-megatestdir output.
53403
53404         * doc/gnulib.texi (Build robot for gnulib): Fix.
53405
53406 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53407
53408         * modules/sysexits (Depends-on): Add absolute-header.
53409
53410 2007-04-12  Eric Blake  <ebb9@byu.net>
53411
53412         No need to preserve errno on success.
53413         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
53414         Reported by Bruno Haible.
53415
53416 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53417
53418         * MODULES.html.sh (Support for maintaining and releasing
53419         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
53420
53421 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53422
53423         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
53424
53425 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53426
53427         * modules/autobuild: New module.
53428
53429         * m4/autobuild.m4: New file.
53430
53431 2007-04-11  Bruno Haible  <bruno@clisp.org>
53432
53433         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
53434         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
53435         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
53436         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
53437         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53438         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53439         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53440         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53441         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53442         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53443         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
53444         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53445         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53446         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
53447         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53448         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53449         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
53450         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53451         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53452         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
53453         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53454         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53455         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
53456         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53457         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53458         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
53459         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53460         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53461         Reported by Eric Blake.
53462
53463 2007-04-11  Bruno Haible  <bruno@clisp.org>
53464
53465         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
53466
53467 2007-04-10  Bruno Haible  <bruno@clisp.org>
53468
53469         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
53470         for NaN and Infinity. Needed on FreeBSD 6.1.
53471         * tests/test-vasnprintf-posix.c (test_function): Undo last change
53472         regarding results for "%010a" of Infinity and NaN.
53473         * tests/test-vasprintf-posix.c (test_function): Likewise.
53474         * tests/test-snprintf-posix.h (test_function): Likewise.
53475         * tests/test-sprintf-posix.h (test_function): Likewise.
53476         * tests/test-fprintf-posix.h (test_function): Likewise.
53477         * tests/test-printf-posix.h (test_function): Likewise.
53478         * tests/test-fprintf-posix.out: Likewise.
53479
53480 2007-04-10  Bruno Haible  <bruno@clisp.org>
53481
53482         * modules/locale-tests: New file.
53483         * tests/test-locale.c: New file.
53484
53485         * modules/locale: New file.
53486         * lib/locale_.h: New file.
53487         * m4/locale_h.m4: New file.
53488
53489 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
53490             Bruno Haible  <bruno@clisp.org>
53491
53492         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
53493         be determined, test for availability of the copysignf, copysign,
53494         copysignl functions.
53495         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
53496         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
53497         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
53498
53499 2007-04-09  Eric Blake  <ebb9@byu.net>
53500
53501         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
53502         * modules/stdio (Makefile.am): Support fflush.
53503         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53504         * modules/fflush: New file.
53505         * lib/fflush.c: Likewise.
53506         * m4/fflush.m4: Likewise.
53507         * modules/fflush-tests: New test.
53508         * tests/test-fflush.c: Likewise.
53509         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
53510
53511 2007-04-06  Bruno Haible  <bruno@clisp.org>
53512
53513         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
53514         (VASNPRINTF): Use signbit for faster determination whether to print a
53515         minus sign.
53516         * modules/vasnprintf (Files): Remove lib/float+.h.
53517         * modules/fprintf-posix (Depends-on): Add signbit.
53518         * modules/snprintf-posix (Depends-on): Likewise.
53519         * modules/sprintf-posix (Depends-on): Likewise.
53520         * modules/vasnprintf-posix (Depends-on): Likewise.
53521         * modules/vasprintf-posix (Depends-on): Likewise.
53522         * modules/vfprintf-posix (Depends-on): Likewise.
53523         * modules/vsnprintf-posix (Depends-on): Likewise.
53524         * modules/vsprintf-posix (Depends-on): Likewise.
53525
53526 2007-04-06  Bruno Haible  <bruno@clisp.org>
53527
53528         * tests/test-frexp.c (main): Test also the sign bit of zero results.
53529         * tests/test-frexpl.c (main): Likewise.
53530         * tests/test-ldexpl.c (main): Likewise.
53531         * modules/frexp-tests (Depends-on): Add signbit.
53532         * modules/frexpl-tests (Depdends-on): Likewise.
53533         * modules/ldexpl-tests (Depdends-on): Likewise.
53534
53535 2007-04-06  Bruno Haible  <bruno@clisp.org>
53536
53537         * modules/signbit-tests: New file.
53538         * tests/test-signbit.c: New file.
53539
53540         * modules/signbit: New file.
53541         * lib/signbitf.c: New file.
53542         * lib/signbitd.c: New file.
53543         * lib/signbitl.c: New file.
53544         * m4/signbit.m4: New file.
53545         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
53546         (signbit): New macro.
53547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
53548         REPLACE_SIGNBIT.
53549         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
53550         REPLACE_FREXPL into math.h.
53551
53552 2007-04-06  Bruno Haible  <bruno@clisp.org>
53553
53554         * modules/isnanf-nolibm-tests: New file.
53555         * tests/test-isnanf.c: New file.
53556
53557         * modules/isnanf-nolibm: New file.
53558         * lib/isnanf.h: New file.
53559         * lib/isnanf.c: New file.
53560         * lib/isnan.c: Consider the USE_FLOAT macro.
53561         * m4/isnanf.m4: New file.
53562
53563 2007-04-06  Bruno Haible  <bruno@clisp.org>
53564
53565         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
53566         (Link): New section.
53567
53568         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
53569
53570 2007-04-06  Bruno Haible  <bruno@clisp.org>
53571
53572         Assume the 'long double' type.
53573         * m4/longdouble.m4: Remove file.
53574         * config/srclist.txt: Don't mention longdouble.m4.
53575         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
53576         * lib/float+.h: Likewise.
53577         * lib/frexp.c: Likewise.
53578         * lib/printf-args.h: Likewise.
53579         * lib/printf-args.c: Likewise.
53580         * lib/printf-frexp.c: Likewise.
53581         * lib/printf-parse.c: Likewise.
53582         * lib/vasnprintf.c: Likewise.
53583         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
53584         * m4/intl.m4: Likewise.
53585         * m4/isnanl.m4: Likewise.
53586         * m4/printf.m4: Likewise.
53587         * m4/printf-frexpl.m4: Likewise.
53588         * m4/vasnprintf.m4: Likewise.
53589         * modules/allocsa (Files): Remove m4/longdouble.m4.
53590         * modules/gettext (Files): Likewise.
53591         * modules/relocatable-prog-wrapper (Files): Likewise.
53592         * modules/vasnprintf (Files): Likewise.
53593         * modules/isnanl (Files): Likewise.
53594         (Include): Simplify.
53595         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
53596         (Include): Simplify.
53597         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
53598         (Include): Simplify.
53599         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
53600         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53601         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
53602         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53603         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53604         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53605         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
53606         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53607         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53608         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53609         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
53610         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53611         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
53612         * tests/test-isnanl.c: Likewise.
53613         * tests/test-snprintf-posix.h: Likewise.
53614         * tests/test-sprintf-posix.h: Likewise.
53615         * tests/test-vasnprintf-posix.c: Likewise.
53616         * tests/test-vasnprintf-posix2.c: Likewise.
53617         * tests/test-vasprintf-posix.c: Likewise.
53618
53619 2007-04-06  Bruno Haible  <bruno@clisp.org>
53620
53621         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
53622         * lib/math_.h [__DECC]: Include the overridden include file through
53623         #include_next, outside the double-inclusion guard.
53624         * lib/stdio_.h [__DECC]: Likewise.
53625         * lib/stdlib_.h [__DECC]: Likewise.
53626         * lib/string_.h [__DECC]: Likewise.
53627         * lib/time_.h [__DECC]: Likewise.
53628         * lib/wchar_.h [__DECC]: Likewise.
53629         * lib/wctype_.h [__DECC]: Likewise.
53630         * lib/inttypes_.h [__DECC]: Likewise.
53631         Reported by Albert Chin <china@thewrittenword.com> in
53632         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
53633
53634 2007-04-04  Eric Blake  <ebb9@byu.net>
53635
53636         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
53637         1.5.x.
53638
53639 2007-04-04  Bruno Haible  <bruno@clisp.org>
53640
53641         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
53642         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
53643
53644 2007-04-04  Bruno Haible  <bruno@clisp.org>
53645
53646         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
53647         results for "%010a" of Infinity and NaN.
53648         * tests/test-vasprintf-posix.c (test_function): Likewise.
53649         * tests/test-snprintf-posix.h (test_function): Likewise.
53650         * tests/test-sprintf-posix.h (test_function): Likewise.
53651         * tests/test-fprintf-posix.h (test_function): Remove these tests.
53652         * tests/test-printf-posix.h (test_function): Likewise.
53653         * tests/test-fprintf-posix.out: Update.
53654         Needed for FreeBSD 6.1.
53655
53656 2007-04-04  Bruno Haible  <bruno@clisp.org>
53657
53658         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
53659         directly used by the gnulib modules nor by gnulib-tool.
53660
53661 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53662
53663         * DEPENDENCIES: Give overall description of version dependency
53664         desirability.  Use more-typical names for apps.
53665         Add shell, coreutils, diffutils, grep, tar, gzip.
53666
53667 2007-04-04  Simon Josefsson  <simon@josefsson.org>
53668
53669         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
53670
53671 2007-04-04  Karl Berry  <karl@gnu.org>
53672
53673         * MODULES.html.sh (func_module): missing '.
53674
53675 2007-04-03  Bruno Haible  <bruno@clisp.org>
53676
53677         * modules/argmatch-tests (Makefile.am): New variable
53678         test_argmatch_LDADD.
53679         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
53680         * modules/array-list-tests (Makefile.am): New variable
53681         test_array_list_LDADD.
53682         * modules/array-oset-tests (Makefile.am): New variable
53683         test_array_oset_LDADD.
53684         * modules/avltree-list-tests (Makefile.am): New variable
53685         test_avltree_list_LDADD.
53686         * modules/avltree-oset-tests (Makefile.am): New variable
53687         test_avltree_oset_LDADD.
53688         * modules/avltreehash-list-tests (Makefile.am): New variable
53689         test_avltreehash_list_LDADD.
53690         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
53691         test_canonicalize_lgpl_LDADD.
53692         * modules/carray-list-tests (Makefile.am): New variable
53693         test_carray_list_LDADD.
53694         * modules/dirname-tests (Makefile.am): New variable
53695         test_dirname_LDADD.
53696         * modules/linked-list-tests (Makefile.am): New variable
53697         test_linked_list_LDADD.
53698         * modules/linkedhash-list-tests (Makefile.am): New variable
53699         test_linkedhash_list_LDADD.
53700         * modules/rbtree-list-tests (Makefile.am): New variable
53701         test_rbtree_list_LDADD.
53702         * modules/rbtree-oset-tests (Makefile.am): New variable
53703         test_rbtree_oset_LDADD.
53704         * modules/rbtreehash-list-tests (Makefile.am): New variable
53705         test_rbtreehash_list_LDADD.
53706         * modules/xvasprintf-tests (Makefile.am): New variable
53707         test_xvasprintf_LDADD.
53708         Reported by Eric Blake.
53709
53710 2007-04-03  Eric Blake  <ebb9@byu.net>
53711
53712         * DEPENDENCIES: Weaken m4 requirements.
53713
53714 2007-04-03  Bruno Haible  <bruno@clisp.org>
53715
53716         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
53717         * modules/isnanl-tests (configure.ac): Likewise.
53718
53719 2007-04-03  Ben Pfaff  <blp@gnu.org>
53720
53721         * modules/iconv_open: Add $(srcdir)/ to source directory
53722         references in Makefile fragments that call gperf, to fix VPATH
53723         builds.
53724
53725 2007-04-03  Bruno Haible  <bruno@clisp.org>
53726
53727         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
53728         * lib/ldexpl.c: Undo last change.
53729
53730 2007-04-03  Bruno Haible  <bruno@clisp.org>
53731
53732         * modules/printf-frexpl (Depends-on): Undo last change.
53733         (Files): Add m4/ldexpl.m4.
53734
53735 2007-04-03  Bruno Haible  <bruno@clisp.org>
53736
53737         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
53738         * modules/isnanl (Link): New section.
53739
53740         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
53741         * modules/frexp (Link): New section.
53742
53743         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
53744         * modules/frexpl (Link): New section.
53745
53746         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
53747         * modules/ldexpl (Link): New section.
53748
53749 2007-04-03  Bruno Haible  <bruno@clisp.org>
53750
53751         * modules/TEMPLATE-EXTENDED: New file.
53752         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
53753
53754 2007-04-03  Bruno Haible  <bruno@clisp.org>
53755
53756         * DEPENDENCIES: New file.
53757         Suggested by Simon Josefsson.
53758
53759 2007-04-03  Bruno Haible  <bruno@clisp.org>
53760
53761         * doc/gnulib.texi: Escape @.
53762
53763 2007-04-03  James Youngman  <jay@gnu.org>
53764         and Paul Eggert  <eggert@cs.ucla.edu>
53765
53766         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
53767         birthtime on all systems that have birthtime, not just those which
53768         use st_birthtimensec rather than st_birthtim.  Putting zero in
53769         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
53770         that the birth time is not available for files on an NFS mount.
53771
53772 2007-04-03  Simon Josefsson  <simon@josefsson.org>
53773
53774         * modules/memxor: Move back from crypto/, suggested by Bruno.
53775         * modules/crypto/hmac-sha1: Fix memxor dependency.
53776
53777         * modules/crypto/gc: Moved from ../.
53778
53779 2007-04-02  Eric Blake  <ebb9@byu.net>
53780
53781         * lib/ldexpl.c (includes): Avoid libm.
53782
53783         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
53784
53785 2007-04-02  Bruno Haible  <bruno@clisp.org>
53786
53787         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
53788         on IRIX.
53789
53790 2007-04-02  Bruno Haible  <bruno@clisp.org>
53791
53792         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
53793         x86 or x86_64 platforms running MacOS X.
53794         Reported by Ryan Schmidt <@ryandesign.com>.
53795
53796 2007-04-02  Bruno Haible  <bruno@clisp.org>
53797
53798         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
53799         i386.
53800
53801 2007-04-01  Simon Josefsson  <simon@josefsson.org>
53802
53803         * modules/crypto/arcfour: Moved from ../.
53804         * modules/crypto/arcfour-tests: Moved from ../.
53805         * modules/crypto/arctwo: Moved from ../.
53806         * modules/crypto/arctwo-tests: Moved from ../.
53807         * modules/crypto/des: Moved from ../.
53808         * modules/crypto/des-tests: Moved from ../.
53809         * modules/crypto/gc-arcfour: Moved from ../.
53810         * modules/crypto/gc-arcfour-tests: Moved from ../.
53811         * modules/crypto/gc-arctwo: Moved from ../.
53812         * modules/crypto/gc-arctwo-tests: Moved from ../.
53813         * modules/crypto/gc-des: Moved from ../.
53814         * modules/crypto/gc-des-tests: Moved from ../.
53815         * modules/crypto/gc-hmac-md5: Moved from ../.
53816         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
53817         * modules/crypto/gc-hmac-sha1: Moved from ../.
53818         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
53819         * modules/crypto/gc-md2: Moved from ../.
53820         * modules/crypto/gc-md2-tests: Moved from ../.
53821         * modules/crypto/gc-md4: Moved from ../.
53822         * modules/crypto/gc-md4-tests: Moved from ../.
53823         * modules/crypto/gc-md5: Moved from ../.
53824         * modules/crypto/gc-md5-tests: Moved from ../.
53825         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
53826         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
53827         * modules/crypto/gc-random: Moved from ../.
53828         * modules/crypto/gc-rijndael: Moved from ../.
53829         * modules/crypto/gc-rijndael-tests: Moved from ../.
53830         * modules/crypto/gc-sha1: Moved from ../.
53831         * modules/crypto/gc-sha1-tests: Moved from ../.
53832         * modules/crypto/gc-tests: Moved from ../.
53833         * modules/crypto/hmac-md5: Moved from ../.
53834         * modules/crypto/hmac-md5-tests: Moved from ../.
53835         * modules/crypto/hmac-sha1: Moved from ../.
53836         * modules/crypto/hmac-sha1-tests: Moved from ../.
53837         * modules/crypto/md2: Moved from ../.
53838         * modules/crypto/md2-tests: Moved from ../.
53839         * modules/crypto/md4: Moved from ../.
53840         * modules/crypto/md4-tests: Moved from ../.
53841         * modules/crypto/md5: Moved from ../.
53842         * modules/crypto/md5-tests: Moved from ../.
53843         * modules/crypto/memxor: Moved from ../.
53844         * modules/crypto/rijndael: Moved from ../.
53845         * modules/crypto/rijndael-tests: Moved from ../.
53846         * modules/crypto/sha1: Moved from ../.
53847
53848 2007-03-30  James Youngman  <jay@gnu.org>
53849
53850         * tests/test-stat-time.c (prepare_test): use chmod() rather than
53851         rename() to change the ctime of a file (because ctime is unaffected
53852         by rename on jfs2 on AIX 5.1).
53853         (main): Start by doing cleanup, in case a previous run failed leaving
53854         test files behind.
53855
53856 2007-03-31  Bruno Haible  <bruno@clisp.org>
53857
53858         Support old proprietary implementations of iconv.
53859         * modules/iconv_open: New file.
53860         * lib/iconv_.h: New file.
53861         * m4/iconv_h.m4: New file.
53862         * lib/iconv_open.c: New file.
53863         * lib/iconv_open-aix.gperf: New file.
53864         * lib/iconv_open-hpux.gperf: New file.
53865         * lib/iconv_open-irix.gperf: New file.
53866         * lib/iconv_open-osf.gperf: New file.
53867         * m4/iconv_open.m4: New file.
53868         * modules/linebreak (Depends-on): Add iconv_open.
53869         * modules/striconv (Depends-on): Likewise.
53870         * modules/striconveh (Depends-on): Likewise.
53871         * modules/unicodeio (Depends-on): Likewise.
53872         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
53873         (iconv_t)(-1).
53874         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
53875         conversion if cd is (iconv_t)(-1).
53876         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
53877         is not possible.
53878
53879 2007-03-31  Bruno Haible  <bruno@clisp.org>
53880
53881         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53882         work on Solaris either. Protect also second use of "autodetect_jp".
53883
53884 2007-03-31  Bruno Haible  <bruno@clisp.org>
53885
53886         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
53887         the function is not present.
53888
53889 2007-03-31  Bruno Haible  <bruno@clisp.org>
53890
53891         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
53892         the function is not present.
53893
53894 2007-03-31  Bruno Haible  <bruno@clisp.org>
53895
53896         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
53897         a bug in HP-UX iconv_open().
53898
53899 2007-03-31  Bruno Haible  <bruno@clisp.org>
53900
53901         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
53902         (Mathematics <math.h>): New section, add fpieee.
53903         (Input/output <stdio.h>): Add fseterr.
53904         (Mathematics <math.h>): New section, add printf-frexp.
53905         (Container data structures): Add sublist.
53906         (Core language properties): Add fpucw, inline.
53907         (Functions for greatest-width integer types <inttypes.h>): Add
53908         imaxabs, imaxdiv, inttypes.
53909         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
53910         isnanl-nolibm, ldexp.
53911         (Mathematics <math.h>): New section, add printf-frexpl.
53912         (Support for systems lacking POSIX:2001): Add fprintf-posix,
53913         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
53914         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
53915         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
53916         (Unicode string functions): Add unistr/u*-mbtoucr.
53917         (Java): Add javacomp-script, javaexec-script.
53918         (C#): Add csharpcomp-script, csharpexec-script.
53919         (Support for building libraries and executables): Add havelib,
53920         relocatable-*.
53921         (Support for maintaining and releasing projects): Renamed from
53922         'Support for maintaining and release projects'. Add announce-gen.
53923
53924 2007-03-31  Bruno Haible  <bruno@clisp.org>
53925
53926         * README: Talk primarily about git.
53927         (git and CVS): Renamed from CVS.
53928         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
53929         gnulib is available through git.
53930         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
53931
53932 2007-03-30  Bruno Haible  <bruno@clisp.org>
53933
53934         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
53935         * lib/poll_.h: Likewise.
53936         * lib/stat_.h: Likewise.
53937         * lib/sys_time_.h: Likewise.
53938         * lib/sysexit_.h: Likewise.
53939         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
53940         * lib/stdbool_.h: Likewise.
53941         * lib/byteswap_.h: Add double-inclusion guard.
53942
53943 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
53944
53945         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
53946
53947 2007-03-30  Karl Berry  <karl@gnu.org>
53948
53949         * config/srclist-update: double space after USA in the license
53950         substitution, since that's how it's usually (?) written.
53951
53952 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53953
53954         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
53955         reported by Bruno Haible.
53956
53957 2007-03-29  Bruno Haible  <bruno@clisp.org>
53958
53959         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
53960         a bug in AIX iconv().
53961
53962 2007-03-29  Bruno Haible  <bruno@clisp.org>
53963
53964         * modules/ldexpl-tests: New file.
53965         * tests/test-ldexpl.c: New file.
53966
53967 2007-03-29  Bruno Haible  <bruno@clisp.org>
53968
53969         * lib/ldexpl.c: Include fpucw.h.
53970         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
53971         multiplication.
53972         * modules/ldexpl (Depends-on): Add fpucw.
53973
53974 2007-03-29  Bruno Haible  <bruno@clisp.org>
53975
53976         * modules/ldexpl: New file.
53977         * m4/ldexpl.m4: New file.
53978         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
53979         set.
53980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
53981         REPLACE_LDEXPL.
53982         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
53983         REPLACE_LDEXPL.
53984         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53985         gl_FUNC_LDEXPL_WORKS.
53986         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
53987         * modules/mathl (Files): Remove lib/ldexpl.c.
53988         (Depends-on): Add ldexpl.
53989
53990 2007-03-29  Bruno Haible  <bruno@clisp.org>
53991
53992         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
53993
53994 2007-03-29  Bruno Haible  <bruno@clisp.org>
53995
53996         * tests/test-striconveh.c (main): Don't assume that a direct conversion
53997         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
53998         and possibly also HP-UX.
53999         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
54000         work on AIX, IRIX, HP-UX, OSF/1.
54001         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
54002         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
54003         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
54004         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
54005         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
54006         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
54007
54008 2007-03-29  Bruno Haible  <bruno@clisp.org>
54009
54010         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
54011
54012 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
54013
54014         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
54015         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
54016
54017 2007-03-29  Eric Blake  <ebb9@byu.net>
54018
54019         * lib/acl-internal.h: Remove redundant include.
54020         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
54021         Cygwin when a file is locked.
54022
54023 2007-03-29  Bruno Haible  <bruno@clisp.org>
54024
54025         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
54026         file.
54027         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
54028
54029 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
54030
54031         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
54032         try to remove a parent directory if the child couldn't be removed
54033         (except for the first rmdir, which could fail because the child
54034         doesn't exist).  Problem reported by Jeff Blaine in
54035         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
54036
54037 2007-03-28  Bruno Haible  <bruno@clisp.org>
54038
54039         * lib/striconveh.c (utf8conv_carefully): New function.
54040         (mem_cd_iconveh_internal): Invoke it.
54041
54042 2007-03-28  Bruno Haible  <bruno@clisp.org>
54043
54044         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
54045         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
54046         input.
54047         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
54048         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
54049         unistr/u8-uctomb.
54050
54051 2007-03-28  Bruno Haible  <bruno@clisp.org>
54052
54053         * modules/unistr/u8-mbtoucr: New file.
54054         * lib/unistr/u8-mbtoucr.c: New file.
54055         * modules/unistr/u16-mbtoucr: New file.
54056         * lib/unistr/u16-mbtoucr.c: New file.
54057         * modules/unistr/u16-mbtoucr: New file.
54058         * lib/unistr/u16-mbtoucr.c: New file.
54059         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
54060
54061 2007-03-27  Simon Josefsson  <simon@josefsson.org>
54062             Bruno Haible  <bruno@clisp.org>
54063
54064         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
54065         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
54066         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
54067
54068         * m4/stdio_h.m4: Add stubs for vasprintf too.
54069
54070         * modules/stdio: Support vasprintf in sed command.
54071
54072         * modules/vasprintf: Depend on stdio for prototypes.  Remove
54073         vasprintf.h.  Add stdio module indicator.
54074
54075         * lib/stdio_.h: Declare asprintf and vasprintf, based on
54076         vasprintf.h.
54077
54078         * lib/vasprintf.h: File removed.
54079
54080         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
54081         * lib/vasprintf.c: Ditto.
54082         * lib/xvasprintf.c: Ditto.
54083         * tests/test-vasprintf-posix.c: Ditto.
54084         * tests/test-vasprintf.c: Ditto.
54085
54086 2007-03-27  Bruno Haible  <bruno@clisp.org>
54087
54088         Make vasnprintf multithread-safe.
54089         * lib/vasnprintf.c (decimal_point_char): New function.
54090         (VASNPRINTF): Use it.
54091         Suggested by Simon Josefsson.
54092
54093 2007-03-27  Eric Blake  <ebb9@byu.net>
54094
54095         Support sub-second birthtime on cygwin.
54096         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
54097         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
54098         (get_stat_birthtime): Also work with st_birthtim.
54099
54100 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
54101
54102         * lib/stat-time.h (USE_BIRTHTIME): Remove.
54103         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
54104         (get_stat_birthtime_ns): Do not try to use "spare" fields.
54105         (get_stat_birthtime_ns): Simplify compile-time tests.
54106         (get_stat_birthtime): Change the API to look like
54107         get_stat_mtime etc., except return a negative tv_nsec on error.
54108         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
54109         Don't check for "spare" fields.
54110         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
54111         or for struct stat.st_birthtime, as these tests aren't used.
54112         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
54113
54114 2007-03-27  Bruno Haible  <bruno@clisp.org>
54115
54116         * lib/stat-time.h: Include <sys/stat.h>.
54117
54118 2007-03-27  James Youngman  <jay@gnu.org>
54119
54120         * lib/stat-time.h (get_stat_birthtime): New function for
54121           retrieving st_birthtime as provided by UFS2 (hence *BSD).
54122         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
54123           and its variants.
54124         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
54125         * modules/stat-time-test: New file.
54126         * tests/test-stat-time.c: New test, devised by Bruno Haible.
54127
54128 2007-03-26  Bruno Haible  <bruno@clisp.org>
54129
54130         Better support of signalling NaNs.
54131         * lib/atanl.c: Include isnanl.h.
54132         (atanl): Perform test for NaN at the beginning of the function and
54133         through a call to isnanl.
54134         * lib/cosl.c: Include isnanl.h.
54135         (cosl): Perform test for NaN at the beginning of the function and
54136         through a call to isnanl.
54137         * lib/ldexpl.c: Include isnanl.h.
54138         (ldexpl): Perform test for NaN through a call to isnanl.
54139         * lib/logl.c: Include isnanl.h.
54140         (logl): Perform test for NaN at the beginning of the function and
54141         through a call to isnanl.
54142         * lib/sinl.c: Include isnanl.h.
54143         (sinl): Perform test for NaN at the beginning of the function and
54144         through a call to isnanl.
54145         * lib/sqrtl.c: Include isnanl.h.
54146         (sqrtl): Perform test for NaN at the beginning of the function and
54147         through a call to isnanl.
54148         * lib/tanl.c: Include isnanl.h.
54149         (tanl): Perform test for NaN at the beginning of the function and
54150         through a call to isnanl.
54151         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
54152         * modules/mathl (Depends-on): Add isnanl.
54153
54154 2007-03-26  Eric Blake  <ebb9@byu.net>
54155
54156         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
54157         regression in logic sense of previous patch.
54158
54159 2007-03-26  Bruno Haible  <bruno@clisp.org>
54160
54161         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
54162         unportable shell command "if ! ...".
54163         Reported by Ralf Wildenhues.
54164
54165 2007-03-25  Bruno Haible  <bruno@clisp.org>
54166
54167         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
54168         <sysexits.h> file, and only add EX_CONFIG.
54169         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
54170         absolute file name and whether it is sufficient. Substitute also
54171         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
54172         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
54173         ABSOLUTE_SYSEXITS_H into sysexits.h.
54174
54175 2007-03-25  Bruno Haible  <bruno@clisp.org>
54176
54177         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
54178         hints is NULL.
54179
54180 2007-03-25  Bruno Haible  <bruno@clisp.org>
54181
54182         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
54183         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
54184
54185 2007-03-25  Bruno Haible  <bruno@clisp.org>
54186
54187         * lib/vasnprintf.c: Include langinfo.h.
54188         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
54189         multithread-safe.
54190         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
54191         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
54192         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54193         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54194         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54195         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54196         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54197         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
54198         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54199         Reported by Simon Josefsson.
54200
54201 2007-03-25  Bruno Haible  <bruno@clisp.org>
54202
54203         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
54204         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
54205         * modules/vasnprintf (Depends-on): Add stdint.
54206
54207 2007-03-25  Bruno Haible  <bruno@clisp.org>
54208
54209         * modules/fpieee: New file.
54210         * m4/fpieee.m4: New file.
54211         * modules/isnan-nolibm (Depends-on): Add fpieee.
54212         * modules/isnanl-nolibm (Depends-on): Add fpieee.
54213         * modules/isnanl (Depends-on): Add fpieee.
54214
54215 2007-03-25  Bruno Haible  <bruno@clisp.org>
54216
54217         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
54218
54219 2007-03-25  Bruno Haible  <bruno@clisp.org>
54220
54221         Avoid test failures on IRIX 6.5.
54222         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
54223         (main): Use it.
54224         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
54225         macros.
54226         (main): Use them.
54227
54228 2007-03-25  Bruno Haible  <bruno@clisp.org>
54229
54230         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
54231         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
54232         exists but doesn't work.
54233         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
54234         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
54235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
54236         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
54237         math.h.
54238
54239 2007-03-25  Bruno Haible  <bruno@clisp.org>
54240
54241         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
54242         returns inf. Needed on IRIX 6.5.
54243
54244 2007-03-25  Bruno Haible  <bruno@clisp.org>
54245
54246         * tests/test-frexpl.c: Include isnanl-nolibm.h.
54247         (main): Use isnanl instead of x != x idiom.
54248         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
54249
54250         * tests/test-frexp.c: Include isnan.h.
54251         (main): Use isnan instead of x != x idiom.
54252         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
54253
54254 2007-03-25  Bruno Haible  <bruno@clisp.org>
54255
54256         * tests/test-frexp.c (NaN): New function/macro.
54257         (main): Use it instead of 0.0 / 0.0.
54258         * tests/test-isnan.c (NaN): New function/macro.
54259         (main): Use it instead of 0.0 / 0.0.
54260         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
54261         (test_function): Use it instead of 0.0 / 0.0.
54262         * tests/test-vasprintf-posix.c (NaN): New function/macro.
54263         (test_function): Use it instead of 0.0 / 0.0.
54264         * tests/test-snprintf-posix.h (NaN): New function/macro.
54265         (test_function): Use it instead of 0.0 / 0.0.
54266         * tests/test-sprintf-posix.h (NaN): New function/macro.
54267         (test_function): Use it instead of 0.0 / 0.0.
54268         * tests/test-fprintf-posix.h (NaN): New function/macro.
54269         (test_function): Use it instead of 0.0 / 0.0.
54270         * tests/test-printf-posix.h (NaN): New function/macro.
54271         (test_function): Use it instead of 0.0 / 0.0.
54272
54273         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
54274
54275 2007-03-25  Bruno Haible  <bruno@clisp.org>
54276
54277         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
54278
54279 2007-03-25  Bruno Haible  <bruno@clisp.org>
54280
54281         * lib/regexec.c (merge_state_with_log): Make static.
54282
54283 2007-03-25  Bruno Haible  <bruno@clisp.org>
54284
54285         * lib/trigl.c (kernel_rem_pio2): Make static.
54286
54287 2007-03-25  Bruno Haible  <bruno@clisp.org>
54288
54289         * lib/sincosl.c (sincosl_table): Make static.
54290
54291 2007-03-25  Bruno Haible  <bruno@clisp.org>
54292
54293         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
54294         if the compiler does not support C99.
54295
54296 2007-03-25  Bruno Haible  <bruno@clisp.org>
54297
54298         * modules/time (Makefile.am): Ensure all rule action lines start with a
54299         tab.
54300
54301 2007-03-24  Bruno Haible  <bruno@clisp.org>
54302
54303         * modules/tsearch-tests: New file.
54304         * tests/test-tsearch.sh: New file.
54305         * tests/test-tsearch.c: New file, mostly copied from glibc.
54306
54307         * modules/search-tests: New file.
54308         * tests/test-search.c: New file.
54309
54310         * modules/search: New file.
54311         * lib/search_.h: New file, incorporating lib/tsearch.h.
54312         * m4/search_h.m4: New file.
54313         * lib/tsearch.h: Remove file.
54314         * lib/tsearch.c: Include search.h instead of tsearch.h.
54315         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
54316         HAVE_TSEARCH.
54317         * modules/tsearch (Files): Remove lib/tsearch.h.
54318         (Depends-on): Add search.
54319         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
54320         (Include): Change tsearch.h into search.h.
54321
54322 2007-03-24  Bruno Haible  <bruno@clisp.org>
54323
54324         * modules/fpucw: New file.
54325         * lib/fpucw.h: New file.
54326         * lib/frexp.c: Include fpucw.h.
54327         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
54328         (FUNC): Use them.
54329         * lib/printf-frexp.c: Include fpucw.h.
54330         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
54331         (FUNC): Use them.
54332         * lib/vasnprintf.c: Include fpucw.h.
54333         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
54334         'long double' calculations.
54335         * tests/test-frexpl.c: Include fpucw.h.
54336         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
54337         * tests/test-printf-frexpl.c: Include fpucw.h.
54338         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
54339         * modules/frexpl (Depends-on): Add fpucw.
54340         * modules/printf-frexpl (Depends-on): Likewise.
54341         * modules/fprintf-posix (Depends-on): Likewise.
54342         * modules/snprintf-posix (Depends-on): Likewise.
54343         * modules/sprintf-posix (Depends-on): Likewise.
54344         * modules/vasnprintf-posix (Depends-on): Likewise.
54345         * modules/vasprintf-posix (Depends-on): Likewise.
54346         * modules/vfprintf-posix (Depends-on): Likewise.
54347         * modules/vsnprintf-posix (Depends-on): Likewise.
54348         * modules/vsprintf-posix (Depends-on): Likewise.
54349         * modules/frexpl-tests (Depends-on): Likewise.
54350         * modules/printf-frexpl-tests (Depends-on): Likewise.
54351
54352 2007-03-24  Bruno Haible  <bruno@clisp.org>
54353
54354         * lib/float+.h: New file.
54355         * lib/isnan.c: Include float+.h.
54356         (SIZE): New macro.
54357         (FUNC): Compare only SIZE bytes of the value.
54358         * lib/vasnprintf.c: Include float+.h.
54359         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
54360         SIZEOF_LDBL or SIZEOF_DBL bytes.
54361         * modules/isnan-nolibm (Files): Add lib/float+.h.
54362         * modules/isnanl-nolibm (Files): Add lib/float+.h.
54363         * modules/isnanl (Files): Add lib/float+.h.
54364         * modules/vasnprintf (Files): Add lib/float+.h.
54365
54366 2007-03-24  Bruno Haible  <bruno@clisp.org>
54367
54368         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
54369         include isnanl-nolibm.h.
54370
54371 2007-03-24  Bruno Haible  <bruno@clisp.org>
54372
54373         * tests/test-read-file.c (main): Don't produce spurious output for
54374         expected situations. Make the test fail if it encountered unexpected
54375         results.
54376
54377 2007-03-24  Bruno Haible  <bruno@clisp.org>
54378
54379         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
54380         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
54381
54382 2007-03-24  Bruno Haible  <bruno@clisp.org>
54383
54384         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
54385
54386 2007-03-24  Bruno Haible  <bruno@clisp.org>
54387
54388         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
54389         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
54390
54391         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
54392         * modules/utf8-ucs4: Turn into a symbolic link to module
54393         unistr/u8-mbtouc.
54394
54395         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
54396         utf8-ucs4-unsafe.
54397         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
54398         unistr/u8-mbtouc-unsafe.
54399
54400         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
54401         * modules/utf16-ucs4: Turn into a symbolic link to module
54402         unistr/u16-mbtouc.
54403
54404         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
54405         utf16-ucs4-unsafe.
54406         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
54407         unistr/u16-mbtouc-unsafe.
54408
54409         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
54410         * modules/ucs4-utf8: Turn into a symbolic link to module
54411         unistr/u8-ubtomb.
54412
54413         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
54414         * modules/ucs4-utf16: Turn into a symbolic link to module
54415         unistr/u16-ubtomb.
54416
54417 2007-03-24  Bruno Haible  <bruno@clisp.org>
54418
54419         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
54420         Enable the function only if HAVE_INLINE.
54421         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
54422         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
54423         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
54424         Enable the function only if HAVE_INLINE.
54425         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
54426         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
54427         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
54428         Enable the function only if HAVE_INLINE.
54429         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
54430         Enable the function only if HAVE_INLINE.
54431         * modules/utf8-ucs4: Update.
54432         * modules/utf8-ucs4-unsafe: Update.
54433         * modules/utf16-ucs4: Update.
54434         * modules/utf16-ucs4-unsafe: Update.
54435         * modules/ucs4-utf8: Update.
54436         * modules/ucs4-utf16: Update.
54437
54438 2007-03-24  Bruno Haible  <bruno@clisp.org>
54439
54440         * lib/utf8-ucs4.h: Remove file.
54441         * lib/utf8-ucs4-unsafe.h: Remove file.
54442         * lib/utf16-ucs4.h: Remove file.
54443         * lib/utf16-ucs4-unsafe.h: Remove file.
54444         * lib/ucs4-utf8.h: Remove file.
54445         * lib/ucs4-utf16.h: Remove file.
54446         * lib/unistr.h: Include their previous contents.
54447         * m4/utf-ucs4.m4: Remove file.
54448         * m4/ucs4-utf.m4: Remove file.
54449         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
54450         (Depends-on): Add unistr/base.
54451         (configure.ac): Remove gl_UTF_UCS4.
54452         (Makefile.am): Update.
54453         (Include): Change to unistr.h.
54454         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
54455         (Depends-on): Add unistr/base.
54456         (configure.ac): Remove gl_UTF_UCS4.
54457         (Makefile.am): Update.
54458         (Include): Change to unistr.h.
54459         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
54460         (Depends-on): Add unistr/base.
54461         (configure.ac): Remove gl_UTF_UCS4.
54462         (Makefile.am): Update.
54463         (Include): Change to unistr.h.
54464         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
54465         (Depends-on): Add unistr/base.
54466         (configure.ac): Remove gl_UTF_UCS4.
54467         (Makefile.am): Update.
54468         (Include): Change to unistr.h.
54469         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
54470         (Depends-on): Add unistr/base.
54471         (configure.ac): Remove gl_UCS4_UTF.
54472         (Makefile.am): Update.
54473         (Include): Change to unistr.h.
54474         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
54475         (Depends-on): Add unistr/base.
54476         (configure.ac): Remove gl_UCS4_UTF.
54477         (Makefile.am): Update.
54478         (Include): Change to unistr.h.
54479         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
54480         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
54481         utf8-ucs4-unsafe.h.
54482         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
54483         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
54484         utf16-ucs4-unsafe.h.
54485         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
54486         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
54487         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
54488         * lib/unistr/u8-strchr.c: Likewise.
54489         * lib/unistr/u8-strrchr.c: Likewise.
54490         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
54491         * lib/unistr/u16-strchr.c: Likewise.
54492         * lib/unistr/u16-strrchr.c: Likewise.
54493         * lib/striconveh.c: Update.
54494         * lib/linebreak.c: Update.
54495
54496 2007-03-24  Bruno Haible  <bruno@clisp.org>
54497
54498         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
54499         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
54500
54501 2007-03-22  Bruno Haible  <bruno@clisp.org>
54502
54503         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
54504
54505 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
54506
54507         * MODULES.html.sh (File system functions): New module write-any-file.
54508         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
54509         * m4/write-any-file.m4: New files.
54510
54511 2007-03-23  Eric Blake  <ebb9@byu.net>
54512
54513         * gnulib-tool: Rearrange space-tab sequences, since some editors
54514         like to eat them.
54515
54516 2007-03-23  Eric Blake  <ebb9@byu.net>
54517
54518         * lib/version-etc.c (version_etc_va): Update license wording to
54519         be more concise.  Recommended by Richard Stallman.
54520
54521 2007-03-22  Bruno Haible  <bruno@clisp.org>
54522
54523         * lib/poll.c (MSG_PEEK): New fallback definition.
54524
54525 2007-03-22  Bruno Haible  <bruno@clisp.org>
54526
54527         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
54528         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
54529         (main): Update.
54530         Fixes a compilation error on BeOS.
54531
54532 2007-03-22  Bruno Haible  <bruno@clisp.org>
54533
54534         * modules/frexpl-tests: New file.
54535         * tests/test-frexpl.c: New file.
54536
54537         * modules/frexpl: New file.
54538         * m4/frexpl.m4: New file.
54539         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
54540         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
54541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
54542         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
54543         (Depends-on): Add frexpl. Remove isnanl-nolibm.
54544         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
54545
54546 2007-03-22  Bruno Haible  <bruno@clisp.org>
54547
54548         * lib/frexpl.c: Share code with lib/frexp.c.
54549         * modules/mathl (Files): Add lib/frexp.c.
54550         (Depends-on): Add isnanl-nolibm.
54551
54552 2007-03-22  Bruno Haible  <bruno@clisp.org>
54553
54554         * modules/printf-frexp (Files): Add m4/frexp.m4.
54555         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
54556         only if the found frexp function actually works.
54557
54558 2007-03-22  Bruno Haible  <bruno@clisp.org>
54559
54560         * lib/frexp.c: Remove older implementation that uses divisions.
54561
54562 2007-03-21  Bruno Haible  <bruno@clisp.org>
54563
54564         * modules/frexp-tests: New file.
54565         * tests/test-frexp.c: New file.
54566
54567         * modules/frexp: New file.
54568         * lib/frexp.c: New file.
54569         * m4/frexp.m4: New file.
54570         * lib/math_.h (frexp): New declaration.
54571         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
54572         REPLACE_FREXP.
54573         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
54574
54575 2007-03-21  Bruno Haible  <bruno@clisp.org>
54576
54577         * modules/isnanl-tests: New file.
54578         * tests/test-isnanl.c: New file.
54579
54580         * modules/isnanl: New file.
54581         * lib/isnanl.h: New file.
54582         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
54583         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
54584         gl_FUNC_ISNANL_WORKS.
54585         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
54586         New macros.
54587
54588 2007-03-21  Bruno Haible  <bruno@clisp.org>
54589
54590         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
54591         lib/isnanl.h.
54592         (Include): Update.
54593         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
54594         * lib/vasnprintf.c: Update.
54595         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
54596         tests/test-isnanl.h, remove tests/test-isnanl.c.
54597         (Makefile.am): Update.
54598         * tests/test-isnanl-nolibm.c: New file.
54599         * tests/test-isnanl.h: New file.
54600         * tests/test-isnanl.c: Remove file.
54601
54602 2007-03-21  Jim Meyering  <jim@meyering.net>
54603
54604         When trying to open ".", treat ESTALE like EACCES.
54605         * lib/savewd.c (savewd_save): Resort to forking not just upon
54606         failure with EACCES, but also when errno is ESTALE.
54607
54608 2007-03-20  Bruno Haible  <bruno@clisp.org>
54609
54610         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
54611         Needed on AIX 5.1. Reported by Matthew Woehlke.
54612
54613 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54614
54615         Suggestions by Bruno Haible:
54616         * lib/acl-internal.h: Include "gettext.h" rather than rolling
54617         our own.
54618         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
54619         * modules/acl (Depends-on): Add gettext.
54620
54621 2007-03-19  Bruno Haible  <bruno@clisp.org>
54622
54623         * modules/iconvme: Remove file.
54624         * lib/iconvme.h: Remove file.
54625         * lib/iconvme.c: Remove file.
54626         * m4/iconvme.m4: Remove file.
54627
54628 2007-03-19  Bruno Haible  <bruno@clisp.org>
54629
54630         * doc/relocatable-maint.texi: Break long shell script line.
54631         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54632
54633 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54634
54635         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
54636         handle file_has_acl.
54637         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
54638         * lib/acl.c: Move header inclusions and related macro defns into
54639         lib/acl-internal.h.
54640         (S_ISLNK): Remove defn, since that's now done for us.
54641         (file_has_acl): Move to lib/file-has-acl.c.
54642         Call acl_trivial if available.  This is the crucial part of the fix.
54643         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
54644         shared within the library.  Rewrite a bit, partly to make it compatible
54645         with the GNU coding style.
54646         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
54647         Remove unnecessary double-quotes.
54648         Don't test for acl_to_text; the build will catch that.
54649         Replace acl_entries if it doesn't exist and it is needed.
54650         Check for -lsec and acl_trivial (as used on Solaris 10).
54651         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
54652         lib/file-has-acl.c.
54653         (Depends-on): Add sys_stat, for S_ISLNK.
54654
54655 2007-03-19  Ben Pfaff  <blp@gnu.org>
54656
54657         * doc/gnulib.texi: Fix typos.
54658         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54659
54660 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54661
54662         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
54663         If size is zero here, buf must be zero.
54664
54665 2007-03-19  Simon Josefsson  <simon@josefsson.org>
54666
54667         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
54668         <bruno@clisp.org>.
54669
54670 2007-03-18  Bruno Haible  <bruno@clisp.org>
54671
54672         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
54673         Suggested by Eric Blake.
54674
54675 2007-03-18  Ben Pfaff  <blp@gnu.org>
54676
54677         * doc/relocatable.texi: Recommend using as prefix a directory
54678         that does not exist and will never be created.  Based on
54679         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
54680         and others.
54681
54682 2007-03-17  Bruno Haible  <bruno@clisp.org>
54683
54684         * lib/fchownat.c: Include lchown.h.
54685
54686 2007-03-17  Bruno Haible  <bruno@clisp.org>
54687
54688         Fix endless loop when the given allocated size was > INT_MAX.
54689         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
54690         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
54691         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
54692         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
54693         * lib/sprintf.c (sprintf): Likewise.
54694
54695 2007-03-17  Bruno Haible  <bruno@clisp.org>
54696
54697         * tests/test-argp-2.sh (func_compare): Output a context diff.
54698
54699 2007-03-17  Bruno Haible  <bruno@clisp.org>
54700
54701         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
54702         locale's decimal-point character.
54703
54704 2007-03-17  Bruno Haible  <bruno@clisp.org>
54705
54706         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
54707         before comparing it. Needed because on some platforms (e.g. x86) a
54708         'long double' occupies less bytes than sizeof (long double).
54709
54710 2007-03-17  Bruno Haible  <bruno@clisp.org>
54711
54712         * tests/test-crc.c (main): Make printf statements 64-bit clean.
54713         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
54714         * tests/test-getaddrinfo.c (simple): Likewise.
54715         * tests/test-read-file.c (main): Likewise.
54716
54717 2007-03-17  Bruno Haible  <bruno@clisp.org>
54718
54719         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
54720
54721 2007-03-17  Bruno Haible  <bruno@clisp.org>
54722
54723         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
54724         unused variable.
54725
54726 2007-03-17  Bruno Haible  <bruno@clisp.org>
54727
54728         * tests/test-c-strcasecmp.c: Include c-strcase.h.
54729         * tests/test-c-strncasecmp.c: Likewise.
54730
54731 2007-03-17  Bruno Haible  <bruno@clisp.org>
54732
54733         * modules/stdlib (Depends-on): Add unistd.
54734         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
54735         Needed for MacOS X 10.3.
54736
54737 2007-03-17  Bruno Haible  <bruno@clisp.org>
54738
54739         * lib/unistr/u-strdup.h: Include <stdlib.h>.
54740
54741 2007-03-17  Bruno Haible  <bruno@clisp.org>
54742
54743         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
54744
54745 2007-03-17  Bruno Haible  <bruno@clisp.org>
54746
54747         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
54748         to reflect files copied from gnulib (with or without modifications).
54749         Suggested by Jim Meyering.
54750
54751 2007-03-17  Eric Blake  <ebb9@byu.net>
54752
54753         * NEWS: Document stdlib change from 2007-02-18.
54754
54755 2007-03-17  Jim Meyering  <jim@meyering.net>
54756
54757         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
54758         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
54759         someone uses a name containing shell meta-characters.
54760         Reported by Alfred M. Szmidt.
54761
54762         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
54763
54764 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54765
54766         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
54767         and copy gettext configuration files only if configure.ac contains
54768         a use of AM_GNU_GETTEXT_VERSION.
54769
54770 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54771
54772         * build-aux/bootstrap (gnulib_name): New variable.
54773         (gnulib_tool_options): Use it.
54774
54775 2007-03-13  Simon Josefsson  <simon@josefsson.org>
54776
54777         * tests/test-des.c: Use new namespace.
54778
54779 2007-03-15  Bruno Haible  <bruno@clisp.org>
54780
54781         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
54782         Reported by James Youngman <jay@gnu.org>.
54783
54784 2007-03-15  Bruno Haible  <bruno@clisp.org>
54785
54786         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
54787         declared prototype. Needed with cc on OSF/1 5.1.
54788
54789 2007-03-15  Bruno Haible  <bruno@clisp.org>
54790
54791         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
54792         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
54793         (struct gl_list_implementation): Add dispose_fn argument to the
54794         'create_empty', 'create' methods.
54795         (struct gl_list_impl_base): Add field 'dispose_fn'.
54796         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
54797         argument.
54798         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
54799         dispose_fn argument.
54800         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
54801         dispose_fn on the dropped values.
54802         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
54803         dispose_fn argument.
54804         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
54805         dropped values.
54806         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
54807         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54808         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
54809         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54810         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
54811         argument.
54812         (gl_tree_list_free): Call dispose_fn on the dropped values.
54813         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
54814         the dropped values.
54815         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54816         Add dispose_fn argument.
54817         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
54818         Call dispose_fn on the dropped values.
54819         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
54820         Add dispose_fn argument.
54821         (gl_sublist_create): Initialize the 'dispose_fn' field.
54822         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
54823         * tests/test-array_list.c (main): Update.
54824         * tests/test-carray_list.c (main): Update.
54825         * tests/test-avltree_list.c (main): Update.
54826         * tests/test-rbtree_list.c (main): Update.
54827         * tests/test-avltreehash_list.c (main): Update.
54828         * tests/test-rbtreehash_list.c (main): Update.
54829         * tests/test-linked_list.c (main): Update.
54830         * tests/test-linkedhash_list.c (main): Update.
54831         * tests/test-array_oset.c (main): Update.
54832
54833 2007-03-15  Bruno Haible  <bruno@clisp.org>
54834
54835         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
54836         (gl_oset_create_empty): Add dispose_fn argument.
54837         (struct gl_oset_implementation): Add dispose_fn argument to
54838         'create_empty' method.
54839         (struct gl_oset_impl_base): Add dispose_fn field.
54840         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
54841         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
54842         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
54843         values.
54844         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
54845         (gl_tree_oset_free): Call dispose_fn on the dropped values.
54846         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54847         dropped value.
54848         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54849         dropped value.
54850         * tests/test-array_oset.c (main): Update.
54851         * tests/test-avltree_oset.c (main): Update.
54852         * tests/test-rbtree_oset.c (main): Update.
54853         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
54854
54855 2007-03-13  Bruno Haible  <bruno@clisp.org>
54856
54857         * tests/test-stdbool.c (i): Update after last patch.
54858
54859 2007-03-12  Bruno Haible  <bruno@clisp.org>
54860
54861         * lib/quotearg.c: Include <wctype.h> early, before the definition of
54862         the iswprint macro. Needed on Solaris 2.5.1.
54863
54864 2007-03-12  Bruno Haible  <bruno@clisp.org>
54865
54866         * tests/test-printf-frexp.c (main): Declare x as volatile.
54867
54868 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54869
54870         * doc/gnulib.texi (Build robot for gnulib): New section.
54871
54872 2007-03-12  Jim Meyering  <jim@meyering.net>
54873
54874         * build-aux/bootstrap: New file.
54875         * build-aux/bootstrap.conf: New file, from coreutils.
54876
54877 2007-03-11  Bruno Haible  <bruno@clisp.org>
54878
54879         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
54880
54881 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54882
54883         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
54884         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
54885         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
54886
54887 2007-03-11  Bruno Haible  <bruno@clisp.org>
54888
54889         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
54890         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
54891
54892 2007-03-11  Bruno Haible  <bruno@clisp.org>
54893
54894         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
54895         formula. Needed for SunPRO C 5.0.
54896
54897 2007-03-11  Bruno Haible  <bruno@clisp.org>
54898
54899         * modules/long-options (Depends-on): Add getopt.
54900
54901 2007-03-11  Bruno Haible  <bruno@clisp.org>
54902
54903         * modules/modechange (Depends-on): Add stdbool.
54904
54905 2007-03-11  Bruno Haible  <bruno@clisp.org>
54906
54907         * modules/i-ring (Depends-on): Add stdbool.
54908
54909 2007-03-11  Bruno Haible  <bruno@clisp.org>
54910
54911         * modules/gc-des (Depends-on): Add stdbool.
54912
54913 2007-03-11  Bruno Haible  <bruno@clisp.org>
54914
54915         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
54916
54917 2007-03-11  Bruno Haible  <bruno@clisp.org>
54918
54919         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
54920
54921 2007-03-11  Bruno Haible  <bruno@clisp.org>
54922
54923         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
54924
54925 2007-03-11  Bruno Haible  <bruno@clisp.org>
54926
54927         * lib/vasnprintf.c (sprintf): Undefine.
54928
54929 2007-03-11  Bruno Haible  <bruno@clisp.org>
54930
54931         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
54932         initializers in SunPRO C and Compaq C compilers.
54933
54934 2007-03-11  Bruno Haible  <bruno@clisp.org>
54935
54936         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
54937         decrementing code ANSI C compliant.
54938
54939 2007-03-11  Bruno Haible  <bruno@clisp.org>
54940
54941         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
54942         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
54943
54944 2007-03-11  Bruno Haible  <bruno@clisp.org>
54945
54946         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
54947         <stdbool.h> substitute doesn't pass.
54948
54949 2007-03-11  Bruno Haible  <bruno@clisp.org>
54950
54951         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
54952
54953 2007-03-11  Bruno Haible  <bruno@clisp.org>
54954
54955         * gnulib-tool (func_create_megatestdir): Create also an autobuild
54956         script, for submission to autobuild.josefsson.org.
54957
54958 2007-03-10  Bruno Haible  <bruno@clisp.org>
54959
54960         * modules/canonicalize-lgpl-tests: New file.
54961         * tests/test-canonicalize-lgpl.sh: New file.
54962         * tests/test-canonicalize-lgpl.c: New file.
54963
54964         * modules/c-strcase-tests: New file.
54965         * tests/test-c-strcase.sh: New file.
54966         * tests/test-c-strcasecmp.c: New file.
54967         * tests/test-c-strncasecmp.c: New file.
54968
54969         * modules/atexit-tests: New file.
54970         * tests/test-atexit.sh: New file.
54971         * tests/test-atexit.c: New file.
54972
54973 2007-03-10  Bruno Haible  <bruno@clisp.org>
54974
54975         * tests/test-binary-io.sh: Use temporary filenames that are not so
54976         likely to clash with those of other tests (in a parallel make).
54977         * tests/test-binary-io.c: Likewise.
54978
54979 2007-03-10  Bruno Haible  <bruno@clisp.org>
54980
54981         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
54982         fallback; use #error instead.
54983         Suggested by Simon Josefsson.
54984
54985 2007-03-10  Bruno Haible  <bruno@clisp.org>
54986
54987         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
54988         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
54989         first and the last.
54990
54991 2007-03-10  Bruno Haible  <bruno@clisp.org>
54992
54993         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
54994
54995 2007-03-10  Bruno Haible  <bruno@clisp.org>
54996
54997         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
54998         "make distcheck".
54999         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
55000         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
55001         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
55002
55003 2007-03-10  Bruno Haible  <bruno@clisp.org>
55004
55005         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
55006         variable.
55007         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
55008         variable.
55009
55010 2007-03-09  Eric Blake  <ebb9@byu.net>
55011         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
55012
55013         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
55014         types are not being provided by gnulib.
55015         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
55016         types are supported.
55017
55018 2007-03-10  Bruno Haible  <bruno@clisp.org>
55019
55020         * lib/stdio_.h (__attribute__): New macro.
55021         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
55022         vsprintf): Specify __attribute__ __format__ for GCC.
55023         Suggested by Eric Blake.
55024
55025 2007-03-09  Bruno Haible  <bruno@clisp.org>
55026
55027         * modules/printf-posix-tests: New file.
55028         * tests/test-printf-posix.sh: New file.
55029         * tests/test-printf-posix.c: New file.
55030
55031         * modules/printf-posix: New file.
55032         * lib/printf.c: New file.
55033         * m4/printf-posix-rpl.m4: New file.
55034         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
55035         REPLACE_PRINTF.
55036         * lib/stdio_.h (printf): New declaration.
55037         (format, __format__, ____printf____, ____scanf____, ____strftime____,
55038         ____strfmon____): New macros.
55039         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
55040         REPLACE_PRINTF.
55041
55042 2007-03-09  Bruno Haible  <bruno@clisp.org>
55043
55044         * tests/test-vasnprintf-posix2.sh: New file.
55045         * tests/test-vasnprintf-posix2.c: New file.
55046         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
55047         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
55048         (Makefile.am): Activate test-vasnprintf-posix2.sh.
55049
55050         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
55051         a locale dependent decimal point, rather than always '.'.
55052
55053 2007-03-09  Eric Blake  <ebb9@byu.net>
55054
55055         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
55056         spite of platforms like Tandem/NSK that define it to -1.
55057
55058 2007-03-08  Bruno Haible  <bruno@clisp.org>
55059
55060         * modules/vprintf-posix-tests: New file.
55061         * tests/test-vprintf-posix.sh: New file.
55062         * tests/test-vprintf-posix.c: New file.
55063         * tests/test-printf-posix.h: New file.
55064
55065         * modules/vprintf-posix: New file.
55066         * lib/vprintf.c: New file.
55067         * m4/vprintf-posix.m4: New file.
55068         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
55069         REPLACE_VPRINTF.
55070         * lib/stdio_.h (vprintf): New declaration.
55071         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
55072         REPLACE_VPRINTF.
55073
55074 2007-03-08  Bruno Haible  <bruno@clisp.org>
55075
55076         * modules/fprintf-posix-tests: New file.
55077         * tests/test-fprintf-posix.sh: New file.
55078         * tests/test-fprintf-posix.c: New file.
55079
55080         * modules/fprintf-posix: New file.
55081         * lib/fprintf.c: New file.
55082         * m4/fprintf-posix.m4: New file.
55083         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
55084         REPLACE_FPRINTF.
55085         * lib/stdio_.h (fprintf): New declaration.
55086         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
55087         REPLACE_FPRINTF.
55088
55089 2007-03-08  Bruno Haible  <bruno@clisp.org>
55090
55091         * modules/vfprintf-posix-tests: New file.
55092         * tests/test-vfprintf-posix.sh: New file.
55093         * tests/test-vfprintf-posix.c: New file.
55094         * tests/test-fprintf-posix.h: New file.
55095         * tests/test-fprintf-posix.out: New file.
55096
55097         * modules/vfprintf-posix: New file.
55098         * lib/vfprintf.c: New file.
55099         * m4/vfprintf-posix.m4: New file.
55100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
55101         REPLACE_VFPRINTF.
55102         * lib/stdio_.h (vfprintf): New declaration.
55103         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
55104         REPLACE_VFPRINTF.
55105
55106 2007-03-08  Bruno Haible  <bruno@clisp.org>
55107
55108         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
55109
55110 2007-03-08  Bruno Haible  <bruno@clisp.org>
55111
55112         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
55113         instead of 'expr' invocations.
55114         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55115         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55116         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55117         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55118         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55119         Suggested by Paul Eggert.
55120
55121 2007-03-08  Bruno Haible  <bruno@clisp.org>
55122
55123         * modules/fseterr-tests: New file.
55124         * tests/test-fseterr.c: New file.
55125
55126         * modules/fseterr: New file.
55127         * lib/fseterr.h: New file.
55128         * lib/fseterr.c: New file.
55129
55130 2007-03-08  Bruno Haible  <bruno@clisp.org>
55131
55132         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
55133         * lib/getopt_.h: Likewise.
55134         * lib/mbswidth.h: Likewise.
55135         * lib/setenv.h: Likewise.
55136         * lib/vasnprintf.h: Likewise.
55137         * lib/vasprintf.h: Likewise.
55138         * lib/verror.h: Likewise.
55139         * lib/xsetenv.h: Likewise.
55140         * lib/xvasprintf.h: Likewise.
55141
55142 2007-03-08  Jim Meyering  <jim@meyering.net>
55143
55144         * users.txt: Add parted.
55145
55146         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
55147
55148 2007-03-07  Bruno Haible  <bruno@clisp.org>
55149
55150         * m4/printf.m4: Make the shell script snippets copy&pastable.
55151
55152 2007-03-02  Bruno Haible  <bruno@clisp.org>
55153
55154         * lib/netinet_in_.h: New file.
55155         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
55156         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
55157         * modules/netinet_in (Files): Add lib/netinet_in_.h.
55158         (Depends-on): Add absolute-header.
55159         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
55160         into netinet/in.h.
55161
55162 2007-03-03  Bruno Haible  <bruno@clisp.org>
55163
55164         * lib/sys_select_.h: New file.
55165         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
55166         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
55167         * modules/sys_select (Files): Add lib/sys_select_.h.
55168         (Depends-on): Add absolute-header.
55169         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
55170         into sys/select.h.
55171
55172 2007-03-02  Bruno Haible  <bruno@clisp.org>
55173
55174         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
55175         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
55176         values.
55177         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
55178         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
55179         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
55180         * modules/sys_socket (Depends-on): Add absolute-header.
55181         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
55182         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
55183         (Include): Remove requirement of inclusion of <sys/types.h>.
55184
55185 2007-03-02  Bruno Haible  <bruno@clisp.org>
55186
55187         * lib/byteswap_.h (bswap_32): Fix formula.
55188
55189 2007-03-06  Bruno Haible  <bruno@clisp.org>
55190
55191         * modules/sprintf-posix-tests: New file.
55192         * tests/test-sprintf-posix.c: New file.
55193
55194         * modules/sprintf-posix: New file.
55195         * lib/sprintf.c: New file.
55196         * m4/sprintf-posix.m4: New file.
55197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
55198         REPLACE_SPRINTF.
55199         * lib/stdio_.h (sprintf): New declaration.
55200         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
55201         REPLACE_SPRINTF.
55202
55203 2007-03-06  Bruno Haible  <bruno@clisp.org>
55204
55205         * modules/vsprintf-posix-tests: New file.
55206         * tests/test-vsprintf-posix.c: New file.
55207         * tests/test-sprintf-posix.h: New file.
55208
55209         * modules/vsprintf-posix: New file.
55210         * lib/vsprintf.c: New file.
55211         * m4/vsprintf-posix.m4: New file.
55212         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
55213         REPLACE_VSPRINTF.
55214         * lib/stdio_.h (vsprintf): New declaration.
55215         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
55216         REPLACE_VSPRINTF.
55217
55218 2007-03-06  Bruno Haible  <bruno@clisp.org>
55219
55220         * modules/vsnprintf (Depend-on): Remove minmax.
55221
55222 2007-03-06  Bruno Haible  <bruno@clisp.org>
55223
55224         * modules/snprintf-posix-tests: New file.
55225         * tests/test-snprintf-posix.c: New file.
55226
55227         * modules/snprintf-posix: New file.
55228         * m4/snprintf-posix.m4: New file.
55229         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
55230         gl_FUNC_SNPRINTF.
55231         (gl_FUNC_SNPRINTF): Invoke it.
55232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
55233         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
55234         is set.
55235         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
55236
55237 2007-03-06  Bruno Haible  <bruno@clisp.org>
55238
55239         * modules/vsnprintf-posix-tests: New file.
55240         * tests/test-vsnprintf-posix.c: New file.
55241         * tests/test-snprintf-posix.h: New file.
55242
55243         * modules/vsnprintf-posix: New file.
55244         * m4/vsnprintf-posix.m4: New file.
55245         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
55246         gl_FUNC_VSNPRINTF.
55247         (gl_FUNC_VSNPRINTF): Invoke it.
55248         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
55249         * lib/stdio_.h (vsnprintf): Define as a replacement if
55250         REPLACE_VSNPRINTF is set.
55251         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
55252
55253 2007-03-06  Bruno Haible  <bruno@clisp.org>
55254
55255         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
55256         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
55257
55258 2007-03-06  Bruno Haible  <bruno@clisp.org>
55259
55260         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
55261         (asinl): Declare also if HAVE_DECL_ASINL is set.
55262         (atanl): Declare also if HAVE_DECL_ATANL is set.
55263         (ceill): Declare also if HAVE_DECL_CEILL is set.
55264         (cosl): Declare also if HAVE_DECL_COSL is set.
55265         (expl): Declare also if HAVE_DECL_EXPL is set.
55266         (floorl): Declare also if HAVE_DECL_FLOORL is set.
55267         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
55268         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
55269         (logl): Declare also if HAVE_DECL_LOGL is set.
55270         (sinl): Declare also if HAVE_DECL_SINL is set.
55271         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
55272         (tanl): Declare also if HAVE_DECL_TANL is set.
55273         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
55274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
55275         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
55276         declaration of frexpl, ldexpl.
55277         * modules/printf-frexpl (Depends-on): Add math.
55278         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
55279
55280 2007-03-05  Bruno Haible  <bruno@clisp.org>
55281
55282         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
55283         frexpl and ldexpl are declared.
55284         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
55285
55286 2007-03-05  Bruno Haible  <bruno@clisp.org>
55287
55288         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
55289         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
55290
55291 2007-03-05  Bruno Haible  <bruno@clisp.org>
55292
55293         * lib/stdio_.h: Include <stddef.h>.
55294
55295 2007-03-05  Bruno Haible  <bruno@clisp.org>
55296
55297         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
55298
55299 2007-03-05  Bruno Haible  <bruno@clisp.org>
55300
55301         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
55302         NetBSD 4, from Ralf Wildenhues.
55303
55304 2007-03-04  Bruno Haible  <bruno@clisp.org>
55305
55306         * lib/vasprintf.h: Update #if logic for the case when the functions
55307         exist but are overridden.
55308
55309 2007-03-04  Bruno Haible  <bruno@clisp.org>
55310
55311         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
55312         implementations: glibc-2.4 and MacOS X 10.3.
55313         * tests/test-vasnprintf-posix.c (test_function): Test also the case
55314         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
55315         * tests/test-vasprintf-posix.c (test_function): Likewise.
55316
55317 2007-03-04  Bruno Haible  <bruno@clisp.org>
55318
55319         * modules/vasprintf-posix-tests: New file.
55320         * tests/test-vasprintf-posix.c: New file.
55321
55322         * modules/vasprintf-posix: New file.
55323         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
55324         defined.
55325         * m4/vasprintf-posix.m4: New file.
55326         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
55327         gl_FUNC_VASPRINTF.
55328         (gl_FUNC_VASPRINTF): Invoke it.
55329         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
55330         here.
55331         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
55332
55333 2007-03-04  Bruno Haible  <bruno@clisp.org>
55334
55335         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
55336         REPLACE_GETTIMEOFDAY.
55337         * modules/sys_time (Makefile.am): Likewise.
55338         * m4/sys_time_h.m4: Likewise.
55339         * m4/gettimeofday.m4: Likewise.
55340
55341 2007-03-04  Bruno Haible  <bruno@clisp.org>
55342
55343         * modules/vasnprintf-posix-tests: New file.
55344         * tests/test-vasnprintf-posix.c: New file.
55345
55346         * modules/vasnprintf-posix: New file.
55347         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
55348         printf-frexpl.h.
55349         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
55350         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
55351         REPLACE_VASNPRINTF is defined.
55352         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
55353         gl_FUNC_VASNPRINTF.
55354         (gl_FUNC_VASNPRINTF): Invoke it.
55355         * m4/vasnprintf-posix.m4: New file.
55356         * m4/printf.m4: New file.
55357
55358 2007-03-04  Bruno Haible  <bruno@clisp.org>
55359
55360         Compile progreloc.c only if --enable-relocatable is specified.
55361         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
55362         if --enable-relocatable was specified.
55363         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
55364         lib_SOURCES.
55365
55366 2007-03-04  Jim Meyering  <jim@meyering.net>
55367
55368         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
55369         Use it consistently, rather than enumerating errno constants.
55370
55371 2007-03-04  Bruno Haible  <bruno@clisp.org>
55372
55373         * modules/xvasprintf-tests: New file.
55374         * tests/test-xvasprintf.c: New file.
55375
55376         * modules/vasprintf-tests: New file.
55377         * tests/test-vasprintf.c: New file.
55378
55379         * modules/vasnprintf-tests: New file.
55380         * tests/test-vasnprintf.c: New file.
55381
55382         * modules/vsnprintf-tests: New file.
55383         * tests/test-vsnprintf.c: New file.
55384
55385         * modules/snprintf-tests: New file.
55386         * tests/test-snprintf.c: New file.
55387
55388 2007-03-04  Bruno Haible  <bruno@clisp.org>
55389
55390         Compile relocatable.c only if --enable-relocatable is specified.
55391         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
55392         gl_RELOCATABLE_LIBRARY.
55393         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
55394         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
55395         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
55396         gl_RELOCATABLE_LIBRARY.
55397         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
55398         (Makefile.am): Remove lib_SOURCES.
55399         * modules/relocatable-lib-lgpl (configure.ac): Invoke
55400         gl_RELOCATABLE_LIBRARY.
55401         (Makefile.am): Remove lib_SOURCES.
55402         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
55403         always.
55404         * modules/relocatable-prog-wrapper (configure.ac): Invoke
55405         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
55406
55407 2007-03-04  Bruno Haible  <bruno@clisp.org>
55408
55409         * modules/argmatch-tests: New file.
55410         * tests/test-argmatch.c: New file.
55411
55412         * tests/test-allocsa.c (main): Halve the number of loop runs.
55413
55414         * modules/alloca-opt-tests: New file.
55415         * tests/test-alloca-opt.c: New file.
55416
55417 2007-03-04  Jim Meyering  <jim@meyering.net>
55418
55419         Work around difference between Linux ACLs and Solaris 10 ZFS.
55420         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
55421         for EINVAL.
55422
55423 2007-03-03  Bruno Haible  <bruno@clisp.org>
55424
55425         * modules/relocatable-prog (Depends-on): Add back progreloc's
55426         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
55427
55428 2007-03-03  Bruno Haible  <bruno@clisp.org>
55429
55430         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
55431         * modules/relocatable-lib: New file.
55432
55433 2007-03-03  Bruno Haible  <bruno@clisp.org>
55434
55435         * modules/relocatable-prog: Renamed from modules/relocatable.
55436         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
55437
55438 2007-03-03  Bruno Haible  <bruno@clisp.org>
55439
55440         * modules/relocatable-script (Files): Add doc/relocatable.texi,
55441         m4/relocatable-lib.m4.
55442         (Depends-on): Remove 'relocatable'.
55443         (configure.ac): Add gl_RELOCATABLE_NOP.
55444
55445 2007-03-03  Bruno Haible  <bruno@clisp.org>
55446
55447         * modules/relocatable-prog-wrapper: New file.
55448         * modules/relocatable (Depends-on): Add it. Remove all other
55449         dependencies except progname.
55450         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
55451
55452         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
55453         (gl_FUNC_STRERROR): Nop.
55454         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
55455
55456         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
55457         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
55458
55459         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
55460         (gl_FUNC_READLINK): Update.
55461
55462         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
55463
55464 2007-03-03  Bruno Haible  <bruno@clisp.org>
55465
55466         * lib/xreadlink.c: Include <unistd.h> unconditionally.
55467         * modules/xreadlink (Depends-on): Add unistd.
55468         * modules/xreadlink-with-size (Depends-on): Likewise.
55469
55470 2007-03-03  Bruno Haible  <bruno@clisp.org>
55471
55472         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
55473         extracted from gt_FUNC_SETENV.
55474         (gt_FUNC_SETENV): Remove macro.
55475         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
55476         remove gt_FUNC_SETENV.
55477
55478 2007-03-03  Bruno Haible  <bruno@clisp.org>
55479
55480         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
55481         ENABLE_RELOCATABLE here.
55482         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
55483
55484 2007-03-03  Bruno Haible  <bruno@clisp.org>
55485
55486         * modules/rbtreehash-list-tests (Depends-on): Add progname.
55487         * tests/test-rbtreehash_list.c: Include progname.h.
55488         (main): Call set_program_name.
55489
55490         * modules/rbtree-oset-tests (Depends-on): Add progname.
55491         * tests/test-rbtree_oset.c: Include progname.h.
55492         (main): Call set_program_name.
55493
55494         * modules/rbtree-list-tests (Depends-on): Add progname.
55495         * tests/test-rbtree_list.c: Include progname.h.
55496         (main): Call set_program_name.
55497
55498         * modules/linked-list-tests (Depends-on): Add progname.
55499         * tests/test-linked_list.c: Include progname.h.
55500         (main): Call set_program_name.
55501
55502 2007-03-03  Bruno Haible  <bruno@clisp.org>
55503
55504         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
55505         All uses of __restrict changed to _Restrict_.
55506         * lib/glob_.h (__restrict): Remove macro.
55507
55508 2007-03-02  Bruno Haible  <bruno@clisp.org>
55509
55510         * modules/gettext (configure.ac): Require gettext infrastructure
55511         from version 0.16.1.
55512
55513 2007-03-02  Bruno Haible  <bruno@clisp.org>
55514
55515         * modules/linkedhash-list-tests (Depends-on): Add progname.
55516         * tests/test-linkedhash_list.c: Include progname.h.
55517         (main): Call set_program_name.
55518
55519         * modules/carray-list-tests (Depends-on): Add progname.
55520         * tests/test-carray_list.c: Include progname.h.
55521         (main): Call set_program_name.
55522
55523         * modules/avltreehash-list-tests (Depends-on): Add progname.
55524         * tests/test-avltreehash_list.c: Include progname.h.
55525         (main): Call set_program_name.
55526
55527         * modules/avltree-oset-tests (Depends-on): Add progname.
55528         * tests/test-avltree_oset.c: Include progname.h.
55529         (main): Call set_program_name.
55530
55531         * modules/avltree-list-tests (Depends-on): Add progname.
55532         * tests/test-avltree_list.c: Include progname.h.
55533         (main): Call set_program_name.
55534
55535         * modules/array-oset-tests (Depends-on): Add progname.
55536         * tests/test-array_oset.c: Include progname.h.
55537         (main): Call set_program_name.
55538
55539         * modules/array-list-tests (Depends-on): Add progname.
55540         * tests/test-array_list.c: Include progname.h.
55541         (main): Call set_program_name.
55542
55543         * modules/argp-tests (Depends-on): Add progname.
55544         * tests/test-argp.c: Include argp.h first. Include progname.h.
55545         (main): Call set_program_name.
55546
55547 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
55548
55549         * doc/gnulib-tool.texi (Initial import): Reword description of
55550         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
55551         limited effect even if defined after the first system include.
55552
55553 2007-03-01  Bruno Haible  <bruno@clisp.org>
55554
55555         * build-aux/config.libpath: Update to libtool-1.5.22.
55556         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55557
55558 2007-03-01  Bruno Haible  <bruno@clisp.org>
55559
55560         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
55561         foo_CFLAGS.
55562         Reported by Ralf Wildenhues.
55563
55564 2007-03-01  Bruno Haible  <bruno@clisp.org>
55565
55566         * build-aux/install-reloc: Remove object files left over by some
55567         compilers.
55568         Reported by Ralf Wildenhues.
55569
55570 2007-03-01  Bruno Haible  <bruno@clisp.org>
55571
55572         * build-aux/install-reloc: Break long lines.
55573
55574 2007-03-01  Bruno Haible  <bruno@clisp.org>
55575
55576         * doc/relocatable.texi: Document that it may not work on OpenBSD.
55577         Reported by Ralf Wildenhues.
55578
55579 2007-03-01  Bruno Haible  <bruno@clisp.org>
55580
55581         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
55582         include ordering constraints.
55583
55584 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55585
55586         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
55587         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
55588         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
55589         as another example.
55590         * lib/time_.h: Fix misspelling.
55591         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55592         Require gl_HEADER_TIME_H_DEFAULTS.
55593         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
55594         * m4/time_r.m4 (gl_TIME_R): Likewise.
55595         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
55596
55597 2007-03-01  Bruno Haible  <bruno@clisp.org>
55598
55599         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
55600         * m4/utimens.m4 (gl_UTIMENS): Likewise.
55601
55602 2007-03-01  Jim Meyering  <jim@meyering.net>
55603
55604         * modules/xreadlink (Maintainer): Add my name.
55605         * modules/xreadlink-with-size (Depends-on): Alphabetize.
55606
55607 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
55608             Bruno Haible  <bruno@clisp.org>
55609
55610         * build-aux/install-reloc: Compile also c-ctype.c.
55611         * build-aux/relocatable.sh.in: New file.
55612         * doc/relocatable.texi: New file.
55613         * doc/relocatable-maint.texi: New file.
55614         * doc/gnulib.texi: Include relocatable-maint.texi.
55615         * lib/progreloc.c: Include unistd.h unconditionally.
55616         * lib/relocwrapper.c: Include unistd.h unconditionally.
55617         Include c-ctype.h.
55618         (add_dotbin): Use c_tolower.
55619         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
55620         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
55621         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
55622         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
55623         to m4/relocatable-lib.m4.
55624         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
55625         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
55626         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
55627         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
55628         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
55629         * modules/relocatable: New file.
55630         * modules/relocatable-lib: New file.
55631         * modules/relocatable-script: New file.
55632
55633 2007-02-28  Bruno Haible  <bruno@clisp.org>
55634
55635         Import --enable-relocatable infrastructure.
55636         * build-aux/config.libpath: New file, from GNU gettext.
55637         * build-aux/install-reloc: New file, from GNU gettext.
55638         * build-aux/reloc-ldflags: New file, from GNU gettext.
55639         * lib/relocatable.h: New file, from GNU gettext.
55640         * lib/relocatable.c: New file, from GNU gettext.
55641         * lib/relocwrapper.c: New file, from GNU gettext.
55642         * m4/relocatable.m4: New file, from GNU gettext.
55643
55644 2007-02-28  Bruno Haible  <bruno@clisp.org>
55645
55646         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
55647
55648         * modules/xreadlink: New file, from GNU gettext with modifications.
55649         * lib/xreadlink.c: New file, from GNU gettext.
55650         * lib/xreadlink.h: Add comments.
55651         (xreadlink): New declaration.
55652
55653         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
55654         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
55655         lib/xreadlink-with-size.c.
55656         (configure.ac): Remove gl_XREADLINK invocation.
55657         (Makefile.am): Augment lib_SOURCES.
55658         * m4/xreadlink.m4: Remove file.
55659         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
55660         (xreadlink_with_size): Renamed from xreadink.
55661         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
55662         * modules/canonicalize (Depends-on): Replace xreadlink with
55663         xreadlink-with-size.
55664         * lib/canonicalize.c (canonicalize_filename_mode): Update.
55665
55666 2007-02-25  Jim Meyering  <jim@meyering.net>
55667
55668         * build-aux/announce-gen: When complaining about excess arguments,
55669         list them.
55670
55671 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
55672
55673         * README: Document signed integer overflow situation more
55674         accurately.
55675
55676 2007-02-25  Bruno Haible  <bruno@clisp.org>
55677
55678         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
55679         'a' or 'A' conversion.
55680
55681 2007-02-25  Bruno Haible  <bruno@clisp.org>
55682
55683         * modules/filename: Renamed from modules/pathname.
55684         (Files): Replace lib/pathname.h with lib/filename.h. Replace
55685         lib/concatpath.c with lib/concat-filename.c.
55686         (Makefile.am): Update.
55687         (Include): Replace pathname.h with filename.h.
55688         * lib/filename.h: Renamed from lib/pathname.h.
55689         (concatenated_filename): Renamed from concatenated_pathname.
55690         * lib/concat-filename.c: Renamed from lib/concatpath.c.
55691         (concatenated_filename): Renamed from concatenated_pathname.
55692         * lib/findprog.c: Include filename.h instead of pathname.h.
55693         (find_in_path): Update.
55694         * lib/javacomp.c: Include filename.h instead of pathname.h.
55695         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55696         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55697         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55698         is_oldgcj_14_13_usable, is_javac_usable): Update.
55699         * lib/javaexec.c: Include filename.h instead of pathname.h.
55700         (execute_java_class): Update.
55701         * modules/findprog: Update.
55702         * modules/javacomp: Update.
55703         * modules/javaexec: Update.
55704         * MODULES.html.sh (File system functions): Add 'filename', remove
55705         'pathname'.
55706
55707 2007-02-25  Bruno Haible  <bruno@clisp.org>
55708
55709         * modules/printf-frexpl-tests: New file.
55710         * tests/test-printf-frexpl.c: New file.
55711
55712         * modules/printf-frexpl: New file.
55713         * lib/printf-frexpl.h: New file.
55714         * lib/printf-frexpl.c: New file.
55715         * m4/printf-frexpl.m4: New file.
55716
55717 2007-02-25  Bruno Haible  <bruno@clisp.org>
55718
55719         * modules/printf-frexp-tests: New file.
55720         * tests/test-printf-frexp.c: New file.
55721
55722         * modules/printf-frexp: New file.
55723         * lib/printf-frexp.h: New file.
55724         * lib/printf-frexp.c: New file.
55725         * m4/printf-frexp.m4: New file.
55726
55727 2007-02-25  Bruno Haible  <bruno@clisp.org>
55728
55729         Assume automake >= 1.10 for the tests.
55730         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
55731         * modules/arctwo-tests: Likewise.
55732         * modules/argp-tests: Likewise.
55733         * modules/avltree-list-tests: Likewise.
55734         * modules/avltree-oset-tests: Likewise.
55735         * modules/avltreehash-list-tests: Likewise.
55736         * modules/carray-list-tests: Likewise.
55737         * modules/crc-tests: Likewise.
55738         * modules/des-tests: Likewise.
55739         * modules/gc-arcfour-tests: Likewise.
55740         * modules/gc-arctwo-tests: Likewise.
55741         * modules/gc-des-tests: Likewise.
55742         * modules/gc-hmac-md5-tests: Likewise.
55743         * modules/gc-hmac-sha1-tests: Likewise.
55744         * modules/gc-md2-tests: Likewise.
55745         * modules/gc-md4-tests: Likewise.
55746         * modules/gc-md5-tests: Likewise.
55747         * modules/gc-pbkdf2-sha1-tests: Likewise.
55748         * modules/gc-rijndael-tests: Likewise.
55749         * modules/gc-sha1-tests: Likewise.
55750         * modules/gc-tests: Likewise.
55751         * modules/getaddrinfo-tests: Likewise.
55752         * modules/hmac-md5-tests: Likewise.
55753         * modules/hmac-sha1-tests: Likewise.
55754         * modules/linked-list-tests: Likewise.
55755         * modules/linkedhash-list-tests: Likewise.
55756         * modules/lock-tests: Likewise.
55757         * modules/md2-tests: Likewise.
55758         * modules/md4-tests: Likewise.
55759         * modules/md5-tests: Likewise.
55760         * modules/rbtree-list-tests: Likewise.
55761         * modules/rbtree-oset-tests: Likewise.
55762         * modules/rbtreehash-list-tests: Likewise.
55763         * modules/read-file-tests: Likewise.
55764         * modules/rijndael-tests: Likewise.
55765         * modules/stdint-tests: Likewise.
55766         * modules/tls-tests: Likewise.
55767
55768 2007-02-24  Bruno Haible  <bruno@clisp.org>
55769
55770         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
55771         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
55772         function; instead check whether isnan with a double argument links.
55773         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
55774         function; instead check whether isnan with a 'long double' argument
55775         links.
55776         Reported by Eric Blake <ebb9@byu.net>.
55777
55778 2007-02-24  Bruno Haible  <bruno@clisp.org>
55779
55780         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
55781         defined.
55782         * lib/isnanl.c: Remove all code. Just include isnan.c.
55783         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
55784
55785 2007-02-25  Jim Meyering  <jim@meyering.net>
55786
55787         Avoid conflicting types for 'unsetenv' on FreeBSD.
55788         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
55789         conflicting with FreeBSD's (5.0 and 6.1) function declaration
55790         in stdlib.h.
55791
55792 2007-02-24  Bruno Haible  <bruno@clisp.org>
55793
55794         * modules/isnanl-nolibm-tests: New file.
55795         * tests/test-isnanl.c: New file.
55796
55797         * modules/isnanl-nolibm: New file.
55798         * lib/isnanl.h: New file.
55799         * lib/isnanl.c: New file.
55800         * m4/isnanl.m4: New file.
55801
55802 2007-02-24  Bruno Haible  <bruno@clisp.org>
55803
55804         * modules/isnan-nolibm-tests: New file.
55805         * tests/test-isnan.c: New file.
55806
55807         * modules/isnan-nolibm: New file.
55808         * lib/isnan.h: New file.
55809         * lib/isnan.c: New file.
55810         * m4/isnan.m4: New file.
55811
55812 2007-02-24  Bruno Haible  <bruno@clisp.org>
55813
55814         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
55815         assume that an exponent fits in 20 bits.
55816
55817 2007-02-24  Jim Meyering  <jim@meyering.net>
55818
55819         * m4/regex.m4: Update the description of the configure-time option,
55820         --without-included-regex, to state accurately what the defaults are,
55821         and perhaps to give people an idea why using this option is risky.
55822
55823 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55824
55825         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
55826         loops on small arguments.  This attempts to avoid the problem
55827         Bruno Haible reported for AIX 4.3.2 in
55828         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
55829
55830 2007-02-23  Bruno Haible  <bruno@clisp.org>
55831
55832         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
55833         Needed for help2man.
55834
55835 2007-02-23  Karl Berry  <karl@gnu.org>
55836
55837         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
55838         exists, foo.h should be cvs-ignored, not committed.
55839
55840 2007-02-23  Eric Blake  <ebb9@byu.net>
55841
55842         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
55843         * lib/stat-time.h (includes): Likewise.
55844         * lib/utimecmp.c (includes): Likewise.
55845         * lib/utimens.h (includes): Likewise.
55846         * lib/getdate.y (includes): Also include "timespec.h" for use
55847         internal to the module.
55848         * modules/utimens (Depends-on): Revert yesterday's patch.
55849         * modules/nanosleep (Depends-on): Add missing dependency.
55850
55851 2007-02-22  Bruno Haible  <bruno@clisp.org>
55852
55853         * lib/glob.c: Don't include getlogin_r.h.
55854
55855 2007-02-22  Jim Meyering  <jim@meyering.net>
55856
55857         * modules/utimens (Depends-on): Add timespec, required for
55858         utimens.h's inclusion of timespec.h.
55859
55860 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
55861
55862         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
55863         long unreadable paths in GNU/Linux.  Problem reported by Andreas
55864         Schwab in
55865         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
55866         I'll try to think of a better way to fix the Solaris problem.
55867
55868         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
55869         like glibc; on Solaris 10, it fails with errno == EINVAL.
55870         POSIX says the behavior is unspecified if the first argument is NULL,
55871         so play it safe and never pass NULL to the system getcwd.
55872
55873 2007-02-21  Jim Meyering  <jim@meyering.net>
55874
55875         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
55876         of gettimeofday.  It would conflict with the one now always
55877         provided via sys_time_.h.  Reported by Matthew Woehlke, as
55878         an IRIX 6.5 build failure.
55879
55880 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55881
55882         Minor fixups to port to Solaris 10 with Sun C 5.8.
55883         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
55884         * modules/getcwd (Depends-on): Add dirfd.
55885         * lib/putenv.c (putenv): #undef it.
55886         (rpl_putenv): New decl.
55887         (malloc, free): Include <stdlib.h> rather than prototyping separately.
55888
55889 2007-02-20  Bruno Haible  <bruno@clisp.org>
55890
55891         * modules/stdio-tests: New file.
55892         * tests/test-stdio.c: New file.
55893
55894         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
55895         (Depends-on): Add stdio.
55896         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55897         (Include): Use <stdio.h> instead of vsnprintf.h.
55898         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55899         HAVE_DECL_VSNPRINTF.
55900         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
55901
55902         * modules/snprintf (Files): Remove lib/snprintf.h.
55903         (Depends-on): Add stdio.
55904         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55905         (Include): Use <stdio.h> instead of snprintf.h.
55906         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55907         HAVE_DECL_SNPRINTF.
55908         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
55909         * lib/getaddrinfo.c: Likewise.
55910
55911         * modules/stdio: New file.
55912         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
55913         * lib/snprintf.h: Remove file.
55914         * lib/vsnprintf.h: Remove file.
55915         * lib/.cppi-disable: Remove snprintf.h.
55916         * m4/stdio_h.m4: New file.
55917         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
55918
55919 2007-02-20  Jim Meyering  <jim@meyering.net>
55920
55921         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
55922         used by e.g., mingw.  From Bruno Haible.
55923
55924 2007-02-19  Bruno Haible  <bruno@clisp.org>
55925
55926         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
55927         warnings.
55928         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55929
55930 2007-02-19  Bruno Haible  <bruno@clisp.org>
55931
55932         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
55933         from mingw users.
55934
55935 2007-02-19  Bruno Haible  <bruno@clisp.org>
55936
55937         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
55938         warnings.
55939         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
55940
55941 2007-02-19  Jim Meyering  <jim@meyering.net>
55942
55943         Don't use FD after a successful "fdopendir (fd)".
55944         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
55945         Reset it by calling dirfd on the just-obtained DIR*.
55946
55947         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
55948         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
55949
55950 2007-02-18  Bruno Haible  <bruno@clisp.org>
55951
55952         * lib/readlink.c: Include <unistd.h>.
55953         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
55954         HAVE_READLINK.
55955         * modules/readlink (Depends-on): Add unistd.
55956         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55957         (Include): Add <unistd.h>.
55958
55959         * lib/getlogin_r.h: Remove file.
55960         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
55961         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
55962         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
55963         HAVE_DECL_GETLOGIN_R.
55964         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
55965         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55966         (Include): Use <unistd.h> instead of getlogin_r.h.
55967
55968         * lib/getcwd.h: Remove file.
55969         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
55970         * lib/xgetcwd.c: Likewise.
55971         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
55972         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
55973         * modules/getcwd (Files): Remove lib/getcwd.h.
55974         (Depends-on): Add unistd.
55975         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55976         (Include): Use <unistd.h> instad of getcwd.h.
55977
55978         * lib/ftruncate.c: Include <unistd.h> first.
55979         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
55980         Set HAVE_FTRUNCATE.
55981         * modules/ftruncate (Depends-on): Add unistd.
55982         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55983
55984         * lib/fchdir.c: Include <unistd.h> first.
55985         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
55986         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
55987         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
55988         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55989         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
55990
55991         * lib/dup2.c: Include <unistd.h> first.
55992         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
55993         HAVE_DUP2.
55994         * modules/dup2 (Depends-on): Add unistd.
55995         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55996
55997         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
55998         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
55999         REPLACE_CHOWN. Don't define chown as a macro here.
56000         * modules/chown (Depends-on): Add unistd.
56001         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56002
56003         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
56004         Add definition for GL_LINK_WARNING.
56005         (chown, dup2): New declarations.
56006         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
56007         link warning.
56008         (ftruncate): New declaration.
56009         (getcwd): New declaration, taken from old getcwd.h.
56010         (getlogin_r): New declaration, taken from old getlogin_r.h.
56011         (readlink): New declaration.
56012         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
56013         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
56014         (gl_PREREQ_UNISTD): Remove macro.
56015         (gl_UNISTD_MODULE_INDICATOR): New macro.
56016         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
56017         many new variables. Don't set UNISTD_H.
56018         * modules/unistd (Description): Change.
56019         (Depends-on): Add link-warning.
56020         (configure.ac): Update.
56021         (Makefile.am): Create unistd.h always. Substitute many new variables
56022         into it.
56023
56024 2007-02-18  Bruno Haible  <bruno@clisp.org>
56025
56026         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
56027         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
56028         HAVE_GETSUBOPT.
56029         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
56030         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
56031         * lib/getsubopt.h: Remove file.
56032         * modules/getsubopt (Files): Remove lib/getsubopt.h.
56033         (Depends-on): Add stdlib.
56034         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56035         (Includes): Use <stdlib.h> instead of getsubopt.h.
56036         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
56037         Set HAVE_GETSUBOPT.
56038         * lib/getsubopt.c: Don't include getsubopt.h.
56039
56040 2007-02-18  Bruno Haible  <bruno@clisp.org>
56041
56042         * modules/fchdir (Depends-on): Add dup2.
56043
56044 2007-02-18  Bruno Haible  <bruno@clisp.org>
56045
56046         * lib/stdlib_.h: Handle glibc's special invocation convention
56047         specially.
56048
56049 2007-02-18  Bruno Haible  <bruno@clisp.org>
56050
56051         * modules/stdlib-tests: New file.
56052         * tests/test-stdlib.c: New file.
56053
56054         * modules/mkstemp (Files): Remove lib/mkstemp.h.
56055         (Depends-on): Add stdlib.
56056         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56057         (Includes): Use <stdlib.h> instead of mkstemp.h.
56058         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
56059         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
56060         * lib/mkstemp.c: Don't include mkstemp.h.
56061         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
56062         * lib/stdlib--.h: Don't include mkstemp.h.
56063
56064         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
56065         (Depends-on): Add stdlib.
56066         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56067         (Includes): Use <stdlib.h> instead of mkdtemp.h.
56068         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
56069         HAVE_MKDTEMP.
56070         * lib/mkdtemp.c: Don't include mkdtemp.h.
56071         * lib/clean-temp.c: Don't include mkdtemp.h.
56072
56073         * modules/exit (Files): Remove lib/exit.h.
56074         (Depends-on): Add stdlib.
56075         (Makefile.am): Remove lib_SOURCES.
56076         (Include): Use <stdlib.h> instead of exit.h.
56077         * lib/argmatch.c: Don't include exit.h.
56078         * lib/execute.c: Likewise.
56079         * lib/pagealign_alloc.c: Likewise.
56080         * lib/pipe.c: Likewise.
56081         * lib/wait-process.c: Likewise.
56082         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
56083         * lib/exitfail.c: Likewise.
56084         * lib/savewd.c: Likewise.
56085         * lib/xsetenv.c: Likewise.
56086
56087         * modules/stdlib: New file.
56088         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
56089         and extra comments about mkstemp().
56090         * lib/exit.h: Remove file.
56091         * lib/mkdtemp.h: Remove file.
56092         * lib/mkstemp.h: Remove file.
56093         * m4/stdlib_h.m4: New file.
56094         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
56095
56096 2007-02-18  Bruno Haible  <bruno@clisp.org>
56097
56098         * modules/math-tests: New file.
56099         * tests/test-math.c: New file.
56100
56101         * modules/math: New file.
56102         * modules/mathl (Files): Remove lib/mathl.h.
56103         (Depends-on): Add math.
56104         (Makefile.am): Don't mention mathl.h.
56105         (Include): Use <math.h> instead of mathl.h.
56106         * lib/math_.h: New file.
56107         * lib/mathl.h: Remove file.
56108         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
56109         mathl.h.
56110         * lib/asinl.c: Likewise.
56111         * lib/atanl.c: Likewise.
56112         * lib/ceill.c: Likewise.
56113         * lib/cosl.c: Likewise.
56114         * lib/expl.c: Likewise.
56115         * lib/floorl.c: Likewise.
56116         * lib/frexpl.c: Likewise.
56117         * lib/ldexpl.c: Likewise.
56118         * lib/logl.c: Likewise.
56119         * lib/sincosl.c: Likewise.
56120         * lib/sinl.c: Likewise.
56121         * lib/sqrtl.c: Likewise.
56122         * lib/tanl.c: Likewise.
56123         * lib/trigl.c: Likewise.
56124         * m4/math_h.m4: New file.
56125         * MODULES.html.sh (Mathematics): Add math.
56126
56127 2007-02-17  Bruno Haible  <bruno@clisp.org>
56128
56129         * modules/wctype-tests: New file.
56130         * tests/test-wctype.c: New file.
56131
56132         * modules/wchar-tests: New file.
56133         * tests/test-wchar.c: New file.
56134
56135         * modules/unistd-tests: New file.
56136         * tests/test-unistd.c: New file.
56137
56138         * modules/time-tests: New file.
56139         * tests/test-time.c: New file.
56140
56141         * modules/sysexits-tests: New file.
56142         * tests/test-sysexits.c: New file.
56143
56144         * modules/sys_time-tests: New file.
56145         * tests/test-sys_time.c: New file.
56146
56147         * modules/sys_stat-tests: New file.
56148         * tests/test-sys_stat.c: New file.
56149
56150         * modules/sys_socket-tests: New file.
56151         * tests/test-sys_socket.c: New file.
56152
56153         * modules/sys_select-tests: New file.
56154         * tests/test-sys_select.c: New file.
56155
56156         * modules/string-tests: New file.
56157         * tests/test-string.c: New file.
56158
56159         * modules/stdbool-tests: New file.
56160         * tests/test-stdbool.c: New file.
56161
56162         * modules/netinet_in-tests: New file.
56163         * tests/test-netinet_in.c: New file.
56164
56165         * modules/inttypes-tests: New file.
56166         * tests/test-inttypes.c: New file.
56167
56168         * modules/fcntl-tests: New file.
56169         * tests/test-fcntl.c: New file.
56170
56171         * modules/byteswap-tests: New file.
56172         * tests/test-byteswap.c: New file.
56173
56174         * modules/arpa_inet-tests: New file.
56175         * tests/test-arpa_inet.c: New file.
56176
56177 2007-02-17  Bruno Haible  <bruno@clisp.org>
56178
56179         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
56180         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
56181         if the corresponding module is not enabled. Emit link warnings if
56182         the function is used nevertheless.
56183         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
56184         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
56185         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
56186         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
56187         * modules/inttypes (Depends-on): Add link-warning.
56188         (Makefile.am): Copy the contents of build-aux/link-warning.h into
56189         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
56190         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
56191         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
56192         * modules/imaxdiv (configure.ac): Likewise.
56193         * modules/strtoimax (configure.ac): Likewise.
56194         * modules/strtoumax (configure.ac): Likewise.
56195
56196 2007-02-17  Bruno Haible  <bruno@clisp.org>
56197
56198         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
56199         gl_STRING_MODULE_INDICATOR_DEFAULTS.
56200         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
56201         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
56202
56203 2007-02-17  Bruno Haible  <bruno@clisp.org>
56204
56205         * modules/link-warning: New file.
56206         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
56207         * lib/string_.h (GL_LINK_WARNING): Remove definition.
56208         * modules/string (Depends-on): Add link-warning.
56209         (Makefile.am): Copy the contents of build-aux/link-warning.h into
56210         string.h.
56211         * MODULES.html.sh (Support for building libraries and executables): Add
56212         link-warning.
56213
56214 2007-02-17  Bruno Haible  <bruno@clisp.org>
56215
56216         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
56217         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
56218         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
56219         long lines.
56220
56221 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
56222             Bruno Haible  <bruno@clisp.org>
56223
56224         * modules/tmpfile: New file.
56225         * lib/tmpfile.c: New file.
56226         * m4/tmpfile.m4: New file.
56227         * MODULES.html.sh (func_all_modules): New section "Input/output".
56228
56229 2007-02-15  Bruno Haible  <bruno@clisp.org>
56230
56231         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
56232         (supports_delete_on_close): New function.
56233         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
56234
56235 2007-02-14  Bruno Haible  <bruno@clisp.org>
56236
56237         * modules/mbspcasecmp-tests: New file.
56238         * tests/test-mbspcasecmp.sh: New file.
56239         * tests/test-mbspcasecmp.c: New file.
56240
56241         New module mbspcasecmp.
56242         * modules/mbspcasecmp: New file.
56243         * lib/mbspcasecmp.c: New file.
56244         * lib/string_.h (strncasecmp): Change warning message.
56245         (mbspcasecmp): New declaration.
56246         * m4/mbspcasecmp.m4: New file.
56247         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56248         GNULIB_MBSPCASECMP.
56249         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
56250         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
56251
56252 2007-02-14  Bruno Haible  <bruno@clisp.org>
56253
56254         * modules/mbsncasecmp-tests: New file.
56255         * tests/test-mbsncasecmp.sh: New file.
56256         * tests/test-mbsncasecmp.c: New file.
56257
56258         New module mbsncasecmp.
56259         * modules/mbsncasecmp: New file.
56260         * lib/mbsncasecmp.c: New file.
56261         * lib/string_.h (mbsncasecmp): New declaration.
56262         * m4/mbsncasecmp.m4: New file.
56263         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56264         GNULIB_MBSNCASECMP.
56265         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
56266         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
56267
56268 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
56269
56270         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
56271         Verify that it doesn't overlap with our flags.
56272         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
56273         do not have the desired effect in multibyte locales; instead, use
56274         mbscasecmp.
56275         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
56276         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
56277         we don't require GNU fnmatch ourselves (if our users require it, they
56278         should do so explicitly).
56279
56280         Fix regex code so it doesn't rely on strcasecmp.
56281         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
56282         Otherwise, include gnulib's langinfo.h.
56283         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
56284         undesirable behavior in non-C locales.  Instead, rely on localecharset.
56285         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
56286         * modules/regex (FILES): Remove m4/codeset.m4.
56287         (Depends-on): Add localcharset.  Remove strcase.
56288
56289 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56290
56291         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
56292         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
56293
56294 2007-02-13  Bruno Haible  <bruno@clisp.org>
56295
56296         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
56297         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56298
56299 2007-02-12  Bruno Haible  <bruno@clisp.org>
56300
56301         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56302         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
56303         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
56304         time warning rather than a link error.
56305
56306 2007-02-12  Bruno Haible  <bruno@clisp.org>
56307
56308         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
56309         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56310         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56311
56312 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56313
56314         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
56315         args, not 2.
56316
56317 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56318
56319         New module 'time', so that apps can include <time.h> as per
56320         POSIX and GNU instead of separate include files like time_r.h
56321         and timegm.h.  This implementation tries out a simpler approach
56322         for replacing decls in standard include files (as compared to
56323         the string module), somewhat as an experiment.
56324
56325         * config/srclist.txt: Comment out mktime.c for now.
56326         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
56327         since it doesn't apply any more.  Use generic wording instead.
56328         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
56329         'time'.
56330         * lib/time_.h, m4/time_h.m4, modules/time: New files.
56331         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
56332         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
56333         Don't include <sys/types.h>; no longer needed since we assume C89.
56334         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
56335         * lib/strftime.c: Likewise.
56336         * lib/time_r.c: Likewise.
56337         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
56338         * lib/nanosleep.c: Include <time.h> first, to check interface.
56339         * lib/strptime.c: Likewise.
56340         * lib/time_r.c: Likewise.
56341         * lib/timegm.c: Likewise.
56342         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
56343         needed.
56344         * lib/timegm.c: Don't include timegm.h; no longer needed.
56345         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
56346         time.h now handles any problems in that area.
56347         (struct timespec, nanosleep): Remove; time.h now arranges for these.
56348         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
56349         that time.h defines struct timespec.
56350         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
56351         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
56352         handles that.
56353         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
56354         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
56355         needed.  Set REPLACE_LOCALTIME.
56356         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
56357         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
56358         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
56359         nanosleep; time_h.m4 now does that.  Don't require
56360         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
56361         module handles this now.
56362         * modules/getdate (Depends-on): Remove timespec.  Add time.
56363         * modules/nanosleep (Depends-on): Likewise.
56364         * modules/stat-time (Depends-on): Likewise.
56365         * modules/nanosleep (Include): Include time.h, not timespec.h.
56366         * modules/strptime (Files): Remove lib/strptime.h.
56367         (Depends-on): Add extensions, time.
56368         (Include): Include time.h, not strptime.h.
56369         * modules/time_r (Files): Remove lib/time_r.h.
56370         (Depends-on): Add time.
56371         (Include): Include time.h, not time_r.h.
56372         * modules/timegm: Likewise.
56373         * modules/timespec (Description): Now does timespec-related decls
56374         of our own, instead of struct timespec itself.
56375         (Depends-on): Add time; remove extensions.
56376         (Maintainer): Add self.
56377         * modules/utimecmp (Depends-on): Add time; remove timespec.
56378         * modules/utimens (Depends-on): Likewise.
56379         * modules/xnanosleep (Depends-on): Likewise.
56380
56381 2007-02-11  Bruno Haible  <bruno@clisp.org>
56382
56383         * lib/c-strstr.c: Include allocsa.h.
56384         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56385         * lib/c-strcasestr.c: Include allocsa.h.
56386         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56387         * lib/strcasestr.c: Include allocsa.h.
56388         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56389         * lib/mbsstr.c: Include allocsa.h.
56390         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
56391         allocsa/freesa instead of malloc/free.
56392         * lib/mbscasestr.c: Include allocsa.h.
56393         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
56394         allocsa/freesa instead of malloc/free.
56395         * modules/c-strstr (Depends-on): Add allocsa.
56396         * modules/c-strcasestr (Depends-on): Likewise.
56397         * modules/strcasestr (Depends-on): Likewise.
56398         * modules/mbsstr (Depends-on): Likewise.
56399         * modules/mbscasestr (Depends-on): Likewise.
56400
56401 2007-02-11  Bruno Haible  <bruno@clisp.org>
56402
56403         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
56404
56405         * modules/mbsspn-tests: New file.
56406         * tests/test-mbsspn.sh: New file.
56407         * tests/test-mbsspn.c: New file.
56408
56409 2007-02-11  Bruno Haible  <bruno@clisp.org>
56410
56411         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
56412
56413         * modules/mbspbrk-tests: New file.
56414         * tests/test-mbspbrk.sh: New file.
56415         * tests/test-mbspbrk.c: New file.
56416
56417 2007-02-11  Bruno Haible  <bruno@clisp.org>
56418
56419         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
56420         unneeded cast.
56421
56422         * modules/mbscspn-tests: New file.
56423         * tests/test-mbscspn.sh: New file.
56424         * tests/test-mbscspn.c: New file.
56425
56426 2007-02-11  Bruno Haible  <bruno@clisp.org>
56427
56428         * modules/mbscasecmp-tests: New file.
56429         * tests/test-mbscasecmp.sh: New file.
56430         * tests/test-mbscasecmp.c: New file.
56431
56432 2007-02-11  Bruno Haible  <bruno@clisp.org>
56433
56434         Ensure O(n) worst-case complexity of mbscasestr.
56435         * lib/mbscasestr.c: Include stdbool.h.
56436         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
56437         functions.
56438         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
56439         the bookkeeping indicates that it's worth it.
56440         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
56441
56442         * modules/mbscasestr-tests: New file.
56443         * tests/test-mbscasestr1.c: New file.
56444         * tests/test-mbscasestr2.sh: New file.
56445         * tests/test-mbscasestr2.c: New file.
56446         * tests/test-mbscasestr3.sh: New file.
56447         * tests/test-mbscasestr3.c: New file.
56448         * tests/test-mbscasestr4.sh: New file.
56449         * tests/test-mbscasestr4.c: New file.
56450         * m4/locale-tr.m4: New file.
56451
56452 2007-02-11  Bruno Haible  <bruno@clisp.org>
56453
56454         Ensure O(n) worst-case complexity of mbsstr.
56455         * lib/mbsstr.c: Include stdbool.h.
56456         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
56457         functions.
56458         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
56459         bookkeeping indicates that it's worth it.
56460         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
56461
56462         * modules/mbsstr-tests: New file.
56463         * tests/test-mbsstr1.c: New file.
56464         * tests/test-mbsstr2.sh: New file.
56465         * tests/test-mbsstr2.c: New file.
56466         * tests/test-mbsstr3.sh: New file.
56467         * tests/test-mbsstr3.c: New file.
56468         * m4/locale-fr.m4: New file.
56469
56470 2007-02-11  Bruno Haible  <bruno@clisp.org>
56471
56472         * lib/mbsrchr.c (mbsrchr): Fix bug.
56473
56474         * modules/mbsrchr-tests: New file.
56475         * tests/test-mbsrchr.sh: New file.
56476         * tests/test-mbsrchr.c: New file.
56477
56478 2007-02-11  Bruno Haible  <bruno@clisp.org>
56479
56480         * lib/mbschr.c (mbschr): Fix bug.
56481
56482         * modules/mbschr-tests: New file.
56483         * tests/test-mbschr.sh: New file.
56484         * tests/test-mbschr.c: New file.
56485         * m4/locale-zh.m4: New file.
56486
56487 2007-02-11  Bruno Haible  <bruno@clisp.org>
56488
56489         Support for copying multibyte string iterators.
56490         * lib/mbiter.h: Include <string.h>.
56491         (mbiter_multi_copy): New function.
56492         (mbi_copy): New macro.
56493         * lib/mbuiter.h: Include <string.h>.
56494         (mbuiter_multi_copy): New function.
56495         (mbui_copy): New macro.
56496
56497 2007-02-11  Bruno Haible  <bruno@clisp.org>
56498
56499         New module mbslen.
56500         * modules/mbslen: New file.
56501         * lib/mbslen.c: New file.
56502         * lib/string_.h (mbslen): New declaration.
56503         * m4/mbslen.m4: New file.
56504         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56505         GNULIB_MBSLEN.
56506         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
56507         * MODULES.html.sh (Internationalization functions): Add mbslen.
56508
56509 2007-02-11  Bruno Haible  <bruno@clisp.org>
56510
56511         Ensure O(n) worst-case complexity of strcasestr substitute.
56512         * lib/strcasestr.c: Include stdbool.h.
56513         (knuth_morris_pratt): New function.
56514         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56515         bookkeeping indicates that it's worth it.
56516         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
56517
56518         * modules/strcasestr-tests: New file.
56519         * tests/test-strcasestr.c: New file.
56520
56521 2007-02-11  Bruno Haible  <bruno@clisp.org>
56522
56523         Ensure O(n) worst-case complexity of c_strcasestr.
56524         * lib/c-strcasestr.c: Include stdbool.h, string.h.
56525         (knuth_morris_pratt): New function.
56526         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
56527         the bookkeeping indicates that it's worth it.
56528         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
56529
56530         * modules/c-strcasestr-tests: New file.
56531         * tests/test-c-strcasestr.c: New file.
56532
56533 2007-02-11  Bruno Haible  <bruno@clisp.org>
56534
56535         Ensure O(n) worst-case complexity of c_strstr.
56536         * lib/c-strstr.c: Include stdbool.h, string.h.
56537         (knuth_morris_pratt): New function.
56538         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56539         bookkeeping indicates that it's worth it.
56540         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
56541
56542         * lib/c-strstr.c: Complete rewrite for maintainability.
56543
56544         * modules/c-strstr-tests: New file.
56545         * tests/test-c-strstr.c: New file.
56546
56547 2007-02-11  Bruno Haible  <bruno@clisp.org>
56548
56549         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
56550         5.2.1 and earlier, whereby \055 was treated just like the range
56551         delimiter '-'.
56552         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56553
56554 2007-02-08  Bruno Haible  <bruno@clisp.org>
56555
56556         * modules/regex (Depends-on): Add stdbool.
56557         Reported by Dalibor Topic <robilad@kaffe.org>.
56558
56559 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
56560
56561         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
56562         Prefer returning from main to exiting from it.
56563         Remove unnecessary parens after sizeof.
56564
56565 2007-02-05  Bruno Haible  <bruno@clisp.org>
56566
56567         New module mbssep.
56568         * modules/mbssep: New file.
56569         * lib/mbssep.c: New file.
56570         * lib/string_.h (strsep): Add a conditional link warning.
56571         (mbssep): New declaration.
56572         * m4/mbssep.m4: New file.
56573         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56574         GNULIB_MBSSEP.
56575         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
56576         * MODULES.html.sh (Internationalization functions): Add mbssep.
56577
56578 2007-02-05  Bruno Haible  <bruno@clisp.org>
56579
56580         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
56581         Optimize search in case of 1 delimiter.
56582
56583 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56584
56585         * lib/acl.h: Include sys/types.h before sys/acl.h.
56586
56587 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56588
56589         Merge upstream fix for glibc bugzilla #3957:
56590
56591         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
56592
56593         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
56594         bit for RE_HAT_LISTS_NOT_NEWLINE.
56595         (build_charclass_op): Remove bogus comment.
56596
56597 2007-02-05  Simon Josefsson  <simon@josefsson.org>
56598
56599         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
56600
56601 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56602
56603         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
56604         * lib/memmem.c [!defined _LIBC]: Include config.h.
56605
56606 2007-02-04  Bruno Haible  <bruno@clisp.org>
56607
56608         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
56609         warning message.
56610
56611 2007-02-04  Bruno Haible  <bruno@clisp.org>
56612
56613         New module mbstok_r.
56614         * modules/mbstok_r: New file.
56615         * lib/mbstok_r.c: New file.
56616         * lib/string_.h (strtok_r): Change argument names to match the
56617         comments. Add a conditional link warning.
56618         (mbstok_r): New declaration.
56619         * m4/mbstok_r.m4: New file.
56620         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56621         GNULIB_MBSTOK_R.
56622         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
56623         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
56624
56625 2007-02-04  Bruno Haible  <bruno@clisp.org>
56626
56627         New module mbsspn.
56628         * modules/mbsspn: New file.
56629         * lib/mbsspn.c: New file.
56630         * lib/string_.h (strspn): Add a conditional link warning.
56631         (mbsspn): New declaration.
56632         * m4/mbsspn.m4: New file.
56633         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56634         GNULIB_MBSSPN.
56635         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
56636         * MODULES.html.sh (Internationalization functions): Add mbsspn.
56637
56638 2007-02-04  Bruno Haible  <bruno@clisp.org>
56639
56640         New module mbspbrk.
56641         * modules/mbspbrk: New file.
56642         * lib/mbspbrk.c: New file.
56643         * lib/string_.h (strpbrk): Add a conditional link warning.
56644         (mbspbrk): New declaration.
56645         * m4/mbspbrk.m4: New file.
56646         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56647         GNULIB_MBSPBRK.
56648         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
56649         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
56650
56651 2007-02-04  Bruno Haible  <bruno@clisp.org>
56652
56653         New module mbscspn.
56654         * modules/mbscspn: New file.
56655         * lib/mbscspn.c: New file.
56656         * lib/string_.h (strcspn): Add a conditional link warning.
56657         (mbscspn): New declaration.
56658         * m4/mbscspn.m4: New file.
56659         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56660         GNULIB_MBSCSPN.
56661         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
56662         * MODULES.html.sh (Internationalization functions): Add mbscspn.
56663
56664 2007-02-04  Bruno Haible  <bruno@clisp.org>
56665
56666         New module mbscasestr, reduced goal of strcasestr.
56667         * modules/mbscasestr: New file.
56668         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
56669         (mbscasestr): Renamed from strcasestr.
56670         * lib/strcasestr.c: Don't include mbuiter.h.
56671         (strcasestr): Remove support for multibyte locales.
56672         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
56673         Change the conditional link warning.
56674         (mbscasestr): New declaration.
56675         * m4/mbscasestr.m4: New file.
56676         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
56677         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
56678         REPLACE_STRCASESTR.
56679         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
56680         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56681         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56682         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
56683         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
56684         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56685         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
56686         (Depends-on): Remove mbuiter.
56687         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
56688
56689 2007-02-04  Bruno Haible  <bruno@clisp.org>
56690
56691         Simplify handling of strncasecmp.
56692         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
56693         the conditional link warning.
56694         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56695         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
56696         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
56697         * modules/strcase (configure.ac): Don't invoke
56698         gl_STRING_MODULE_INDICATOR.
56699         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
56700
56701 2007-02-04  Bruno Haible  <bruno@clisp.org>
56702
56703         New module mbscasecmp, reduced goal of strcasecmp.
56704         * modules/mbscasecmp: New file.
56705         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
56706         (mbscasecmp): Renamed from strcasecmp.
56707         * lib/strcasecmp.c: Don't include mbuiter.h.
56708         (strcasecmp): Remove support for multibyte locales.
56709         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
56710         Change the conditional link warning.
56711         (mbscasecmp): New declaration.
56712         * m4/mbscasecmp.m4: New file.
56713         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
56714         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
56715         REPLACE_STRCASECMP.
56716         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
56717         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56718         GNULIB_MBSCASECMP.
56719         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
56720         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
56721         * modules/strcase (Files): Remove m4/mbrtowc.m4.
56722         (Depends-on): Remove mbuiter.
56723         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
56724
56725 2007-02-04  Bruno Haible  <bruno@clisp.org>
56726
56727         New module mbsstr. Remove module strstr.
56728         * modules/mbsstr: New file.
56729         * modules/strstr: Remove file.
56730         * lib/mbsstr.c: Renamed from lib/strstr.c.
56731         (mbsstr): Renamed from strstr.
56732         * lib/string_.h (strstr): Remove declaration. Change the conditional
56733         link warning.
56734         (mbsstr): New declaration.
56735         * m4/mbsstr.m4: New file.
56736         * m4/strstr.m4: Remove file.
56737         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
56738         REPLACE_STRSTR.
56739         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
56740         Don't initialize GNULIB_STRSTR.
56741         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
56742         substitute GNULIB_STRSTR and REPLACE_STRSTR.
56743         * MODULES.html.sh (Internationalization functions): Add mbsstr.
56744         (Support for systems lacking ANSI C 89): Remove strstr.
56745
56746 2007-02-04  Bruno Haible  <bruno@clisp.org>
56747
56748         New module mbsrchr.
56749         * modules/mbsrchr: New file.
56750         * lib/mbsrchr.c: New file.
56751         * lib/string_.h (strrchr): Add a conditional link warning.
56752         (mbsrchr): New declaration.
56753         * m4/mbsrchr.m4: New file.
56754         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56755         GNULIB_MBSRCHR.
56756         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
56757         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
56758
56759 2007-02-04  Bruno Haible  <bruno@clisp.org>
56760
56761         New module mbschr.
56762         * modules/mbschr: New file.
56763         * lib/mbschr.c: New file.
56764         * lib/string_.h (strchr): Add a conditional link warning.
56765         (mbschr): New declaration.
56766         * m4/mbschr.m4: New file.
56767         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56768         GNULIB_MBSCHR.
56769         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
56770         * MODULES.html.sh (Internationalization functions): Add mbschr.
56771
56772 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56773
56774         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
56775
56776         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
56777
56778 2007-02-04  Bruno Haible  <bruno@clisp.org>
56779
56780         New module description section 'configure.ac-early'.
56781         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
56782         (func_get_autoconf_early_snippet): New function.
56783         (func_import, func_create_testdir): Use it. Remove special cases for
56784         modules 'extensions' and 'lock'.
56785         * modules/extensions (configure.ac-early): Require
56786         gl_USE_SYSTEM_EXTENSIONS.
56787         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
56788
56789 2007-02-04  Bruno Haible  <bruno@clisp.org>
56790
56791         Make use of gcj-4.3's -fsource and -ftarget option.
56792         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
56793         and if so try the options -fsource and -ftarget.
56794         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
56795         source_version, ftarget_option, target_version arguments.
56796         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
56797         (is_envjavac_oldgcj_14_14_usable): Renamed from
56798         is_envjavac_gcj_14_14_usable.
56799         (is_envjavac_oldgcj_14_13_usable): Renamed from
56800         is_envjavac_gcj_14_13_usable.
56801         (is_gcj_present): Update.
56802         (is_gcj_43, is_gcj43_usable): New functions.
56803         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
56804         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
56805         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
56806         try the options -fsource and -ftarget.
56807
56808 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56809
56810         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
56811         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
56812         larger value.
56813
56814 2007-02-03  Jim Meyering  <jim@meyering.net>
56815
56816         Give tools a better chance to allocate space for very large buffers.
56817         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
56818
56819         Make pwd and readlink work also when run with an unreadable parent dir
56820         on systems with openat support.
56821         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
56822         provided getcwd function, even when we have openat support.
56823         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
56824
56825 2007-02-02  Bruno Haible  <bruno@clisp.org>
56826
56827         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56828         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
56829         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
56830         portability problems if one of these functions is only used on specific
56831         platforms.
56832         Reported by Paul Eggert.
56833
56834 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
56835
56836         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
56837         is causing more trouble than it's curing.
56838         * lib/regex_internal.h (__mempcpy): Remove.
56839         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
56840         (and make the code a tad smaller to boot).
56841         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
56842
56843 2007-02-02  Jim Meyering  <jim@meyering.net>
56844
56845         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
56846         section, not in the Makefile.am: one.
56847
56848 2007-02-02  Eric Blake  <ebb9@byu.net>
56849
56850         * lib/strchrnul.c: Always include config.h first.
56851
56852         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
56853         gnulib strstr is not necessary here.
56854
56855 2007-02-02  Simon Josefsson  <simon@josefsson.org>
56856
56857         * m4/socklen.m4: Fix typo.
56858
56859 2007-02-02  Eric Blake  <ebb9@byu.net>
56860
56861         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
56862         * modules/netinet_in (Makefile.am): Likewise.
56863
56864 2007-02-01  Bruno Haible  <bruno@clisp.org>
56865
56866         * lib/string_.h (GL_LINK_WARNING): New macro.
56867         (strcasecmp, strstr, strcasestr): If provided by the system,
56868         conditionally define as a macro that leads to a warning instead of to
56869         an error.
56870         (strncasecmp): Conditionally define as a macro that leads to a warning.
56871
56872 2007-02-01  Karl Berry  <karl@gnu.org>
56873
56874         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
56875
56876 2007-02-01  Bruno Haible  <bruno@clisp.org>
56877
56878         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
56879         renamings.
56880
56881 2007-02-01  Eric Blake  <ebb9@byu.net>
56882
56883         * modules/regex (Depends-on): Revert dependence on mempcpy.
56884         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
56885         module's definition of mempcpy.
56886         Reported by Paul Eggert.
56887
56888 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56889
56890         * lib/string_.h: If the gnulib module XYZ is not present, undefine
56891         the symbol XYZ before redefining it.  This fixes a problem with
56892         programs that don't use XYZ, when compiled on systems that define
56893         XYZ to something else.
56894
56895 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
56896
56897         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
56898         occurs when "mkdir -m foo" creates a setgid directory that is (1)
56899         writeable to group or other and (2) is intended to have a special
56900         mode bit that is set or cleared.  In such a case, the directory
56901         should be neither group- nor other-writeable until the special
56902         mode bits are right.
56903
56904 2007-01-31  Eric Blake  <ebb9@byu.net>
56905
56906         * modules/mountlist (Depends-on): Add strstr.
56907
56908         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
56909         bug.
56910         * modules/string (Makefile.am): Remove redundant replacement.
56911         * modules/regex (Depends-on): Add mempcpy.
56912
56913 2007-01-31  Bruno Haible  <bruno@clisp.org>
56914
56915         New module description field 'Link'.
56916         * gnulib-tool (func_usage): Document --extract-link-directive.
56917         (sed_extract_prog): Recognize 'Link' directive.
56918         (func_get_link_directive): New function.
56919         (func_import): Show summary of link directives.
56920         Handle --extract-link-directive option.
56921         * modules/acl (Link): New section.
56922         * modules/clock-time (Link): New section.
56923         * modules/euidaccess (Link): New section.
56924         * modules/gettext (Link): New section.
56925         * modules/iconv (Link): New section.
56926         * modules/lock (Link): New section.
56927         * modules/nanosleep (Link): New section.
56928         * modules/readline (Link): New section.
56929
56930 2007-01-27  Bruno Haible  <bruno@clisp.org>
56931
56932         Enforce the use of gnulib modules for unportable <string.h> functions.
56933         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
56934         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
56935         (gl_HEADER_STRING_H_BODY): Require it.
56936         * lib/string_.h: If the gnulib module XYZ is not present, redefine
56937         the symbol XYZ to one that gives a link error.
56938         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
56939         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
56940         * modules/mempcpy (configure.ac): Likewise.
56941         * modules/memrchr (configure.ac): Likewise.
56942         * modules/stpcpy (configure.ac): Likewise.
56943         * modules/stpncpy (configure.ac): Likewise.
56944         * modules/strcase (configure.ac): Likewise.
56945         * modules/strcasestr (configure.ac): Likewise.
56946         * modules/strchrnul (configure.ac): Likewise.
56947         * modules/strdup (configure.ac): Likewise.
56948         * modules/strndup (configure.ac): Likewise.
56949         * modules/strnlen (configure.ac): Likewise.
56950         * modules/strpbrk (configure.ac): Likewise.
56951         * modules/strsep (configure.ac): Likewise.
56952         * modules/strstr (configure.ac): Likewise.
56953         * modules/strtok_r (configure.ac): Likewise.
56954
56955 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
56956
56957         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
56958
56959 2007-01-30  Jim Meyering  <jim@meyering.net>
56960
56961         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
56962
56963 2007-01-29  Bruno Haible  <bruno@clisp.org>
56964
56965         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
56966         * lib/execute.c: Likewise.
56967         * lib/pipe.c: Likewise.
56968         * lib/printf-args.h: Likewise.
56969         * lib/printf-args.c: Likewise.
56970         * lib/printf-parse.c: Likewise.
56971         * lib/vasnprintf.c: Likewise.
56972
56973 2007-01-29  Eric Blake  <ebb9@byu.net>
56974
56975         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
56976         declaration.
56977
56978 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56979
56980         * lib/strptime.h (strptime): Use 'restrict' for args where
56981         POSIX requires this.
56982         * lib/strptime.c (strptime): Likewise.
56983         Change license notice from LGPL to GPL, since gnulib-tool will
56984         change this as needed.
56985         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
56986         defined.
56987         Include "strptime.h" first, to check interface.
56988         Do not #undef _LIBC and _NL_CURRENT.
56989         Do not include <stdlib.h>; no longer needed.
56990         Include "time_r.h" and declare ptime_locale_status
56991         only if _LIBC is not defined.
56992         (__P): Remove unused macro.
56993         (match_string): Bring back glibc version, but use it only if _LIBC
56994         is defined.
56995         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
56996         Remove unnecessary assertion and abort() call.
56997         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
56998         * m4/strptime.m4: Fix serial number comment.
56999         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
57000         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
57001         (Depends-on): Add time_r.
57002
57003 2007-01-29  Bruno Haible  <bruno@clisp.org>
57004
57005         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57006         strptime.
57007         * modules/strptime (Depends-on): Add stdbool.
57008         * lib/strptime.h: Include <time.h> always. Add comments.
57009
57010 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57011
57012         * modules/strptime: New file.
57013         * lib/strptime.h: New file.
57014         * lib/strptime.c: New file.
57015         * m4/strptime.m4: New file.
57016
57017 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57018
57019         * MODULES.html.sh: New module mpsort.
57020         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
57021
57022         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
57023         a circularity problem with HP-UX ia64 reported by Bob Proulx in
57024         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
57025         All uses changed.
57026         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
57027         All uses changed.
57028         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
57029         to _Restrict_.
57030         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
57031         the parameter matches the prototype.
57032
57033 2007-01-28  Jim Meyering  <jim@meyering.net>
57034
57035         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
57036         sys/time.h here, reverting that part of the previous patch:
57037         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
57038
57039 2007-01-28  Bruno Haible  <bruno@clisp.org>
57040
57041         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
57042         value of $(SYS_TIME_H).
57043         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
57044         remove it conditionally, too. [added by Jim Meyering]
57045         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
57046         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57047         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
57048         GETTIMEOFDAY_REPLACEMENT to 1.
57049
57050 2007-01-28  Bruno Haible  <bruno@clisp.org>
57051
57052         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
57053         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
57054         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
57055         Set UNISTD_H instead of UNISTD_H2.
57056         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
57057
57058 2007-01-28  Bruno Haible  <bruno@clisp.org>
57059
57060         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
57061         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
57062
57063 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57064
57065         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
57066         (func_create_testdir): Ensure C locale for `grep' and `tr'
57067         character ranges.
57068         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
57069         ACLOCAL_AMFLAGS parsing state machine.
57070
57071 2007-01-27  Bruno Haible  <bruno@clisp.org>
57072
57073         * modules/unistr/base: Update.
57074
57075 2007-01-27  Bruno Haible  <bruno@clisp.org>
57076
57077         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
57078         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
57079         * modules/unistr/u32-mbtouc-unsafe: Renamed from
57080         modules/unistr/u32-mbtouc.
57081         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
57082         * lib/unistr.h: Update.
57083         * lib/linebreak.c: Update.
57084         * modules/unistr/u32-mbtouc: Renamed from
57085         modules/unistr/u32-mbtouc-safe.
57086         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
57087         * lib/unistr.h: Update.
57088         * lib/unistr/u32-to-u8.c: Update.
57089         * lib/unistr/u32-to-u16.c: Update.
57090
57091 2007-01-27  Bruno Haible  <bruno@clisp.org>
57092
57093         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
57094         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
57095         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
57096         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
57097         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
57098         * modules/unistr/u16-mbtouc-unsafe: Renamed from
57099         modules/unistr/u16-mbtouc.
57100         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
57101         * lib/unistr.h: Update.
57102         * lib/linebreak.c: Update.
57103         * modules/linebreak: Update.
57104         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
57105         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
57106         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
57107         * modules/unistr/u16-mbtouc: Renamed from
57108         modules/unistr/u16-mbtouc-safe.
57109         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
57110         * lib/unistr.h: Update.
57111         * lib/unistr/u16-to-u8.c: Update.
57112         * modules/unistr/u16-to-u8: Update.
57113         * lib/unistr/u16-to-u32.c: Update.
57114         * modules/unistr/u16-to-u32: Update.
57115
57116 2007-01-27  Bruno Haible  <bruno@clisp.org>
57117
57118         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
57119         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
57120         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
57121         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
57122         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
57123         * modules/unistr/u8-mbtouc-unsafe: Renamed from
57124         modules/unistr/u8-mbtouc.
57125         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
57126         * lib/unistr.h: Update.
57127         * lib/striconveh.c: Update.
57128         * modules/striconveh: Update.
57129         * lib/linebreak.c: Update.
57130         * modules/linebreak: Update.
57131         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
57132         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
57133         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
57134         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
57135         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
57136         * lib/unistr.h: Update.
57137         * lib/striconveh.c: Update.
57138         * modules/striconveh: Update.
57139         * lib/unistr/u8-to-u16.c: Update.
57140         * modules/unistr/u8-to-u16: Update.
57141         * lib/unistr/u8-to-u32.c: Update.
57142         * modules/unistr/u8-to-u32: Update.
57143
57144 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57145
57146         Sync from Libtool.
57147         * lib/argz.c: Do not include strings.h nor memory.h, include
57148         string.h unconditionally.  Patch by Simon Josefsson.
57149
57150 2007-01-27  Bruno Haible  <bruno@clisp.org>
57151
57152         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
57153         from gl_HEADER_STRING_H_BODY.
57154         (gl_HEADER_STRING_H_BODY): Require it.
57155         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
57156         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57157         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57158         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57159         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57160         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
57161         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57162         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57163         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
57164         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57165         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57166         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
57167         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57168         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57169         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57170
57171 2007-01-27  Bruno Haible  <bruno@clisp.org>
57172
57173         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
57174         check_PROGRAMS into noinst_PROGRAMS.
57175         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
57176         check_PROGRAMS in this case.
57177         (func_import): Set for_test to false.
57178         (func_create_testdir): Set for_test to true.
57179
57180 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57181             Bruno Haible  <bruno@clisp.org>
57182
57183         * modules/strcasestr (Files): Remove lib/strcasestr.h.
57184         (Depends-on): Add string.
57185         (Includes): Use <string.h> instead of strcasestr.h.
57186         * modules/string (Makefile.am): Also substitute the value of
57187         REPLACE_STRCASESTR.
57188         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
57189         assume strcasestr is declared in <string.h> not <strings.h>. Also
57190         set REPLACE_STRCASESTR.
57191         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
57192         REPLACE_STRCASESTR.
57193         * lib/strcasestr.h: Remove file.
57194         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
57195         * lib/string_.h (strcasestr): New declaration.
57196
57197 2007-01-27  Bruno Haible  <bruno@clisp.org>
57198
57199         * lib/string_.h: Use 'extern'.
57200
57201 2007-01-27  Jim Meyering  <jim@meyering.net>
57202
57203         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
57204         of set-but-not-used local, "q".
57205
57206         * lib/mempcpy.c: Include <config.h> before <string.h>.
57207         This fixes a compilation error on HP-UX, due to the system's
57208         "restrict"-using mempcpy prototype.
57209
57210 2007-01-26  Bruno Haible  <bruno@clisp.org>
57211
57212         Small optimization.
57213         * lib/javacomp.c: Include c-strstr.h.
57214          (is_envjavac_gcj): Use c_strstr instead of strstr.
57215         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
57216
57217 2007-01-26  Bruno Haible  <bruno@clisp.org>
57218
57219         * MODULES.html.sh (Unicode string functions): Add the new modules.
57220
57221         * modules/uniconv/u32-strconv-to-locale: New file.
57222         * lib/uniconv/u32-strconv-to-locale.c: New file.
57223
57224         * modules/uniconv/u16-strconv-to-locale: New file.
57225         * lib/uniconv/u16-strconv-to-locale.c: New file.
57226
57227         * modules/uniconv/u8-strconv-to-locale: New file.
57228         * lib/uniconv/u8-strconv-to-locale.c: New file.
57229
57230         * modules/uniconv/u32-strconv-from-locale: New file.
57231         * lib/uniconv/u32-strconv-from-locale.c: New file.
57232
57233         * modules/uniconv/u16-strconv-from-locale: New file.
57234         * lib/uniconv/u16-strconv-from-locale.c: New file.
57235
57236         * modules/uniconv/u8-strconv-from-locale: New file.
57237         * lib/uniconv/u8-strconv-from-locale.c: New file.
57238
57239         * modules/uniconv/u32-strconv-to-enc: New file.
57240         * lib/uniconv/u32-strconv-to-enc.c: New file.
57241         * modules/uniconv/u32-strconv-to-enc-tests: New file.
57242         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
57243
57244         * modules/uniconv/u16-strconv-to-enc: New file.
57245         * lib/uniconv/u16-strconv-to-enc.c: New file.
57246         * lib/uniconv/u-strconv-to-enc.h: New file.
57247         * modules/uniconv/u16-strconv-to-enc-tests: New file.
57248         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
57249
57250         * modules/uniconv/u8-strconv-to-enc: New file.
57251         * lib/uniconv/u8-strconv-to-enc.c: New file.
57252         * modules/uniconv/u8-strconv-to-enc-tests: New file.
57253         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
57254
57255         * modules/uniconv/u32-strconv-from-enc: New file.
57256         * lib/uniconv/u32-strconv-from-enc.c: New file.
57257         * modules/uniconv/u32-strconv-from-enc-tests: New file.
57258         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
57259
57260         * modules/uniconv/u16-strconv-from-enc: New file.
57261         * lib/uniconv/u16-strconv-from-enc.c: New file.
57262         * modules/uniconv/u16-strconv-from-enc-tests: New file.
57263         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
57264
57265         * modules/uniconv/u8-strconv-from-enc: New file.
57266         * lib/uniconv/u8-strconv-from-enc.c: New file.
57267         * lib/uniconv/u-strconv-from-enc.h: New file.
57268         * modules/uniconv/u8-strconv-from-enc-tests: New file.
57269         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
57270
57271         * modules/uniconv/u32-conv-from-enc: New file.
57272         * lib/uniconv/u32-conv-from-enc.c: New file.
57273         * modules/uniconv/u32-conv-from-enc-tests: New file.
57274         * tests/uniconv/test-u32-conv-from-enc.c: New file.
57275
57276         * modules/uniconv/u16-conv-from-enc: New file.
57277         * lib/uniconv/u16-conv-from-enc.c: New file.
57278         * lib/uniconv/u-conv-from-enc.h: New file.
57279         * modules/uniconv/u16-conv-from-enc-tests: New file.
57280         * tests/uniconv/test-u16-conv-from-enc.c: New file.
57281
57282         * modules/uniconv/u8-conv-from-enc: New file.
57283         * lib/uniconv/u8-conv-from-enc.c: New file.
57284         * modules/uniconv/u8-conv-from-enc-tests: New file.
57285         * tests/uniconv/test-u8-conv-from-enc.c: New file.
57286
57287         * modules/uniconv/base: New file.
57288         * lib/uniconv.h: New file.
57289
57290 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57291
57292         * doc/gnulib-tool.texi (Initial import): Update to match current
57293         behavior with strdup module.
57294         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
57295         * lib/memmem.h: Remove; all uses removed.  This is now done
57296         by <string.h>.
57297         * lib/mempcpy.h: Likewise.
57298         * lib/memrchr.h: Likewise.
57299         * lib/stpcpy.h: Likewise.
57300         * lib/stpncpy.h: Likewise.
57301         * lib/strcase.h: Likewise.
57302         * lib/strchrnul.h: Likewise.
57303         * lib/strdup.h: Likewise.
57304         * lib/strndup.h: Likewise.
57305         * lib/strnlen.h: Likewise.
57306         * lib/strpbrk.h: Likewise.
57307         * lib/strsep.h: Likewise.
57308         * lib/strstr.h: Likewise.
57309         * lib/strtok_r.h: Likewise.
57310         * lib/string_.h: New file.
57311         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
57312         Rely on <string.h> instead.
57313         * lib/canon-host.c: Likewise.
57314         * lib/chdir-long.c: Likewise.
57315         * lib/concatpath.c: Likewise.
57316         * lib/exclude.c: Likewise.
57317         * lib/fchdir.c: Likewise.
57318         * lib/getaddrinfo.c: Likewise.
57319         * lib/getcwd.c: Likewise.
57320         * lib/getsubopt.c: Likewise.
57321         * lib/glob.c: Likewise.
57322         * lib/hard-locale.c: Likewise.
57323         * lib/iconvme.c: Likewise.
57324         * lib/javacomp.c: Likewise.
57325         * lib/mempcpy.c: Likewise.
57326         * lib/memrchr.c: Likewise.
57327         * lib/regex_internal.h: Likewise.
57328         * lib/stpncpy.c: Likewise.
57329         * lib/strcasecmp.c: Likewise.
57330         * lib/strchrnul.c: Likewise.
57331         * lib/strdup.c: Likewise.
57332         * lib/striconv.c: Likewise.
57333         * lib/striconveh.c: Likewise.
57334         * lib/striconveha.c: Likewise.
57335         * lib/strncasecmp.c: Likewise.
57336         * lib/strndup.c: Likewise.
57337         * lib/strnlen.c: Likewise.
57338         * lib/strsep.c: Likewise.
57339         * lib/strstr.c: Likewise.
57340         * lib/strtok_r.c: Likewise.
57341         * lib/userspec.c: Likewise.
57342         * lib/w32spawn.h: Likewise.
57343         * lib/xstrndup.c: Likewise.
57344         * lib/mountlist.c (strstr): Remove decl.
57345         * m4/string_h.m4: New file.
57346         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
57347         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
57348         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
57349         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
57350         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
57351         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
57352         Set REPLACE_STRCASECMP if necessary.
57353         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
57354         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
57355         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
57356         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
57357         HAVE_DECL_STRDUP if necessary.
57358         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
57359         since gl_FUNC_STRNDUP does that now.
57360         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
57361         Check for decl here...
57362         (gl_PREREQ_STRNLEN): ... not here.
57363         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
57364         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
57365         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
57366         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
57367         necessary.
57368         * modules/string: New file.
57369         * modules/memmem (Files): Remove special-purpose include file.
57370         (Depends-on): Add string.
57371         (Include): Include <string.h>, not the removed file.
57372         * modules/mempcpy: Likewise.
57373         * modules/memrchr: Likewise.
57374         * modules/stpcpy: Likewise.
57375         * modules/stpncpy: Likewise.
57376         * modules/strcase: Likewise.
57377         * modules/strchrnul: Likewise.
57378         * modules/strdup: Likewise.
57379         * modules/strndup: Likewise.
57380         * modules/strnlen: Likewise.
57381         * modules/strpbrk: Likewise.
57382         * modules/strsep: Likewise.
57383         * modules/strstr: Likewise.
57384         * modules/strtok_r: Likewise.
57385         * tests/test-dirname.c: Don't include "strdup.h", since
57386         <string.h> now suffices.
57387         * tests/test-memmem.c: Don't include "memmem.h", since
57388         <string.h> now suffices.
57389
57390 2007-01-25  Bruno Haible  <bruno@clisp.org>
57391
57392         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
57393         *resultp is 0.
57394
57395         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
57396         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
57397         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
57398         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
57399
57400         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
57401         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
57402         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
57403         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
57404         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
57405         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
57406
57407 2007-01-24  Bruno Haible  <bruno@clisp.org>
57408
57409         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
57410         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
57411         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
57412         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
57413         gl_FUNC_FTS_CORE.
57414         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
57415         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
57416         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57417         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
57418         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
57419         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
57420         gl_FUNC_FCHOWNAT.
57421         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
57422         gl_FUNC_STRFTIME.
57423         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
57424         Reported by Ralf Wildenhues.
57425
57426 2007-01-24  Bruno Haible  <bruno@clisp.org>
57427
57428         Drop AC_REQUIRE calls that are redundant with the module dependencies.
57429         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
57430         gl_GETADDRINFO.
57431         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
57432         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
57433         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
57434
57435 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
57436
57437         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
57438         Don't use 'exit'; just return from 'main'.
57439         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
57440
57441         * lib/fnmatch_.h: Readjust white space and comments to match
57442         glibc, to avoid spurious diffs.
57443
57444 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57445
57446         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
57447         2004-12-01 change by Jakub Jelinek, since this code won't compile
57448         if !LIBC.  Problem reported by Bob Proulx.
57449
57450 2007-01-23  Bruno Haible  <bruno@clisp.org>
57451
57452         * lib/striconveh.c: Include c-strcaseeq.h.
57453         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
57454         * modules/striconveh (Depends-on): Add c-strcaseeq.
57455
57456 2007-01-23  Bruno Haible  <bruno@clisp.org>
57457
57458         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
57459
57460         * modules/c-strcaseeq: New file.
57461         * lib/c-strcaseeq.h: New file.
57462
57463         * modules/streq: New file.
57464         * lib/streq.h: New file.
57465
57466 2007-01-23  Bruno Haible  <bruno@clisp.org>
57467
57468         * modules/striconveha-tests: New file.
57469         * tests/test-striconveha.c: New file.
57470
57471         * lib/striconveha.h: Include <stdbool.h>.
57472         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
57473         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
57474         (mem_iconveha_notranslit): Renamed from mem_iconveha.
57475         (mem_iconveha): New function.
57476         (str_iconveha_notranslit): Renamed from str_iconveha.
57477         (str_iconveha): New function.
57478         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
57479         c-strcase.
57480
57481 2007-01-23  Bruno Haible  <bruno@clisp.org>
57482
57483         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
57484         encodings without forgiving before trying any encoding with handler.
57485         (str_iconveha): Try all encodings without forgiving before trying any
57486         encoding with handler.
57487
57488 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57489
57490         Import the following changes from libc.
57491
57492         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
57493
57494         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
57495
57496         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
57497
57498         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
57499         normal_bracket label.
57500
57501         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
57502
57503         [BZ #361]
57504         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
57505         to normal_bracket after fetching the next character.
57506
57507 2007-01-22  Bruno Haible  <bruno@clisp.org>
57508
57509         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
57510         argument.
57511         * lib/striconveh.c (iconv_carefully_1): New function.
57512         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
57513         argument.
57514         (str_cd_iconveh): Update.
57515         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
57516         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
57517         * tests/test-striconveh.c (MAGIC): New macro.
57518         (new_offsets): New function.
57519         (main): Test call with and without offsets.
57520
57521 2007-01-22  Bruno Haible  <bruno@clisp.org>
57522
57523         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
57524         * modules/sys_select (Makefile.am): Likewise.
57525         * modules/sys_socket (Makefile.am): Likewise.
57526         * modules/sys_time (Makefile.am): Likewise.
57527
57528 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57529
57530         * modules/gettimeofday (License): Change from GPL to LGPL, since
57531         gettimeofday is a library function.
57532
57533 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57534
57535         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
57536
57537 2007-01-21  Bruno Haible  <bruno@clisp.org>
57538
57539         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
57540
57541 2007-01-21  Bruno Haible  <bruno@clisp.org>
57542
57543         * modules/striconveha: New file.
57544         * lib/striconveha.h: New file.
57545         * lib/striconveha.c: New file.
57546         * MODULES.html.sh (Internationalization functions): Add striconveha.
57547         * lib/striconv.c (str_iconv): Optimize the case of an empty input
57548         string.
57549         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
57550
57551 2007-01-21  Bruno Haible  <bruno@clisp.org>
57552
57553         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
57554         * lib/striconveh.c (str_iconveh): Likewise.
57555
57556 2007-01-21  Bruno Haible  <bruno@clisp.org>
57557
57558         * lib/striconveh.h (mem_iconveh): New declaration.
57559         * lib/striconveh.c (mem_iconveh): New function.
57560         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
57561
57562 2007-01-21  Bruno Haible  <bruno@clisp.org>
57563
57564         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
57565
57566         * lib/striconveh.h (mem_cd_iconveh): Change specification.
57567         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
57568         original result buffer.
57569         (str_cd_iconveh): Update.
57570         * tests/test-striconveh.c (main): Update.
57571
57572         * lib/striconv.h (mem_cd_iconv): Change specification.
57573         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
57574         result buffer.
57575         (str_cd_iconv): Update.
57576         * tests/test-striconv.c (main): Update.
57577
57578 2007-01-21  Bruno Haible  <bruno@clisp.org>
57579
57580         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
57581
57582 2007-01-20  Jim Meyering  <jim@meyering.net>
57583
57584         * lib/userspec.c (parse_with_separator): If a user or group string
57585         starts with "+", skip the corresponding name-to-ID look-up, since
57586         such a look-up must fail: user and group names may not include "+".
57587
57588 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57589
57590         * lib/poll.c: Include sys/time.h and time.h unconditionally,
57591         since we now assume the sys_time module.
57592         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
57593         check for sys/time.h; no longer needed.
57594         * modules/poll (Depends-on): Depend on sys_time.
57595
57596 2007-01-18  Bruno Haible  <bruno@clisp.org>
57597
57598         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
57599         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57600
57601         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
57602         gettimeofday.
57603
57604         * tests/test-gettimeofday.c: Include <time.h>.
57605         (dummy): Remove variable.
57606
57607         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
57608         gl_HEADER_SYS_TIME_H.
57609         (gl_HEADER_SYS_TIME_H): New macro.
57610
57611         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
57612         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57613         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
57614         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
57615         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57616         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
57617         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
57618         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57619         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
57620         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
57621         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57622
57623         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
57624         last change; it caused a compilation error when cross-compiling to
57625         Cygwin.
57626
57627 2007-01-18  Jim Meyering  <jim@meyering.net>
57628
57629         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
57630         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
57631         than the race-prone "test -d sys || mkdir sys".
57632         (configure.ac): Use AC_PROG_MKDIR_P.
57633         * modules/sys_select: Likewise.
57634         * modules/sys_socket: Likewise.
57635         * modules/sys_time: Likewise.
57636
57637 2007-01-18  Eric Blake  <ebb9@byu.net>
57638
57639         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
57640         replace gettimeofday.
57641         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
57642         name, to avoid infinite recursion.
57643
57644 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
57645
57646         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
57647         module sys_time.
57648         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
57649         assume timespec.h defines struct timeval.
57650         * lib/settime.c: Likewise.
57651         * lib/utimens.c: Likewise.
57652         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
57653         since we now assume the gettimeofday module.
57654         * lib/tempname.c (__gen_tempname): Likewise.
57655         * lib/gettimeofday.h: Remove.
57656         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
57657         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
57658         Include <time.h>, for 'time()'.
57659         (localtime_buffer_addr): Also use this workaround if
57660         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
57661         to simplify the uses.  All uses changed.
57662         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
57663         that #undef is inside {}, and 'const' follows type name consistently.
57664         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
57665         (gettimeofday): Do not use the maximum possible value for
57666         tv->tv_usec, since that might break usages other than ls.c.
57667         Instead, we'll leave ls.c alone.  This undoes today's patch
57668         by Bruno.  Add a compile-time warning for 1s-clock resolution;
57669         we've never observed the problem but might as well keep the
57670         canary.
57671         * lib/nanosleep.c: Include timespec.h first, for interface check.
57672         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
57673         now assume the sys_time module.
57674         * lib/tempname.c: Likewise.
57675         * lib/timespec.h: Likewise.
57676         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
57677         needed.
57678         * lib/strftime.c: Likewise.
57679         * lib/timespec.h: Likewise.
57680         * lib/posixtm.c: Include posixtm.h first, for interface check.
57681         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
57682         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
57683         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
57684         * lib/sys_time_.h: New file.
57685         * lib/timespec.h (struct timespec): Use long int, not long.
57686         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57687         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
57688         Remove obsolescent call to AC_HEADER_TIME.
57689         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
57690         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57691         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57692         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
57693         Likewise.
57694         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
57695         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
57696         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
57697         into the sys_time module.  Check for gettimeofday just once.
57698         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
57699         for gettimeofday signature to just check the signature.  Merely
57700         compile it, since linking doesn't test signature.  Improve test for
57701         whether gettimeofday.o is actually needed.
57702         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
57703         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
57704         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
57705         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57706         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
57707         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
57708         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
57709         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
57710         than worrying about sys/time.h.
57711         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57712         Don't bother worrying about TIME_WITH_SYS_TIME.
57713         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
57714         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
57715         * m4/sys_time_h.m4: New file.
57716         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
57717         Don't include sys/time.h.  Return from main rather than exiting.
57718         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
57719         all uses changed.
57720         * modules/gethrxtime (Depends-on): Add sys_time.
57721         * modules/gettime (Depends-on): Likewise.
57722         * modules/gettimeofday (Depends-on): Likewise.
57723         * modules/nanosleep (Depends-on): Likewise.
57724         * modules/settime (Depends-on): Likewise.
57725         * modules/tempname (Depends-on): Likewise.
57726         * modules/utimens (Depends-on): Likewise.
57727         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
57728         (Include): Change back to <sys/time.h>.
57729         (Maintainer): Add self.
57730         * modules/sys_time: New file.
57731         * modules/tempname (Depends-on): Add gettimeofday.
57732         * tests/test-gettimeofday.c: Include <sys/time.h>
57733         rather than gettimeofday.h.
57734
57735 2007-01-17  Bruno Haible  <bruno@clisp.org>
57736
57737         * gnulib-tool (func_get_license): Revert last patch. Instead, let
57738         the license default to GPL.
57739         (func_create_testdir): Don't complain if a module is LGPL and its
57740         tests module depends on GPLed modules.
57741
57742 2007-01-17  Bruno Haible  <bruno@clisp.org>
57743
57744         * lib/gettimeofday.c (gettimeofday): Add code for the case
57745         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
57746         maximum possible value for tv->tv_usec, rather than the minimum one.
57747
57748 2005-10-08  Martin Lambers  <marlam@marlam.de>
57749 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57750 2007-01-16  Bruno Haible  <bruno@clisp.org>
57751
57752         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
57753         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
57754         gl_FUNC_GETTIMEOFDAY.
57755         (Include): Add gettimeofday.h.
57756         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
57757         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
57758         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
57759         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
57760         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
57761         * lib/gettimeofday.h: New file.
57762         * lib/gettimeofday.c: Include <sys/timeb.h>.
57763         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
57764         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57765         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
57766         fall back on time().
57767
57768         * tests/test-gettimeofday.c: New file.
57769         * modules/gettimeofday-tests: New file.
57770
57771 2007-01-16  Eric Blake  <ebb9@byu.net>
57772
57773         * modules/fnmatch (Depends-on): Depend on wchar.
57774         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
57775         * m4/fnmatch.m4: Likewise.
57776         * modules/mbchar (Makefile.am): Assume <wchar.h>.
57777         * m4/mbchar.m4: Likewise.
57778         * modules/mbswidth (Depends-on): Depend on wchar.
57779         * lib/mbswidth.c: Assume <wchar.h>.
57780         * m4/mbswidth.m4: Likewise.
57781         * modules/quotearg (Depends-on): Depend on wchar.
57782         * lib/quotearg.c: Assume <wchar.h>.
57783         * m4/quotearg.m4: Likewise.
57784         * modules/regex (Depends-on): Depend on wchar.
57785         * lib/regex_internal.h: Assume <wchar.h>.
57786         * m4/regex.m4: Likewise.
57787         * modules/stdint (Depends-on): Depend on wchar.
57788         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
57789         * m4/stdint.m4: Likewise.
57790         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
57791         * modules/strftime (Depends-on): Depend on wchar.
57792         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
57793         * modules/strtol (Depends-on): Depend on wchar.
57794         * lib/strtol.c: Assume <wchar.h>.
57795         * modules/wcwidth (Depends-on): Depend on wchar.
57796         * lib/wcwidth.h: Assume <wchar.h>.
57797         * m4/wcwidth.m4: Likewise.
57798
57799 2007-01-16  Bruno Haible  <bruno@clisp.org>
57800
57801         * modules/csharpexec-script: New, created from...
57802         * modules/csharpexec: ... this.
57803
57804 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57805
57806         * modules/javaexec-script: New, created from...
57807         * modules/javaexec: ... this.
57808
57809 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57810
57811         * modules/poll (Dependencies): Add sys_select.
57812
57813 2007-01-15  Jim Meyering  <jim@meyering.net>
57814
57815         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
57816         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
57817         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
57818         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
57819
57820 2007-01-15  Bruno Haible  <bruno@clisp.org>
57821
57822         * modules/striconveh: New file.
57823         * lib/striconveh.h: New file.
57824         * lib/striconveh.c: New file.
57825         * MODULES.html.sh (Internationalization functions): Add striconveh.
57826
57827         * modules/striconveh-tests: New file.
57828         * tests/test-striconveh.c: New file.
57829
57830 2007-01-15  Bruno Haible  <bruno@clisp.org>
57831
57832         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
57833         not from GNU libiconv or GNU libc.
57834
57835 2007-01-15  Bruno Haible  <bruno@clisp.org>
57836
57837         * doc/gnulib-intro.texi (Copyright): Explain the different license
57838         terms for module descriptions, autoconf macros, tests, documentation.
57839
57840 2007-01-14  Bruno Haible  <bruno@clisp.org>
57841
57842         * modules/striconv-tests: New file.
57843         * tests/test-striconv.c: New file.
57844
57845 2007-01-14  Bruno Haible  <bruno@clisp.org>
57846
57847         * modules/iconv-tests: New file.
57848         * tests/test-iconv.c: New file.
57849
57850 2007-01-14  Bruno Haible  <bruno@clisp.org>
57851
57852         * gnulib-tool (func_get_license): For test modules, use the license of
57853         the main module.
57854
57855 2007-01-14  Bruno Haible  <bruno@clisp.org>
57856
57857         * modules/iconv (Include): Clarify that <iconv.h> can only be included
57858         if iconv is found to exist.
57859
57860 2007-01-14  Bruno Haible  <bruno@clisp.org>
57861
57862         * modules/c-ctype-tests: New file.
57863         * tests/test-c-ctype.c: New file.
57864
57865 2007-01-14  Bruno Haible  <bruno@clisp.org>
57866
57867         * modules/binary-io-tests: New file.
57868         * tests/test-binary-io.sh: New file.
57869         * tests/test-binary-io.c: New file.
57870
57871 2007-01-14  Bruno Haible  <bruno@clisp.org>
57872
57873         * modules/array-oset-tests: New file.
57874         * tests/test-array_oset.c: New file.
57875
57876 2007-01-14  Bruno Haible  <bruno@clisp.org>
57877
57878         * modules/array-list-tests: New file.
57879         * tests/test-array_list.c: New file.
57880
57881 2007-01-14  Bruno Haible  <bruno@clisp.org>
57882
57883         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
57884         and make.
57885         Reported by Simon Josefsson in
57886         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
57887
57888 2007-01-14  Bruno Haible  <bruno@clisp.org>
57889
57890         * modules/allocsa-tests: New file.
57891         * tests/test-allocsa.c: New file.
57892
57893 2007-01-14  Bruno Haible  <bruno@clisp.org>
57894
57895         * modules/fchdir (Depends-on): Add absolute-header.
57896         * modules/unistd (Depends-on): Likewise.
57897
57898 2006-12-30  Bruno Haible  <bruno@clisp.org>
57899
57900         * modules/fchdir: New file.
57901         * modules/unistd (Files): Add lib/unistd_.h.
57902         (Makefile.am): Generate unistd.h from unistd_.h.
57903         * lib/fchdir.c: New file.
57904         * lib/dirent_.h: New file.
57905         * lib/unistd_.h: New file.
57906         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
57907         * m4/fchdir.m4: New file.
57908         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
57909         (gl_HEADER_UNISTD): Invoke it.
57910         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
57911         function.
57912         * lib/backupfile.c (opendir, closedir): Undefine.
57913         * lib/chown.c (open, close): Undefine.
57914         * lib/clean-temp.c (open, close): Undefine.
57915         * lib/copy-file.c (open, close): Undefine.
57916         * lib/execute.c (open, close): Undefine.
57917         * lib/fsusage.c (open, close): Undefine.
57918         * lib/gc-gnulib.c (open, close): Undefine.
57919         * lib/getcwd.c (opendir, closedir): Undefine.
57920         * lib/glob.c (opendir, closedir): Undefine.
57921         * lib/javacomp.c (open, close): Undefine.
57922         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
57923         * lib/openat-proc.c (open, close): Undefine.
57924         * lib/pagealign_alloc.c (open, close): Undefine.
57925         * lib/pipe.c (open, close): Undefine.
57926         * lib/progreloc.c (open, close): Undefine.
57927         * lib/savedir.c (opendir, closedir): Undefine.
57928         * lib/utime.c (open, close): Undefine.
57929         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
57930
57931 2007-01-10  Bruno Haible  <bruno@clisp.org>
57932
57933         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
57934
57935 2007-01-12  Eric Blake  <ebb9@byu.net>
57936
57937         Provide a robust <wchar.h>.  Further simplifications are now
57938         possible in other modules, but not included here.
57939         * modules/wchar: New module.
57940         * m4/wchar.m4: New file.
57941         * lib/wchar_.h: Likewise.
57942         * modules/mbchar (Depends-on): Depend on wchar, as the first use
57943         of the new module.
57944         * MODULES.html.sh (Extended multibyte and wide character utilities):
57945         New section.
57946
57947 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
57948
57949         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
57950         to a reasonable default for memory allocation.
57951         (xreadlink): Don't allocate a huge buffer, to work around a buggy
57952         file system that reports garbage st_size values for symlinks.
57953         Problem reported by Liyang Hu.
57954
57955 2007-01-11  Simon Josefsson  <simon@josefsson.org>
57956
57957         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
57958         Emacs .#* auto-save files).
57959
57960 2007-01-11  Bruno Haible  <bruno@clisp.org>
57961
57962         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
57963         directory.
57964
57965 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57966
57967         Use @...@ consistently in lib/wctype_.h.
57968         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
57969         on it being set to 1 or 0.
57970         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
57971         go back to AC_SUBSTing it.
57972         * modules/wctype (Makefile.am): Undo previous change.
57973
57974 2007-01-10  Eric Blake  <ebb9@byu.net>
57975
57976         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
57977         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
57978         * modules/wctype (Makefile.am): Likewise.
57979         Reported by Chris McGuire.
57980
57981 2007-01-10  Jim Meyering  <jim@meyering.net>
57982
57983         fts.c: a small readability/maintainability improvement
57984         * lib/fts.c (fts_read): Make this code slightly more readable and
57985         maintainable by hoisting the "sp->fts_cur = p" assignments to
57986         immediately follow the statements that set P.  Derived from
57987         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
57988
57989 2007-01-10  Eric Blake  <ebb9@byu.net>
57990
57991         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
57992         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
57993         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57994         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
57995         Reported by Chris McGuire.
57996
57997 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57998
57999         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
58000         in sed script.
58001
58002 2007-01-09  Bruno Haible  <bruno@clisp.org>
58003
58004         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
58005         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
58006         variables.
58007         (func_module): Use them.
58008
58009 2007-01-09  Bruno Haible  <bruno@clisp.org>
58010
58011         * modules/unistr/base: New file.
58012         * lib/unistr.h: New file.
58013
58014         * modules/unistr/u8-to-u16: New file.
58015         * lib/unistr/u8-to-u16.c: New file.
58016
58017         * modules/unistr/u8-to-u32: New file.
58018         * lib/unistr/u8-to-u32.c: New file.
58019
58020         * modules/unistr/u16-to-u8: New file.
58021         * lib/unistr/u16-to-u8.c: New file.
58022
58023         * modules/unistr/u16-to-u32: New file.
58024         * lib/unistr/u16-to-u32.c: New file.
58025
58026         * modules/unistr/u32-to-u8: New file.
58027         * lib/unistr/u32-to-u8.c: New file.
58028
58029         * modules/unistr/u32-to-u16: New file.
58030         * lib/unistr/u32-to-u16.c: New file.
58031
58032         * modules/unistr/u8-check: New file.
58033         * modules/unistr/u16-check: New file.
58034         * modules/unistr/u32-check: New file.
58035         * lib/unistr/u8-check.c: New file.
58036         * lib/unistr/u16-check.c: New file.
58037         * lib/unistr/u32-check.c: New file.
58038
58039         * modules/unistr/u8-chr: New file.
58040         * modules/unistr/u16-chr: New file.
58041         * modules/unistr/u32-chr: New file.
58042         * lib/unistr/u8-chr.c: New file.
58043         * lib/unistr/u16-chr.c: New file.
58044         * lib/unistr/u32-chr.c: New file.
58045
58046         * modules/unistr/u8-cmp: New file.
58047         * modules/unistr/u16-cmp: New file.
58048         * modules/unistr/u32-cmp: New file.
58049         * lib/unistr/u8-cmp.c: New file.
58050         * lib/unistr/u16-cmp.c: New file.
58051         * lib/unistr/u32-cmp.c: New file.
58052
58053         * modules/unistr/u8-cpy: New file.
58054         * modules/unistr/u16-cpy: New file.
58055         * modules/unistr/u32-cpy: New file.
58056         * lib/unistr/u8-cpy.c: New file.
58057         * lib/unistr/u16-cpy.c: New file.
58058         * lib/unistr/u32-cpy.c: New file.
58059         * lib/unistr/u-cpy.h: New file.
58060
58061         * modules/unistr/u8-cpy-alloc: New file.
58062         * modules/unistr/u16-cpy-alloc: New file.
58063         * modules/unistr/u32-cpy-alloc: New file.
58064         * lib/unistr/u8-cpy-alloc.c: New file.
58065         * lib/unistr/u16-cpy-alloc.c: New file.
58066         * lib/unistr/u32-cpy-alloc.c: New file.
58067         * lib/unistr/u-cpy-alloc.h: New file.
58068
58069         * modules/unistr/u8-endswith: New file.
58070         * modules/unistr/u16-endswith: New file.
58071         * modules/unistr/u32-endswith: New file.
58072         * lib/unistr/u8-endswith.c: New file.
58073         * lib/unistr/u16-endswith.c: New file.
58074         * lib/unistr/u32-endswith.c: New file.
58075         * lib/unistr/u-endswith.h: New file.
58076
58077         * modules/unistr/u8-mblen: New file.
58078         * modules/unistr/u16-mblen: New file.
58079         * modules/unistr/u32-mblen: New file.
58080         * lib/unistr/u8-mblen.c: New file.
58081         * lib/unistr/u16-mblen.c: New file.
58082         * lib/unistr/u32-mblen.c: New file.
58083
58084         * modules/unistr/u8-mbtouc: New file.
58085         * modules/unistr/u16-mbtouc: New file.
58086         * modules/unistr/u32-mbtouc: New file.
58087         * lib/unistr/u8-mbtouc.c: New file.
58088         * lib/unistr/u16-mbtouc.c: New file.
58089         * lib/unistr/u32-mbtouc.c: New file.
58090
58091         * modules/unistr/u8-mbtouc-safe: New file.
58092         * modules/unistr/u16-mbtouc-safe: New file.
58093         * modules/unistr/u32-mbtouc-safe: New file.
58094         * lib/unistr/u8-mbtouc-safe.c: New file.
58095         * lib/unistr/u16-mbtouc-safe.c: New file.
58096         * lib/unistr/u32-mbtouc-safe.c: New file.
58097
58098         * modules/unistr/u8-move: New file.
58099         * modules/unistr/u16-move: New file.
58100         * modules/unistr/u32-move: New file.
58101         * lib/unistr/u8-move.c: New file.
58102         * lib/unistr/u16-move.c: New file.
58103         * lib/unistr/u32-move.c: New file.
58104         * lib/unistr/u-move.h: New file.
58105
58106         * modules/unistr/u8-next: New file.
58107         * modules/unistr/u16-next: New file.
58108         * modules/unistr/u32-next: New file.
58109         * lib/unistr/u8-next.c: New file.
58110         * lib/unistr/u16-next.c: New file.
58111         * lib/unistr/u32-next.c: New file.
58112
58113         * modules/unistr/u8-prev: New file.
58114         * modules/unistr/u16-prev: New file.
58115         * modules/unistr/u32-prev: New file.
58116         * lib/unistr/u8-prev.c: New file.
58117         * lib/unistr/u16-prev.c: New file.
58118         * lib/unistr/u32-prev.c: New file.
58119
58120         * modules/unistr/u8-set: New file.
58121         * modules/unistr/u16-set: New file.
58122         * modules/unistr/u32-set: New file.
58123         * lib/unistr/u8-set.c: New file.
58124         * lib/unistr/u16-set.c: New file.
58125         * lib/unistr/u32-set.c: New file.
58126         * lib/unistr/u-set.h: New file.
58127
58128         * modules/unistr/u8-startswith: New file.
58129         * modules/unistr/u16-startswith: New file.
58130         * modules/unistr/u32-startswith: New file.
58131         * lib/unistr/u8-startswith.c: New file.
58132         * lib/unistr/u16-startswith.c: New file.
58133         * lib/unistr/u32-startswith.c: New file.
58134         * lib/unistr/u-startswith.h: New file.
58135
58136         * modules/unistr/u8-stpcpy: New file.
58137         * modules/unistr/u16-stpcpy: New file.
58138         * modules/unistr/u32-stpcpy: New file.
58139         * lib/unistr/u8-stpcpy.c: New file.
58140         * lib/unistr/u16-stpcpy.c: New file.
58141         * lib/unistr/u32-stpcpy.c: New file.
58142         * lib/unistr/u-stpcpy.h: New file.
58143
58144         * modules/unistr/u8-stpncpy: New file.
58145         * modules/unistr/u16-stpncpy: New file.
58146         * modules/unistr/u32-stpncpy: New file.
58147         * lib/unistr/u8-stpncpy.c: New file.
58148         * lib/unistr/u16-stpncpy.c: New file.
58149         * lib/unistr/u32-stpncpy.c: New file.
58150         * lib/unistr/u-stpncpy.h: New file.
58151
58152         * modules/unistr/u8-strcat: New file.
58153         * modules/unistr/u16-strcat: New file.
58154         * modules/unistr/u32-strcat: New file.
58155         * lib/unistr/u8-strcat.c: New file.
58156         * lib/unistr/u16-strcat.c: New file.
58157         * lib/unistr/u32-strcat.c: New file.
58158         * lib/unistr/u-strcat.h: New file.
58159
58160         * modules/unistr/u8-strchr: New file.
58161         * modules/unistr/u16-strchr: New file.
58162         * modules/unistr/u32-strchr: New file.
58163         * lib/unistr/u8-strchr.c: New file.
58164         * lib/unistr/u16-strchr.c: New file.
58165         * lib/unistr/u32-strchr.c: New file.
58166
58167         * modules/unistr/u8-strcmp: New file.
58168         * modules/unistr/u16-strcmp: New file.
58169         * modules/unistr/u32-strcmp: New file.
58170         * lib/unistr/u8-strcmp.c: New file.
58171         * lib/unistr/u16-strcmp.c: New file.
58172         * lib/unistr/u32-strcmp.c: New file.
58173
58174         * modules/unistr/u8-strcpy: New file.
58175         * modules/unistr/u16-strcpy: New file.
58176         * modules/unistr/u32-strcpy: New file.
58177         * lib/unistr/u8-strcpy.c: New file.
58178         * lib/unistr/u16-strcpy.c: New file.
58179         * lib/unistr/u32-strcpy.c: New file.
58180         * lib/unistr/u-strcpy.h: New file.
58181
58182         * modules/unistr/u8-strcspn: New file.
58183         * modules/unistr/u16-strcspn: New file.
58184         * modules/unistr/u32-strcspn: New file.
58185         * lib/unistr/u8-strcspn.c: New file.
58186         * lib/unistr/u16-strcspn.c: New file.
58187         * lib/unistr/u32-strcspn.c: New file.
58188         * lib/unistr/u-strcspn.h: New file.
58189
58190         * modules/unistr/u8-strdup: New file.
58191         * modules/unistr/u16-strdup: New file.
58192         * modules/unistr/u32-strdup: New file.
58193         * lib/unistr/u8-strdup.c: New file.
58194         * lib/unistr/u16-strdup.c: New file.
58195         * lib/unistr/u32-strdup.c: New file.
58196         * lib/unistr/u-strdup.h: New file.
58197
58198         * modules/unistr/u8-strlen: New file.
58199         * modules/unistr/u16-strlen: New file.
58200         * modules/unistr/u32-strlen: New file.
58201         * lib/unistr/u8-strlen.c: New file.
58202         * lib/unistr/u16-strlen.c: New file.
58203         * lib/unistr/u32-strlen.c: New file.
58204         * lib/unistr/u-strlen.h: New file.
58205
58206         * modules/unistr/u8-strmblen: New file.
58207         * modules/unistr/u16-strmblen: New file.
58208         * modules/unistr/u32-strmblen: New file.
58209         * lib/unistr/u8-strmblen.c: New file.
58210         * lib/unistr/u16-strmblen.c: New file.
58211         * lib/unistr/u32-strmblen.c: New file.
58212
58213         * modules/unistr/u8-strmbtouc: New file.
58214         * modules/unistr/u16-strmbtouc: New file.
58215         * modules/unistr/u32-strmbtouc: New file.
58216         * lib/unistr/u8-strmbtouc.c: New file.
58217         * lib/unistr/u16-strmbtouc.c: New file.
58218         * lib/unistr/u32-strmbtouc.c: New file.
58219
58220         * modules/unistr/u8-strncat: New file.
58221         * modules/unistr/u16-strncat: New file.
58222         * modules/unistr/u32-strncat: New file.
58223         * lib/unistr/u8-strncat.c: New file.
58224         * lib/unistr/u16-strncat.c: New file.
58225         * lib/unistr/u32-strncat.c: New file.
58226         * lib/unistr/u-strncat.h: New file.
58227
58228         * modules/unistr/u8-strncmp: New file.
58229         * modules/unistr/u16-strncmp: New file.
58230         * modules/unistr/u32-strncmp: New file.
58231         * lib/unistr/u8-strncmp.c: New file.
58232         * lib/unistr/u16-strncmp.c: New file.
58233         * lib/unistr/u32-strncmp.c: New file.
58234
58235         * modules/unistr/u8-strncpy: New file.
58236         * modules/unistr/u16-strncpy: New file.
58237         * modules/unistr/u32-strncpy: New file.
58238         * lib/unistr/u8-strncpy.c: New file.
58239         * lib/unistr/u16-strncpy.c: New file.
58240         * lib/unistr/u32-strncpy.c: New file.
58241         * lib/unistr/u-strncpy.h: New file.
58242
58243         * modules/unistr/u8-strnlen: New file.
58244         * modules/unistr/u16-strnlen: New file.
58245         * modules/unistr/u32-strnlen: New file.
58246         * lib/unistr/u8-strnlen.c: New file.
58247         * lib/unistr/u16-strnlen.c: New file.
58248         * lib/unistr/u32-strnlen.c: New file.
58249         * lib/unistr/u-strnlen.h: New file.
58250
58251         * modules/unistr/u8-strpbrk: New file.
58252         * modules/unistr/u16-strpbrk: New file.
58253         * modules/unistr/u32-strpbrk: New file.
58254         * lib/unistr/u8-strpbrk.c: New file.
58255         * lib/unistr/u16-strpbrk.c: New file.
58256         * lib/unistr/u32-strpbrk.c: New file.
58257         * lib/unistr/u-strpbrk.h: New file.
58258
58259         * modules/unistr/u8-strrchr: New file.
58260         * modules/unistr/u16-strrchr: New file.
58261         * modules/unistr/u32-strrchr: New file.
58262         * lib/unistr/u8-strrchr.c: New file.
58263         * lib/unistr/u16-strrchr.c: New file.
58264         * lib/unistr/u32-strrchr.c: New file.
58265
58266         * modules/unistr/u8-strspn: New file.
58267         * modules/unistr/u16-strspn: New file.
58268         * modules/unistr/u32-strspn: New file.
58269         * lib/unistr/u8-strspn.c: New file.
58270         * lib/unistr/u16-strspn.c: New file.
58271         * lib/unistr/u32-strspn.c: New file.
58272         * lib/unistr/u-strspn.h: New file.
58273
58274         * modules/unistr/u8-strstr: New file.
58275         * modules/unistr/u16-strstr: New file.
58276         * modules/unistr/u32-strstr: New file.
58277         * lib/unistr/u8-strstr.c: New file.
58278         * lib/unistr/u16-strstr.c: New file.
58279         * lib/unistr/u32-strstr.c: New file.
58280         * lib/unistr/u-strstr.h: New file.
58281
58282         * modules/unistr/u8-strtok: New file.
58283         * modules/unistr/u16-strtok: New file.
58284         * modules/unistr/u32-strtok: New file.
58285         * lib/unistr/u8-strtok.c: New file.
58286         * lib/unistr/u16-strtok.c: New file.
58287         * lib/unistr/u32-strtok.c: New file.
58288         * lib/unistr/u-strtok.h: New file.
58289
58290         * modules/unistr/u8-uctomb: New file.
58291         * modules/unistr/u16-uctomb: New file.
58292         * modules/unistr/u32-uctomb: New file.
58293         * lib/unistr/u8-uctomb.c: New file.
58294         * lib/unistr/u16-uctomb.c: New file.
58295         * lib/unistr/u32-uctomb.c: New file.
58296
58297         * MODULES.html.sh (Unicode string functions): Add the new modules.
58298
58299 2007-01-08  Bruno Haible  <bruno@clisp.org>
58300
58301         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
58302         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
58303         subdirectories.
58304
58305 2007-01-08  Karl Berry  <karl@gnu.org>
58306
58307         * doc/error.texi: mention that main() fns must set program_name
58308         when progname is used.
58309
58310 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
58311
58312         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
58313         WCTYPE_H is empty, for the benefit of builds from non-distclean
58314         directories.  Problem reported by Eric Blake in
58315         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
58316
58317 2007-01-08  Bruno Haible  <bruno@clisp.org>
58318
58319         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
58320         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
58321         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
58322         PROVIDE_CANONICALIZE_FILENAME_MODE.
58323         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
58324
58325 2007-01-08  Bruno Haible  <bruno@clisp.org>
58326
58327         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
58328         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
58329         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
58330         * lib/fts.c: Likewise.
58331         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
58332
58333 2006-12-25  Bruno Haible  <bruno@clisp.org>
58334
58335         * modules/utf8-ucs4-safe: New file.
58336         * lib/utf8-ucs4-safe.h: New file.
58337         * lib/unistr/utf8-ucs4-safe.c: New file.
58338
58339         * modules/utf16-ucs4-safe: New file.
58340         * lib/utf16-ucs4-safe.h: New file.
58341         * lib/unistr/utf16-ucs4-safe.c: New file.
58342
58343         * MODULES.html.sh (Unicode string functions): Add the new modules.
58344
58345 2007-01-08  Bruno Haible  <bruno@clisp.org>
58346
58347         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
58348         (Depends-on): Add unitypes.
58349         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
58350         (u8_mbtouc_aux): Move out to separate file.
58351         (u8_mbtouc): Use ucs4_t, uint8_t types.
58352         * lib/unistr/utf8-ucs4.c: New file.
58353
58354         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
58355         (Depends-on): Add unitypes.
58356         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
58357         (u16_mbtouc_aux): Move out to separate file.
58358         (u16_mbtouc): Use ucs4_t, uint16_t types.
58359         * lib/unistr/utf16-ucs4.c: New file.
58360
58361         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
58362         (Depends-on): Add unitypes.
58363         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
58364         (u8_uctomb_aux): Move out to separate file.
58365         (u8_uctomb): Use ucs4_t, uint8_t types.
58366         * lib/unistr/ucs4-utf8.c: New file.
58367
58368         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
58369         (Depends-on): Add unitypes.
58370         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
58371         (u16_uctomb_aux): Move out to separate file.
58372         (u16_uctomb): Use ucs4_t, uint16_t types.
58373         * lib/unistr/ucs4-utf16.c: New file.
58374
58375 2006-12-25  Bruno Haible  <bruno@clisp.org>
58376
58377         * modules/unitypes: New file.
58378         * lib/unitypes.h: New file.
58379         * MODULES.html.sh (func_all_modules): New section "Unicode string
58380         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
58381         this section. Add unitypes.
58382
58383 2007-01-08  Bruno Haible  <bruno@clisp.org>
58384
58385         Avoid variable names that conflict with those from libtool.
58386         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
58387         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
58388         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
58389         library_names_spec to acl_library_names_spec, hardcode_* to
58390         acl_hardcode_*.
58391         Reported by Ralf Wildenhues.
58392
58393 2007-01-08  Bruno Haible  <bruno@clisp.org>
58394
58395         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
58396         definition.
58397         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
58398         definition.
58399         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
58400         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
58401         definition.
58402         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
58403         definition.
58404         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
58405         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
58406         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
58407         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
58408         definition.
58409         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
58410         definition.
58411         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
58412         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
58413         GC_USE_<algorithm>.
58414         * lib/gc-libgcrypt.c: Likewise.
58415         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
58416         * modules/gc-arctwo (configure.ac): Likewise.
58417         * modules/gc-des (configure.ac): Likewise.
58418         * modules/gc-hmac-md5 (configure.ac): Likewise.
58419         * modules/gc-hmac-sha1 (configure.ac): Likewise.
58420         * modules/gc-md2 (configure.ac): Likewise.
58421         * modules/gc-md4 (configure.ac): Likewise.
58422         * modules/gc-md5 (configure.ac): Likewise.
58423         * modules/gc-random (configure.ac): Likewise.
58424         * modules/gc-rijndael (configure.ac): Likewise.
58425         * modules/gc-sha1 (configure.ac): Likewise.
58426
58427 2007-01-08  Bruno Haible  <bruno@clisp.org>
58428
58429         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
58430         macro definition.
58431         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
58432         definition.
58433         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
58434         definition.
58435         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
58436         * modules/fcntl-safer (configure.ac): Likewise.
58437         * modules/fopen-safer (configure.ac): Likewise.
58438         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
58439         GNULIB_FWRITEERROR macro definition.
58440
58441 2007-01-08  Bruno Haible  <bruno@clisp.org>
58442
58443         * m4/gnulib-common.m4: New file.
58444         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
58445         (func_get_filelist): Add m4/gnulib-common.m4.
58446
58447 2007-01-08  Bruno Haible  <bruno@clisp.org>
58448
58449         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
58450         command.
58451
58452 2007-01-08  Jim Meyering  <jim@meyering.net>
58453
58454         Use a more robust test for a "can't happen" condition.
58455         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
58456         narrowed the st_size value.  Presuming the "can't happen" condition
58457         is true, that narrowing could conceivably convert an invalid st_size
58458         value into a valid one.  Instead, use a change based on Matthew
58459         Woehlke's original patch.
58460
58461         Slight readability improvement: use an assert-like macro
58462         in place of literal "abort ()" uses.
58463         * lib/fts.c (fts_assert): Define.
58464         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
58465         Use this macro instead of a bare 'abort'.
58466
58467 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
58468
58469         Don't worry about using IRIX 5.3's wctype.h broken definitions;
58470         simply work around them.
58471         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
58472         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
58473         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
58474         declaring.
58475         Don't bother to define as macros, since the standard doesn't require it.
58476         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
58477         longer worry about IRIX 5.3.
58478         (HAVE_WCTYPE_CTMP_BUG): Remove.
58479
58480 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58481
58482         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
58483         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
58484         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58485         Problems reported by Georg Schwarz for IRIX 5.3.
58486
58487         * gnulib-tool (autoconf_minversion): Take the maximum version number
58488         found, not the minimum.  Problem reported by James Youngman.
58489
58490 2007-01-03  Karl Berry  <karl@gnu.org>
58491
58492         * doc/error.texi: new file, explaining interaction with progname.
58493         * doc/gnulib.texi: include it.  Update copyright.
58494
58495 2007-01-03  Simon Josefsson  <simon@josefsson.org>
58496
58497         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
58498         AC_CANONICAL_HOST, to improve autobuild outputs.
58499
58500 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
58501             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58502
58503         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
58504         sockets, server sockets, and other file descriptors.  Count errors
58505         to compute the return value.  Reorder the code a bit to be easier
58506         to follow.  Don't set event bits that were not requested (except
58507         POLLERR and POLLHUP).
58508
58509 2007-01-01  Bruno Haible  <bruno@clisp.org>
58510
58511         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
58512
58513 2007-01-03  Jim Meyering  <jim@meyering.net>
58514
58515         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
58516
58517 2007-01-02  Bruno Haible  <bruno@clisp.org>
58518
58519         * modules/settime (Include): Require timespec.h.
58520         * modules/nanosleep (Include): Likewise.
58521
58522 2007-01-01  Bruno Haible  <bruno@clisp.org>
58523
58524         * gnulib-tool (func_emit_copyright_notice): Bump year.
58525         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
58526
58527 2007-01-01  Bruno Haible  <bruno@clisp.org>
58528
58529         Improve support for OpenBSD.
58530         * build-aux/config.rpath (libname_spec): Export.
58531         (library_names_spec): New variable. Export.
58532         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
58533         library_names_spec from the config.rpath output. Locate shared library
58534         through the name pattern in library_names_spec.
58535
58536 2007-01-01  Eric Blake  <ebb9@byu.net>
58537
58538         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
58539
58540 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
58541
58542         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
58543         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
58544         assume the C locale, and avoid an "eval" that could cause trouble.
58545         Problem with SORT reported by Bob Proulx.
58546
58547         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
58548         Define.  Trivial patch from Henning Nielsen Lund, originally
58549         sent to bug-grep@gnu.org today.
58550
58551 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58552
58553         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
58554         struct stat.  Problem reported by Henning Nielsen Lund.
58555         * lib/acl.c: Include acl.h first, to check interface.  Don't
58556         bother to include sys/types.h and sys/stat.h again.
58557
58558 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58559
58560         Import the following change from libc; problem reported by
58561         Sven Verdoolaege.
58562
58563         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
58564
58565         [BZ #1373]
58566         * lib/argp.h: Remove __NTH for __argp_usage inline function.
58567
58568 2006-12-28  Jim Meyering  <jim@meyering.net>
58569
58570         * build-aux/announce-gen: Do not assume that the package
58571         builds any of tar.gz, tar.bz2, and .xdelta files.
58572         Suggestion from Simon Josefsson.
58573
58574 2006-12-28  Simon Josefsson  <simon@josefsson.org>
58575
58576         * modules/announce-gen: New file.
58577
58578 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58579
58580         * lib/mbchar.h: Just include <wctype.h>; the wctype module
58581         handles its gotchas now.
58582         * lib/mbswidth.c: Likewise.
58583         * lib/wcwidth.h: Likewise.
58584         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
58585         and iswcntrl; the wctype module does this stuff now.
58586         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58587         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58588         * modules/mbchar (Depends-on): Add wctype.
58589         * modules/mbswidth (Depends-on): Likewise.
58590         * modules/wcwidth (Depends-on): Likewise.
58591
58592 2006-12-27  Eric Blake  <ebb9@byu.net>
58593
58594         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
58595         module uses more than what <wctype.h> is required to provide.
58596
58597 2006-12-26  Eric Blake  <ebb9@byu.net>
58598
58599         * gnulib-tool (sed_extract_prog): Avoid space-tab.
58600
58601 2006-12-26  Eric Blake  <ebb9@byu.net>
58602
58603         * modules/absolute-header: New module.
58604         * modules/fcntl (Depends-on): Depend on it.
58605         * modules/inttypes (Depends-on): Likewise.
58606         * modules/stdint (Depends-on): Likewise.
58607         * modules/sys_stat (Depends-on): Likewise.
58608         * modules/wctype (Depends-on): Likewise.
58609         * MODULES.html.sh (Support for building libraries and
58610         executables): Document it.
58611
58612 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58613
58614         * gnulib-tool (SED): Remove, undoing previous change.
58615         The problem was that it broke coreutils on Solaris, because
58616         "sed --posix" leaked into a makefile.
58617         (sed): New alias, if 'alias' and GNU sed.
58618
58619 2006-12-24  Jim Meyering  <jim@meyering.net>
58620
58621         Work around an fchownat bug in glibc-2.4:
58622         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
58623         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
58624         in spite of the -P option.
58625         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
58626         New macros.
58627         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
58628         * modules/openat (Files): Add lib/fchownat.c.
58629         * lib/openat.c (fchownat): Don't define here.  Move to...
58630         * lib/fchownat.c: ...this new file.
58631
58632 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58633
58634         Fix bug reported by Bruno Haible in
58635         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
58636         where quotearg.c didn't compile on Mac OS X 10.2 because it
58637         lacks <wchar.h> and wint_t.
58638         * lib/wctype_.h (__wctype_wint_t): New type.
58639         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
58640         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
58641         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
58642         Arg is now of type __wctype_wint_t, not wint_t.
58643         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
58644         substitute HAVE_WINT_T.
58645         * modules/wctype (Files): Add m4/wint_t.m4.
58646         (wctype.h): Substitute HAVE_WINT_T.
58647
58648 2006-12-23  Bruno Haible  <bruno@clisp.org>
58649
58650         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
58651
58652 2006-12-23  Bruno Haible  <bruno@clisp.org>
58653
58654         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
58655         S_ISLNK.
58656         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
58657         mingw.
58658
58659 2006-12-22  Bruno Haible  <bruno@clisp.org>
58660
58661         * lib/copy-file.c: Include acl.h.
58662         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
58663         Close the file descriptors only after being done with copy_acl.
58664         * modules/copy-file (Depends-on): Add acl.
58665
58666 2006-12-22  Bruno Haible  <bruno@clisp.org>
58667
58668         * gnulib-tool (SED): New variable.
58669         Use $SED instead of sed everywhere.
58670
58671 2006-12-22  Bruno Haible  <bruno@clisp.org>
58672
58673         * modules/no-c++: New file.
58674         * m4/no-c++.m4: New file.
58675         * MODULES.html.sh (Support for building libraries and executables):
58676         Add no-c++.
58677
58678 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58679
58680         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58681         Include <limits.h>, and use its INT_MAX to rewrite the
58682         j loop so that it does not overflow 'int'.  Problem reported by
58683         Ralf Wildenhues in
58684         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
58685         Play it safe by shifting left by 1 rather than multiplying by 2,
58686         as GCC is less likely to optimize this away when the value
58687         is signed (when it assumes overflow leads to undefined behavior).
58688         Also, don't assume time_t uses two's complement.
58689
58690 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58691
58692         * MODULES.html.sh: New module wctype.
58693         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
58694         * lib/fnmatch.c: Don't bother to include <wchar.h> before
58695         <wctype.h>, since the new wctype module should fix this.
58696         * lib/quotearg.c: Include <wctype.h> unconditionally, since
58697         the wctype module should arrange for it.
58698         * lib/regex_internal.h: Likewise.
58699         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
58700         since the wctype module should handle this now.
58701         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
58702         * modules/fnmatch (Depends-on): Add wctype.
58703         * modules/quotearg (Depends-on): Likewise.
58704         * modules/regex (Depends-on): Likewise.
58705
58706 2006-12-19  Bruno Haible  <bruno@clisp.org>
58707
58708         * lib/strdup.h [C++]: Wrap definitions in extern "C".
58709         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
58710
58711 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58712
58713         * modules/savewd (Depends-on): Fix dependency on fcntl.
58714
58715 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58716
58717         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
58718         conforms to C99, rather than relying on the user's environment
58719         setting of STDINT_H.
58720
58721 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58722         and Eric Blake  <ebb9@byu.net>
58723
58724         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
58725         This is more consistent with the other defines here.
58726         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
58727         Port to z/OS.  Problem reported by Paul Gilmartin.
58728         Change local vars to use gl_ prefix rather than ac_.
58729         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
58730         with other defines.
58731         * modules/double-slash-root: New module.
58732         * modules/dirname (Files): Remove m4/double-slash-root.m4.
58733         (Depends-on): Add double-slash-root.
58734         * MODULES.html.sh (File system functions): Mention new module.
58735
58736 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
58737
58738         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
58739         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
58740         This is for the benefit of gzip, which doesn't do i18n.
58741
58742 2006-12-12  Jim Meyering  <jim@meyering.net>
58743
58744         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
58745         Reported by Andreas Schwab <schwab@suse.de>.
58746
58747 2006-12-12  Bruno Haible  <bruno@clisp.org>
58748
58749         Merge these changes.
58750         2006-09-05  Bruno Haible  <bruno@clisp.org>
58751         * lib/iconvme.c (iconv_string): No need to save and restore errno when
58752         iconv_alloc succeeded.
58753         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
58754         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
58755         test for " && dest " at the end - dest is always != NULL there. Call
58756         iconv with 4xNULL arguments initially, to reset the state. Call iconv
58757         with 2xNULL arguments, also to flush the state storage. Handle the
58758         IRIX iconv behaviour. Realloc the final result, to throw away unused
58759         memory.
58760
58761 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
58762
58763         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
58764         and fchmodat unconditionally, since glibc 2.4 has them.
58765         Problem reported by Arkadiusz Miskiewicz.
58766
58767 2006-12-10  Bruno Haible  <bruno@clisp.org>
58768
58769         * gnulib-tool (func_import): Show the include files only for those
58770         modules that are copied and specified.
58771         Reported by Karl Berry.
58772
58773 2006-12-08  Jim Meyering  <jim@meyering.net>
58774
58775         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
58776         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
58777
58778         * build-aux/announce-gen: Add two new options, both optional:
58779         --bootstrap-tools=TOOL_LIST
58780               a comma-separated list of tools, e.g.,
58781               autoconf,automake,bison,gnulib
58782         --gnulib-snapshot-date=DATE
58783               if gnulib is in the bootstrap tool list,
58784               then report this as the snapshot date.
58785               If not specified, use the current date/time.
58786               If you specify a date here, be sure it's UTC.
58787
58788 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58789
58790         * tests/test-argp-2.sh: Fix test to match actual output.
58791         (func_compare): Fix sed script to be portable.
58792
58793 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
58794
58795         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
58796         workaround for this case.  It is not autoconfigured now; offhand
58797         it's hard to see how to autoconfigure it.
58798
58799 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58800
58801         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
58802         a directory that is about to be chowned.  Such a directory's
58803         initial file permissions should permit the owner only and this
58804         should not be changed until after the chown, since the group and
58805         other bits would be incorrect if they granted permission before
58806         the chown.
58807
58808         Fix porting problem for iswctype reported by Georg Schwarz in:
58809         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
58810         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
58811         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
58812         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
58813         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58814
58815 2006-12-03  Jim Meyering  <jim@meyering.net>
58816
58817         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
58818         p->fts_statp may not yet be defined.
58819         (fts_read): Instead, set it in the caller, once p->fts_statp is
58820         sure to be defined, and corresponds to a top-level directory.
58821         This bug made du -x fail.  Here's the coreutils test case:
58822         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
58823         Reported by Mike Frysinger.
58824
58825 2006-12-01  Jim Meyering  <jim@meyering.net>
58826
58827         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
58828         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
58829         Reported by Simon Josefsson.
58830
58831 2006-11-30  Jim Meyering  <jim@meyering.net>
58832
58833         * m4/warning.m4: Use the all-permissive copyright notice
58834         recommended by RMS (rather than LGPL).
58835         * m4/vararrays.m4: Likewise.
58836         * m4/flexmember.m4: Likewise.
58837
58838 2006-11-29  Bruno Haible  <bruno@clisp.org>
58839
58840         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58841         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
58842         using +=.
58843         Reported by Simon Josefsson <simon@josefsson.org>.
58844
58845 2006-11-28  James Youngman <jay@gnu.org>
58846
58847         * README: Advise users that they might find the bug-gnulib@gnu.org
58848         and autotools-announce@gnu.org mailing lists useful.
58849
58850 2006-11-28  Bruno Haible  <bruno@clisp.org>
58851
58852         * m4/ptrdiff_max.m4: Remove file.
58853
58854 2006-11-21  Bruno Haible  <bruno@clisp.org>
58855
58856         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
58857         _AC_COMPUTE_INT.
58858         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58859         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
58860         _AC_COMPUTE_INT.
58861         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58862         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
58863         _AC_COMPUTE_INT.
58864         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58865
58866 2006-11-28  Jim Meyering  <jim@meyering.net>
58867
58868         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
58869         warning from "gcc -Wshadow" about shadowing the builtin.
58870
58871 2006-11-27  Bruno Haible  <bruno@clisp.org>
58872
58873         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
58874         _AC_COMPUTE_INT.
58875         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58876
58877 2006-11-27  Bruno Haible  <bruno@clisp.org>
58878             Paul Eggert  <eggert@cs.ucla.edu>
58879
58880         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
58881
58882 2006-11-26  Bruno Haible  <bruno@clisp.org>
58883
58884         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58885         noinst_LTLIBRARIES.
58886
58887 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58888             Bruno Haible  <bruno@clisp.org>
58889
58890         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
58891         if compiling with "gcc -ansi".
58892
58893 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58894
58895         Fix some incompatibilities with gcc -ansi -pedantic.
58896         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
58897         if compiling pedantically with GCC, unless it's C99 or later.
58898         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
58899         it mishandles gcc -ansi -pedantic as well.
58900         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
58901         if gcc -pedantic.
58902         * lib/regexec.c (check_node_accept_bytes): Don't use auto
58903         initializers for struct if -pedantic, unless it's C99 or later.
58904
58905 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
58906
58907         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
58908         Don't close an fd more than once. Identical atimes indicate
58909         success, not failure.
58910
58911 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
58912
58913         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
58914
58915 2006-11-23  Jim Meyering  <jim@meyering.net>
58916
58917         * build-aux/announce-gen: New file.  From coreutils.
58918
58919 2006-11-22  Jim Meyering  <jim@meyering.net>
58920
58921         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
58922         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
58923         (fts_read): Use a temporary to narrow the overused st_size member
58924         before using it in a switch statement.  Reported by Matthew Woehlke.
58925
58926         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
58927         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58928
58929 2006-11-20  Bruno Haible  <bruno@clisp.org>
58930
58931         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
58932         changequote instead of pairs of brackets.
58933         Reported by Andreas Schwab <schwab@suse.de>.
58934
58935 2006-11-21  Jim Meyering  <jim@meyering.net>
58936
58937         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
58938         so as to remain compatible with older compilers.
58939         Patch from Michael Deutschmann.
58940
58941 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58942
58943         * MODULES.html.sh (File system functions): Add openat.
58944
58945         * lib/openat.h (rpl_fstatat): New macro, if
58946         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
58947         (fstatat): Define to rpl_fstatat under the same conditions,
58948         unless COMPILING_FSTATAT.
58949         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
58950         seems to have the bug.
58951         * lib/fstatat.c: New file.
58952         * modules/openat (Files): Add it.
58953
58954 2006-11-20  Bruno Haible  <bruno@clisp.org>
58955
58956         * Makefile: New file.
58957
58958 2006-11-20  Jim Meyering  <jim@meyering.net>
58959
58960         The beginnings of syntax-related checks for gnulib.
58961         * lib/Makefile: New file.
58962         * lib/t-idcache: New script.  Ensure that the two halves of
58963         idcache.c stay in sync.
58964
58965         * lib/idcache.c: Adjust comments in user- and group- portions to
58966         be more accurate, and to be consistent with one another.
58967
58968 2006-11-20  Jim Meyering  <jim@meyering.net>
58969
58970         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
58971         continue using the flexible array member (thus, this module performs
58972         half as many malloc calls), with the addition that...
58973         (getgroup, getuser): Consistently record a non-match via an empty
58974         "name" string, and map an empty string match to a NULL return value.
58975         * modules/idcache (Depends-on): Re-add flexmember.
58976
58977         * lib/idcache.c (getuser): Remove all uses of the register keyword.
58978         (getuidbyname, getgroup, getgidbyname): Likewise.
58979
58980         Use cleaner syntax: NULL rather than 0.
58981         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
58982
58983 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58984
58985         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
58986         It mishandled the case where the group was missing.
58987         Problem reported by Greg Schafer.
58988         * modules/idcache: Likewise.
58989
58990 2006-11-18  Jim Meyering  <jim@meyering.net>
58991
58992         * check-module (%exempt_header): Add exception for some
58993         conditionally-included headers.
58994
58995         * modules/i-ring (Depends-on): Add verify.
58996         (License): Change to LGPL.
58997
58998 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58999
59000         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
59001         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
59002         and inttostr.h.  Use snprintf rather than uinttostr, so that
59003         LGPLed code doesn't depend on GPLed.
59004
59005 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59006
59007         * modules/inline (License): Change from GPL to LGPL.
59008
59009 2006-11-17  Jim Meyering  <jim@meyering.net>
59010
59011         * modules/d-type (License): Switch to LGPL.
59012
59013 2006-11-15  Bruno Haible  <bruno@clisp.org>
59014
59015         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
59016
59017 2006-11-15  Eric Blake  <ebb9@byu.net>
59018
59019         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
59020         the module dependency.
59021
59022 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59023             Bruno Haible  <bruno@clisp.org>
59024
59025         * gnulib-tool (func_create_testdir): Add license consistency check.
59026
59027 2006-11-15  Eric Blake  <ebb9@byu.net>
59028
59029         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
59030         random "(cached)" in configure output.
59031
59032 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59033
59034         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
59035         test for conforming inttypes.h is both announced and cached.
59036
59037         * MODULES.html.sh (seen_modules, seen_files): New variables.
59038         (func_module): Rewrite to use a few less gnulib-tool and sed
59039         invocations.  Avoid a couple of quadratic algorithms for ...
59040         (missed_modules, missed_files): ... these, with ...
59041         (func_append, func_tmpdir): ... these new functions, from
59042         gnulib-tool.  Analogously, install traps for cleanup.
59043
59044         * tests/test-gc.c (main): Remove unused variables.
59045         * tests/test-read-file.c: Include stdlib.h, for 'free'.
59046
59047 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
59048
59049         * modules/inttostr (License): Change to LGPL.
59050
59051 2006-11-14  Eric Blake  <ebb9@byu.net>
59052
59053         * modules/tempname (License): Change to LGPL.
59054
59055 2006-11-14  Eric Blake  <ebb9@byu.net>
59056
59057         * doc/functions.texi (Function Portability): *printf functions on
59058         Cygwin now understand all POSIX size specifiers.
59059
59060 2006-11-14  Bruno Haible  <bruno@clisp.org>
59061
59062         * modules/c-ctype (License): Change to LGPL.
59063
59064 2006-11-12  Bruno Haible  <bruno@clisp.org>
59065
59066         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59067         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
59068         for GNOME libraries, for which the include files are installed in
59069         subdirectories of $prefix/include.
59070
59071 2006-11-12  Bruno Haible  <bruno@clisp.org>
59072
59073         * m4/lib-link.m4: Require at least autoconf-2.54.
59074         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
59075         name to underscores for the --with option.
59076
59077 2006-11-13  Bruno Haible  <bruno@clisp.org>
59078
59079         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
59080         the tests directory.
59081         Reported by Ralf Wildenhues.
59082
59083 2006-11-13  Bruno Haible  <bruno@clisp.org>
59084
59085         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
59086         (func_emit_initmacro_end): Undo the override here.
59087         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
59088         Works around the famous automake error in coreutils.
59089
59090 2006-11-13  Eric Blake  <ebb9@byu.net>
59091
59092         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
59093         element, not its node.
59094
59095 2006-11-12  Bruno Haible  <bruno@clisp.org>
59096
59097         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
59098         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
59099
59100 2006-11-12  Bruno Haible  <bruno@clisp.org>
59101
59102         * gnulib-tool: New option --local-symlink.
59103         (func_usage): Document it.
59104         (lsymbolic): New variable.
59105         (func_import, func_create_testdir): If --symlink was not specified,
59106         test whether --local-symlink was specified and the file comes from
59107         the local_gnulib_dir.
59108
59109 2006-11-12  Bruno Haible  <bruno@clisp.org>
59110
59111         * gnulib-tool (func_ln): New function.
59112         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
59113
59114 2006-11-12  Bruno Haible  <bruno@clisp.org>
59115
59116         Finish support for source files in subdirectories.
59117         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
59118         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
59119         AUTOMAKE_OPTIONS.
59120         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
59121
59122 2006-11-12  Bruno Haible  <bruno@clisp.org>
59123
59124         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59125         EXTRA_lib_SOURCES augmentation.
59126         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
59127
59128 2006-11-12  Jim Meyering  <jim@meyering.net>
59129
59130         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
59131         file descriptors.  This also averts a failure on systems with
59132         native openat support when a traversed directory lacks "x" access.
59133         * lib/fts_.h: Include "i-ring.h"
59134         (struct FTS) [fts_fd_ring]: New member.
59135         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
59136         (FCHDIR): Add parentheses.
59137         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
59138         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
59139         When descending, rather than simply closing the previous
59140         fts_cwd_fd value, push that file descriptor onto the ring.
59141         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
59142         (fts_open): Initialize the new fd_ring member.
59143         (fts_close): Clear the ring.
59144         (fts_safe_changedir): When possible, use our new fd_ring to skip
59145         the diropen and fstat and dev/ino comparison that would normally
59146         accompany a virtual `chdir ("..")'.
59147
59148         * modules/fts (Depends-on): Add i-ring.
59149         * modules/i-ring: New module.
59150         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
59151         * m4/i-ring.m4: New file.
59152
59153 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59154
59155         * gnulib-tool (func_create_testdir): Fix replacement of
59156         `build-aux' in configure.ac.  Run autotools in gltests
59157         subdirectory.
59158         (func_create_testdir, func_create_megatestdir, test): There is
59159         no need for '--force' in most autotool invocations in a new
59160         tree.  Actually fail the whole test if any of the tools, or the
59161         configure or make stages fail.
59162
59163         Sync from Automake.
59164         * build-aux/gnupload: Revert last change.  Add pointer to upload
59165         instructions of the GNU Maintenance Instructions.
59166         Suggestion by Karl Berry.
59167
59168 2006-11-10  Jim Meyering  <jim@meyering.net>
59169
59170         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
59171
59172 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59173
59174         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
59175         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
59176         (bind_textdomain_codeset) [! ENABLE_NLS]:
59177         Evaluate all the arguments.  That way, callers get compatible behavior
59178         if the arguments have side effects.  Also, it avoids some GCC
59179         diagnostics in some cases; Joel E. Denny reported problems when Bison
59180         was configured with --enable-gcc-warnigs.
59181
59182 2006-11-10  Jim Meyering  <jim@meyering.net>
59183
59184         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
59185         relevant options in CFLAGS (like -O, -fno-inline) are taken into
59186         account.
59187
59188 2006-11-10  Jim Meyering  <jim@meyering.net>
59189
59190         * modules/inline: New file/module.
59191         * modules/xalloc (Files): Remove m4/inline.m4.
59192         (Depends-on): Add inline, instead.
59193         * modules/oset: Likewise.
59194         * modules/list: Likewise.
59195
59196 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59197
59198         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
59199         Problem reported by Matthew Woehlke.
59200
59201 2006-11-09  Bruno Haible  <bruno@clisp.org>
59202
59203         * lib/tempname.c (gen_tempname): Remove variant that invokes
59204         __gen_tempname.
59205         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
59206         __gen_tempname.
59207
59208 2006-11-08  Bruno Haible  <bruno@clisp.org>
59209
59210         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
59211         to 'yes' instead of 'cross-compiling'.
59212
59213 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
59214
59215         * lib/quotearg.h (quotearg_free): New decl.
59216         * lib/quotearg.c (quotearg_free): New function.
59217         (slot0, nslots, slotvec0, slotvec):
59218         Now file-scope so that quotearg_free can get at them.
59219
59220 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59221
59222         Sync from Automake.
59223         * build-aux/gnupload: Add missing 'gnu' to example URL.
59224         Report by Karl Berry.
59225
59226 2006-11-08  Bruno Haible  <bruno@clisp.org>
59227
59228         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
59229         Suggested by Paul Eggert.
59230
59231 2006-11-08  Jim Meyering  <jim@meyering.net>
59232
59233         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
59234         It's already included if !_LIBC.
59235         (fts_safe_changedir): Add a comment.
59236
59237 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59238
59239         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
59240         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
59241         Matthew Woehlke.
59242
59243         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
59244         definitions up, to avoid colliding with change below.
59245         (static_inline) [HAVE_INLINE]: New macro.
59246         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
59247         Provide extern decls when !HAVE_INLINE.  Do not define unless
59248         static_inline is defined, either by us or by xmalloc.c.  Use
59249         static_inline rather than static inline.
59250         (XCALLOC): Optimize sizeof(T) = 1 case.
59251         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
59252
59253 2006-11-07  Bruno Haible  <bruno@clisp.org>
59254
59255         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
59256         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
59257         AC_C_INLINE.
59258         * modules/xalloc (Files): Add m4/inline.m4.
59259
59260 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59261
59262         * README: Fix typo.
59263         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
59264         (Miscellanous Notes): ...from this.
59265
59266 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59267
59268         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
59269         Mention that offsetof should be used instead of sizeof.
59270         From Bruno Haible.
59271
59272 2006-11-07  Bruno Haible  <bruno@clisp.org>
59273
59274         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
59275
59276 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
59277
59278         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
59279         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
59280         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
59281         (gl_tree_add_before, gl_tree_add_after):
59282         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
59283         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
59284         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
59285         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
59286         (gl_linked_add_after, gl_linked_add_at): Likewise.
59287         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
59288         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
59289         (gl_tree_add_before, gl_tree_add_after): Likewise.
59290         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
59291         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
59292         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
59293
59294 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59295
59296         * lib/gl_oset.h: Use C comment style, not C++ comment style.
59297
59298 2006-11-06  Bruno Haible  <bruno@clisp.org>
59299
59300         * m4/inline.m4: New file.
59301         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
59302         * modules/list (Files): Add m4/inline.m4.
59303         * modules/oset (Files): Likewise.
59304
59305 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
59306
59307         * lib/idcache.c: Include <stddef.h>, for offsetof.
59308         (struct userid.name): Change from char * to a flexible array member.
59309         All uses changed.
59310         * modules/idcache (Depends-on): Add flexmember.
59311
59312         * MODULES.html.sh (Core language properties): New module flexmember.
59313         * modules/flexmember, m4/flexmember.m4: New files.
59314
59315         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
59316         inline functions that are identical with the old xnmalloc_inline,
59317         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
59318         that we can avoid some unnecessary integer multiplications and
59319         divisions in the common case where the element size is known at
59320         compile time.
59321         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
59322         needed.
59323         (xnboundedmalloc): Remove.
59324         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
59325         arguments, for consistency with rest of this header.
59326         (xcharalloc): Rewrite using XNMALLOC.
59327         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
59328         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
59329         versions have been moved to lib/xalloc.h and renamed to be the
59330         non-*_inline versions.
59331         (xmalloc, xrealloc): Implement without reference to the xnmalloc
59332         and xnrealloc functions, since those functions are now inline and
59333         now call us.
59334         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
59335         renaming described above.
59336         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
59337         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
59338         captures the dependency in AC_C_INLINE.
59339
59340         New module canonicalize-lgpl, proposed by Charles Wilson in
59341         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
59342         with a few small changes afterwards.
59343         * MODULES.html.sh (File system functions): New module
59344         canonicalize-lgpl.
59345         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
59346         and canonicalize_file_name.
59347         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
59348         * modules/canonicalize-lgpl: New files.
59349
59350 2006-11-05  Bruno Haible  <bruno@clisp.org>
59351
59352         * gnulib-tool (func_import, func_create_testdir): Create directories
59353         also for files in subdirectories of lib/.
59354
59355 2006-11-05  Bruno Haible  <bruno@clisp.org>
59356
59357         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
59358         ANSI C compliant.
59359
59360 2006-11-03  Bruno Haible  <bruno@clisp.org>
59361
59362         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
59363         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
59364         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
59365         (xnboundedmalloc): New inline function.
59366         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
59367         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
59368         xmalloc.
59369         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
59370         xmalloc.
59371         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
59372         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
59373         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
59374         xmalloc.
59375         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
59376         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
59377         xmalloc.
59378         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
59379         gl_tree_add_after): Use XMALLOC instead of xmalloc.
59380         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
59381         xmalloc.
59382         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
59383         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
59384         gl_tree_add_after): Use XMALLOC instead of xmalloc.
59385         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
59386         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
59387         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
59388         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
59389
59390 2006-11-03  Bruno Haible  <bruno@clisp.org>
59391
59392         * lib/c-ctype.h [C++]: Define functions without name mangling.
59393         * lib/fwriteerror.h [C++]: Likewise.
59394         * lib/gcd.h [C++]: Likewise.
59395         * lib/linebreak.h [C++]: Likewise.
59396
59397 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59398
59399         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
59400         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
59401         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
59402         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59403         Check for functions and headers just once.
59404         Check for declaration of canonicalize_file_name.
59405         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
59406
59407 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59408
59409         * gnulib-tool (func_import): Fix typo in actioncmd.
59410
59411 2006-11-02  Bruno Haible  <bruno@clisp.org>
59412
59413         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
59414         newline sequence in the Makefile.am snippet as a space, like "make"
59415         does.
59416         Reported by Roger Persson <perrog@gmail.com>.
59417
59418 2006-11-01  Bruno Haible  <bruno@clisp.org>
59419
59420         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
59421         already declared in <string.h>.
59422         * lib/strcase.h (strncasecmp): Don't declare it if yes.
59423
59424 2006-11-01  Bruno Haible  <bruno@clisp.org>
59425
59426         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
59427         * lib/strcase.h: Include <string.h>.
59428         (strcasecmp): Define to rpl_strcasecmp here.
59429
59430 2006-11-01  Bruno Haible  <bruno@clisp.org>
59431
59432         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
59433
59434 2006-11-01  Eric Blake  <ebb9@byu.net>
59435
59436         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
59437
59438         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
59439
59440 2006-10-29  Bruno Haible  <bruno@clisp.org>
59441
59442         Make it compile in C++ mode.
59443         * lib/full-write.c (full_rw): Add a cast.
59444
59445 2006-11-01  Bruno Haible  <bruno@clisp.org>
59446
59447         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
59448         be POSIX compliant.
59449         Reported by Roger Persson <perrog@gmail.com>.
59450
59451 2006-11-01  Eric Blake  <ebb9@byu.net>
59452
59453         * lib/getopt_.h: Fix comments.
59454
59455 2006-10-31  Eric Blake  <ebb9@byu.net>
59456
59457         * modules/tmpdir (Depends-on): Add sys_stat.
59458         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
59459         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
59460         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
59461         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
59462         tempname.
59463
59464 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
59465
59466         Avoid some C++ diagnostics reported by Bruno Haible.
59467         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
59468         xmalloc.
59469         (quotearg_alloc): Use xcharalloc rather than xmalloc.
59470         (struct slotvec): Move to top level.
59471         (quotearg_n_options): Rewrite to avoid xmalloc.
59472         * lib/xalloc.h (xcharalloc): New function.
59473         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
59474         [defined __cplusplus]: Add function template that provides result
59475         type propagation.  This part of the change is from Bruno Haible.
59476
59477 2006-10-29  Bruno Haible  <bruno@clisp.org>
59478
59479         Make it compile in C++ mode.
59480         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
59481         * lib/strnlen1.c (strnlen1): Cast memchr result.
59482         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
59483         * lib/clean-temp.c (string_equals, string_hash): Add casts.
59484         (create_temp_dir): Rename local variable 'template'.
59485         (compile_csharp_using_sscli): Add cast.
59486         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
59487         * lib/findprog.c (find_in_path): Likewise.
59488         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
59489         * lib/wait-process.c (register_slave_subprocess): Likewise.
59490
59491 2006-10-22  Bruno Haible  <bruno@clisp.org>
59492
59493         * modules/tsearch: New file.
59494         * lib/tsearch.h: New file.
59495         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
59496         * m4/tsearch.m4: New file.
59497         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
59498
59499 2006-10-29  Eric Blake  <ebb9@byu.net>
59500
59501         * lib/arcfour.c: Assume config.h.
59502         * lib/arctwo.c: Likewise.
59503         * lib/base64.c: Likewise.
59504         * lib/check-version.c: Likewise.
59505         * lib/crc.c: Likewise.
59506         * lib/des.c: Likewise.
59507         * lib/gc-gnulib.c: Likewise.
59508         * lib/gc-libgcrypt.c: Likewise.
59509         * lib/gc-pbkdf2-sha1.c: Likewise.
59510         * lib/getaddrinfo.c: Likewise.
59511         * lib/getdelim.c: Likewise.
59512         * lib/getline.c: Likewise.
59513         * lib/hmac-md5.c: Likewise.
59514         * lib/hmac-sha1.c: Likewise.
59515         * lib/iconvme.c: Likewise.
59516         * lib/md2.c: Likewise.
59517         * lib/md4.c: Likewise.
59518         * lib/memxor.c: Likewise.
59519         * lib/read-file.c: Likewise.
59520         * lib/readline.c: Likewise.
59521         * lib/rijndael-alg-fst.c: Likewise.
59522         * lib/rijndael-api-fst.c: Likewise.
59523         * lib/xgetdomainname.c: Likewise.
59524
59525 2006-10-28  Eric Blake  <ebb9@byu.net>
59526
59527         * lib/xstrndup.c: Assume config.h.
59528
59529 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
59530
59531         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
59532         stat-macros.h is now for our own macros, whereas stat_h is for
59533         macros in the <sys/stat.h> name space.
59534         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
59535         (STAT_MACROS_H): Remove.
59536         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
59537         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
59538         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
59539         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
59540         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
59541         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
59542         Move these macros to ...
59543         * lib/stat_.h: here.  Don't include stat-macros.h.
59544         * lib/canonicalize.c: Don't include stat-macros.h.
59545         * lib/chown.c: Likewise.
59546         * lib/euidaccess.c: Likewise.
59547         * lib/file-type.c: Likewise.
59548         * lib/filemode.c: Likewise.
59549         * lib/glob.c: Likewise.
59550         * lib/isapipe.c: Likewise.
59551         * lib/lchown.c: Likewise.
59552         * lib/lstat.c: Likewise.
59553         * lib/mkdir-p.c: Likewise.
59554         * lib/rmdir.c: Likewise.
59555         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
59556         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
59557         unless mkdir isn't declared, to speed up 'configure'.
59558         Always create sys/stat.h, since it's unlikely any real sys/stat.h
59559         would define all the S_* symbols.
59560         * modules/canonicalize (Depends-on):
59561         Depend on sys_stat, not stat-macros.
59562         * modules/chown: Likewise.
59563         * modules/euidaccess: Likewise.
59564         * modules/filemode: Likewise.
59565         * modules/file-type: Likewise.
59566         * modules/glob: Likewise.
59567         * modules/isapipe: Likewise.
59568         * modules/lchown: Likewise.
59569         * modules/lstat: Likewise.
59570         * modules/mkancesdirs: Likewise.
59571         * modules/rmdir: Likewise.
59572         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
59573         * modules/modechange: Likewise.
59574         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
59575         (configure.ac): Remove gl_STAT_MACROS.
59576         * modules/sys_stat (Depends-on): Remove stat-macros.
59577
59578 2006-10-27  Bruno Haible  <bruno@clisp.org>
59579
59580         * m4/signed.m4: Remove file.
59581         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
59582         invocation.
59583         * modules/vasnprintf (Files): Remove m4/signed.m4.
59584
59585 2006-10-27  Bruno Haible  <bruno@clisp.org>
59586
59587         Update to GNU gettext 0.16.
59588         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
59589         m4/inttypes-h.m4, m4/signed.m4.
59590         * m4/gettext.m4: Update to GNU gettext 0.16.
59591         * m4/intl.m4: New file, from GNU gettext.
59592         * m4/intldir.m4: New file, from GNU gettext.
59593         * config/srclist.txt: Update
59594
59595 2006-10-27  Eric Blake  <ebb9@byu.net>
59596
59597         * MODULES.html.sh: Document tempname.
59598         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
59599         dependencies.
59600         (Files): Move lib/tempname.c...
59601         * modules/tempname: ...to this new module.
59602         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
59603         (gl_PREREQ_TEMPNAME): Move...
59604         * m4/tempname.m4: ...to this new file.
59605         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
59606         * modules/sys_stat (Depends-on): Add stat-macros.
59607         * lib/stat_.h (includes): Pick up stat macros.
59608         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
59609         if stat macros are broken.
59610         * lib/tempname.c (includes): No need to include "stat-macros.h".
59611         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
59612         (direxists, __path_search) [!_LIBC]: Don't compile these in
59613         gnulib; the tmpdir module covers that.
59614         * lib/tempname.h: New file.
59615
59616 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
59617
59618         * COPYING: Explain how gnulib-tool converts licence headers.
59619         Almost all wording by Eric Blake.
59620
59621 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
59622
59623         * lib/mbchar.h (is_basic_table): Make read-only.
59624         * lib/mbchar.c (is_basic_table): Likewise.
59625         Reported by John Darrington.
59626
59627 2006-10-25  Bruno Haible  <bruno@clisp.org>
59628
59629         * lib/progname.h (set_program_name): Undefine before defining.
59630
59631 2006-10-25  Bruno Haible  <bruno@clisp.org>
59632
59633         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
59634         false for non-gcc C++ compilers.
59635         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59636
59637 2006-10-24  Bruno Haible  <bruno@clisp.org>
59638
59639         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
59640         iconv implementations like Irix iconv.
59641
59642 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59643
59644         * modules/vararrays: New file.
59645         * m4/vararrays.m4: New file, taken from diffutils.
59646         * MODULES.html.sh: New module vararrays.
59647
59648 2006-10-24  Karl Berry  <karl@gnu.org>
59649
59650         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
59651         Don't call GNU Unix.
59652
59653 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59654
59655         * users.txt: Add Libtool.
59656
59657         Sync from Libtool:
59658
59659         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59660
59661         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
59662         to gnulib's policy of including config.h unconditionally.
59663
59664 2006-10-24  Bruno Haible  <bruno@clisp.org>
59665
59666         * modules/wcwidth (Files): Add m4/wint_t.m4.
59667         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
59668         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
59669
59670 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59671
59672         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
59673         to pacify GCC with some -W flags enabled.  Problem reported by
59674         Bruno Haible.
59675
59676 2006-10-24  Jim Meyering  <jim@meyering.net>
59677
59678         * MODULES.html.sh: Remove uinttostr.  It's not a module.
59679         Reported by Karl Berry.
59680
59681 2006-10-23  Bruno Haible  <bruno@clisp.org>
59682
59683         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
59684
59685 2006-10-24  Bruno Haible  <bruno@clisp.org>
59686
59687         * lib/gl_list.h: Use C comment style, not C++ comment style.
59688
59689 2006-10-23  Eric Blake  <ebb9@byu.net>
59690
59691         * lib/getaddrinfo.c (includes): Add missing include.
59692
59693 2006-10-23  Bruno Haible  <bruno@clisp.org>
59694             Paul Eggert  <eggert@cs.ucla.edu>
59695
59696         Ability to rename obstack_free.
59697         * lib/obstack.h (__obstack_free): New macro. Declare instead of
59698         obstack_free.
59699         (obstack_free): Invoke the __obstack_free macro.
59700         * lib/obstack.c (obstack_free): Use __obstack_free macro.
59701
59702 2006-10-23  Bruno Haible  <bruno@clisp.org>
59703             Paul Eggert  <eggert@cs.ucla.edu>
59704
59705         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
59706         __argc, __argv from the declaration. (They are defined as macros on
59707         mingw.)
59708
59709 2006-10-22  Bruno Haible  <bruno@clisp.org>
59710
59711         * doc/gnulib-intro.texi: New file.
59712         * doc/gnulib.texi: Include it.
59713
59714 2006-10-21  Bruno Haible  <bruno@clisp.org>
59715
59716         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
59717         "Introduction", "Miscellanous Notes", "Particular Modules".
59718
59719 2006-10-21  Bruno Haible  <bruno@clisp.org>
59720
59721         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59722         Change mostlyclean-local rule to avoid sh syntax error from bash
59723         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
59724
59725 2006-10-23  Jim Meyering  <jim@meyering.net>
59726
59727         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
59728         in place of snprintf.
59729
59730         * modules/inttostr (Files): Add lib/uinttostr.c.
59731         * lib/uinttostr.c (inttostr): New file/function.
59732         * lib/inttostr.h (uinttostr): Declare.
59733         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
59734         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59735         Add uinttostr.
59736         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
59737
59738 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59739
59740         * lib/canonicalize.c (ELOOP): Define if not already defined.
59741         Problem reported by Bruno Haible in
59742         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
59743
59744 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59745
59746         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
59747         Problem reported by Perry Smith and Ville Laurikari.
59748
59749         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
59750         uses.
59751
59752 2006-10-19  Bruno Haible  <bruno@clisp.org>
59753
59754         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
59755         for mingw.
59756
59757 2006-10-19  Bruno Haible  <bruno@clisp.org>
59758
59759         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
59760         Needed for mingw.
59761
59762 2006-10-19  Bruno Haible  <bruno@clisp.org>
59763
59764         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
59765
59766 2006-10-19  Bruno Haible  <bruno@clisp.org>
59767
59768         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
59769         it.
59770
59771 2006-10-19  Bruno Haible  <bruno@clisp.org>
59772
59773         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
59774         invocation.
59775
59776 2006-10-19  Bruno Haible  <bruno@clisp.org>
59777
59778         * gnulib-tool (func_create_testdir): Don't include ftruncate and
59779         mountlist by default.
59780
59781 2006-10-16  Bruno Haible  <bruno@clisp.org>
59782
59783         * lib/c-strstr.c: Include c-strstr.h.
59784
59785 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59786
59787         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
59788         in a slash.
59789
59790 2006-10-18  Bruno Haible  <bruno@clisp.org>
59791
59792         * lib/lock.h [C++]: Wrap definitions in extern "C".
59793
59794 2006-10-18  Bruno Haible  <bruno@clisp.org>
59795
59796         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
59797         gl_LIBOBJS list.
59798
59799 2006-10-18  Bruno Haible  <bruno@clisp.org>
59800
59801         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
59802
59803 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
59804
59805         * lib/xstrtol.h: Include gettext.h.
59806         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
59807         Problem reported by Eric Blake.
59808         * modules/xstrtol (Depends-on): Add gettext-h.
59809
59810 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
59811
59812         * lib/strftime.c (advance): New macro.
59813         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
59814         incomplete type, so you can't add 0 to it.  Problem and patch
59815         reported by Eelco Dolstra for dietlibc.
59816
59817 2006-10-18  Jim Meyering  <jim@meyering.net>
59818
59819         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
59820         type for a local, and rename it: s/up/user_proc/.
59821
59822 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59823
59824         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
59825         READ_UTMP_USER_PROCESS.
59826         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
59827
59828 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59829
59830         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
59831         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
59832
59833 2006-10-17  Eric Blake  <ebb9@byu.net>
59834
59835         * lib/sigprocmask.c (sigprocmask): Fix typo.
59836
59837         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
59838
59839         * modules/clean-temp (Makefile.am): Don't add to make output...
59840         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
59841         config.h.
59842
59843 2006-10-17  Bruno Haible  <bruno@clisp.org>
59844
59845         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
59846         differently if DEFAULT_TEXT_DOMAIN is set.
59847
59848 2006-10-16  Bruno Haible  <bruno@clisp.org>
59849
59850         * lib/clean-temp.c: Include fwriteerror.h.
59851
59852 2006-10-16  Bruno Haible  <bruno@clisp.org>
59853
59854         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
59855
59856 2006-10-16  Bruno Haible  <bruno@clisp.org>
59857
59858         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
59859         * lib/sigprocmask.h: Include <sys/types.h>.
59860         (sigset_t): Use the system's definition if present.
59861
59862 2006-10-17  Eric Blake  <ebb9@byu.net>
59863
59864         * lib/xvasprintf.c (includes): Assume config.h.
59865         * lib/xasprintf.c (includes): Likewise.
59866
59867 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59868
59869         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
59870         at least as wide as intmax_t.
59871
59872 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
59873
59874         (Imported from Automake.)
59875         * build-aux/gnupload: Update to version 1.1 of directive file.
59876
59877 2006-10-16  Eric Blake  <ebb9@byu.net>
59878
59879         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
59880         match Automake 1.10a.
59881
59882 2006-10-14  Bruno Haible  <bruno@clisp.org>
59883
59884         * modules/sigprocmask: New file.
59885         * lib/sigprocmask.h: New file.
59886         * lib/sigprocmask.c: New file.
59887         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
59888         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
59889         request sigprocmask.o.
59890         (gl_PREREQ_SIGPROCMASK): New macro.
59891         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
59892         (Depends-on): Add sigprocmask.
59893         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
59894         gt_SIGNALBLOCKING. Test for 'raise' only once.
59895         * lib/fatal-signal.c: Include sigprocmask.h.
59896         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
59897         unblock_fatal_signals): Define always.
59898         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59899         sigprocmask.
59900
59901 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59902
59903         Sync from Automake.
59904         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
59905         which incorrectly sets the mode of an existing destination
59906         directory.  In some cases the unpatched install-sh could do the
59907         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
59908         system.  We hope this is rare in practice, but it's clearly worth
59909         fixing.  Problem reported by Alex Unleashed in
59910         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
59911         Also, don't bother to check for -m bugs unless we're using -m;
59912         suggested by Stepan Kasal.
59913
59914 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59915
59916         Sync from Automake.
59917         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
59918         `-c' flag, so they appear at the same position as in %FASTDEP%
59919         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
59920         which ignores unknown options only after the first non-option.
59921         Bug report against M4 by Nelson H. F. Beebe.
59922
59923 2006-10-13  Jim Meyering  <jim@meyering.net>
59924
59925         Fix a bug in yesterday's change.
59926         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
59927         p->fts_statp->st_dev would be used uninitialized.
59928         Ensures that we always call fts_stat on the very first entry.
59929         Miklos Szeredi reported that find -xdev stopped working.
59930
59931 2006-10-12  Bruno Haible  <bruno@clisp.org>
59932
59933         * gnulib-tool (func_get_automake_snippet): Append an automatically
59934         computed EXTRA_DIST augmentation.
59935         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
59936         * modules/alloca-opt (Makefile.am): Likewise.
59937         * modules/allocsa (Makefile.am): Likewise.
59938         * modules/arcfour (Makefile.am): Likewise.
59939         * modules/arctwo (Makefile.am): Likewise.
59940         * modules/argmatch (Makefile.am): Likewise.
59941         * modules/argz (Makefile.am): Likewise.
59942         * modules/atexit (Makefile.am): Likewise.
59943         * modules/backupfile (Makefile.am): Likewise.
59944         * modules/byteswap (Makefile.am): Likewise.
59945         * modules/c-strtod (Makefile.am): Likewise.
59946         * modules/c-strtold (Makefile.am): Likewise.
59947         * modules/calloc (Makefile.am): Likewise.
59948         * modules/canon-host (Makefile.am): Likewise.
59949         * modules/canonicalize (Makefile.am): Likewise.
59950         * modules/chdir-long (Makefile.am): Likewise.
59951         * modules/chdir-safer (Makefile.am): Likewise.
59952         * modules/check-version (Makefile.am): Likewise.
59953         * modules/chown (Makefile.am): Likewise.
59954         * modules/cloexec (Makefile.am): Likewise.
59955         * modules/close-stream (Makefile.am): Likewise.
59956         * modules/closeout (Makefile.am): Likewise.
59957         * modules/crc (Makefile.am): Likewise.
59958         * modules/csharpexec (Makefile.am): Likewise.
59959         * modules/cycle-check (Makefile.am): Likewise.
59960         * modules/des (Makefile.am): Likewise.
59961         * modules/dev-ino (Makefile.am): Likewise.
59962         * modules/dirfd (Makefile.am): Likewise.
59963         * modules/dirname (Makefile.am): Likewise.
59964         * modules/dup2 (Makefile.am): Likewise.
59965         * modules/eealloc (Makefile.am): Likewise.
59966         * modules/error (Makefile.am): Likewise.
59967         * modules/euidaccess (Makefile.am): Likewise.
59968         * modules/exclude (Makefile.am): Likewise.
59969         * modules/exitfail (Makefile.am): Likewise.
59970         * modules/fcntl-safer (Makefile.am): Likewise.
59971         * modules/fcntl (Makefile.am): Likewise.
59972         * modules/file-type (Makefile.am): Likewise.
59973         * modules/fileblocks (Makefile.am): Likewise.
59974         * modules/filemode (Makefile.am): Likewise.
59975         * modules/filenamecat (Makefile.am): Likewise.
59976         * modules/fnmatch (Makefile.am): Likewise.
59977         * modules/fopen-safer (Makefile.am): Likewise.
59978         * modules/fpending (Makefile.am): Likewise.
59979         * modules/fprintftime (Makefile.am): Likewise.
59980         * modules/free (Makefile.am): Likewise.
59981         * modules/fsusage (Makefile.am): Likewise.
59982         * modules/ftruncate (Makefile.am): Likewise.
59983         * modules/fts (Makefile.am): Likewise.
59984         * modules/gc-arcfour (Makefile.am): Likewise.
59985         * modules/gc-des (Makefile.am): Likewise.
59986         * modules/gc-hmac-md5 (Makefile.am): Likewise.
59987         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
59988         * modules/gc-md4 (Makefile.am): Likewise.
59989         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59990         * modules/gc-sha1 (Makefile.am): Likewise.
59991         * modules/gc (Makefile.am): Likewise.
59992         * modules/getaddrinfo (Makefile.am): Likewise.
59993         * modules/getcwd (Makefile.am): Likewise.
59994         * modules/getdelim (Makefile.am): Likewise.
59995         * modules/getdomainname (Makefile.am): Likewise.
59996         * modules/getgroups (Makefile.am): Likewise.
59997         * modules/gethostname (Makefile.am): Likewise.
59998         * modules/gethrxtime (Makefile.am): Likewise.
59999         * modules/getline (Makefile.am): Likewise.
60000         * modules/getloadavg (Makefile.am): Likewise.
60001         * modules/getlogin_r (Makefile.am): Likewise.
60002         * modules/getndelim2 (Makefile.am): Likewise.
60003         * modules/getopt (Makefile.am): Likewise.
60004         * modules/getpagesize (Makefile.am): Likewise.
60005         * modules/getpass-gnu (Makefile.am): Likewise.
60006         * modules/getpass (Makefile.am): Likewise.
60007         * modules/getsubopt (Makefile.am): Likewise.
60008         * modules/gettime (Makefile.am): Likewise.
60009         * modules/gettimeofday (Makefile.am): Likewise.
60010         * modules/getugroups (Makefile.am): Likewise.
60011         * modules/getusershell (Makefile.am): Likewise.
60012         * modules/glob (Makefile.am): Likewise.
60013         * modules/group-member (Makefile.am): Likewise.
60014         * modules/hard-locale (Makefile.am): Likewise.
60015         * modules/hash (Makefile.am): Likewise.
60016         * modules/hmac-md5 (Makefile.am): Likewise.
60017         * modules/hmac-sha1 (Makefile.am): Likewise.
60018         * modules/human (Makefile.am): Likewise.
60019         * modules/idcache (Makefile.am): Likewise.
60020         * modules/imaxabs (Makefile.am): Likewise.
60021         * modules/imaxdiv (Makefile.am): Likewise.
60022         * modules/inet_ntop (Makefile.am): Likewise.
60023         * modules/inet_pton (Makefile.am): Likewise.
60024         * modules/intprops (Makefile.am): Likewise.
60025         * modules/inttostr (Makefile.am): Likewise.
60026         * modules/inttypes (Makefile.am): Likewise.
60027         * modules/isapipe (Makefile.am): Likewise.
60028         * modules/javaversion (Makefile.am): Likewise.
60029         * modules/lchmod (Makefile.am): Likewise.
60030         * modules/lchown (Makefile.am): Likewise.
60031         * modules/localcharset (Makefile.am): Likewise.
60032         * modules/long-options (Makefile.am): Likewise.
60033         * modules/lstat (Makefile.am): Likewise.
60034         * modules/malloc (Makefile.am): Likewise.
60035         * modules/mathl (Makefile.am): Likewise.
60036         * modules/mbchar (Makefile.am): Likewise.
60037         * modules/md2 (Makefile.am): Likewise.
60038         * modules/md4 (Makefile.am): Likewise.
60039         * modules/md5 (Makefile.am): Likewise.
60040         * modules/memcasecmp (Makefile.am): Likewise.
60041         * modules/memchr (Makefile.am): Likewise.
60042         * modules/memcmp (Makefile.am): Likewise.
60043         * modules/memcoll (Makefile.am): Likewise.
60044         * modules/memcpy (Makefile.am): Likewise.
60045         * modules/memmem (Makefile.am): Likewise.
60046         * modules/memmove (Makefile.am): Likewise.
60047         * modules/mempcpy (Makefile.am): Likewise.
60048         * modules/memrchr (Makefile.am): Likewise.
60049         * modules/memset (Makefile.am): Likewise.
60050         * modules/memxor (Makefile.am): Likewise.
60051         * modules/mkancesdirs (Makefile.am): Likewise.
60052         * modules/mkdir-p (Makefile.am): Likewise.
60053         * modules/mkdir (Makefile.am): Likewise.
60054         * modules/mkdtemp (Makefile.am): Likewise.
60055         * modules/mkstemp (Makefile.am): Likewise.
60056         * modules/mktime (Makefile.am): Likewise.
60057         * modules/modechange (Makefile.am): Likewise.
60058         * modules/mountlist (Makefile.am): Likewise.
60059         * modules/nanosleep (Makefile.am): Likewise.
60060         * modules/obstack (Makefile.am): Likewise.
60061         * modules/openat (Makefile.am): Likewise.
60062         * modules/pagealign_alloc (Makefile.am): Likewise.
60063         * modules/pathmax (Makefile.am): Likewise.
60064         * modules/physmem (Makefile.am): Likewise.
60065         * modules/poll (Makefile.am): Likewise.
60066         * modules/posixtm (Makefile.am): Likewise.
60067         * modules/posixver (Makefile.am): Likewise.
60068         * modules/putenv (Makefile.am): Likewise.
60069         * modules/quote (Makefile.am): Likewise.
60070         * modules/quotearg (Makefile.am): Likewise.
60071         * modules/raise (Makefile.am): Likewise.
60072         * modules/read-file (Makefile.am): Likewise.
60073         * modules/readline (Makefile.am): Likewise.
60074         * modules/readlink (Makefile.am): Likewise.
60075         * modules/readtokens (Makefile.am): Likewise.
60076         * modules/readutmp (Makefile.am): Likewise.
60077         * modules/realloc (Makefile.am): Likewise.
60078         * modules/regex (Makefile.am): Likewise.
60079         * modules/rename-dest-slash (Makefile.am): Likewise.
60080         * modules/rename (Makefile.am): Likewise.
60081         * modules/rijndael (Makefile.am): Likewise.
60082         * modules/rmdir (Makefile.am): Likewise.
60083         * modules/rpmatch (Makefile.am): Likewise.
60084         * modules/safe-read (Makefile.am): Likewise.
60085         * modules/safe-write (Makefile.am): Likewise.
60086         * modules/same-inode (Makefile.am): Likewise.
60087         * modules/same (Makefile.am): Likewise.
60088         * modules/save-cwd (Makefile.am): Likewise.
60089         * modules/savedir (Makefile.am): Likewise.
60090         * modules/setenv (Makefile.am): Likewise.
60091         * modules/settime (Makefile.am): Likewise.
60092         * modules/sha1 (Makefile.am): Likewise.
60093         * modules/sig2str (Makefile.am): Likewise.
60094         * modules/snprintf (Makefile.am): Likewise.
60095         * modules/stat-macros (Makefile.am): Likewise.
60096         * modules/stat-time (Makefile.am): Likewise.
60097         * modules/stdbool (Makefile.am): Likewise.
60098         * modules/stdint (Makefile.am): Likewise.
60099         * modules/stdlib-safer (Makefile.am): Likewise.
60100         * modules/stpcpy (Makefile.am): Likewise.
60101         * modules/stpncpy (Makefile.am): Likewise.
60102         * modules/strcase (Makefile.am): Likewise.
60103         * modules/strcasestr (Makefile.am): Likewise.
60104         * modules/strchrnul (Makefile.am): Likewise.
60105         * modules/strcspn (Makefile.am): Likewise.
60106         * modules/strdup (Makefile.am): Likewise.
60107         * modules/strerror (Makefile.am): Likewise.
60108         * modules/strftime (Makefile.am): Likewise.
60109         * modules/strndup (Makefile.am): Likewise.
60110         * modules/strnlen (Makefile.am): Likewise.
60111         * modules/strpbrk (Makefile.am): Likewise.
60112         * modules/strsep (Makefile.am): Likewise.
60113         * modules/strstr (Makefile.am): Likewise.
60114         * modules/strtod (Makefile.am): Likewise.
60115         * modules/strtoimax (Makefile.am): Likewise.
60116         * modules/strtok_r (Makefile.am): Likewise.
60117         * modules/strtol (Makefile.am): Likewise.
60118         * modules/strtoll (Makefile.am): Likewise.
60119         * modules/strtoul (Makefile.am): Likewise.
60120         * modules/strtoull (Makefile.am): Likewise.
60121         * modules/strtoumax (Makefile.am): Likewise.
60122         * modules/strverscmp (Makefile.am): Likewise.
60123         * modules/sys_socket (Makefile.am): Likewise.
60124         * modules/sys_stat (Makefile.am): Likewise.
60125         * modules/sysexits (Makefile.am): Likewise.
60126         * modules/time_r (Makefile.am): Likewise.
60127         * modules/timegm (Makefile.am): Likewise.
60128         * modules/timespec (Makefile.am): Likewise.
60129         * modules/tmpfile-safer (Makefile.am): Likewise.
60130         * modules/trim (Makefile.am): Likewise.
60131         * modules/unistd-safer (Makefile.am): Likewise.
60132         * modules/unlinkdir (Makefile.am): Likewise.
60133         * modules/unlocked-io (Makefile.am): Likewise.
60134         * modules/userspec (Makefile.am): Likewise.
60135         * modules/utime (Makefile.am): Likewise.
60136         * modules/utimecmp (Makefile.am): Likewise.
60137         * modules/utimens (Makefile.am): Likewise.
60138         * modules/vasnprintf (Makefile.am): Likewise.
60139         * modules/vasprintf (Makefile.am): Likewise.
60140         * modules/vsnprintf (Makefile.am): Likewise.
60141         * modules/xalloc (Makefile.am): Likewise.
60142         * modules/xgetcwd (Makefile.am): Likewise.
60143         * modules/xnanosleep (Makefile.am): Likewise.
60144         * modules/xreadlink (Makefile.am): Likewise.
60145         * modules/xstrtod (Makefile.am): Likewise.
60146         * modules/xstrtol (Makefile.am): Likewise.
60147         * modules/xstrtold (Makefile.am): Likewise.
60148         * modules/yesno (Makefile.am): Likewise.
60149         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
60150
60151 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60152
60153         * modules/error (Makefile.am): Distribute files through
60154         EXTRA_DIST, not lib_SOURCES.
60155
60156 2006-10-12  Eric Blake  <ebb9@byu.net>
60157
60158         * modules/error (Makefile.am): Distribute files in /lib.
60159         * modules/obstack (Makefile.am): Likewise.
60160
60161 2006-10-12  Bruno Haible  <bruno@clisp.org>
60162
60163         * modules/acl (Makefile.am): Distribute all files in lib/ through
60164         EXTRA_DIST.
60165         * modules/arcfour (Makefile.am): Likewise.
60166         * modules/arctwo (Makefile.am): Likewise.
60167         * modules/argmatch (Makefile.am): Likewise.
60168         * modules/argz (Makefile.am): Likewise.
60169         * modules/atexit (Makefile.am): Likewise.
60170         * modules/backupfile (Makefile.am): Likewise.
60171         * modules/c-strtod (Makefile.am): Likewise.
60172         * modules/c-strtold (Makefile.am): Likewise.
60173         * modules/calloc (Makefile.am): Likewise.
60174         * modules/canon-host (Makefile.am): Likewise.
60175         * modules/canonicalize (Makefile.am): Likewise.
60176         * modules/chdir-long (Makefile.am): Likewise.
60177         * modules/chdir-safer (Makefile.am): Likewise.
60178         * modules/check-version (Makefile.am): Likewise.
60179         * modules/chown (Makefile.am): Likewise.
60180         * modules/cloexec (Makefile.am): Likewise.
60181         * modules/close-stream (Makefile.am): Likewise.
60182         * modules/closeout (Makefile.am): Likewise.
60183         * modules/crc (Makefile.am): Likewise.
60184         * modules/cycle-check (Makefile.am): Likewise.
60185         * modules/des (Makefile.am): Likewise.
60186         * modules/dirfd (Makefile.am): Likewise.
60187         * modules/dirname (Makefile.am): Likewise.
60188         * modules/dup2 (Makefile.am): Likewise.
60189         * modules/euidaccess (Makefile.am): Likewise.
60190         * modules/exclude (Makefile.am): Likewise.
60191         * modules/exitfail (Makefile.am): Likewise.
60192         * modules/fcntl-safer (Makefile.am): Likewise.
60193         * modules/file-type (Makefile.am): Likewise.
60194         * modules/fileblocks (Makefile.am): Likewise.
60195         * modules/filemode (Makefile.am): Likewise.
60196         * modules/filenamecat (Makefile.am): Likewise.
60197         * modules/fnmatch (Makefile.am): Likewise.
60198         * modules/fopen-safer (Makefile.am): Likewise.
60199         * modules/fpending (Makefile.am): Likewise.
60200         * modules/fprintftime (Makefile.am): Likewise.
60201         * modules/free (Makefile.am): Likewise.
60202         * modules/fsusage (Makefile.am): Likewise.
60203         * modules/ftruncate (Makefile.am): Likewise.
60204         * modules/fts (Makefile.am): Likewise.
60205         * modules/gc (Makefile.am): Likewise.
60206         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
60207         * modules/getaddrinfo (Makefile.am): Likewise.
60208         * modules/getcwd (Makefile.am): Likewise.
60209         * modules/getdelim (Makefile.am): Likewise.
60210         * modules/getdomainname (Makefile.am): Likewise.
60211         * modules/getgroups (Makefile.am): Likewise.
60212         * modules/gethostname (Makefile.am): Likewise.
60213         * modules/gethrxtime (Makefile.am): Likewise.
60214         * modules/getline (Makefile.am): Likewise.
60215         * modules/getloadavg (Makefile.am): Likewise.
60216         * modules/getlogin_r (Makefile.am): Likewise.
60217         * modules/getopt (Makefile.am): Likewise.
60218         * modules/getpass (Makefile.am): Likewise.
60219         * modules/getpass-gnu (Makefile.am): Likewise.
60220         * modules/getsubopt (Makefile.am): Likewise.
60221         * modules/gettime (Makefile.am): Likewise.
60222         * modules/gettimeofday (Makefile.am): Likewise.
60223         * modules/getugroups (Makefile.am): Likewise.
60224         * modules/getusershell (Makefile.am): Likewise.
60225         * modules/glob (Makefile.am): Likewise.
60226         * modules/group-member (Makefile.am): Likewise.
60227         * modules/hard-locale (Makefile.am): Likewise.
60228         * modules/hash (Makefile.am): Likewise.
60229         * modules/hmac-md5 (Makefile.am): Likewise.
60230         * modules/hmac-sha1 (Makefile.am): Likewise.
60231         * modules/human (Makefile.am): Likewise.
60232         * modules/idcache (Makefile.am): Likewise.
60233         * modules/imaxabs (Makefile.am): Likewise.
60234         * modules/imaxdiv (Makefile.am): Likewise.
60235         * modules/inet_ntop (Makefile.am): Likewise.
60236         * modules/inet_pton (Makefile.am): Likewise.
60237         * modules/inttostr (Makefile.am): Likewise.
60238         * modules/isapipe (Makefile.am): Likewise.
60239         * modules/lchown (Makefile.am): Likewise.
60240         * modules/long-options (Makefile.am): Likewise.
60241         * modules/lstat (Makefile.am): Likewise.
60242         * modules/malloc (Makefile.am): Likewise.
60243         * modules/mathl (Makefile.am): Likewise.
60244         * modules/mbchar (Makefile.am): Likewise.
60245         * modules/md2 (Makefile.am): Likewise.
60246         * modules/md4 (Makefile.am): Likewise.
60247         * modules/md5 (Makefile.am): Likewise.
60248         * modules/memcasecmp (Makefile.am): Likewise.
60249         * modules/memchr (Makefile.am): Likewise.
60250         * modules/memcmp (Makefile.am): Likewise.
60251         * modules/memcoll (Makefile.am): Likewise.
60252         * modules/memcpy (Makefile.am): Likewise.
60253         * modules/memmem (Makefile.am): Likewise.
60254         * modules/memmove (Makefile.am): Likewise.
60255         * modules/mempcpy (Makefile.am): Likewise.
60256         * modules/memrchr (Makefile.am): Likewise.
60257         * modules/memset (Makefile.am): Likewise.
60258         * modules/memxor (Makefile.am): Likewise.
60259         * modules/mkancesdirs (Makefile.am): Likewise.
60260         * modules/mkdir (Makefile.am): Likewise.
60261         * modules/mkdir-p (Makefile.am): Likewise.
60262         * modules/mkdtemp (Makefile.am): Likewise.
60263         * modules/mkstemp (Makefile.am): Likewise.
60264         * modules/mktime (Makefile.am): Likewise.
60265         * modules/modechange (Makefile.am): Likewise.
60266         * modules/mountlist (Makefile.am): Likewise.
60267         * modules/nanosleep (Makefile.am): Likewise.
60268         * modules/openat (Makefile.am): Likewise.
60269         * modules/pagealign_alloc (Makefile.am): Likewise.
60270         * modules/physmem (Makefile.am): Likewise.
60271         * modules/poll (Makefile.am): Likewise.
60272         * modules/posixtm (Makefile.am): Likewise.
60273         * modules/posixver (Makefile.am): Likewise.
60274         * modules/putenv (Makefile.am): Likewise.
60275         * modules/quote (Makefile.am): Likewise.
60276         * modules/quotearg (Makefile.am): Likewise.
60277         * modules/raise (Makefile.am): Likewise.
60278         * modules/read-file (Makefile.am): Likewise.
60279         * modules/readline (Makefile.am): Likewise.
60280         * modules/readlink (Makefile.am): Likewise.
60281         * modules/readtokens (Makefile.am): Likewise.
60282         * modules/readutmp (Makefile.am): Likewise.
60283         * modules/realloc (Makefile.am): Likewise.
60284         * modules/regex (Makefile.am): Likewise.
60285         * modules/rename (Makefile.am): Likewise.
60286         * modules/rename-dest-slash (Makefile.am): Likewise.
60287         * modules/rijndael (Makefile.am): Likewise.
60288         * modules/rmdir (Makefile.am): Likewise.
60289         * modules/rpmatch (Makefile.am): Likewise.
60290         * modules/safe-read (Makefile.am): Likewise.
60291         * modules/safe-write (Makefile.am): Likewise.
60292         * modules/same (Makefile.am): Likewise.
60293         * modules/save-cwd (Makefile.am): Likewise.
60294         * modules/savedir (Makefile.am): Likewise.
60295         * modules/setenv (Makefile.am): Likewise.
60296         * modules/settime (Makefile.am): Likewise.
60297         * modules/sha1 (Makefile.am): Likewise.
60298         * modules/sig2str (Makefile.am): Likewise.
60299         * modules/snprintf (Makefile.am): Likewise.
60300         * modules/stdlib-safer (Makefile.am): Likewise.
60301         * modules/stpcpy (Makefile.am): Likewise.
60302         * modules/stpncpy (Makefile.am): Likewise.
60303         * modules/strcase (Makefile.am): Likewise.
60304         * modules/strcasestr (Makefile.am): Likewise.
60305         * modules/strchrnul (Makefile.am): Likewise.
60306         * modules/strcspn (Makefile.am): Likewise.
60307         * modules/strdup (Makefile.am): Likewise.
60308         * modules/strerror (Makefile.am): Likewise.
60309         * modules/strftime (Makefile.am): Likewise.
60310         * modules/strndup (Makefile.am): Likewise.
60311         * modules/strnlen (Makefile.am): Likewise.
60312         * modules/strpbrk (Makefile.am): Likewise.
60313         * modules/strsep (Makefile.am): Likewise.
60314         * modules/strstr (Makefile.am): Likewise.
60315         * modules/strtod (Makefile.am): Likewise.
60316         * modules/strtoimax (Makefile.am): Likewise.
60317         * modules/strtok_r (Makefile.am): Likewise.
60318         * modules/strtol (Makefile.am): Likewise.
60319         * modules/strtoll (Makefile.am): Likewise.
60320         * modules/strtoul (Makefile.am): Likewise.
60321         * modules/strtoull (Makefile.am): Likewise.
60322         * modules/strtoumax (Makefile.am): Likewise.
60323         * modules/strverscmp (Makefile.am): Likewise.
60324         * modules/time_r (Makefile.am): Likewise.
60325         * modules/timegm (Makefile.am): Likewise.
60326         * modules/tmpfile-safer (Makefile.am): Likewise.
60327         * modules/unistd-safer (Makefile.am): Likewise.
60328         * modules/unlinkdir (Makefile.am): Likewise.
60329         * modules/userspec (Makefile.am): Likewise.
60330         * modules/utime (Makefile.am): Likewise.
60331         * modules/utimecmp (Makefile.am): Likewise.
60332         * modules/utimens (Makefile.am): Likewise.
60333         * modules/vasnprintf (Makefile.am): Likewise.
60334         * modules/vasprintf (Makefile.am): Likewise.
60335         * modules/vsnprintf (Makefile.am): Likewise.
60336         * modules/xalloc (Makefile.am): Likewise.
60337         * modules/xgetcwd (Makefile.am): Likewise.
60338         * modules/xnanosleep (Makefile.am): Likewise.
60339         * modules/xreadlink (Makefile.am): Likewise.
60340         * modules/xstrtod (Makefile.am): Likewise.
60341         * modules/xstrtol (Makefile.am): Likewise.
60342         * modules/xstrtold (Makefile.am): Likewise.
60343         * modules/yesno (Makefile.am): Likewise.
60344
60345 2006-10-12  Jim Meyering  <jim@meyering.net>
60346
60347         * m4/getloadavg.m4: Revert the change below.
60348
60349         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
60350         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
60351         fail with a symlink, which is what coreutils' ./bootstrap now
60352         creates by default.
60353
60354 2006-10-12  Bruno Haible  <bruno@clisp.org>
60355
60356         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
60357         mingw.
60358         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
60359         MSVC and mingw explicitly.
60360
60361 2006-10-11  Simon Josefsson  <jas@extundo.com>
60362             Bruno Haible  <bruno@clisp.org>
60363
60364         Add support for multiple gnulib-tool invocations in the scope of a
60365         single configure.ac file.
60366         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
60367         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
60368         with the same contents as the _LIBADD variable.
60369         (func_emit_initmacro_start, func_emit_initmacro_end,
60370         func_emit_initmacro_done): New functions.
60371         (func_import, func_create_testdir): Invoke them. Allow the identifiers
60372         gl_LIBOBJS and gl_LTLIBOBJS.
60373
60374 2006-10-11  Bruno Haible  <bruno@clisp.org>
60375
60376         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
60377         (func_create_testdir): Don't create po/Makefile.am, don't invoke
60378         autoreconf. Instead, invoke autopoint explicitly but move back the
60379         *.m4 files from gnulib.
60380
60381 2006-10-11  Bruno Haible  <bruno@clisp.org>
60382
60383         * gnulib-tool (func_usage): Make module names after --create-testdir
60384         optional.
60385         (func_create_testdir): If no module was specified, use nearly all
60386         modules.
60387
60388 2006-10-12  Jim Meyering  <jim@meyering.net>
60389
60390         Big performance improvement for fts-based tools that use FTS_NOSTAT.
60391         Avoid spurious inode-mismatch problems on non-POSIX file systems.
60392         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
60393         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
60394         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
60395         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
60396         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
60397         (fts_set_stat_required): New function.
60398         (fts_open): Defer the calls to fts_stat, if possible or requested.
60399         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
60400         into fts_stat itself.
60401         (fts_read): Perform any required (deferred) fts_stat call.
60402         (fts_build): Likewise, for the directory we're about to open and read.
60403         In the readdir loop, carefully decide whether each entry will require
60404         an eventual call to fts_stat, using dirent.d_type info if available.
60405         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
60406         a command line argument into this function.  Update all callers.
60407         Map a return value of FTS_DOT to FTS_D for a command line argument.
60408         * modules/fts (Depends-on): Add d-type.  Alphabetize.
60409         Thanks to Miklos Szeredi for his tenacity and for the initial
60410         bug report about "find" failing on a FUSE-based file system.
60411
60412         * lib/fts.c (fts_open): Use consistent indentation.
60413
60414 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60415
60416         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
60417         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
60418         reported by Jim Meyering.  All uses of cache variables renamed
60419         to match Autoconf's.
60420         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
60421         the other one.
60422
60423         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
60424         Fix misspelling in diagnostic.
60425
60426 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60427
60428         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
60429         defined.  Problem reported by Matthew Woehlke.
60430
60431         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
60432         Add support for Tandem NonStop R series.
60433         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
60434         Use new macro.
60435
60436         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
60437         (has_trailing_slash): Omit size arg; all callers changed.
60438         Omit 'inline', since it doesn't help performance and we'd
60439         need to configure it.
60440         Don't count //, ///, etc. as having a trailing slash.
60441         As a side effect, this removes a C99ism reported by Matthew Woehlke.
60442         (rpl_rename_dest_slash): On failure, use rename's errno rather
60443         than (in some cases) an incorrect or junk errno.
60444         Simplify code by removing need to compute length; this does
60445         cause it to make two passes instead of one over the file name,
60446         but it's worth it.
60447
60448         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
60449         change, since Autoconf's version may no longer be appropriate now
60450         that we are using CVS Autoconf's version.  Add support for Tandem.
60451
60452 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60453             Bruno Haible  <bruno@clisp.org>
60454
60455         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
60456         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
60457         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
60458         gl_AC_TYPE_LONG_LONG.
60459
60460         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
60461         instead of HAVE_LONG_LONG.
60462         * lib/printf-args.c (printf_fetchargs): Likewise.
60463         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
60464         * lib/vasnprintf.c (VASNPRINTF): Likewise.
60465         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
60466         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
60467         gl_AC_TYPE_LONG_LONG.
60468
60469 2006-10-11  Bruno Haible  <bruno@clisp.org>
60470
60471         * m4/longlong.m4: Add comments.
60472         * m4/ulonglong.m4: Likewise.
60473
60474 2006-10-10  Bruno Haible  <bruno@clisp.org>
60475
60476         Make it possible to #define stpcpy, strdup to aliases.
60477         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
60478         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
60479
60480 2006-10-10  Bruno Haible  <bruno@clisp.org>
60481
60482         Make it possible to #define gcd to an alias.
60483         * lib/gcd.c: Include config.h.
60484
60485 2006-10-10  Bruno Haible  <bruno@clisp.org>
60486
60487         Make it possible to #define c_isascii to an alias.
60488         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
60489         defined. Undefine the macros before defining them, to avoid gcc
60490         warnings.
60491         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
60492         define NO_C_CTYPE_MACROS early.
60493
60494 2006-10-10  Bruno Haible  <bruno@clisp.org>
60495
60496         Make it possible to #define set_program_name to an alias.
60497         * lib/progname.c: Don't undefine set_program_name; instead, undefine
60498         ENABLE_RELOCATABLE early.
60499
60500 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60501
60502         Port to Tandem NSK OSS, which has 64-bit signed int but at most
60503         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
60504         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
60505         More generally, don't assume that 64-bit signed int is available
60506         if unsigned int is, and vice versa.
60507         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
60508         unsigned symbols, not on their signed counterparts.
60509         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
60510         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
60511         (UINT64_C, UINTMAX_C):
60512         Likewise.
60513         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
60514         unsigned counterparts.
60515         (Have_long_long, Unsigned): New macros.
60516         (Int): Renamed from INT.
60517         (strtoimax): Use the new macros.
60518         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
60519         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
60520         * modules/inttypes (inttypes.h): Substitute
60521         HAVE_UNSIGNED_LONG_LONG_INT.
60522         * modules/stdint (stdint.h): Likewise.
60523         (Files): Add m4/ulonglong.m4.
60524
60525 2006-10-10  Bruno Haible  <bruno@clisp.org>
60526
60527         Fix a gcc -Wshadow warning.
60528         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
60529         to 'bucket'.
60530         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
60531         gl_linked_indexof_from_to): Likewise.
60532         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
60533         Likewise.
60534         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
60535         Likewise.
60536         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
60537         Reported by Eric Blake.
60538
60539 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
60540
60541         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
60542         for NetBSD.  Problem reported by Bruno Haible.
60543
60544 2006-10-09  Jim Meyering  <jim@meyering.net>
60545
60546         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
60547         Patch from Bruno Haible.
60548
60549 2006-10-09  Jim Meyering  <jim@meyering.net>
60550
60551         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
60552         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
60553         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
60554
60555 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60556
60557         Don't include <config.h> twice; this doesn't work in some cases,
60558         e.g., when config.h has "#define intmax_t long long int" and
60559         we include <config.h>, <inttypes.h>, <config.h> in that order.
60560         Problem reported by Matthew Woehlke in:
60561         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
60562         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
60563         * lib/fts-cycle.c: Don't include config.h.
60564         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
60565         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
60566         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
60567         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
60568         inttypes.h.
60569         * lib/xstrtoumax.c: Likewise.
60570         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
60571         __strtol and the like, so that this module is more like its siblings.
60572         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
60573         Remove; no longer needed now that we assume gnulib inttypes.h.
60574
60575 2006-10-08  Bruno Haible  <bruno@clisp.org>
60576
60577         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
60578         option.
60579
60580 2006-10-07  Jim Meyering  <jim@meyering.net>
60581
60582         * modules/inttypes (inttypes.h): Revert what seems to have been
60583         an inadvertent part of today's change: use "|", not "/" in the
60584         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
60585
60586 2006-10-07  Bruno Haible  <bruno@clisp.org>
60587
60588         * modules/sublist: New file.
60589
60590 2006-10-07  Bruno Haible  <bruno@clisp.org>
60591
60592         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
60593         * modules/argz (argz.h): Likewise.
60594         * modules/arpa_inet (arpa/inet.h): Likewise.
60595         * modules/byteswap (byteswap.h): Likewise.
60596         * modules/configmake (configmake.h): Likewise.
60597         * modules/fcntl (fcntl.h): Likewise.
60598         * modules/fnmatch (fnmatch.h): Likewise.
60599         * modules/getopt (getopt.h): Likewise.
60600         * modules/glob (glob.h): Likewise.
60601         * modules/inttypes (inttypes.h): Likewise.
60602         * modules/netinet_in (netinet/in.h): Likewise.
60603         * modules/poll (poll.h): Likewise.
60604         * modules/stdbool (stdbool.h): Likewise.
60605         * modules/stdint (stdint.h): Likewise.
60606         * modules/sys_select (sys/select.h): Likewise.
60607         * modules/sys_socket (sys/socket.h): Likewise.
60608         * modules/sys_stat (sys/stat.h): Likewise.
60609         * modules/sysexits (sysexits.h): Likewise.
60610         * modules/unistd (unistd.h): Likewise.
60611         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60612         Add a "DO NOT EDIT" comment to the generated file.
60613         (func_import): Likewise for gnulib-comp.m4.
60614
60615 2006-10-07  Bruno Haible  <bruno@clisp.org>
60616
60617         * lib/gl_sublist.h: New file.
60618         * lib/gl_sublist.c: New file.
60619
60620 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60621
60622         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
60623         name (relative to the original working directory) and the file
60624         name component (relative to the temporary working directory).  All
60625         callers changed.
60626         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
60627         * lib/mkdir-p.c (make_dir_parents): Likewise.
60628         * lib/mkdir-p.h (make_dir_parents): Likewise.
60629
60630 2006-10-06  Eric Blake  <ebb9@byu.net>
60631
60632         Define several macros for use by the clean-temp module.
60633         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
60634         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
60635         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
60636
60637         * lib/clean-temp.h (close_stream_temp): New declaration.
60638         * lib/clean-temp.c (includes): Pull in headers according to what
60639         other modules are in use.
60640         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
60641
60642 2006-10-06  Bruno Haible  <bruno@clisp.org>
60643
60644         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
60645         instead of fopen, fwriteerror.
60646
60647 2006-10-06  Bruno Haible  <bruno@clisp.org>
60648
60649         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
60650         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
60651         int.
60652         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
60653         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
60654         Return an error indicator.
60655         Suggested by Eric Blake.
60656
60657 2006-10-06  Bruno Haible  <bruno@clisp.org>
60658
60659         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
60660         Reported by Eric Blake.
60661
60662 2006-10-06  Bruno Haible  <bruno@clisp.org>
60663
60664         * modules/closeout (Description): Mention stderr too.
60665
60666 2006-10-06  Bruno Haible  <bruno@clisp.org>
60667         and Paul Eggert  <eggert@cs.ucla.edu>
60668
60669         * lib/closeout.c (close_stdout): Also close stderr.
60670         * lib/closeout.h: Update comment.
60671
60672 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60673
60674         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
60675         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
60676         * lib/dirchownmod.c: Include lchown.h.
60677         * lib/lchown.c: Don't include files that lchown.h now includes.
60678         Don't declare chown, since lchown.h now does that.
60679         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
60680         (lchown): Define to rpl_chown if lchown is declared but
60681         does not exist.  Declare using a prototype if lchown is not
60682         declared.  Add a copyright notice.
60683         * lib/mkstemp.h: Include <unistd.h>.
60684         * lib/openat.c: Include lchown.h.
60685
60686         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
60687         we now test for that separately.
60688         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
60689         rather than O_NOFOLLOW, when testing whether it's possible to
60690         avoid a race condition reliably.
60691         * lib/savewd.c (savewd_chdir): Likewise.
60692
60693         Remove macros that are no longer needed now that stdint.h is
60694         reliable.
60695         * lib/fsusage.c (UINTMAX_MAX): Remove.
60696         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
60697         * lib/utimecmp.c (SIZE_MAX): Remove.
60698
60699         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
60700
60701         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
60702         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
60703         O_NOATIME works.
60704
60705 2006-10-05  Bruno Haible  <bruno@clisp.org>
60706
60707         * lib/gl_list.h (gl_sortedlist_search_from_to,
60708         gl_sortedlist_indexof_from_to): New declarations.
60709         (gl_list_implementation): New fields sortedlist_search_from_to,
60710         sortedlist_indexof_from_to.
60711         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
60712         inline functions.
60713         * lib/gl_list.c (gl_sortedlist_search_from_to,
60714         gl_sortedlist_indexof_from_to): New functions.
60715         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
60716         function.
60717         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
60718         (gl_array_sortedlist_search_from_to): New function.
60719         (gl_array_list_implementation): Update.
60720         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
60721         function.
60722         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
60723         (gl_carray_sortedlist_search_from_to): New function.
60724         (gl_carray_list_implementation): Update.
60725         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
60726         gl_linked_sortedlist_indexof_from_to): New functions.
60727         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60728         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60729         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
60730         gl_tree_sortedlist_indexof_from_to): New functions.
60731         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60732         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60733         Update.
60734         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60735         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
60736         Update.
60737
60738 2006-10-05  Bruno Haible  <bruno@clisp.org>
60739
60740         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
60741         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
60742         (struct gl_list_implementation): Add fields search_from_to,
60743         indexof_from_to. Remove fields search, indexof.
60744         (gl_list_search): Use the search_from_to method.
60745         (gl_list_search_from, gl_list_search_from_to): New functions.
60746         (gl_list_indexof): Use the indexof_from_to method.
60747         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60748         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
60749         (gl_list_search_from, gl_list_search_from_to): New functions.
60750         (gl_list_indexof): Use the indexof_from_to method.
60751         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60752         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
60753         gl_array_indexof. Add start_index, end_index arguments.
60754         (gl_array_search_from_to): Renamed from gl_array_search. Add
60755         start_index, end_index arguments.
60756         (gl_array_remove, gl_array_list_implementation): Update.
60757         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
60758         gl_carray_indexof. Add start_index, end_index arguments.
60759         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
60760         start_index, end_index arguments.
60761         (gl_carray_remove, gl_carray_list_implementation): Update.
60762         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
60763         gl_linked_search. Add start_index, end_index arguments.
60764         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
60765         start_index, end_index arguments.
60766         (gl_linked_remove): Update.
60767         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60768         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60769         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
60770         field to 'size_t'.
60771         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
60772         gl_tree_search. Add start_index, end_index arguments.
60773         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60774         start_index, end_index arguments.
60775         (gl_tree_remove): Update.
60776         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60777         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60778         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
60779         function.
60780         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
60781         gl_tree_search. Add start_index, end_index arguments.
60782         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60783         start_index, end_index arguments.
60784         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60785         Update.
60786         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60787
60788 2006-10-05  Bruno Haible  <bruno@clisp.org>
60789
60790         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
60791
60792         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
60793         fwriteerror_temp): New declarations.
60794         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
60795         (descriptors): New variable.
60796         (cleanup): First, close the descriptors.
60797         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
60798         fclose_temp, fwriteerror_temp): New functions.
60799
60800 2006-10-04  Jim Meyering  <jim@meyering.net>
60801
60802         * lib/fts.c (fts_open): Tiny comment change.
60803
60804 2006-10-04  Bruno Haible  <bruno@clisp.org>
60805
60806         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
60807         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
60808         gl_LOCK_BODY.
60809         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
60810         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
60811         gl_LOCK_EARLY_BODY.
60812         (gl_LOCK): Require gl_LOCK_BODY.
60813
60814 2006-10-04  Bruno Haible  <bruno@clisp.org>
60815
60816         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
60817         (gl_oset_search_atleast): New declaration.
60818         (struct gl_oset_implementation): Add field 'search_atleast'.
60819         (gl_oset_search_atleast): New inline function.
60820         * lib/gl_oset.c (gl_oset_search_atleast): New function.
60821         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
60822         (gl_array_oset_implementation): Update.
60823         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
60824         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
60825         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
60826
60827 2006-10-04  Bruno Haible  <bruno@clisp.org>
60828
60829         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
60830
60831 2006-10-03  Bruno Haible  <bruno@clisp.org>
60832
60833         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
60834         from gl_avltreehash_list_implementation.
60835
60836 2006-10-03  Bruno Haible  <bruno@clisp.org>
60837
60838         * lib/gl_oset.c (gl_oset_add): Fix return type.
60839
60840 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
60841
60842         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
60843
60844 2006-10-02  Eric Blake  <ebb9@byu.net>
60845
60846         * modules/strnlen (Depends-on): Add extensions.
60847
60848 2006-10-02  Eric Blake  <ebb9@byu.net>
60849
60850         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
60851         definition in 2.60+.
60852
60853 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
60854
60855         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
60856         checks.
60857
60858 2006-10-02  Bruno Haible  <bruno@clisp.org>
60859
60860         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
60861         to the AUTOMAKE_OPTIONS.
60862         Reported by Jim Meyering.
60863
60864 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
60865
60866         Work around bug in Solaris 10 /proc file system:
60867         /proc/self/fd/NNN/.. isn't the parent directory of
60868         the directory whose file descriptor is NNN.  This needs to
60869         be worked around at run time, not compile time, since a
60870         program might be built on Solaris 8, where things work, and
60871         run on Solaris 10.
60872         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
60873         to use the following interface instead:
60874         (OPENAT_BUFFER_SIZE): New macro.
60875         (openat_proc_name): New function.
60876         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
60877         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
60878         Likewise.
60879         * lib/openat-proc.c: New file.
60880         * modules/openat (Files): Add lib/openat-proc.c.
60881         (Depends-on): Add same-inode, stdbool.
60882         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
60883
60884 2006-09-29  Bruno Haible  <bruno@clisp.org>
60885
60886         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
60887         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
60888         argument. Set stdout_closed before testing for ferror, not after.
60889         (fwriteerror, fwriteerror_no_ebadf): New functions.
60890
60891 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60892
60893         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
60894
60895 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
60896
60897         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
60898         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
60899
60900 2006-09-28  Jim Meyering  <jim@meyering.net>
60901
60902         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
60903         Include <unistd.h>.
60904
60905 2006-09-28  Bruno Haible  <bruno@clisp.org>
60906
60907         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
60908         * modules/linkedhash-list (Depends-on): Likewise.
60909         * modules/rbtreehash-list (Depends-on): Likewise.
60910
60911 2006-09-28  Bruno Haible  <bruno@clisp.org>
60912
60913         * lib/strndup.h: Simplify the redefinition of strndup.
60914         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
60915         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
60916
60917 2006-09-28  Bruno Haible  <bruno@clisp.org>
60918
60919         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
60920         * lib/gl_linkedhash_list.c: Likewise.
60921         * lib/gl_rbtreehash_list.c: Likewise.
60922
60923 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60924
60925         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
60926         getaddrinfo.
60927
60928         * lib/__fpending.h: Don't include <stdio_ext.h> unless
60929         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
60930         it causes <stdio_ext.h> to cause a compile-time error.
60931         Problem reported by Nelson H. F. Beebe.
60932         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
60933         of HAVE_DECL___PENDING.
60934
60935         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
60936         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
60937         declaration.
60938
60939 2006-09-27  Jim Meyering  <jim@meyering.net>
60940
60941         This file could end up with a definition for a function
60942         named __strndup, rather than rpl_strndup on a system with
60943         incomplete weak_alias support.
60944         * lib/strndup.c (strndup): Rename from __strndup.
60945         Remove #defines that used to map __strndup to strndup.
60946         Don't use K&R prototypes.
60947         Remove LIBC-related code, since this file is not sync'd with glibc.
60948         * lib/strndup.h: Revamp, accordingly.
60949         * m4/strndup.m4: Modernize.
60950
60951 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
60952
60953         * modules/savewd (Depends-on): Add 'raise'.
60954         * lib/savewd.c: Include <signal.h>, for 'raise'.
60955
60956 2006-09-26  Jim Meyering  <jim@meyering.net>
60957
60958         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
60959         when we detect Darwin 8.7.0's acl_get_file bug.
60960         Rearrange to perform the new (below) run-test while $LIBS
60961         contains any acl-related library.  Set USE_ACL at the end.
60962         (gl_ACL_GET_FILE): New function.
60963
60964 2006-09-26  Eric Blake  <ebb9@byu.net>
60965
60966         * lib/verror.c: Include <config.h> unconditionally.
60967
60968 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
60969
60970         * modules/clock-time (Maintainer): Add self.
60971         * modules/getlogin_r (Depends-on): Add extensions.
60972
60973 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60974
60975         * modules/clock-time: New module.
60976         * modules/nanosleep (Depends-on): Add clock-time.
60977         * modules/gethrxtime (Depends-on): Likewise.
60978         * modules/gettime (Depends-on): Likewise.
60979         * modules/settime (Depends-on): Likewise.
60980
60981         * modules/fts-lgpl: Depend on openat.
60982         * modules/mkancesdirs: Depend on savewd.
60983         * modules/mkdir-p: Likewise.
60984
60985 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60986
60987         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
60988
60989         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
60990         `gl_have_arbitrary_file_name_length_limit' to
60991         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
60992         actually works between configure runs.
60993
60994 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60995             Bruno Haible  <bruno@clisp.org>
60996
60997         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
60998
60999 2006-09-25  Jim Meyering  <jim@meyering.net>
61000
61001         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
61002         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
61003
61004 2006-09-25  Eric Blake  <ebb9@byu.net>
61005
61006         * gnulib-tool (func_import, func_create_testdir): Fix typos in
61007         exec's in 2006-09-18 patch when shuffling fds.
61008
61009 2006-09-25  Bruno Haible  <bruno@clisp.org>
61010
61011         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
61012         Reported by Jim Meyering.
61013
61014 2006-09-24  Jim Meyering  <jim@meyering.net>
61015
61016         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
61017         compare a pointer against a literal "0".  That caused failures with
61018         at least HP-UX's hpcc.
61019
61020 2006-09-22  Simon Josefsson  <jas@extundo.com>
61021
61022         * modules/gc-sha1:
61023         * modules/gc-md4:
61024         * modules/gc-hmac-sha1:
61025         * modules/gc-hmac-md5:
61026         * modules/gc-des:
61027         * modules/gc-arcfour: Distribute more files.
61028
61029 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61030
61031         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
61032         (gl_linked_iterator_from_to): Initialize struct completely.
61033         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
61034         (gl_tree_iterator_from_to): Likewise
61035         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
61036         * lib/gl_array_list.c [lint] (gl_array_iterator)
61037         (gl_array_iterator_from_to): Likewise.
61038         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
61039         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
61040         (gl_carray_iterator_from_to): Likewise.
61041
61042         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
61043         * lib/md4.c (md4_process_block): Remove unused variable.
61044         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
61045         parentheses for clarity.
61046
61047 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61048
61049         * modules/bison-i18n (Depends-on): Add gettext.
61050
61051 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61052
61053         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
61054         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
61055         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
61056         also add missing comma that caused broken test.
61057         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
61058         stdlib.h, for `abort'.
61059         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
61060         variables.
61061         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
61062         include unistd.h if present, for `rmdir'.
61063         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
61064         variables.
61065         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
61066         in the process include standard headers for prototypes.
61067         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
61068         gets declared on GNU/Linux.
61069         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
61070         unistd.h, for `rmdir'.
61071         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
61072
61073         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
61074         always true.
61075         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
61076
61077         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
61078
61079 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61080
61081         * gnulib-tool (func_version): Create output all at once.  This
61082         may help avoid triggering unnecessary SIGPIPEs, and at any
61083         rate it doesn't hurt.
61084
61085 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61086             Bruno Haible  <bruno@clisp.org>
61087
61088         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
61089         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61090         * m4/signed.m4 (bh_C_SIGNED): Likewise.
61091
61092         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
61093         (gl_FUNC_VASPRINTF): Invoke it.
61094
61095 2006-09-22  Bruno Haible  <bruno@clisp.org>
61096
61097         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
61098         getloadavg.c as first argument.
61099
61100 2006-09-22  Bruno Haible  <bruno@clisp.org>
61101
61102         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
61103         at the beginning of the gl_INIT macro.
61104         * modules/getloadavg (configure.ac): Pass $gl_source_base to
61105         gl_GETLOADAVG.
61106
61107 2006-09-22  Bruno Haible  <bruno@clisp.org>
61108
61109         * gnulib-tool (func_create_megatestdir): Don't include the config-h
61110         module.
61111         Suggested by Ralf Wildenhues.
61112
61113 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61114
61115         Import this patch from libc:
61116
61117         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
61118
61119         * lib/regex_internal.c (re_string_reconstruct): Handle
61120         offset < pstr->valid_raw_len && pstr->offsets_needed case.
61121         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
61122         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
61123         re_string_context_at.
61124
61125         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
61126         now requires it.
61127         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
61128         gl_REGEX now does it for us.
61129         (gl_REGEX): Add test taken from
61130         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
61131
61132         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
61133         Check that large offsets work.  Modernize Autoconf usages.
61134         Prefer "yes" to mean a good thing rather than a bad.
61135         Don't put "#define mkstemp" in config.h, as this might interfere
61136         with standard system headers that "#define mkstemp mkstemp64".
61137
61138         * modules/mkstemp (Depends-on): Add extensions, so that
61139         mkstemp is visible on some platforms.
61140         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
61141         (Include): Change to "mkstemp.h" from <stdlib.h>.
61142         (Files): Add mkstemp.h.
61143
61144         * lib/mkstemp.h: New file, since some standard headers
61145         #define mkstemp.
61146         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
61147         Include "mkstemp.h".
61148         Make the _LIBC code resemble glibc original more,
61149         e.g., use K&R style.
61150         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
61151         (mkstemp): Remove, since mkstemp.h does this for us.
61152         * lib/stdlib--.h: Include mkstemp.h.
61153
61154         Import this patch from libc:
61155
61156         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
61157
61158         * lib/tempname.c (__gen_tempname): Change attempts_min
61159         into a macro.  Use preprocessor to decide how to initialize
61160         attempts [Coverity CID 67].
61161
61162 2006-09-20  Bruno Haible  <bruno@clisp.org>
61163
61164         * lib/mkdtemp.c: Import from libc.
61165         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
61166                 * sysdeps/posix/tempname.c (__gen_tempname): Change
61167                 attempts_min into a macro.  Use preprocessor to decide how to
61168                 initialize attempts [Coverity CID 67].
61169         2001-11-27  Paul Eggert  <eggert@twinsun.com>
61170                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
61171                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
61172
61173 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61174
61175         * gnulib-tool (func_exit): New function, to allow to pass the
61176         exit status portably through the trap.  Use everywhere.
61177         (--help, --version): Signal a write error.
61178         (trap): catch SIGPIPE, for write errors.
61179         Exit at the end of the trap, with the correct exit status.
61180
61181 2006-09-19  Karl Berry  <karl@gnu.org>
61182
61183         * doc/gnulib.texi: note about the license texinfo files.
61184
61185 2006-09-19  Eric Blake  <ebb9@byu.net>
61186
61187         * gnulib-tool: Avoid space-tab.
61188
61189 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
61190
61191         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
61192         that prevented coreutils 6.1 from building.  Problem reported
61193         by Petter Reinholdtsen.
61194
61195 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
61196
61197         * gnulib-tool (avoidlist): Fix typo that broke options like
61198         --avoid=lock that are used by coreutils bootstrap.
61199
61200 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
61201
61202         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
61203         more systematically.
61204
61205 2006-09-18  Jim Meyering  <jim@meyering.net>
61206
61207         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
61208
61209 2006-09-18  Bruno Haible  <bruno@clisp.org>
61210
61211         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
61212
61213 2006-09-18  Bruno Haible  <bruno@clisp.org>
61214
61215         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
61216         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
61217         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
61218         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
61219         * m4/gettext.m4: Require autoconf >= 2.52.
61220         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
61221         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
61222         of gl_cv_header_inttypes_h.
61223
61224 2006-09-18  Bruno Haible  <bruno@clisp.org>
61225
61226         * lib/javaversion.c: Include configmake.h.
61227
61228 2006-09-18  Bruno Haible  <bruno@clisp.org>
61229
61230         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
61231         avoid that the while loops be executed in a subshell.
61232
61233 2006-09-18  Bruno Haible  <bruno@clisp.org>
61234
61235         * MODULES.html.sh (func_module): Break long lines.
61236         Suggested by Bruce Korb <bkorb@gnu.org>.
61237
61238 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61239
61240         Speed up by a factor of 1.12.
61241         * gnulib-tool (nl): New variable.
61242         (func_import): Rewrite include directive extraction to only read each
61243         directive once.
61244
61245 2006-09-17  Bruno Haible  <bruno@clisp.org>
61246
61247         * modules/javaversion (Makefile.am): Remove DEFS setting.
61248         (Depends-on): Add configmake, for PKGDATADIR definition.
61249
61250 2006-09-17  Bruno Haible  <bruno@clisp.org>
61251
61252         * gnulib-tool (func_create_testdir): Rewrite all files at once.
61253
61254 2006-09-17  Bruno Haible  <bruno@clisp.org>
61255
61256         * gnulib-tool (func_append): New function, stolen from libtool.m4.
61257         (func_modules_transitive_closure, func_modules_add_dummy,
61258         func_modules_to_filelist, func_import, func_create_testdir,
61259         func_create_megatestdir, ...): Use it wherever possible.
61260         Suggested by Ralf Wildenhues.
61261
61262 2006-09-16  Karl Berry  <karl@gnu.org>
61263
61264         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
61265         to avoid sectioning errors.
61266         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
61267         [ifinfo]: blank line after @center-ed titles.
61268         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
61269         Spell FSF address consistently with others.
61270         (These changes approved by rms.)
61271
61272 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61273
61274         Speed up by a factor of 1.61.
61275         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
61276         already checked module names again.
61277
61278 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61279
61280         Speed up by a factor of 1.13.
61281         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
61282         for new_files, and the input to func_add_or_update.
61283
61284 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61285
61286         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
61287         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
61288
61289 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61290
61291         * modules/mkancesdirs (Depends-on): Add fcntl.
61292         * modules/savewd: New file.
61293         * MODULES.html.sh (File system functions): Add savewd.
61294
61295         * modules/configmake (Makefile.am): Add support for the
61296         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
61297
61298 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61299
61300         * m4/savewd.m4: New file.
61301
61302 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61303
61304         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
61305         (dirchownmod): New arg FD.  All callers changed.
61306         Use FD rather than opening the directory ourself, as opening is
61307         now the caller's responsibility.
61308         * lib/dirchownmod.h: Likewise.
61309         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
61310         hosts that require <sys/types.h> before <sys/stat.h>.  Include
61311         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
61312         (test_dir): Remove.
61313         (mkancesdirs): Return length of prefix of FILE that has already
61314         been made, or -2 if there is a child doing the work.  Redo
61315         algorithm so that it is O(N) rather than O(N**2).  Optimize away
61316         ".", and treat ".." specially since it might stray back into
61317         already-created areas.  Use a subprocess if necessary.  New arg
61318         WD; all users changed.  MAKE_DIR function should now return 1
61319         if it creates a directory that is not readable.  Return -2 if
61320         a child process is spun off.
61321         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
61322         Adjust signature to match code.
61323         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
61324         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
61325         all users changed.
61326         * lib/savewd.c, lib/savewd.h: New files.
61327
61328 2006-09-15  Jim Meyering  <jim@meyering.net>
61329
61330         * modules/rename-dest-slash: New module.
61331         * MODULES.html.sh (posix_compat): Add it here.
61332
61333         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
61334
61335 2006-09-15  Jim Meyering  <jim@meyering.net>
61336
61337         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
61338         file.
61339
61340         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
61341
61342 2006-09-15  Jim Meyering  <jim@meyering.net>
61343
61344         * lib/rename-dest-slash.c (has_trailing_slash): Use
61345         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
61346         (rpl_rename_dest_slash): Perform the cheaper trailing slash
61347         test before testing whether SRC is a directory.
61348         Suggestions from Bruno Haible.
61349
61350         Avoid a warning about an unused variable.
61351         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
61352         into the #ifdef block where it's used.
61353
61354         * lib/rename-dest-slash.c: New file.
61355
61356 2006-09-14  Bruno Haible  <bruno@clisp.org>
61357
61358         * lib/allocsa.c: Include <config.h> unconditionally.
61359         * lib/asnprintf.c: Likewise.
61360         * lib/asprintf.c: Likewise.
61361         * lib/c-strcasecmp.c: Likewise.
61362         * lib/c-strcasestr.c: Likewise.
61363         * lib/c-strncasecmp.c: Likewise.
61364         * lib/c-strstr.c: Likewise.
61365         * lib/classpath.c: Likewise.
61366         * lib/clean-temp.c: Likewise.
61367         * lib/concatpath.c: Likewise.
61368         * lib/copy-file.c: Likewise.
61369         * lib/csharpcomp.c: Likewise.
61370         * lib/csharpexec.c: Likewise.
61371         * lib/execute.c: Likewise.
61372         * lib/fatal-signal.c: Likewise.
61373         * lib/findprog.c: Likewise.
61374         * lib/fwriteerror.c: Likewise.
61375         * lib/gl_array_list.c: Likewise.
61376         * lib/gl_array_oset.c: Likewise.
61377         * lib/gl_avltree_list.c: Likewise.
61378         * lib/gl_avltree_oset.c: Likewise.
61379         * lib/gl_avltreehash_list.c: Likewise.
61380         * lib/gl_carray_list.c: Likewise.
61381         * lib/gl_linked_list.c: Likewise.
61382         * lib/gl_linkedhash_list.c: Likewise.
61383         * lib/gl_list.c: Likewise.
61384         * lib/gl_oset.c: Likewise.
61385         * lib/gl_rbtree_list.c: Likewise.
61386         * lib/gl_rbtree_oset.c: Likewise.
61387         * lib/gl_rbtreehash_list.c: Likewise.
61388         * lib/imaxabs.c: Likewise.
61389         * lib/imaxdiv.c: Likewise.
61390         * lib/javacomp.c: Likewise.
61391         * lib/javaexec.c: Likewise.
61392         * lib/javaversion.c: Likewise.
61393         * lib/linebreak.c: Likewise.
61394         * lib/localcharset.c: Likewise.
61395         * lib/lock.c: Likewise.
61396         * lib/mbchar.c: Likewise.
61397         * lib/mbswidth.c: Likewise.
61398         * lib/mkdtemp.c: Likewise.
61399         * lib/pipe.c: Likewise.
61400         * lib/printf-args.c: Likewise.
61401         * lib/printf-parse.c: Likewise.
61402         * lib/progname.c: Likewise.
61403         * lib/progreloc.c: Likewise.
61404         * lib/readlink.c: Likewise.
61405         * lib/sh-quote.c: Likewise.
61406         * lib/stpcpy.c: Likewise.
61407         * lib/stpncpy.c: Likewise.
61408         * lib/strcasecmp.c: Likewise.
61409         * lib/strcasestr.c: Likewise.
61410         * lib/strcspn.c: Likewise.
61411         * lib/striconv.c: Likewise.
61412         * lib/strncasecmp.c: Likewise.
61413         * lib/strnlen1.c: Likewise.
61414         * lib/strstr.c: Likewise.
61415         * lib/strtok_r.c: Likewise.
61416         * lib/tls.c: Likewise.
61417         * lib/tmpdir.c: Likewise.
61418         * lib/unicodeio.c: Likewise.
61419         * lib/unsetenv.c: Likewise.
61420         * lib/vasnprintf.c: Likewise.
61421         * lib/vasprintf.c: Likewise.
61422         * lib/wait-process.c: Likewise.
61423         * lib/xallocsa.c: Likewise.
61424         * lib/xsetenv.c: Likewise.
61425         * lib/xstriconv.c: Likewise.
61426
61427 2006-09-13  Simon Josefsson  <jas@extundo.com>
61428
61429         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
61430         that internally, suggested by Ralf Wildenhues
61431         <Ralf.Wildenhues@gmx.de>.
61432
61433 2006-09-13  Simon Josefsson  <jas@extundo.com>
61434
61435         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
61436         @LIBOBJS@.
61437         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61438
61439 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61440
61441         * lib/_fpending.c: Include <config.h> unconditionally, since we no
61442         longer worry about uses that don't define HAVE_CONFIG_H.
61443         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
61444         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
61445         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
61446         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
61447         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
61448         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
61449         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
61450         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
61451         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
61452         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
61453         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
61454         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
61455         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
61456         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
61457         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
61458         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
61459         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
61460         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
61461         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
61462         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
61463         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
61464         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
61465         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
61466         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
61467         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
61468         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
61469         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
61470         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
61471         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
61472         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
61473         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
61474         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
61475         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
61476         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
61477         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
61478         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
61479         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
61480         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
61481         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
61482         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
61483         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
61484         Likewise.
61485
61486 2006-09-13  Eric Blake  <ebb9@byu.net>
61487
61488         * lib/getopt.c: Fix typo in last commit.
61489
61490 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61491
61492         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
61493         dgettext.
61494
61495 2006-09-12  Jim Meyering  <jim@meyering.net>
61496
61497         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
61498         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
61499         Reported by Nelson H. F. Beebe.
61500
61501 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61502
61503         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
61504         program_invocation_name and program_invocation_short_name are
61505         initialized.
61506         * lib/argp-namefrob.h: Move declarations of program_invocation_name
61507         and program_invocation_short_name to argp.h, so they are visible
61508         to user programs.
61509         * lib/argp.h: Likewise
61510
61511 2006-09-10  Bruno Haible  <bruno@clisp.org>
61512
61513         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61514         m4/inttypes_h.m4, m4/uintmax_t.m4.
61515
61516 2006-09-10  Bruno Haible  <bruno@clisp.org>
61517
61518         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
61519         gl_AC_TYPE_UINTMAX_T.
61520
61521 2006-09-10  Bruno Haible  <bruno@clisp.org>
61522
61523         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
61524
61525 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61526
61527         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
61528         convention.  Text proposed by Bruno Haible.
61529         (struct argp_option): Document the use of N_() wrappers.
61530
61531         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
61532         '\v', and translate the two parts separately, instead of feeding
61533         the whole string to gettext.  This allows to exclude
61534         '\v' from the strings visible to the translator by writing doc
61535         strings as N_("..") "\v" N_("..").
61536
61537 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
61538
61539         * config/srclist.txt: Undo latest change; the bug was fixed.
61540
61541 2006-09-09  Bruno Haible  <bruno@clisp.org>
61542
61543         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
61544         assignments if building a library without libtool.
61545         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
61546         in func_emit_lib_Makefile_am.
61547         (func_import): When building a static library libfoo.a, arrange to
61548         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
61549         (func_create_testdir): Likewise.
61550         * modules/gc (configure.ac, Makefile.am): If building statically,
61551         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
61552         * modules/iconvme (configure.ac, Makefile.am): Likewise.
61553         * modules/striconv (configure.ac, Makefile.am): Likewise.
61554         Based on a suggestion by Ralf Wildenhues.
61555
61556 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61557
61558         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61559         Check for unistd.h too, since Autoconf doesn't assume POSIX.
61560         Also:
61561
61562         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61563         Add year_2050_test to catch glibc bug 2821
61564         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61565
61566         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61567         Prefer #ifdef to #if.
61568
61569         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
61570         Return from 'main' instead of calling 'exit'.
61571
61572 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61573
61574         * lib/mktime.c (guess_time_tm): Fix bug where mktime
61575         returned the maximum time_t value rather than (time_t) -1.
61576         Problem originally reported by William Bardwell
61577         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61578
61579         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61580         Moved to here ...
61581         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61582         ... from here.
61583
61584 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61585
61586         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
61587         2821 is fixed.
61588
61589 2006-09-08  Jim Meyering  <jim@meyering.net>
61590
61591         Don't make generated files read-only.  That would bother too many
61592         people.  However, do retain the ability to work when targets are
61593         read-only: remove the destination and temporary files before writing
61594         them (when generated via sed or echo), or by using the -f option for
61595         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
61596         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61597         * modules/byteswap, modules/configmake, modules/fcntl:
61598         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61599         * modules/localcharset, modules/netinet_in, modules/poll:
61600         * modules/stdbool, modules/stdint, modules/sys_select:
61601         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61602
61603 2006-09-08  Jim Meyering  <jim@meyering.net>
61604
61605         Avoid new build failure on FreeBSD 6.0.
61606         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
61607         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
61608         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
61609
61610 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61611
61612         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
61613
61614 2006-09-07  Jim Meyering  <jim@meyering.net>
61615
61616         Fix global typo in last change: use chmod u-w, not chmod u-x.
61617         Spotted by Paul Eggert and Bruce Korb.
61618         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61619         * modules/byteswap, modules/configmake, modules/fcntl:
61620         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61621         * modules/localcharset, modules/netinet_in, modules/poll:
61622         * modules/stdbool, modules/stdint, modules/sys_select:
61623         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61624
61625 2006-09-06  Jim Meyering  <jim@meyering.net>
61626
61627         Make generated files be read-only.
61628         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
61629         Ensure that each generated file is now read-only.
61630         * modules/argz: Likewise.
61631         * modules/arpa_inet: Likewise.
61632         * modules/byteswap: Likewise.
61633         * modules/configmake: Likewise.
61634         * modules/fcntl: Likewise.
61635         * modules/fnmatch: Likewise.
61636         * modules/getopt: Likewise.
61637         * modules/glob: Likewise.
61638         * modules/inttypes: Likewise.
61639         * modules/netinet_in: Likewise.
61640         * modules/poll: Likewise.
61641         * modules/stdbool: Likewise.
61642         * modules/stdint: Likewise.
61643         * modules/sys_select: Likewise.
61644         * modules/sys_socket: Likewise.
61645         * modules/sys_stat: Likewise.
61646         * modules/sysexits: Likewise.
61647         * modules/localcharset: Same as above, but continue using temporary
61648         file named "t-$@" (why different?) rather than the "$@-t" used
61649         everywhere else.
61650
61651         * modules/sysexits (Makefile.am): Replace literal occurrences
61652         of "sysexit.h" more readable, and more consistent, "$@".
61653
61654 2006-09-06  Bruno Haible  <bruno@clisp.org>
61655
61656         * modules/striconv: New file.
61657         * modules/xstriconv: New file.
61658         * MODULES.html.sh (Internationalization functions): Add striconv,
61659         xstriconv.
61660
61661 2006-09-06  Bruno Haible  <bruno@clisp.org>
61662
61663         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
61664         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
61665         not using libtool correctly.
61666
61667 2006-09-06  Bruno Haible  <bruno@clisp.org>
61668
61669         * lib/striconv.h: New file.
61670         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
61671         iconvstring.c.
61672         * lib/xstriconv.h: New file.
61673         * lib/xstriconv.c: New file.
61674
61675 2006-09-06  Bruno Haible  <bruno@clisp.org>
61676
61677         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61678         lib_..._LDFLAGS.
61679
61680 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61681
61682         * lib/argz_.h: Sync from Libtool.
61683
61684         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
61685                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61686
61687         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
61688
61689 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61690
61691         * modules/trim: New file.
61692
61693 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61694
61695         * lib/trim.h: New file.
61696         * lib/trim.c: New file.
61697
61698 2006-09-05  Bruno Haible  <bruno@clisp.org>
61699
61700         * MODULES.html.sh (String handling): Add trim.
61701
61702 2006-09-04  Karl Berry  <karl@gnu.org>
61703
61704         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
61705         until next release.
61706
61707 2006-09-03  Bruno Haible  <bruno@clisp.org>
61708
61709         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
61710         correctly.
61711
61712 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61713
61714         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
61715         not gl_GETLOADAVG.  Omit unneeded semicolons.
61716         Problems reported by Ralf Wildenhues in
61717         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61718         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
61719         at the end, which is the usual gnulib style.
61720
61721         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
61722         of doing all the work ourselves.
61723         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
61724         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
61725
61726 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61727
61728         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
61729         Problem reported by Ralf Wildenhues in
61730         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61731
61732         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
61733         HAVE_STRUCT_STATFS_F_FSTYPENAME.
61734
61735 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61736
61737         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
61738         yesterday's patch by changing test -n to test -z.
61739
61740 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61741
61742         * modules/getloadavg (Files): Add m4/getloadavg.m4.
61743         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
61744         the former is now obsolescent.
61745
61746         * modules/chdir-long (Depends-on): Add fcntl.
61747
61748 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61749
61750         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
61751         obsolescent, and programs should use gnulib instead.
61752         * m4/getloadavg.m4: New file, with contents taken from Autoconf
61753         but with prefixes changed.
61754
61755 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61756
61757         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
61758         or stdbool.h, because they might not exist while configuring.
61759
61760         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
61761         Don't include unistd.h or limits.h; not needed, since chdir-long.h
61762         does that for us.
61763         (O_DIRECTORY): Remove.
61764
61765 2006-08-31  Eric Blake  <ebb9@byu.net>
61766
61767         * gnulib-tool: Don't let emacs change spaces to TAB.
61768
61769 2006-08-31  Bruno Haible  <bruno@clisp.org>
61770
61771         * gnulib-tool: When calling func_import more than once, do it in a
61772         subshell.
61773         Reported by Eric Blake <ebb9@byu.net>.
61774
61775 2006-08-31  Bruno Haible  <bruno@clisp.org>
61776
61777         * gnulib-tool (nl): Remove variable.
61778         (sed_transform_lib_file): Use more robust test for config-h module.
61779         (func_import): Fix typo in 2006-08-25 patch.
61780
61781 2006-08-31  Bruno Haible  <bruno@clisp.org>
61782
61783         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
61784         specified, augment Makefile.am variables instead of assigning them.
61785
61786 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61787
61788         Work around a bug in both the Linux and SunOS 64-bit kernels:
61789         nanosleep mishandles sleeps for longer than 2**31 seconds.
61790         Problem reported by Frank v Waveren in
61791         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61792         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
61793         Check for nanosleep bug.
61794         (LIB_NANOSLEEP): Append clock_gettime library if needed.
61795
61796 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61797
61798         Work around a bug in both the Linux and SunOS 64-bit kernels:
61799         nanosleep mishandles sleeps for longer than 2**31 seconds.
61800         Problem reported by Frank v Waveren in
61801         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61802         * lib/nanosleep.c (BILLION): New constant.
61803         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
61804         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
61805         implementation.
61806
61807 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61808
61809         * modules/nanosleep (Depends-on): Add gettime.
61810
61811 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61812         and Simon Josefsson  <jas@extundo.com>
61813         and Oskar Liljeblad  <oskar@osk.mine.nu>
61814
61815         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
61816         * gnulib-tool (func_import): New license type 'unmodifiable license
61817         text'.
61818         * modules/fdl: Use it.  Longer description.
61819         * module/gpl, module/lgpl: New files.
61820
61821 2006-08-30  Jim Meyering  <jim@meyering.net>
61822
61823         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
61824         shadowing the parameter.
61825
61826 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61827
61828         Sync from Libtool:
61829
61830         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61831
61832         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
61833         sharing with gnulib.  Report by Eric Blake.
61834
61835 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61836
61837         * modules/isapipe: New file.
61838         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
61839
61840 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61841
61842         * modules/configmake (Makefile.am): Add a comment, and omit
61843         the CONFIGMAKE_ prefix from generated macro names.  Suggested
61844         by Bruno Haible.
61845
61846 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61847
61848         * m4/isapipe.m4: New file.
61849
61850 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61851
61852         * lib/isapipe.c, lib/isapipe.h: New files.
61853
61854 2006-08-29  Jim Meyering  <jim@meyering.net>
61855
61856         * modules/configmake (Makefile.am): Make configmake.h depend on
61857         Makefile.  Otherwise, a stale configmake.h could hang around.
61858
61859 2006-08-29  Eric Blake  <ebb9@byu.net>
61860
61861         * lib/error.c (error_at_line, print_errno_message): Match libc, after
61862         resolution of upstream bug 3044.
61863
61864 2006-08-29  Bruno Haible  <bruno@clisp.org>
61865
61866         * modules/localcharset (Depends-on): Add configmake.
61867         (Makefile.am): Remove setting of LIBDIR through DEFS.
61868
61869 2006-08-29  Bruno Haible  <bruno@clisp.org>
61870
61871         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
61872         defined.
61873
61874 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61875
61876         * modules/fcntl: New file.
61877         * modules/chdir-safer (Depends-on): Add fcntl.
61878         * modules/fts: Likewise.
61879         * modules/mkdir-p: Likewise.
61880
61881         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
61882         This undoes the most recent change, since we're now addressing the
61883         problem in a different way.
61884
61885         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
61886         into output, since the output might be called Makefile.am even
61887         if $makefile_name is something different.
61888         (func_import): Use $makefile_am rather than
61889         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
61890         empty.
61891
61892         * modules/inttypes (Files): Add m4/inttypes-h.m4.
61893
61894 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61895
61896         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
61897         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
61898         recent change to stdint.m4, since we're now addressing the problem in a
61899         different way.
61900
61901 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61902
61903         * m4/fcntl_h.m4: New file.
61904
61905 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61906
61907         * lib/fcntl_.h: New file.
61908         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
61909         the fcntl module.
61910         * lib/dirchownmod.c: Likewise.
61911         * lib/fts.c: Likewise.
61912
61913         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
61914         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
61915         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
61916         just before including <inttypes.h>, to avoid circular inclusion.
61917
61918 2006-08-28  Jim Meyering  <jim@meyering.net>
61919
61920         * doc/visibility.texi: Actually read and correct the grammar of the
61921         sentence affected by yesterday's change.
61922
61923 2006-08-28  Eric Blake  <ebb9@byu.net>
61924
61925         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
61926         needs wrapper.
61927
61928 2006-08-28  Eric Blake  <ebb9@byu.net>
61929
61930         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
61931
61932 2006-08-28  Eric Blake  <ebb9@byu.net>
61933
61934         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
61935
61936 2006-08-28  Bruno Haible  <bruno@clisp.org>
61937
61938         * modules/c-strstr: New file, from GNU gettext.
61939         * MODULES.html.sh (String handling): Add c-strstr.
61940
61941 2006-08-28  Bruno Haible  <bruno@clisp.org>
61942
61943         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
61944         macros.
61945         Reported by Eric Blake.
61946
61947 2006-08-28  Bruno Haible  <bruno@clisp.org>
61948
61949         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
61950         (VASNPRINTF): Return a string of length > INT_MAX without failing.
61951         * lib/vasprintf.c: Include errno.h, limits.h.
61952         (EOVERFLOW): New fallback definition.
61953         (vasprintf): Test here whether the string length is > INT_MAX.
61954         * lib/vsnprintf.c: Include errno.h, limits.h.
61955         (EOVERFLOW): New fallback definition.
61956         (vsnprintf): Fix bug when generated string was too long for the buffer.
61957         Test here whether the string length is > INT_MAX.
61958
61959 2006-08-28  Bruno Haible  <bruno@clisp.org>
61960
61961         * lib/inttypes_.h (SCNX*): Remove definitions.
61962         Reported by Eric Blake.
61963
61964 2006-08-28  Bruno Haible  <bruno@clisp.org>
61965
61966         * lib/c-strstr.h: New file, from GNU gettext.
61967         * lib/c-strstr.c: New file, from GNU gettext.
61968
61969 2006-08-28  Bruno Haible  <bruno@clisp.org>
61970
61971         * gnulib-tool: Reorder some statements.
61972
61973 2006-08-28  Bruno Haible  <bruno@clisp.org>
61974
61975         * gnulib-tool: New option --makefile-name.
61976         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
61977         $makefile_name.
61978         (func_import): Write $makefile_name to the cache file, and read it from
61979         there unless explicitly specified. Use $makefile_name as file name
61980         instead of Makefile.am. Adjust the recommendations accordingly.
61981
61982 2006-08-28  Bruno Haible  <bruno@clisp.org>
61983
61984         * gnulib-tool (func_verify_module): Check against misapplying patch.
61985
61986 2006-08-28  Bruno Haible  <bruno@clisp.org>
61987
61988         * gnulib-tool (func_relativize, func_relconcat): New functions.
61989         Give an error if --local-dir is given with --update.
61990         Remove trailing slashes from $local_gnulib_dir.
61991         (func_import): Store the relativized $local_gnulib_dir in
61992         gnulib-cache.m4, and read it from there if not specified explicitly.
61993
61994 2006-08-28  Bruno Haible  <bruno@clisp.org>
61995
61996         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
61997         is the current directory. Respect also $local_gnulib_dir.
61998
61999 2006-08-28  Bruno Haible  <bruno@clisp.org>
62000             Simon Josefsson  <jas@extundo.com>
62001
62002         BeOS portability.
62003         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
62004
62005 2006-08-27  Jim Meyering  <jim@meyering.net>
62006
62007         * doc/visibility.texi: Remove duplicate word: "pointer".
62008
62009 2006-08-26  Bruno Haible  <bruno@clisp.org>
62010
62011         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
62012         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
62013         (Makefile.am): Create inttypes.h from inttypes_.h.
62014         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
62015
62016         * modules/imaxabs: New file.
62017
62018         * modules/imaxdiv: New file.
62019
62020 2006-08-26  Bruno Haible  <bruno@clisp.org>
62021
62022         * m4/inttypes.m4: New file.
62023         * m4/_inttypes_h.m4: Remove file.
62024         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
62025         PRI_MACROS_BROKEN.
62026         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
62027
62028         * m4/imaxabs.m4: New file.
62029
62030         * m4/imaxdiv.m4: New file.
62031
62032 2006-08-26  Bruno Haible  <bruno@clisp.org>
62033
62034         * lib/inttypes_.h: New file.
62035         * lib/inttypes.h: Remove file.
62036         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
62037
62038         * lib/imaxabs.c: New file.
62039
62040         * lib/imaxdiv.c: New file.
62041
62042 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62043
62044         New config-h module, so that "make" output needn't be cluttered
62045         by -DHAVE_CONFIG_H.
62046         * MODULES.html.sh (Support for building libraries and executables):
62047         Add config-h.
62048         * modules/config-h: New file.
62049         * gnulib-tool (nl, sed_transform_lib_file): New vars.
62050         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
62051         the config-h module is used.
62052
62053         New configmake module, so that "make" output needn't be cluttered
62054         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
62055         * MODULES.html.sh (Support for building libraries and executables):
62056         Add configmake.
62057         * modules/configmake: New file.
62058
62059 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62060
62061         * m4/config-h.m4: New file.
62062
62063 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62064
62065         * config/srclist.txt: Add elisp-comp.
62066
62067 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62068
62069         * MODULES.html.sh (Support for building libraries and executables):
62070         Add elisp-comp.
62071         * build-aux/elisp-comp: New file.
62072         * modules/elisp-comp: New file.
62073
62074 2006-08-24  Bruno Haible  <bruno@clisp.org>
62075
62076         * gnulib-tool (func_create_testdir): Use non-default values of
62077         sourcebase and m4base.
62078
62079 2006-08-24  Bruno Haible  <bruno@clisp.org>
62080
62081         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
62082         HTML structure.
62083
62084 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62085
62086         * modules/openat (Depends-on): Add lchown.
62087
62088 2006-08-23  Bruno Haible  <bruno@clisp.org>
62089
62090         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
62091         of gl_LOCK_EARLY instead of gl_LOCK.
62092
62093 2006-08-23  Bruno Haible  <bruno@clisp.org>
62094
62095         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
62096         on OSF/1 to no.
62097         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
62098
62099 2006-08-23  Bruno Haible  <bruno@clisp.org>
62100
62101         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
62102         as unusable.
62103
62104         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
62105         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
62106         (gl_LOCK): New macro.
62107
62108 2006-08-22  Simon Josefsson  <jas@extundo.com>
62109
62110         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
62111         to md5 module.
62112
62113 2006-08-22  Simon Josefsson  <jas@extundo.com>
62114
62115         * MODULES.html.sh: Add "Support for maintaining and release
62116         projects".
62117
62118         * build-aux/gnupload: New file, from coreutils.
62119
62120 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62121
62122         Avoid the need for AC_LIBSOURCES in m4 macros.
62123         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
62124         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
62125         * modules/check-version (EXTRA_DIST): Add check-version.h.
62126         * modules/crc (EXTRA_DIST): Add crc.h.
62127         * modules/des (EXTRA_DIST): Add des.h.
62128         * modules/gc (EXTRA_DIST): Add gc.h.
62129         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
62130         * modules/getline (EXTRA_DIST): Add getline.h.
62131         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
62132         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
62133         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
62134         * modules/md2 (EXTRA_DIST): Add md2.h.
62135         * modules/md4 (EXTRA_DIST): Add md4.h.
62136         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
62137         * modules/read-file (EXTRA_DIST): Add read-file.h.
62138         * modules/readline (EXTRA_DIST): Add readline.h.
62139         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
62140         rijndael-api-fst.h.
62141
62142 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62143
62144         * m4/rijndael.m4 (gl_ARCFOUR):
62145         * m4/arctwo.m4 (gl_ARCTWO):
62146         * m4/check-version.m4 (gl_CHECK_VERSION):
62147         * m4/crc.m4 (gl_CRC):
62148         * m4/des.m4 (gl_DES):
62149         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
62150         * m4/gc.m4 (gl_GC):
62151         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
62152         * m4/getline.m4 (gl_FUNC_GETLINE):
62153         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
62154         * m4/hmac-md5.m4 (gl_HMAC_MD5):
62155         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
62156         * m4/md2.m4 (gl_MD2):
62157         * m4/md4.m4 (gl_MD4):
62158         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
62159         * m4/read-file.m4 (gl_FUNC_READ_FILE):
62160         * m4/readline.m4 (gl_FUNC_READLINE):
62161         * m4/rijndael.m4 (gl_RIJNDAEL):
62162         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
62163         to get the necessary .h files and whatnot.
62164
62165 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62166
62167         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
62168         gnulib rather than the other way around.
62169         * config/srclistvars.sh (COREUTILS): Remove.
62170
62171 2006-08-22  Jim Meyering  <jim@meyering.net>
62172
62173         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
62174
62175         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
62176
62177 2006-08-22  Eric Blake  <ebb9@byu.net>
62178
62179         * modules/regexprops-generic: New file.
62180         * MODULES.html.sh (Support for building documentation): List it.
62181
62182 2006-08-22  Eric Blake  <ebb9@byu.net>
62183
62184         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
62185         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
62186         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
62187         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
62188
62189 2006-08-22  Bruno Haible  <bruno@clisp.org>
62190
62191         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
62192         and lib_LTLIBRARIES like the other lib_* variables.
62193
62194 2006-08-22  Bruno Haible  <bruno@clisp.org>
62195
62196         * build-aux/x-to-1.in: New file, from GNU gettext.
62197
62198 2006-08-22  Bruno Haible  <bruno@clisp.org>
62199
62200         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
62201         <utmpx.h> exists.
62202
62203 2006-08-22  Bruno Haible  <bruno@clisp.org>
62204
62205         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
62206         <utmpx.h> exists.
62207
62208 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62209
62210         BeOS portability.
62211         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
62212         exist.
62213         Problem reported by Bruno Haible.
62214
62215 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62216
62217         Avoid the need for AC_LIBSOURCES in m4 macros.
62218         * modules/acl (EXTRA_DIST): Add acl.h.
62219         * modules/argmatch (Files): Add m4/argmatch.m4.
62220         (configure.ac): Add gl_ARGMATCH.
62221         (EXTRA_DIST): Renamed from lib_SOURCES, for
62222         consistency with the other modules.  Remove argmatch.c.
62223         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
62224         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
62225         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
62226         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
62227         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
62228         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
62229         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
62230         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
62231         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
62232         * modules/closeout (EXTRA_DIST): Add closeout.h.
62233         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
62234         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
62235         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
62236         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
62237         dirname.h; remove basename.c and stripslash.c.
62238         * modules/exclude (EXTRA_DIST): Add exclude.h.
62239         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
62240         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
62241         * modules/file-type (EXTRA_DIST): Add file-type.h.
62242         * modules/filemode (EXTRA_DIST): Add filemode.h.
62243         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
62244         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
62245         * modules/fpending (EXTRA_DIST): Add __fpending.h.
62246         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
62247         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
62248         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
62249         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
62250         * modules/getdate (EXTRA_DIST): Add getdate.c.
62251         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
62252         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
62253         * modules/getpass (EXTRA_DIST): Add getpass.h.
62254         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
62255         * modules/group-member (EXTRA_DIST): Add group-member.h.
62256         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
62257         * modules/hash (EXTRA_DIST): Add hash.h.
62258         * modules/human (EXTRA_DIST): Add human.h.
62259         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
62260         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
62261         * modules/lchown (EXTRA_DIST): Add lchown.h.
62262         * modules/long-options (EXTRA_DIST): Add long-options.h.
62263         * modules/lstat (EXTRA_DIST): Add lstat.h.
62264         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
62265         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
62266         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
62267         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
62268         * modules/memxor (EXTRA_DIST): Add memxor.h.
62269         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
62270         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
62271         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
62272         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
62273         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
62274         * modules/physmem (EXTRA_DIST): Add physmem.h.
62275         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
62276         * modules/posixver (EXTRA_DIST): Add posixver.h.
62277         * modules/quote (EXTRA_DIST): Add quote.h.
62278         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
62279         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
62280         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
62281         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
62282         regex_internal.h regexec.c.
62283         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
62284         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
62285         * modules/same (EXTRA_DIST): Add same.h.
62286         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
62287         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
62288         * modules/savedir (EXTRA_DIST): Add savedir.h.
62289         * modules/sha1 (EXTRA_DIST): Add sha1.h.
62290         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
62291         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
62292         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
62293         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
62294         * modules/strdup (EXTRA_DIST): Add strdup.h.
62295         * modules/strftime (EXTRA_DIST): Add strftime.h.
62296         * modules/strndup (EXTRA_DIST): Add strndup.h.
62297         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
62298         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
62299         * modules/time_r (EXTRA_DIST): Add time_r.h.
62300         * modules/timespec (EXTRA_DIST): Add timespec.h.
62301         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
62302         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
62303         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
62304         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
62305         * modules/userspec (EXTRA_DIST): Add userspec.h.
62306         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
62307         * modules/utimens (EXTRA_DIST): Add utimens.h.
62308         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
62309         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
62310         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
62311         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
62312         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
62313         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
62314         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
62315         * modules/yesno (EXTRA_DIST): Add yesno.h.
62316
62317 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62318
62319         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
62320
62321         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
62322         * m4/dev-ino.m4, same-inode.m4: Remove.
62323
62324         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
62325         * m4/acl.m4 (AC_FUNC_ACL):
62326         * m4/backupfile.m4 (gl_BACKUPFILE):
62327         * m4/c-strtod.m4 (gl_C99_STRTOLD):
62328         * m4/canon-host.m4 (gl_CANON_HOST):
62329         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62330         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
62331         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
62332         * m4/cloexec.m4 (gl_CLOEXEC):
62333         * m4/close-stream.m4 (gl_CLOSE_STREAM):
62334         * m4/closeout.m4 (gl_CLOSEOUT):
62335         * m4/dirfd.m4 (gl_FUNC_DIRFD):
62336         * m4/dirname.m4 (gl_DIRNAME):
62337         * m4/exclude.m4 (gl_EXCLUDE):
62338         * m4/exitfail.m4 (gl_EXITFAIL):
62339         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
62340         * m4/file-type.m4 (gl_FILE_TYPE):
62341         * m4/filemode.m4 (gl_FILEMODE):
62342         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
62343         * m4/fpending.m4 (gl_FUNC_FPENDING):
62344         * m4/fprintftime.m4 (gl_FPRINTFTIME):
62345         * m4/fts.m4 (gl_FUNC_FTS):
62346         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
62347         * m4/getdate.m4 (gl_GETDATE):
62348         * m4/gethrxtime.m4 (gl_GETHRXTIME):
62349         * m4/getpagesize.m4 (gl_GETPAGESIZE):
62350         * m4/getpass.m4 (gl_FUNC_GETPASS):
62351         * m4/gettime.m4 (gl_GETTIME):
62352         * m4/getugroups.m4 (gl_GETUGROUPS):
62353         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
62354         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
62355         * m4/hard-locale.m4 (gl_HARD_LOCALE):
62356         * m4/hash.m4 (gl_HASH):
62357         * m4/idcache.m4 (gl_IDCACHE):
62358         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
62359         * m4/lchown.m4 (gl_FUNC_LCHOWN):
62360         * m4/long-options.m4 (gl_LONG_OPTIONS):
62361         * m4/lstat.m4 (gl_FUNC_LSTAT):
62362         * m4/md5.m4 (gl_MD5):
62363         * m4/memcasecmp.m4 (gl_MEMCASECMP):
62364         * m4/memcoll.m4 (gl_MEMCOLL):
62365         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
62366         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
62367         * m4/memxor.m4 (gl_MEMXOR):
62368         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
62369         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
62370         * m4/modechange.m4 (gl_MODECHANGE):
62371         * m4/mountlist.m4 (gl_MOUNTLIST):
62372         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62373         * m4/openat.m4 (gl_FUNC_OPENAT):
62374         * m4/pathmax.m4 (gl_PATHMAX):
62375         * m4/physmem.m4 (gl_PHYSMEM):
62376         * m4/posixtm.m4 (gl_POSIXTM):
62377         * m4/posixver.m4 (gl_POSIXVER):
62378         * m4/quote.m4 (gl_QUOTE):
62379         * m4/quotearg.m4 (gl_QUOTEARG):
62380         * m4/readtokens.m4 (gl_READTOKENS):
62381         * m4/readutmp.m4 (gl_READUTMP):
62382         * m4/regex.m4 (gl_REGEX):
62383         * m4/safe-read.m4 (gl_SAFE_READ):
62384         * m4/safe-write.m4 (gl_SAFE_WRITE):
62385         * m4/same.m4 (gl_SAME):
62386         * m4/save-cwd.m4 (gl_SAVE_CWD):
62387         * m4/savedir.m4 (gl_SAVEDIR):
62388         * m4/settime.m4 (gl_SETTIME):
62389         * m4/sha1.m4 (gl_SHA1):
62390         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
62391         * m4/stat-macros.m4 (gl_STAT_MACROS):
62392         * m4/stat-time.m4 (gl_STAT_TIME):
62393         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
62394         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
62395         * m4/strdup.m4 (gl_FUNC_STRDUP):
62396         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
62397         * m4/strndup.m4 (gl_FUNC_STRNDUP):
62398         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
62399         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
62400         * m4/time_r.m4 (gl_TIME_R):
62401         * m4/timespec.m4 (gl_TIMESPEC):
62402         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
62403         * m4/unlinkdir.m4 (gl_UNLINKDIR):
62404         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
62405         * m4/userspec.m4 (gl_USERSPEC):
62406         * m4/utimecmp.m4 (gl_UTIMECMP):
62407         * m4/utimens.m4 (gl_UTIMENS):
62408         * m4/xalloc.m4 (gl_XALLOC):
62409         * m4/xgetcwd.m4 (gl_XGETCWD):
62410         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
62411         * m4/xreadlink.m4 (gl_XREADLINK):
62412         * m4/xstrtod.m4 (gl_XSTRTOD):
62413         * m4/yesno.m4 (gl_YESNO):
62414         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
62415         to get the necessary .h files and whatnot.
62416
62417 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
62418             Bruno Haible  <bruno@clisp.org>
62419
62420         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
62421         /bin/sh understanding of '!' conditional negation.
62422
62423 2006-08-21  Jim Meyering  <jim@meyering.net>
62424
62425         * modules/openat (Depends-on): Really alphabetize.
62426
62427         * modules/acl (Depends-on): Add error and quote.
62428
62429         * check-module (find_included_lib_files): Add at-func.c to the
62430         ok-to-include-more-than-once white list.
62431
62432         * modules/openat (Depends-on): Add lstat.  Alphabetize.
62433
62434 2006-08-21  Bruno Haible  <bruno@clisp.org>
62435
62436         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62437         Emit a pkgdata_DATA variable only if some snippets add contents to it.
62438         Reported by Martin Lambers <marlam@marlam.de>.
62439
62440 2006-08-21  Bruno Haible  <bruno@clisp.org>
62441
62442         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
62443         specify an installation location, don't emit a noinst_LIBRARIES or
62444         noinst_LTLIBRARIES assignment.
62445
62446 2006-08-21  Bruno Haible  <bruno@clisp.org>
62447
62448         BeOS portability.
62449         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
62450         BeOS has mbrtowc() but no <wctype.h>.
62451
62452 2006-08-21  Bruno Haible  <bruno@clisp.org>
62453
62454         BeOS portability.
62455         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
62456         exist.
62457
62458 2006-08-21  Bruno Haible  <bruno@clisp.org>
62459
62460         BeOS portability.
62461         * lib/mbchar.h: Include <wctype.h> only if it exists.
62462
62463 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62464
62465         Remove files that are no longer needed by their respective modules.
62466         * m4/obstack.m4: Remove.
62467         * m4/strerror_r.m4: Remove.
62468         * m4/uint32_t.m4: Remove.
62469         * m4/uintptr_t.m4: Remove.
62470         * m4/ullong_max.m4: Remove.
62471         * m4/xstrtoimax.m4: Remove.
62472         * m4/xstrtoumax.m4: Remove.
62473
62474         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
62475         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
62476         dependencies now capture this.
62477
62478         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
62479         Do not use AC_LIBSOURCES, since gnulib modules now do this.
62480         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
62481         * m4/human.m4 (gl_HUMAN): Likewise.
62482         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
62483         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
62484
62485         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
62486
62487         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
62488         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
62489         stdint.
62490         * m4/human.m4 (gl_HUMAN): Likewise.
62491         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
62492         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
62493         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
62494         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
62495         * m4/xstrtol (gl_XSTRTOL): Likewise.
62496
62497         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
62498         AC_TYPE_LONG_LONG_INT.
62499         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
62500         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
62501         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
62502         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
62503
62504         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
62505         on stdbool.
62506
62507         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
62508         (gl_PREREQ_XSTRTOUL): Remove.
62509
62510         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
62511
62512         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
62513         mode.
62514
62515 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62516
62517         Add and change modules to make it easier for coreutils to use
62518         gnulib-tool.
62519         * modules/backupfile (Files): Remove m4/d-ino.m4.
62520         (Depends-on): Add d-ino.
62521         * modules/cycle-check (Depends-on): Add stdint.
62522         (lib_SOURCES): Add cycle-check.h.
62523         * modules/d-ino: New module.
62524         * modules/d-type: New module.
62525         * modules/error (Files): Remove m4/strerror_r.m4.
62526         * modules/filemode (Files): Add m4/st_dm_mode.m4.
62527         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62528         m4/inttypes_h.m4, m4/uintmax_t.m4.
62529         (Depends-on): Add stdint.
62530         (lib_SOURCES): Add fsusage.h.
62531         * modules/getcwd (Files): Remove d-ino.m4.
62532         (Depends-on): Add d-ino.
62533         * modules/getndelim2 (Depends-on): Add stdint.
62534         * modules/glob (Files): Remove m4/d-type.m4.
62535         (Depends-on): Add d-type.
62536         * modules/host-os: New module.
62537         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
62538         m4/inttypes_h.m4, m4/uintmax_t.m4.
62539         * Depends-on: Add stdint.
62540         (lib_SOURCES): Add human.h.
62541         * modules/inttostr (Files): Remove m4/intmax_t.m4,
62542         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
62543         m4/uintmax_t.m4, m4/ulonglong.m4.
62544         (Depends-on): Add stdint.
62545         (EXTRA_DIST): Add inttostr.h.
62546         * modules/lchmod: New module.
62547         * modules/link-follow: New module.
62548         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
62549         (Depends-on): Add lchmod.
62550         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
62551         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
62552         (Depends-on): Add stdint.
62553         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
62554         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
62555         (Depends-on): Add stdint.
62556         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
62557         * modules/perl: New module.
62558         * modules/regex (Depends-on): Add stdint.
62559         * modules/rmdir-errno: New module.
62560         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62561         m4/intmax_t.m4.
62562         (Depends-on): Add stdint.
62563         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62564         m4/uintmax_t.m4.
62565         (Depends-on): Add stdint.
62566         * modules/unlink-busy: New module.
62567         * modules/utimecmp (Depends-on): Add stdint.
62568         * modules/uptime: New module.
62569         * modules/winsz-ioctl: New module.
62570         * modules/winsz-termios: New module.
62571         * modules/xnanosleep (Depends-on): Add nanosleep.
62572         * modules/ullong_max: Remove.
62573         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
62574         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
62575         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
62576         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
62577         (Depends-on): Add inttypes.
62578         (lib_SOURCES): Add xstrtol.h.
62579         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
62580         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
62581         * MODULES.html.sh: Move 'assert' into the assert section.
62582         Move 'dummy' into the linking section.
62583         Remove ullong_max.
62584         Add section for compatibility checks for POSIX:2001 functions,
62585         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
62586         winsz-ioctl, and winsz-termios into it.
62587         Add lchmod.
62588         Add top-level Misc section and put host-os, perl, and uptime
62589         into it.
62590
62591 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62592
62593         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
62594         now assume the stdint module.  Do not include inttypes.h.
62595         * lib/fsusage.h: Likewise.
62596         * lib/getndelim2.c: Likewise.
62597         * lib/human.h: Likewise.
62598         * lib/inttostr.h: Likewise.
62599         * lib/obstack.c: Likewise.
62600         * lib/regex_internal.h: Likewise.
62601         * lib/tempname.c: Likewise.
62602         * lib/utimecmp.c: Likewise.
62603         * lib/xstrtol.h: Likewise.
62604
62605         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
62606
62607         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
62608         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
62609         * lib/xtime.h: Likewise.
62610
62611 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62612
62613         * modules/openat (Files): Add lib/fchmodat.c.
62614         Fixes problem reported by Jay Youngman.
62615
62616 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62617
62618         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
62619         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
62620
62621 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
62622             Bruno Haible  <bruno@clisp.org>
62623
62624         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
62625         and is a script that invokes bison. Tighten the code. Add comments.
62626
62627 2006-08-18  Jim Meyering  <jim@meyering.net>
62628
62629         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
62630         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
62631         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
62632         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
62633
62634 2006-08-18  Bruno Haible  <bruno@clisp.org>
62635
62636         * modules/bison-i18n: New file.
62637         * MODULES.html.sh (Internationalization functions): Add it.
62638
62639 2006-08-18  Bruno Haible  <bruno@clisp.org>
62640
62641         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
62642         sys/statvfs.h. When getmntinfo was found, check its declaration and
62643         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
62644
62645 2006-08-18  Bruno Haible  <bruno@clisp.org>
62646
62647         * m4/bison-i18n.m4: New file, from bison.
62648
62649 2006-08-18  Bruno Haible  <bruno@clisp.org>
62650
62651         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
62652         (ME_DUMMY): Treat "kernfs" as a dummy.
62653         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
62654
62655 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62656
62657         Update from coreutils.
62658
62659         2006-08-15  Jim Meyering  <jim@meyering.net>
62660
62661         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
62662
62663         2006-01-17  Jim Meyering  <jim@meyering.net>
62664
62665         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
62666
62667         2006-01-11  Jim Meyering  <jim@meyering.net>
62668
62669         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
62670         Check for the lchmod function.
62671
62672 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62673
62674         Update from coreutils.
62675
62676         * lib/__fpending.h: Add copyright notice.
62677         * lib/fprintftime.h: Likewise.
62678         * lib/savedir.c: Use (C) in copyright notice.
62679         * lib/savedir.h: Likewise.
62680
62681         2006-08-15  Jim Meyering  <jim@meyering.net>
62682
62683         * lib/at-func.c: New file, with the logic of all emulated at-functions.
62684         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
62685         in support of the EXPECTED_ERRNO macro.
62686         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
62687         definitions.  Instead, define the appropriate symbols and include
62688         "at-func.c".
62689         * lib/mkdirat.c (mkdirat): Likewise.
62690         * lib/fchmodat.c (fchmodat): Likewise.
62691         (ENOSYS): Remove definition.
62692         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
62693         it.  Don't include "unistd--.h" -- it wasn't ever used.
62694
62695         2006-01-17  Jim Meyering  <jim@meyering.net>
62696
62697         Rewrite fts.c not to change the current working directory,
62698         by using openat, fstatat, fdopendir, etc..
62699
62700         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
62701         (HAVE_OPENAT_SUPPORT): Define.
62702         [_LIBC] (fchdir): Don't undef or define; no longer used.
62703         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
62704         Now, this `function' always succeeds, and consumes its file descriptor
62705         parameter -- so callers must not close such FDs.  Update callers.
62706         (diropen_fd, opendirat, cwd_advance_fd): New functions.
62707         (diropen): Add parameter, SP.  Adjust all callers.
62708         Implement using diropen_fd, rather than open.
62709         (fts_open): Initialize new member, fts_cwd_fd.
62710         Remove fts_rft-setting code.
62711         (fts_close): Close fts_cwd_fd, if necessary.
62712         (__opendir2): Define in terms of opendir or opendirat,
62713         depending on whether the FST_NOCHDIR flag is set.
62714         (fts_build): Since fts_safe_changedir consumes its FD, and since
62715         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
62716         and close the dup'd file descriptor upon failure.
62717         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
62718         (fts_safe_changedir): Tweak semantics to reflect that this function
62719         now calls cwd_advance_fd and hence consumes its FD argument.
62720         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
62721         [struct FTS] (fts_rft): Remove now-unused member.
62722         [struct FTS] (fts_cycle.state): Improve comment.
62723
62724         * lib/openat.c (openat_needs_fchdir): New function.
62725         * lib/openat.h (openat_needs_fchdir): Declare it.
62726
62727 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
62728
62729         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
62730         Problem and fix reported by Pádraig Brady in
62731         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
62732
62733 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62734
62735         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
62736
62737 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62738
62739         * lib/memcoll.c (memcoll): Optimize for the common case where the
62740         arguments are bytewise equal.
62741
62742 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62743
62744         * doc/regexprops-generic.texi: Add a copyright notice.
62745
62746 2006-08-15  Bruno Haible  <bruno@clisp.org>
62747
62748         * modules/tmpdir (License): Change to LGPL.
62749
62750 2006-08-15  Bruno Haible  <bruno@clisp.org>
62751
62752         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
62753         module.
62754
62755 2006-08-14  Simon Josefsson  <jas@extundo.com>
62756
62757         * config/srclist.txt: Add gnupload.
62758
62759 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62760
62761         Change copyright notice from LGPL 2 to GPL 2, since that's the
62762         standard form used in the gnulib repository.
62763         * tests/test-lock.c: Likewise.
62764         * tests/test-stdint.c: Likewise.
62765         * tests/test-tls.c: Likewise.
62766
62767         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
62768         prelude-manager.  User shorter URLs for GNU projects, without '?'.
62769         Add copyright notice.
62770
62771         * check-module: Add copyright notice.  Output a copyright
62772         notice if "--version" is specified.
62773         * modules/COPYING: New file.
62774         * tests/test-getaddrinfo.c: Add copyright notice.
62775         * tests/test-verify.c: Likewise.
62776
62777 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62778
62779         Change copyright notice from LGPL 2 to GPL 2, since that's the
62780         standard form used in the gnulib repository.
62781         * lib/lock.c: LGPL -> GPL.
62782         * lib/lock.h: Likewise.
62783         * lib/strnlen1.c: Likewise.
62784         * lib/strnlen1.h: Likewise.
62785         * lib/tls.c: Likewise.
62786         * lib/tls.h: Likewise.
62787         * lib/tmpdir.c: Likewise.
62788
62789         * lib/TODO: Remove; this belongs only in coreutils.
62790
62791 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62792
62793         Add copyright notices to long-enough files that lack them, since
62794         otherwise the files aren't clearly free.  Use the same notice that
62795         getdate.texi already uses.
62796         * doc/alloca-opt.texi: Add copyright notice.
62797         * doc/alloca.texi: Likewise.
62798         * doc/ctime.texi: Likewise.
62799         * doc/functions.texi: Likewise.
62800         * doc/gcd.texi: Likewise.
62801         * doc/gnulib-tool.texi: Likewise.
62802         * doc/inet_ntoa.texi: Likewise.
62803         * doc/visibility.texi: Likewise.
62804
62805         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
62806         * doc/quote.texi: Add copyright notice.
62807
62808         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
62809         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
62810         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
62811         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
62812         is now obsolete, and give a pointer to the Sun list.
62813         Add copyright notice.
62814
62815 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62816
62817         * config/srclistvars.sh: Add copyright notice.
62818
62819 2006-08-14  Eric Blake  <ebb9@byu.net>
62820
62821         Import the following change from libc:
62822
62823         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
62824
62825         Upstream bug 2997.
62826         * lib/misc/error.c: Add space between program name and message if file
62827         name is missing.
62828
62829 2006-08-12  Karl Berry  <karl@gnu.org>
62830
62831         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
62832         remove, these originate in gnulib now.
62833
62834 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62835
62836         * doc/Makefile (standards.info standards.html standards.dvi):
62837         Also depend on make-stds.texi.
62838
62839 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62840
62841         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
62842         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
62843
62844         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
62845         in wchar_t.  Problem reported by Eric Blake.
62846
62847         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
62848         LEN is smaller than SIZE.  Suggested by Bruno Haible.
62849         Also, help the compiler to keep LEN in a register.
62850
62851 2006-08-11  Eric Blake  <ebb9@byu.net>
62852
62853         * users.txt: Sort.  Add tar.
62854
62855 2006-08-11  Bruno Haible  <bruno@clisp.org>
62856
62857         * users.txt: New file.
62858
62859 2006-08-11  Bruno Haible  <bruno@clisp.org>
62860
62861         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
62862         before <wchar.h>. Needed for OSF/1 and BSD/OS.
62863
62864 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62865
62866         * modules/snprintf (Depends-on): Remove minmax.
62867         (Maintainer): Add self and Bruno.
62868
62869 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62870
62871         * lib/.cppi-disable: Add snprintf.h, socket_.h.
62872         * lib/snprintf.c: Include <errno.h> and <limits.h>.
62873         (EOVERFLOW): Define if the system does not.
62874         Do not include "minmax.h"; it wasn't used.
62875         (snprintf): Don't assume size_t promotes to an unsigned type.
62876         Fix bug when generated string was too long for the buffer: the
62877         buffer's contents are supposed to be the initial prefix of the
62878         output.  Don't assume vasnprintf returns EOVERFLOW if the size
62879         exceeds INT_MAX; do the check ourselves.
62880
62881         Import the following changes from libc:
62882
62883         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
62884
62885         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
62886         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
62887         set wc to the byte which couldn't be converted.
62888         (re_string_reconstruct): Don't clear valid_raw_len before calling
62889         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
62890         tip_context using re_string_context_at.
62891
62892         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
62893
62894         * lib/posix/regex.h: g++ still cannot handled [restrict].
62895
62896         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
62897
62898         * lib/posix/regex.h: Remove special handling for VMS.
62899
62900 2006-08-10  Jim Meyering  <jim@meyering.net>
62901
62902         * modules/same-inode: New module.
62903         * modules/dev-ino: New module.
62904         * modules/cycle-check: Depend on these modules, rather than simply
62905         including their .h files.
62906         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
62907         required via m4/cycle-check.m4.
62908         * modules/same: Depend on new same-inode module, rather than
62909         including same-inode.h.
62910         * modules/chdir-safer: New file.
62911
62912         * modules/chown (Depends-on): Add stat-macros.
62913
62914 2006-08-10  Jim Meyering  <jim@meyering.net>
62915
62916         * m4/cycle-check.m4: New file.
62917         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
62918         * m4/dev-ino.m4, m4/same-inode.m4: New files.
62919
62920 2006-08-10  Eric Blake  <ebb9@byu.net>
62921
62922         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
62923         in from original proposal.
62924
62925 2006-08-10  Eric Blake  <ebb9@byu.net>
62926         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62927
62928         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
62929         namespace.
62930
62931 2006-08-10  Bruno Haible  <bruno@clisp.org>
62932
62933         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
62934         as well.
62935
62936 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62937
62938         Sync from coreutils.
62939
62940         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
62941
62942         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
62943         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
62944
62945 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62946
62947         * modules/restrict: Remove; no longer needed now that we assume
62948         Autoconf 2.59 or later.
62949         * MODULES.html.sh: Remove 'restrict'.
62950         * modules/argp (Depends-on): Remove 'restrict'.
62951         * modules/base64 (Depends-on): Likewise.
62952         * modules/gc (Depends-on): Likewise.
62953         * modules/getaddrinfo (Depends-on): Likewise.
62954         * modules/glob (Depends-on): Likewise.
62955         * modules/inet_ntop (Depends-on): Likewise.
62956         * modules/inet_pton (Depends-on): Likewise.
62957         * modules/memxor (Depends-on): Likewise.
62958         * modules/regex (Depends-on): Likewise.
62959         * modules/strtok_r (Depends-on): Likewise.
62960         * modules/time_r (Depends-on): Likewise.
62961
62962 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62963
62964         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
62965         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
62966         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62967         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
62968         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62969         * m4/memxor.m4 (gl_MEMXOR): Likewise.
62970         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
62971         gl_C_RESTRICT replaced by AC_C_RESTRICT.
62972
62973         Merge from coreutils.
62974         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
62975         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
62976         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62977         * m4/time_r.m4 (gl_TIME_R): Likewise.
62978
62979 2006-08-09  Karl Berry  <karl@gnu.org>
62980
62981         * config/srclist.txt: no more gettext-tools, per Bruno.
62982
62983 2006-08-08  Eric Blake  <ebb9@byu.net>
62984
62985         * modules/verror: New module.
62986         * MODULES.html.sh: Document it.
62987
62988 2006-08-08  Eric Blake  <ebb9@byu.net>
62989
62990         * lib/verror.h, lib/verror.c: New files.
62991
62992 2006-08-08  Eric Blake  <ebb9@byu.net>
62993
62994         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
62995         verror_at_line output complies with GNU Coding Standards even when
62996         file is NULL.
62997
62998 2006-08-07  Bruno Haible  <bruno@clisp.org>
62999
63000         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
63001         versions of AIX.
63002         Reported by Ralf Wildenhues.
63003
63004 2006-08-07  Bruno Haible  <bruno@clisp.org>
63005
63006         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
63007         in an AC_DEFUN. Needed so that the autoconf snippets can use
63008         AC_REQUIRE.
63009
63010 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63011
63012         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63013         Initialize pkgdata_DATA.
63014         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
63015         overriding it.
63016
63017 2006-08-06  Eric Blake  <ebb9@byu.net>
63018
63019         * lib/error.h: Fold in some upstream changes from glibc.
63020         * lib/error.c: Likewise.
63021
63022 2006-08-04  Bruno Haible  <bruno@clisp.org>
63023
63024         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63025         Make the mostlyclean-local rule depend on mostlyclean-generic.
63026         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
63027
63028 2006-07-31  Bruno Haible  <bruno@clisp.org>
63029
63030         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
63031         <stdlib.h>, <string.h>.
63032
63033 2006-07-30  Bruno Haible  <bruno@clisp.org>
63034
63035         * modules/readlink (License): Change to LGPL.
63036
63037 2006-07-30  Bruno Haible  <bruno@clisp.org>
63038
63039         * modules/javaversion (Makefile.am): Distribute javaversion.java and
63040         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
63041         set PKGDATADIR to point to it.
63042
63043 2006-07-30  Bruno Haible  <bruno@clisp.org>
63044
63045         * modules/csharpexec (configure.ac): Comment out macro invocation.
63046         * modules/javaexec (configure.ac): Likewise.
63047         * modules/javacomp-script (configure.ac): Likewise.
63048
63049         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
63050
63051 2006-07-30  Bruno Haible  <bruno@clisp.org>
63052
63053         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
63054         linked-list.
63055
63056 2006-07-30  Bruno Haible  <bruno@clisp.org>
63057
63058         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
63059
63060 2006-07-30  Bruno Haible  <bruno@clisp.org>
63061
63062         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63063         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
63064         get removed.
63065
63066 2006-07-29  Bruno Haible  <bruno@clisp.org>
63067
63068         Make it possible for gnulib-tool to work with locally modified or
63069         augmented gnulib repositories.
63070         * gnulib-tool (func_usage): Document --local-dir option.
63071         (local_gnulib_dir): New variable.
63072         Handle --local-dir option.
63073         (func_lookup_file): New function.
63074         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
63075         (func_get_description, func_get_filelist, func_get_description,
63076         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
63077         func_get_automake_snippet, func_get_include_directive,
63078         func_get_license, func_get_maintainer): Use func_lookup_file.
63079         (func_import, func_create_testdir): Use func_lookup_file.
63080
63081 2006-07-29  Bruno Haible  <bruno@clisp.org>
63082
63083         * modules/setenv (Depends-on): Add unistd.
63084
63085 2006-07-29  Bruno Haible  <bruno@clisp.org>
63086
63087         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
63088
63089 2006-07-29  Bruno Haible  <bruno@clisp.org>
63090
63091         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
63092
63093 2006-07-29  Bruno Haible  <bruno@clisp.org>
63094
63095         * gnulib-tool (import, update): If there is no Makefile.am, look at
63096         aclocal.m4, instead of bailing out.
63097
63098 2006-07-29  Bruno Haible  <bruno@clisp.org>
63099
63100         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
63101         Categorize the options by when they are useful.
63102
63103 2006-07-29  Bruno Haible  <bruno@clisp.org>
63104
63105         * gnulib-tool (func_usage): Document option --no-libtool.
63106         Handle option --no-libtool.
63107         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
63108         for changed semantics of $libtool variable.
63109         (func_import): Likewise. If libtool is not used, show this through
63110         an option --no-libtool.
63111         (func_create_testdir): Update.
63112
63113 2006-07-29  Bruno Haible  <bruno@clisp.org>
63114
63115         * gnulib-tool (func_import): Extend error message about missing
63116         --doc-base.
63117
63118 2006-07-29  Bruno Haible  <bruno@clisp.org>
63119
63120         * gnulib-tool (func_import): Don't create the $docbase directory if
63121         there is no file to store there.
63122
63123 2006-07-29  Bruno Haible  <bruno@clisp.org>
63124
63125         * gnulib-tool (autoconf_minversion): If a --dir option is given and
63126         relevant, look for configure.ac there, not in the current directory.
63127         Also use a simple search for AC_PREREQ, not "autoconf --trace".
63128
63129 2006-07-29  Bruno Haible  <bruno@clisp.org>
63130
63131         * gnulib-tool (SORT): New variable.
63132         (func_usage): Undocument --assume-autoconf option.
63133         Remove --assume-autoconf option handling.
63134         (autoconf_minversion): Determine from the contents of configure.ac.
63135         (func_import): Remove autoconf_minversion handling.
63136         Suggested by Eric Blake.
63137
63138 2006-07-29  Bruno Haible  <bruno@clisp.org>
63139
63140         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
63141
63142 2006-07-29  Bruno Haible  <bruno@clisp.org>
63143
63144         * config/srclist.txt (*setenv.[ch]): Remove rules.
63145
63146 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63147
63148         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
63149
63150 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63151
63152         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
63153         arpa/inet.h.
63154
63155 2006-07-28  Simon Josefsson  <jas@extundo.com>
63156
63157         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
63158         * modules/inet_pton (Depends-on): Likewise.
63159
63160 2006-07-28  Simon Josefsson  <jas@extundo.com>
63161
63162         * m4/netinet_in_h.m4: New file.
63163
63164 2006-07-28  Simon Josefsson  <jas@extundo.com>
63165
63166         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
63167         #include's.
63168
63169 2006-07-28  Simon Josefsson  <jas@extundo.com>
63170
63171         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
63172         #include's.
63173
63174 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
63175
63176         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
63177         setgid on directories only if they set these bits.
63178         * lib/modechange.h: Remove obsolete comment about masks.
63179
63180 2006-07-28  Eric Blake  <ebb9@byu.net>
63181
63182         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
63183         macro expansion.
63184
63185 2006-07-28  Bruno Haible  <bruno@clisp.org>
63186
63187         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
63188
63189 2006-07-28  Bruno Haible  <bruno@clisp.org>
63190
63191         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
63192
63193 2006-07-28  Bruno Haible  <bruno@clisp.org>
63194
63195         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
63196         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
63197         Define fallbacks.
63198         Avoids link error on FreeBSD 4.x.
63199         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63200
63201         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
63202         encoding.
63203         * lib/mbswidth.c (iswcntrl): Likewise.
63204
63205 2006-07-27  Bruno Haible  <bruno@clisp.org>
63206
63207         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
63208         test.
63209
63210 2006-07-27  Bruno Haible  <bruno@clisp.org>
63211
63212         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
63213         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
63214         defined.
63215
63216 2006-07-26  Eric Blake  <ebb9@byu.net>
63217
63218         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
63219
63220 2006-07-26  Eric Blake  <ebb9@byu.net>
63221
63222         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
63223         like mingw that lack mkstemp.
63224         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
63225         avoid compilation warning on mingw.
63226
63227 2006-07-26  Bruno Haible  <bruno@clisp.org>
63228
63229         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
63230         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
63231         INT_FAST*_MIN, INTPTR_MIN.
63232
63233 2006-07-25  Bruno Haible  <bruno@clisp.org>
63234
63235         * modules/version-etc (Depends-on): Add stdarg.
63236
63237 2006-07-25  Bruno Haible  <bruno@clisp.org>
63238
63239         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
63240         complex commands.
63241
63242 2006-07-25  Bruno Haible  <bruno@clisp.org>
63243
63244         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
63245         defined in <stdarg.h> or config.h.
63246
63247 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
63248
63249         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
63250         (gl_STDIO_SAFER): Remove.
63251
63252 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
63253
63254         * MODULES.html.sh (File stream based Input/Output):
63255         Add fopen-safer, tmpfile-safer; remove stdio-safer.
63256         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
63257         * modules/fopen-safer, modules/tmpfile-safer: New files.
63258         * modules/stdio-safer: Remove.
63259
63260 2006-07-24  Bruno Haible  <bruno@clisp.org>
63261
63262         * modules/tmpdir: New file.
63263         * MODULES.html.sh (File system functions): Add it.
63264
63265 2006-07-24  Bruno Haible  <bruno@clisp.org>
63266
63267         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
63268         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
63269
63270 2006-07-24  Bruno Haible  <bruno@clisp.org>
63271
63272         * modules/clean-temp: New file.
63273
63274 2006-07-24  Bruno Haible  <bruno@clisp.org>
63275
63276         * m4/tmpdir.m4: New file, from GNU gettext.
63277
63278 2006-07-24  Bruno Haible  <bruno@clisp.org>
63279
63280         * lib/tmpdir.h: New file, from GNU gettext.
63281         * lib/tmpdir.c: New file, from GNU gettext.
63282
63283 2006-07-24  Bruno Haible  <bruno@clisp.org>
63284
63285         * lib/clean-temp.h: New file, from GNU gettext.
63286         * lib/clean-temp.c: New file, from GNU gettext.
63287
63288 2006-07-23  Eric Blake  <ebb9@byu.net>
63289
63290         * modules/stdio-safer (Files): Add tmpfile-safer.c.
63291         (Depends-on): Add binary-io.
63292
63293 2006-07-23  Eric Blake  <ebb9@byu.net>
63294
63295         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
63296
63297 2006-07-23  Eric Blake  <ebb9@byu.net>
63298
63299         * lib/tmpfile-safer.c: New file.
63300         * lib/stdio-safer.h (fopen_safer): Add prototype.
63301         * lib/stdio--.h (tmpfile): Make safer.
63302
63303 2006-07-23  Bruno Haible  <bruno@clisp.org>
63304
63305         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
63306         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
63307         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
63308         gl_linked_remove_at): Use it.
63309
63310 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63311         and Simon Josefsson <jas@extundo.com>
63312
63313         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
63314
63315         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
63316
63317 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63318
63319         * modules/close-stream: New file.
63320         * modules/closeout (Description): Make it clear that it exits
63321         with a diagnostic on error.
63322         (Depends-on): Add close-stream.  Remove fpending, stdbool.
63323         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
63324
63325 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63326
63327         * m4/close-stream.m4: New file.
63328
63329 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63330
63331         * lib/close-stream.c, lib/close-stream.h: New files.
63332
63333 2006-07-22  Bruno Haible  <bruno@clisp.org>
63334
63335         Merge from GNU gettext 0.15.
63336
63337         2006-05-01  Bruno Haible  <bruno@clisp.org>
63338
63339                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
63340
63341         2006-07-22  Bruno Haible  <bruno@clisp.org>
63342
63343                 * modules/javaversion: New file.
63344                 * MODULES.html.sh (Java): Add javaversion.
63345
63346         2006-03-12  Bruno Haible  <bruno@clisp.org>
63347
63348                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
63349
63350         2005-12-04  Bruno Haible  <bruno@clisp.org>
63351
63352                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
63353                 (untested).
63354
63355         2006-06-21  Bruno Haible  <bruno@clisp.org>
63356
63357                 Avoid warnings from recent versions of mcs.
63358                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
63359                 -o, -L, -r any more. Use options documented since mcs-1.0
63360                 instead. Similarly for -g.
63361
63362         2005-12-04  Bruno Haible  <bruno@clisp.org>
63363
63364                 * build-aux/csharpcomp.sh.in: Suffix for resources is
63365                 .resources, not .resource.
63366
63367         2005-07-09  Bruno Haible  <bruno@clisp.org>
63368
63369                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
63370                 add a .dll suffix.
63371                 Reported by Mark Junker <mjscod@gmx.de>.
63372
63373         2006-07-22  Bruno Haible  <bruno@clisp.org>
63374
63375                 * modules/gettext: Upgrade to gettext-0.15.
63376                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
63377                 m4/visibility.m4.
63378                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
63379
63380 2006-07-22  Bruno Haible  <bruno@clisp.org>
63381
63382         Merge from GNU gettext 0.15.
63383
63384         2006-03-25  Bruno Haible  <bruno@clisp.org>
63385
63386                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
63387
63388         2006-07-21  Bruno Haible  <bruno@clisp.org>
63389
63390                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
63391                 "1.1".
63392
63393         2006-05-09  Bruno Haible  <bruno@clisp.org>
63394
63395                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
63396                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
63397                 for the conftestver execution.
63398
63399         2006-05-01  Bruno Haible  <bruno@clisp.org>
63400
63401                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
63402                 optional target-version argument. Verify that the compiler
63403                 groks source of the specified source-version, or add -source
63404                 option as necessary. Verify that the compiler produces
63405                 bytecode in the specified target-version, or add -target and
63406                 -source options as necessary. Make the result of the test
63407                 available as variable CONF_JAVAC. Also log error output in
63408                 config.log.
63409
63410         2006-03-11  Bruno Haible  <bruno@clisp.org>
63411
63412                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
63413
63414         2006-05-09  Bruno Haible  <bruno@clisp.org>
63415
63416                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
63417                 CLASSPATH_SEPARATOR to a semicolon.
63418
63419         2006-03-12  Bruno Haible  <bruno@clisp.org>
63420
63421                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
63422                 available as variable CONF_JAVA, for subsequent autoconf
63423                 tests. Also log error output in config.log.
63424
63425         2006-07-19  Bruno Haible  <bruno@clisp.org>
63426
63427                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
63428                 that getline works on glibc2 systems. Needed to avoid trouble
63429                 in relocatable.c.
63430                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
63431
63432         2005-12-04  Bruno Haible  <bruno@clisp.org>
63433
63434                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
63435                 launcher (untested).
63436
63437         2005-12-04  Bruno Haible  <bruno@clisp.org>
63438
63439                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
63440
63441         2006-07-22  Bruno Haible  <bruno@clisp.org>
63442
63443                 * gettext.m4: Update from GNU gettext-0.15.
63444                 * nls.m4: Likewise.
63445                 * po.m4: Likewise.
63446                 * inttypes-pri.m4: Likewise.
63447                 * inttypes-h.m4: Renamed from inttypes.m4.
63448                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
63449
63450 2006-07-22  Bruno Haible  <bruno@clisp.org>
63451
63452         Merge from GNU gettext 0.15.
63453
63454         2005-07-05  Bruno Haible  <bruno@clisp.org>
63455
63456                 * printf-args.c (printf_fetchargs): Work around broken
63457                 definition of wint_t on mingw.
63458
63459         2005-02-12  Bruno Haible  <bruno@clisp.org>
63460
63461                 * xallocsa.h: Add extern "C" for C++.
63462
63463         2006-05-17  Bruno Haible  <bruno@clisp.org>
63464
63465                 Cygwin portability.
63466                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
63467
63468         2006-04-30  Bruno Haible  <bruno@clisp.org>
63469
63470                 * progreloc.c: Include <mach-o/dyld.h> if available.
63471                 (find_executable): Use _NSGetExecutablePath when possible.
63472
63473         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63474
63475                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
63476                 function.
63477
63478         2005-12-29  Bruno Haible  <bruno@clisp.org>
63479
63480                 * progreloc.c (set_program_name_and_installdir): Fix
63481                 compilation error.
63482
63483         2005-12-04  Bruno Haible  <bruno@clisp.org>
63484
63485                 Cygwin portability.
63486                 * progreloc.c: Include <windows.h> also on Cygwin.
63487                 (find_executable): Add support for Cygwin.
63488                 (set_program_name_and_installdir): Handle also platforms with
63489                 nonempty EXEEXT.
63490
63491         2006-07-11  Bruno Haible  <bruno@clisp.org>
63492
63493                 * javacomp.c: Fix a comment.
63494                 Reported by Jim Meyering.
63495
63496         2006-04-30  Bruno Haible  <bruno@clisp.org>
63497
63498                 * javacomp.h (compile_java_class): Add source_version,
63499                 target_version arguments.
63500                 * javacomp.c: Rewritten to choose only a compiler that
63501                 respects the specified source_version and target_version.
63502
63503         2006-06-27  Bruno Haible  <bruno@clisp.org>
63504
63505                 Assume correct S_ISDIR macro.
63506                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
63507
63508         2006-07-22  Bruno Haible  <bruno@clisp.org>
63509
63510                 * javaversion.h: New file, from GNU gettext.
63511                 * javaversion.c: New file, from GNU gettext.
63512                 * javaversion.java: New file, from GNU gettext.
63513                 * javaversion.class: New file, from GNU gettext.
63514
63515         2006-05-17  Bruno Haible  <bruno@clisp.org>
63516
63517                 Cygwin portability.
63518                 * javaexec.c (execute_java_class): Test for jview program
63519                 also on Cygwin.
63520
63521         2006-04-09  Bruno Haible  <bruno@clisp.org>
63522
63523                 * fatal-signal.c: Don't include string.h.
63524                 (at_fatal_signal): Use a copying loop instead of memcpy.
63525
63526         2005-12-04  Bruno Haible  <bruno@clisp.org>
63527
63528                 * csharpexec.c: Add support for 'clix' launcher (untested).
63529                 (execute_csharp_using_sscli): New function.
63530                 (execute_csharp_program): Call it.
63531
63532         2006-06-21  Bruno Haible  <bruno@clisp.org>
63533
63534                 Avoid warnings from recent versions of mcs.
63535                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
63536                 -o, -L, -r any more. Use options documented since mcs-1.0
63537                 instead. Similarly for -g.
63538
63539         2005-07-09  Bruno Haible  <bruno@clisp.org>
63540
63541                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
63542                 add a .dll suffix.
63543                 Reported by Mark Junker <mjscod@gmx.de>.
63544
63545         2006-06-17  Bruno Haible  <bruno@clisp.org>
63546
63547                 * config.charset: Update for NetBSD 3.0.
63548
63549         2006-05-17  Bruno Haible  <bruno@clisp.org>
63550
63551                 Cygwin portability.
63552                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
63553
63554         2006-05-16  Bruno Haible  <bruno@clisp.org>
63555
63556                 * localcharset.c [CYGWIN]: Include <windows.h>.
63557                 (get_charset_aliases): For Cygwin, return the same CPxxx
63558                 aliases list as under WIN32.
63559                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
63560                 the environment variables. Fall back to GetACP().
63561
63562         2006-04-05  Bruno Haible  <bruno@clisp.org>
63563
63564                 * config.charset: Update Juan Manuel Guerrero's address.
63565
63566         2005-02-12  Bruno Haible  <bruno@clisp.org>
63567
63568                 * allocsa.h: Add extern "C" for C++.
63569
63570         2005-02-10  Bruno Haible  <bruno@clisp.org>
63571
63572                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
63573                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
63574
63575         2006-07-22  Bruno Haible  <bruno@clisp.org>
63576
63577                 * gettext.h: Update to GNU gettext-0.15.
63578
63579 2006-07-22  Bruno Haible  <bruno@clisp.org>
63580
63581         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
63582         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
63583         lib-prefix.m4, longdouble.m4, ssize_t.m4.
63584
63585 2006-07-21  Eric Blake  <ebb9@byu.net>
63586
63587         * modules/stdlib-safer: New file.
63588         * MODULES.html.sh (File stream based Input/Output): Add
63589         stdlib-safer.
63590
63591 2006-07-21  Eric Blake  <ebb9@byu.net>
63592
63593         * lib/stdlib-safer.h: New file from coreutils, required by
63594         stdlib--.h.
63595
63596 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
63597
63598         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
63599
63600 2006-07-20  Bruno Haible  <bruno@clisp.org>
63601
63602         * gnulib-tool: Recognize new option --assume-autoconf.
63603         (autoconf_minversion): New variable.
63604         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
63605
63606 2006-07-20  Bruno Haible  <bruno@clisp.org>
63607
63608         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
63609
63610 2006-07-19  Derek R. Price  <derek@ximbiot.com>
63611
63612         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
63613         Reindent and repaginate.
63614
63615 2006-07-19  Derek Price  <derek@ximbiot.com>
63616
63617         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
63618         Correct grammar.
63619
63620 2006-07-17  Bruno Haible  <bruno@clisp.org>
63621
63622         * modules/list: New file.
63623         * modules/array-list: New file.
63624         * modules/carray-list, modules/carray-list-tests: New files.
63625         * modules/linked-list, modules/linked-list-tests: New files.
63626         * modules/avltree-list, modules/avltree-list-tests: New files.
63627         * modules/rbtree-list, modules/rbtree-list-tests: New files.
63628         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
63629         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
63630         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
63631         * modules/oset: New file.
63632         * modules/array-oset: New file.
63633         * modules/avltree-oset, modules/avltree-oset-tests: New files.
63634         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
63635         * tests/test-carray_list.c: New file.
63636         * tests/test-linked_list.c: New file.
63637         * tests/test-avltree_list.c: New file.
63638         * tests/test-rbtree_list.c: New file.
63639         * tests/test-linkedhash_list.c: New file.
63640         * tests/test-avltreehash_list.c: New file.
63641         * tests/test-rbtreehash_list.c: New file.
63642         * tests/test-avltree_oset.c: New file.
63643         * tests/test-rbtree_oset.c: New file.
63644         * MODULES.html.sh (Container data structures): New section.
63645
63646 2006-07-17  Bruno Haible  <bruno@clisp.org>
63647
63648         * m4/gl_list.m4: New file.
63649
63650 2006-07-17  Bruno Haible  <bruno@clisp.org>
63651
63652         * lib/gl_list.h: New file.
63653         * lib/gl_list.c: New file.
63654         * lib/gl_array_list.h: New file.
63655         * lib/gl_array_list.c: New file.
63656         * lib/gl_carray_list.h: New file.
63657         * lib/gl_carray_list.c: New file.
63658         * lib/gl_linked_list.h: New file.
63659         * lib/gl_linked_list.c: New file.
63660         * lib/gl_anylinked_list1.h: New file.
63661         * lib/gl_anylinked_list2.h: New file.
63662         * lib/gl_avltree_list.h: New file.
63663         * lib/gl_avltree_list.c: New file.
63664         * lib/gl_anyavltree_list1.h: New file.
63665         * lib/gl_anyavltree_list2.h: New file.
63666         * lib/gl_rbtree_list.h: New file.
63667         * lib/gl_rbtree_list.c: New file.
63668         * lib/gl_anyrbtree_list1.h: New file.
63669         * lib/gl_anyrbtree_list2.h: New file.
63670         * lib/gl_anytree_list1.h: New file.
63671         * lib/gl_anytree_list2.h: New file.
63672         * lib/gl_linkedhash_list.h: New file.
63673         * lib/gl_linkedhash_list.c: New file.
63674         * lib/gl_anyhash_list1.h: New file.
63675         * lib/gl_anyhash_list2.h: New file.
63676         * lib/gl_avltreehash_list.h: New file.
63677         * lib/gl_avltreehash_list.c: New file.
63678         * lib/gl_rbtreehash_list.h: New file.
63679         * lib/gl_rbtreehash_list.c: New file.
63680         * lib/gl_anytreehash_list1.h: New file.
63681         * lib/gl_anytreehash_list2.h: New file.
63682
63683         * lib/gl_oset.h: New file.
63684         * lib/gl_oset.c: New file.
63685         * lib/gl_array_oset.h: New file.
63686         * lib/gl_array_oset.c: New file.
63687         * lib/gl_avltree_oset.h: New file.
63688         * lib/gl_avltree_oset.c: New file.
63689         * lib/gl_rbtree_oset.h: New file.
63690         * lib/gl_rbtree_oset.c: New file.
63691         * lib/gl_anytree_oset.h: New file.
63692
63693 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63694
63695         * m4/mkancesdirs.m4: New file.
63696         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
63697         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
63698         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
63699         it.
63700
63701 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63702
63703         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
63704         * lib/mkancesdirs.h: New files.
63705         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
63706         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
63707         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
63708         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
63709         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
63710         callers changed.  Revamp internals significantly, by not
63711         attempting to create directories that are temporarily more
63712         permissive than the final results.  Do not attempt to use
63713         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
63714         This removes some race conditions, fixes some bugs, and simplifies
63715         things.  Use new dirchownmod function to do owner and mode changes.
63716         * lib/mkdir-p.h: Likewise.
63717         * lib/modechange.c (octal_to_mode): New function.
63718         (struct mode_change): New member mentioned.
63719         (make_node_op_equals): New arg mentioned.  All callers changed.
63720         (mode_compile): Keep track of which mode bits the user has explicitly
63721         mentioned.
63722         (mode_adjust): New arg DIR, so that we implement the X op correctly.
63723         New arg PMODE_BITS, to keep track of which mode bits the user
63724         mentioned; it treats S_ISUID and S_ISGID speciall.
63725         All callers changed.
63726         * lib/modechange.h: Likewise.
63727
63728 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63729
63730         * MODULES.html.sh: Add mkancestors.
63731         * modules/mkancesdirs: New module.
63732         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
63733         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
63734         The chdir-safer and afs files are now orphans; I'll remove them
63735         unless someone speaks up.
63736         Add lib/dirchownmod.c, lib/dirchownmod.h.
63737         (Depends-on): Remove alloca, chown, save-cwd, dirname.
63738         Add lchown, mkancesdirs.
63739         (Maintainer): Add self.
63740
63741 2006-07-15  Karl Berry  <karl@gnu.org>
63742
63743         * gnulib-tool: help message wording/arrangement.
63744
63745 2006-07-14  Simon Josefsson  <jas@extundo.com>
63746
63747         * doc/gnulib.texi (Libtool and Windows): New section.
63748
63749 2006-07-12  Simon Josefsson  <jas@extundo.com>
63750
63751         * modules/gendocs (License): Fix license, approved by Karl.
63752
63753 2006-07-12  Eric Blake  <ebb9@byu.net>
63754
63755         * MODULES.html.sh: Add gendocs.
63756
63757 2006-07-11  Eric Blake  <ebb9@byu.net>
63758
63759         * modules/fdl: New module, to install doc/fdl.texi.
63760         * MODULES.html.sh: Add new section for documentation modules.
63761         * gnulib-tool: Avoid space-tab.
63762         (--doc-base): New option, to manage files from doc.
63763
63764 2006-07-11  Eric Blake  <ebb9@byu.net>
63765
63766         * m4/absolute-header.m4: Fix comments to match recent change.
63767
63768 2006-07-11  Eric Blake  <ebb9@byu.net>
63769
63770         * gnulib-tool: List --doc-base before --tests-base.
63771
63772 2006-07-11  Derek R. Price  <derek@ximbiot.com>
63773
63774         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
63775
63776 2006-07-11  Bruno Haible  <bruno@clisp.org>
63777
63778         * README: Mention where to put documentation.
63779
63780 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63781
63782         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
63783
63784 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63785
63786         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
63787         to stdint.m4.
63788
63789 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63790
63791         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
63792         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
63793         "no/such/file/stdint.h" when there is no such file, so that
63794         the resulting C code can be parsed by dodgy compilers.
63795         Problems reported by Bob Proulx.
63796
63797 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63798
63799         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
63800         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63801         macros into the GNU _D_EXACT_NAMLEN.
63802         * lib/savedir.c:  Likewise.
63803         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
63804
63805 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63806         and Paul Eggert  <eggert@cs.ucla.edu>
63807
63808         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
63809         * m4/savedir.m4:
63810         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63811         macros into the GNU _D_EXACT_NAMLEN.
63812
63813 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63814
63815         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
63816         around the absolute name, to work around a problem with the HP-UX
63817         11.23 native C compiler, reported by Bob Proulx.
63818
63819 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63820
63821         * doc/maintain.texi, make-stds.texi: Sync from
63822         <http://savannah.gnu.org/projects/gnustandards>.
63823
63824 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63825
63826         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
63827
63828 2006-07-09  Jim Meyering  <jim@meyering.net>
63829
63830         * m4/glob.m4: Remove a doubled word in a comment.
63831
63832 2006-07-09  Jim Meyering  <jim@meyering.net>
63833
63834         * lib/argp-pv.c: Remove a doubled word in a comment.
63835         * lib/check-version.c (check_version): Likewise.
63836         * lib/javacomp.c (compile_java_class): Likewise.
63837
63838 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63839
63840         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
63841         for the benefit of people using Autoconf 2.60.  If you want to
63842         support older Autoconf versions you can copy m4/onceonly_2_57.m4
63843         (or m4/onceonly.m4, if pre-2.57) manually.
63844
63845 2006-07-08  Jim Meyering  <jim@meyering.net>
63846
63847         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
63848         comment.
63849         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
63850         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
63851         comment.
63852
63853 2006-07-08  Jim Meyering  <jim@meyering.net>
63854
63855         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
63856
63857 2006-07-07  Simon Josefsson  <jas@extundo.com>
63858
63859         * tests/test-crc.c: Change expected crc value, the test vector
63860         were probably computed using the old broken crc.c?
63861
63862 2006-07-06  Simon Josefsson  <jas@extundo.com>
63863
63864         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
63865         now the canonical place for the M4 file).
63866
63867         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
63868         from the sys_socket dependency now.
63869
63870         * modules/inet_pton (Files): Ditto.
63871
63872         * modules/inet_ntop (Files): Ditto.
63873
63874 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63875
63876         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
63877         not gl_PREREQ_GETUSERSHELL.
63878
63879 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63880
63881         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
63882         with only one argument, for Autoconf 2.60.
63883         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
63884         expand to nothing, so add a shell command to avoid syntax error.
63885         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63886
63887 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63888
63889         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
63890
63891 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63892
63893         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
63894         no longer needed.  Check for isblank decl.
63895         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
63896         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
63897         of existence.
63898
63899 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63900
63901         * lib/getloadavg.c: Use __VMS, not VMS.
63902         * lib/getopt.c: Likewise.
63903         * lib/getpagesize.h: Likewise.
63904         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
63905         and probably does not work.
63906
63907 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63908
63909         * lib/.cppi-disable: Add wcwidth.
63910         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
63911         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
63912         (ISGRAPH): Remove.  All uses changed to isgraph.
63913         (FOLD) [!defined _LIBC]: Remove special case.
63914         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
63915         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
63916         HAVE_ISBLANK.
63917         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
63918         case.
63919
63920 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63921
63922         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
63923         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
63924         brackets.  Other minor changes to suppress some compiler
63925         warnings.
63926
63927 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63928         and Paul Eggert  <eggert@cs.ucla.edu>
63929
63930         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
63931         of invoking obsolescent AC_HEADER_DIRENT macro.
63932         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63933         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
63934         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63935         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
63936         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
63937         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63938         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
63939         * m4/readdir.m4: Remove; no longer needed.
63940
63941 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63942         and Paul Eggert  <eggert@cs.ucla.edu>
63943
63944         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
63945         Don't worry about this obsolete case any more.
63946         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
63947         directories.
63948         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
63949         worry about this obsolete case any more.
63950         * lib/fts.c: Likewise.
63951         * lib/getcwd.c: Likewise.
63952         * lib/glob.h: Likewise.
63953         * lib/savedir.c: Likewise.
63954
63955 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63956
63957         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
63958         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
63959         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
63960         needed.
63961         All uses removed.
63962         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63963         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63964         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
63965         needed.
63966         * m4/getdate.m4 (gl_GETDATE): Likewise.
63967         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63968         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63969         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63970         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63971         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63972         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63973         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
63974         needed.
63975
63976 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63977
63978         * lib/memcasecmp.c: Include <limits.h>.
63979         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
63980         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
63981         Don't assume isdigit succeeds only on '0' through '9'.
63982
63983 2006-07-05  Eric Blake  <ebb9@byu.net>
63984
63985         * modules/getaddrinfo (Depends-on): Add snprintf.
63986
63987 2006-07-05  Eric Blake  <ebb9@byu.net>
63988
63989         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
63990         to avoid 'header present but could not be compiled' on cygwin.
63991
63992 2006-07-05  Eric Blake  <ebb9@byu.net>
63993
63994         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
63995         missing from netdb.h.
63996         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
63997
63998 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63999
64000         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
64001         no longer needed.
64002         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
64003         * m4/getdate.m4 (gl_GETDATE): Likewise.
64004         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
64005         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
64006         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
64007         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64008         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64009
64010 2006-07-05  Derek R. Price  <derek@ximbiot.com>
64011
64012         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
64013         All uses of is_space replaced by isspace.
64014         * lib/exit.h: Don't talk about STDC_HEADERS.
64015         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
64016         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
64017         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
64018         replaced by isprint etc.
64019         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
64020         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
64021         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
64022         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
64023         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
64024         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
64025
64026 2006-07-05  Bruno Haible  <bruno@clisp.org>
64027
64028         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
64029         the function exists, before testing against AIX.
64030         Reported by Martin Lambers <marlam@marlam.de>.
64031
64032 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
64033
64034         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
64035         From Mark D. Baushke.
64036
64037 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
64038
64039         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
64040         to the absolute name, not just one, to bypass Sun C 5.8's
64041         "warning: #include of /usr/include/... may be non-portable".
64042
64043 2006-07-04  Eric Blake  <ebb9@byu.net>
64044
64045         * modules/dirname-tests: New test module.
64046         * tests/test-dirname.c: New file, replacing dirname.c
64047         TEST_DIRNAME section that was recently deleted.
64048
64049 2006-07-04  Bruno Haible  <bruno@clisp.org>
64050
64051         Assume ANSI C header files and <ctype.h> functions.
64052         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
64053         (mbsnwidth): Use isprint, iscntrl instead.
64054
64055 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64056
64057         Merge from coreutils.
64058         * MODULES.html.sh: Add xstrtold.
64059         * modules/xstrtold: New file.
64060         * modules/cycle-check (Files): Add lib/same-inode.h.
64061         * modules/dirname (Files): Add m4/double-slash-root.m4.
64062         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
64063         * modules/mkdir-p (Files): Add lib/same-inode.h.
64064         * modules/same (Files): Add lib/same-inode.h.
64065
64066 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64067
64068         * m4/absolute-header.m4: Renamed from full-header-path.m4.
64069         This is to keep the terminology clean; POSIX talks about
64070         "absolute pathnames", not "full pathnames", but the GNU
64071         Coding Standards say to use "path" for something else;
64072         so use "absolute" to keep both sides happy.
64073         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
64074         Set gl_absolute_header, not gl_full_header_path.
64075         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
64076         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
64077         All uses changed.
64078
64079         Merge from coreutils.
64080
64081         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
64082
64083         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
64084         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
64085         want to require the building of c-strtod.o.
64086         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
64087         needs -lm directly.
64088         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
64089
64090         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64091
64092         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
64093         --as-needed option if available.  Problem reported by Albert Chin in
64094         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
64095         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
64096         cc merely issues a bunch of annoying warnings for --as-needed
64097         (this problem was reported by Bob Proulx).  Also, try linking with
64098         -lm to detect a bug in binutils 2.16 (this problem was reported
64099         by Ralf Wildenhues).
64100
64101         2006-06-18  Jim Meyering  <jim@meyering.net>
64102
64103         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
64104         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
64105         macro.
64106         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
64107         also check for glibc-2.4's abort-inducing bug.
64108
64109         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
64110         Low-probability clean-up should be to use rmdir to get rid of
64111         the just-created directory, not unlink.
64112
64113         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
64114         configure fail, and request a bug report to inform us about it.
64115         Add a comment that, barring reports to the contrary, in 2007 we'll
64116         assume ftruncate is universally available.
64117
64118         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
64119
64120         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
64121
64122         2006-03-12  Jim Meyering  <jim@meyering.net>
64123
64124         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
64125         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
64126         * m4/same.m4 (gl_SAME): Likewise.
64127         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
64128
64129         2006-03-11  Eric Blake  <ebb9@byu.net>
64130
64131         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
64132         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
64133         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
64134         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
64135
64136 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64137
64138         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
64139         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
64140         reported by Mark D. Baushke, one in
64141         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
64142
64143         Merge from coreutils.
64144
64145         * lib/.cppi-disable: Add stdint_.h.
64146         * lib/.cvsignore: Add stdint.h.
64147
64148         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
64149
64150         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
64151         both double and long double versions.
64152         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
64153         * lib/xstrtold.c: New file.
64154         * lib/xstrtod.h (xstrtold): New decl.
64155
64156         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
64157
64158         * lib/filemode.c (setst): Remove.
64159         (strmode): Rewrite to avoid setst.  This makes the code shorter,
64160         (arguably) clearer, and the generated code is a bit smaller on my
64161         Debian GNU/Linux stable x86 host.
64162
64163         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
64164
64165         * lib/filemode.c: Include "filemode.h" first, to test the interface.
64166         Assume that filemode.h includes sys/types.h and sys/stat.h.
64167         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
64168         (ftypelet): Reorder to put common cases first, for efficiency.
64169         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
64170         to do 'M'.
64171         (strmode): Renamed from mode_string, and now stores 12 bytes instead
64172         of 10, for compatibility with FreeBSD.  All callers changed.
64173         (filemodestring): Now stores 12 bytes instead of 10, and sets file
64174         types that can't be deduced solely from st_mode.  First arg is now a
64175         const pointer.
64176         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
64177         (strmode): Renamed from mode_string.
64178         (filemodestring): New decl.
64179         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
64180         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
64181         needed.
64182         (S_ISPORT, S_ISWHT): New macros, if not already defined.
64183
64184         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
64185
64186         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
64187         fsusage.h now does that.  Include fsusage.h first, to test interface.
64188         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
64189         at most one method (the old code could have generated decls that
64190         didn't conform to C89, not that this was ever exercised).
64191         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
64192
64193         2006-03-19  Jim Meyering  <jim@meyering.net>
64194
64195         Work even in a chroot where d_ino values for entries in "/"
64196         don't match the stat.st_ino values for the same names.
64197         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
64198         number, iterate through all entries again, using lstat instead.
64199         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
64200         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
64201
64202         * lib/getcwd.c (__getcwd): Clarify a comment.
64203         Use memcpy in place of a call to strcpy.
64204
64205         2006-03-12  Jim Meyering  <jim@meyering.net>
64206
64207         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
64208         matches that of the current directory (which we're about to chdir ".."
64209         out of), then save the dev-ino of the parent, instead.
64210
64211         * lib/same-inode.h (SAME_INODE): New file/macro.
64212         * lib/chdir-safer.c (SAME_INODE): Remove definition.
64213         Include "same-inode.h", instead.
64214         * lib/same.c: Likewise.
64215         * lib/cycle-check.h: Include "same-inode.h".
64216         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
64217         * lib/cycle-check.c (SAME_INODE): Remove definition.
64218         * lib/root-dev-ino.h: Include "same-inode.h".
64219
64220         2006-03-11  Eric Blake  <ebb9@byu.net>
64221
64222         * lib/same.c (same_name): s/base_name/last_component/
64223         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
64224         * lib/filenamecat.c (file_name_concat): Likewise.
64225
64226         2006-03-11  Eric Blake  <ebb9@byu.net>,
64227                     Paul Eggert  <eggert@cs.ucla.edu>
64228
64229         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
64230         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
64231         drive prefix.
64232         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
64233         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
64234         (last_component): New method.
64235         * lib/dirname.c (dir_len): Determine when drive letters need a
64236         subsequent slash.  Preserve // when it is special.
64237         (dir_name): Don't append dot when drive letter is absolute.
64238         [TEST_DIRNAME]: Move into a full-blown gnulib test.
64239         * lib/basename.c (base_name): New semantics - malloc the result.
64240         Preserve // when it is special.  Preserve relative files that look
64241         like drive letters.
64242         (base_len): Preserve // when it is special.
64243         (last_component): New method, similar to old base_name semantics.
64244         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
64245         base_name.  Strip redundant slashes from ///.
64246
64247 2006-07-03  Jim Meyering  <jim@meyering.net>
64248
64249         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
64250         macro is used before the first cycle_check call.
64251
64252 2006-07-03  Eric Blake  <ebb9@byu.net>
64253
64254         * modules/dirname (Depends-on): Add xstrndup.
64255
64256 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64257
64258         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
64259         test cases, so that config.log is a bit easier to follow.
64260
64261 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64262
64263         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
64264         both are 64 bits, since this seems to be the tradition, and this
64265         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
64266         we ever run into a host that prefers long long to long in this
64267         case, we'll need another configure-time test.  Problem reported by
64268         Jim Meyering.
64269
64270 2006-07-02  Eric Blake  <ebb9@byu.net>
64271
64272         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
64273
64274 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64275
64276         * modules/inttypes (Depends-on): No longer depends on stdint.
64277         * modules/stdint (Description): Say more about assumptions.
64278         Say that the fast types might differ.  Say macros are used.
64279         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
64280         (Makefile.am): Revise list of substituted symbols to match
64281         new stdint.m4.
64282         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
64283         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
64284         * tests/test-stdint.c (verify_same_types)
64285         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
64286         the code conforms to C99/C89.
64287         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
64288         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
64289
64290 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64291
64292         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
64293         but fix a bug, by requiring at least 64 bits.
64294         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64295         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
64296         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
64297         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
64298
64299         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
64300         changes.  Make 2.59 a prerequisite.  Check and substitute for
64301         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
64302         inttypes.h.  Do not use special include files; just use the
64303         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
64304         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
64305         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
64306         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
64307         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
64308         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
64309         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
64310         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
64311         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
64312         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
64313         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
64314         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
64315         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
64316         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
64317         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
64318         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
64319         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
64320         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
64321         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
64322         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
64323         WINT_MAX.  Check for C99 conformance more strictly, by detecting
64324         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
64325         not check for things that C99 does not require, e.g., int8_t.  If
64326         a test isn't needed unless <stdint.h> isn't working, and is
64327         unlikely to be needed for any other reason, then don't do it
64328         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
64329         size_t, since we assume C89 freestanding at least.  Do not check
64330         for sig_atomic_t, wchar_t, or wint_t, since the code now does
64331         the right thing even if the types are not defined.  Instead use:
64332         (gl_STDINT_TYPE_PROPERTIES): New macro.
64333         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
64334         testing whether <sys/types.h> clashes, as Autoconf does this for
64335         us now.  All uses removed.
64336         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
64337         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
64338         (gl_CHECK_TYPE_SAME):
64339         Remove; no longer needed.
64340         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
64341         exists, since we'll return 0 anyway in that case.
64342         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
64343
64344 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64345
64346         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
64347         possible collision with system files.
64348         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
64349         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
64350         WCHAR_MIN and WCHAR_MAX in this case.
64351         (<stddef.h>): Do not include; no longer needed.
64352         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
64353         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
64354         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
64355         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
64356         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
64357         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
64358         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
64359         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
64360         !defined(__c99))]: Include in this case too, since it's harmless
64361         now.
64362         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
64363         dangerous to do so.
64364         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
64365         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
64366         (_STDINT_MIN, _STDINT_MAX): New macros.
64367         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
64368         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
64369         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
64370         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
64371         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
64372         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
64373         macros, not typedefs; this simplifies things quite a bit.
64374         Use long int for all types narrower than int64_t.
64375         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
64376         Define in terms of long long int or int64_t or long int,
64377         not int64_t or int32_t.  This saves some compile-time testing.
64378         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
64379         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
64380         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
64381         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
64382         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
64383         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
64384         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
64385         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
64386         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
64387         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
64388         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
64389         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
64390         undef any previous version and define our own version, for
64391         simplicity and consistency with the new macros for types.
64392         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
64393         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
64394         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
64395         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
64396         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
64397         @WINT_T_SUFFIX@ to keep things simple here.
64398         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
64399         Simplify by assuming typical 8/16/32/64 host, since we're
64400         already doing that elsewhere anyway.
64401         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
64402         and assume long long int is 64 bits if available.  This
64403         speeds up 'configure'.
64404
64405 2006-07-01  Eric Blake  <ebb9@byu.net>
64406
64407         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
64408         Reported by Andreas Buening.
64409
64410 2006-07-01  Eric Blake  <ebb9@byu.net>
64411
64412         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
64413
64414 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
64415
64416         * lib/getaddrinfo.c: fixed typo
64417
64418 2006-06-29  Jim Meyering  <jim@meyering.net>
64419
64420         * modules/strftime (Maintainer): Add my name, since with the
64421         FPRINTFTIME changes strftime.c has forked from glibc.
64422
64423 2006-06-29  Eric Blake  <ebb9@byu.net>
64424
64425         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
64426
64427 2006-06-29  Eric Blake  <ebb9@byu.net>
64428
64429         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
64430
64431 2006-06-29  Eric Blake  <ebb9@byu.net>
64432
64433         * lib/stat_.h: New file.
64434
64435 2006-06-29  Eric Blake  <ebb9@byu.net>
64436
64437         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
64438         unused static function.
64439
64440 2006-06-29  Eric Blake  <ebb9@byu.net>
64441
64442         * doc/functions.texi (Function Portability): Document missing lstat
64443         on mingw.
64444
64445 2006-06-29  Eric Blake  <ebb9@byu.net>
64446
64447         * MODULES.html.sh: Add sys_stat.
64448         * modules/sys_stat: New module.
64449         * modules/mkstemp (Depends-on): Add sys_stat.
64450
64451 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64452
64453         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
64454
64455 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64456
64457         * m4/c-bs-a.m4: Removed.
64458
64459 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64460
64461         * lib/strftime.c: Assume strftime() exists.
64462
64463 2006-06-29  Derek Price  <derek@ximbiot.com>
64464
64465         * modules/c-bs-a: Removed - \a is C89.
64466         * MODULES.html.sh: Remove c-bs-a.
64467
64468 2006-06-29  Bruno Haible  <bruno@clisp.org>
64469
64470         * modules/wcwidth (License): Change to LGPL.
64471
64472 2006-06-28  Simon Josefsson  <jas@extundo.com>
64473
64474         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
64475         on _WIN32.
64476
64477         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
64478         getnameinfo.
64479
64480 2006-06-28  Simon Josefsson  <jas@extundo.com>
64481
64482         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
64483
64484 2006-06-28  Simon Josefsson  <jas@extundo.com>
64485
64486         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
64487         functions there.  It will succeed on Windows XP, but on Windows
64488         2000 and (presumably) earlier, it will fail, and use the internal
64489         re-implementation.
64490         (use_win32_p): New function.
64491         (getaddrinfo): Use strtoul on servname, to support numeric ports.
64492         Support AI_NUMERICSERV to disable getservbyname.
64493         (getnameinfo): New function, only supports
64494         NI_NUMERICHOST|NI_NUMERICSERV for now.
64495
64496         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
64497         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
64498         getnameinfo.
64499
64500 2006-06-28  Eric Blake  <ebb9@byu.net>
64501
64502         * modules/wcwidth: New file.
64503         * modules/mbchar (Depends-on): Add wcwidth.
64504         * modules/mbswidth (Depends-on): Add wcwidth.
64505         * MODULES.html.sh: Add wcwidth.
64506
64507 2006-06-28  Eric Blake  <ebb9@byu.net>
64508
64509         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
64510         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
64511
64512 2006-06-28  Eric Blake  <ebb9@byu.net>
64513
64514         * lib/xvasprintf.h: Fix comments.
64515
64516 2006-06-28  Eric Blake  <ebb9@byu.net>
64517
64518         * lib/mbchar.h (wcwidth): Include wcwidth.h.
64519         * lib/mbswidth.c (wcwidth): Move from here...
64520         * lib/wcwidth.h: ...to this new file.
64521
64522 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64523
64524         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
64525
64526         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
64527         it's obsolete.
64528         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
64529
64530 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64531
64532         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
64533         Autoconf 2.60 says this stuff was obsolete.
64534
64535 2006-06-28  Bruno Haible  <bruno@clisp.org>
64536
64537         * modules/wcwidth (Files): Add m4/wchar_t.m4.
64538
64539 2006-06-28  Bruno Haible  <bruno@clisp.org>
64540
64541         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
64542         gt_TYPE_WCHAR_T.
64543
64544 2006-06-28  Bruno Haible  <bruno@clisp.org>
64545
64546         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
64547         declaration for wcwidth.
64548         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
64549
64550 2006-06-28  Bruno Haible  <bruno@clisp.org>
64551
64552         * lib/mkdtemp.c [MINGW]: Include <io.h>.
64553         (mkdir): Define using _mkdir.
64554
64555 2006-06-28  Bruno Haible  <bruno@clisp.org>
64556
64557         * lib/getaddrinfo.h: Fix POSIX URL.
64558         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
64559         _WIN32.
64560         (use_win32_p): Make static.
64561         (getaddrinfo): Reject service name if it is empty or does not consist
64562         solely of decimal digits, or if its value is > 65535.
64563         (getnameinfo): Remove useless casts.
64564
64565 2006-06-27  Simon Josefsson  <jas@extundo.com>
64566
64567         * modules/sys_select: New file, suggested by Bruno Haible, Paul
64568         Eggert and Martin Lambers.
64569
64570 2006-06-27  Simon Josefsson  <jas@extundo.com>
64571
64572         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
64573         Eggert and Martin Lambers.
64574
64575 2006-06-27  Bruno Haible  <bruno@clisp.org>
64576
64577         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
64578         result to 0, not to empty.
64579         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
64580
64581 2006-06-27  Bruno Haible  <bruno@clisp.org>
64582
64583         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
64584
64585 2006-06-26  Simon Josefsson  <jas@extundo.com>
64586
64587         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
64588         present.
64589
64590 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
64591
64592         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
64593         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
64594         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
64595
64596 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
64597
64598         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
64599
64600 2006-06-26  Bruno Haible  <bruno@clisp.org>
64601
64602         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
64603
64604 2006-06-26  Bruno Haible  <bruno@clisp.org>
64605
64606         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
64607
64608 2006-06-26  Bruno Haible  <bruno@clisp.org>
64609
64610         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
64611         SGI C compiler in pre-C99 mode.
64612         Suggested by Mark D. Baushke and Larry Jones.
64613
64614 2006-06-26  Bruno Haible  <bruno@clisp.org>
64615
64616         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
64617         WCHAR_MAX.
64618         Reported by Mark D. Baushke and Larry Jones.
64619
64620 2006-06-26  Bruno Haible  <bruno@clisp.org>
64621
64622         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
64623         in pre-C99 mode.
64624         Suggested by Mark D. Baushke and Larry Jones.
64625
64626 2006-06-23  Simon Josefsson  <jas@extundo.com>
64627             Bruno Haible  <bruno@clisp.org>
64628
64629         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
64630         Emit mostlyclean-local rule.
64631         (func_emit_tests_Makefile_am): Likewise.
64632         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
64633
64634 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
64635
64636         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
64637
64638 2006-06-23  Bruno Haible  <bruno@clisp.org>
64639
64640         * tests/test-stdint.c: Update to match ISO C 99 Technical
64641         Corrigendum 1.
64642
64643 2006-06-23  Bruno Haible  <bruno@clisp.org>
64644
64645         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
64646
64647 2006-06-23  Bruno Haible  <bruno@clisp.org>
64648
64649         * lib/stdint_.h: Treat IRIX like OpenBSD.
64650
64651 2006-06-23  Bruno Haible  <bruno@clisp.org>
64652
64653         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
64654         ISO C 99 Technical Corrigendum 1.
64655
64656 2006-06-22  Simon Josefsson  <jas@extundo.com>
64657
64658         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
64659         MinGW.
64660
64661 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64662
64663         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
64664         needed.  Some compiler complained about some of them.  Problem reported
64665         by Larry Jones in
64666         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
64667
64668 2006-06-21  Simon Josefsson  <jas@extundo.com>
64669
64670         * tests/test-getaddrinfo.c: New file.
64671
64672         * modules/getaddrinfo-tests: New file.
64673
64674         * MODULES.html.sh: Add inet_pton.
64675
64676         * modules/inet_pton: New file.
64677
64678 2006-06-21  Simon Josefsson  <jas@extundo.com>
64679
64680         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
64681         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
64682         of using the (limited) gnulib implementation on Windows XP.
64683
64684         * m4/inet_pton.m4: New file.
64685
64686 2006-06-21  Simon Josefsson  <jas@extundo.com>
64687
64688         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
64689         variable.
64690
64691         * lib/socket_.h: Don't define WINVER.
64692
64693         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
64694         slightly modified to work in gnulib.
64695
64696 2006-06-21  Simon Josefsson  <jas@extundo.com>
64697
64698         * doc/gnulib.texi (Windows sockets): Add.
64699
64700 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64701
64702         * lib/read-file.c (fread_file): Start with buffer allocation of
64703         0 bytes rather than 1 byte; this simplifies the code.
64704         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
64705         code to free buffer and save/restore errno.
64706         (internal_read_file): Remove unused local.
64707
64708 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64709
64710         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
64711         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
64712         Problem reported by Denis Excoffier in
64713         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
64714
64715 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64716
64717         * modules/sys_socket, modules/socklen: Include sys/types since
64718         FreeBSD 4.x's sys/socket.h needs it.
64719
64720 2006-06-19  Simon Josefsson  <jas@extundo.com>
64721
64722         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
64723
64724 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64725
64726         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
64727
64728 2006-06-19  Bruno Haible  <bruno@clisp.org>
64729
64730         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
64731         and FULL_PATH_INTTYPES_H in angle brackets.
64732         Reported by Mark D. Baushke <mdb@gnu.org>.
64733
64734 2006-06-17  Eric Blake  <ebb9@byu.net>
64735
64736         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
64737         errno.
64738
64739 2006-06-17  Bruno Haible  <bruno@clisp.org>
64740
64741         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
64742         <sys/inttypes.h>.
64743
64744 2006-06-17  Bruno Haible  <bruno@clisp.org>
64745
64746         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
64747         whether errno is declared. Assume <errno.h> declares errno.
64748
64749 2006-06-17  Bruno Haible  <bruno@clisp.org>
64750
64751         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
64752
64753 2006-06-17  Bruno Haible  <bruno@clisp.org>
64754
64755         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
64756         problem on Solaris 2.5.1.
64757
64758 2006-06-16  Eric Blake  <ebb9@byu.net>
64759
64760         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
64761         * lib/unicodeio.c [!defined errno]: Likewise.
64762         * lib/strtol.c [!defined errno]: Likewise.
64763         * lib/strtod.c [!defined errno]: Likewise.
64764
64765 2006-06-15  Eric Blake  <ebb9@byu.net>
64766
64767         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
64768
64769 2006-06-15  Eric Blake  <ebb9@byu.net>
64770
64771         * config/srclist.txt (ssize_t.m4): Lose sync.
64772
64773 2006-06-15  Bruno Haible  <bruno@clisp.org>
64774
64775         * modules/stdint (Files): Include m4/full-header-path.m4,
64776         m4/size_max.m4, m4/wchar_t.m4.
64777         (Makefile.am): Many more substitutions.
64778         * modules/stdint-tests: New file.
64779         * tests/test-stdint.c: New file.
64780
64781 2006-06-15  Bruno Haible  <bruno@clisp.org>
64782
64783         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
64784         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
64785         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
64786         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
64787         gl_CHECK_TYPE_SAME): New macros.
64788
64789 2006-06-15  Bruno Haible  <bruno@clisp.org>
64790
64791         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
64792
64793 2006-06-15  Bruno Haible  <bruno@clisp.org>
64794
64795         * lib/stdint_.h: Rewritten to be fully auto-configured.
64796         Fixes bug on HP-UX/IA64.
64797
64798 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
64799
64800         * lib/getdate.y (__attribute__): Don't define if already defined.
64801         Problem reported by Larry Jones.
64802         * lib/utimens.c (__attribute__): Likewise.
64803
64804 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
64805
64806         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
64807         reported by Andreas Schwab.
64808
64809 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64810             Bruno Haible  <bruno@clisp.org>
64811
64812         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
64813         check for the declaration of strnlen and a run test that exposes the
64814         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
64815         rpl_strndup.
64816
64817 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64818             Bruno Haible  <bruno@clisp.org>
64819
64820         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
64821
64822 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64823
64824         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
64825         compile test, for Tru64 4.0D.
64826
64827 2006-05-28  Karl Berry  <karl@gnu.org>
64828
64829         * config/srclist.txt (printf-args.c): lose sync.
64830
64831 2006-05-26  Martin Lambers  <marlam@marlam.de>
64832
64833         * lib/getpass.c: Updates the test for the native W32 API, and adds
64834         missing includes, thus fixing compilation warnings.
64835
64836 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64837
64838         * lib/exclude.c (exclude_fnmatch): New function.
64839         (excluded_file_name): Call exclude_fnmatch.
64840         * lib/exclude.h (excluded_file_name): New prototype
64841
64842 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
64843
64844         * lib/tempname.c (small_open, large_open): New macros.
64845         (__open, __open64) [!_LIBC]: Remove.
64846         (__gen_tempname): Use small_open and large_open instead of __open
64847         and __open64.  This fixes a portability bug on HP-UX 11.11i
64848         reported by Simon Wing-Tang in
64849         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
64850
64851 2006-05-24  Bruno Haible  <bruno@clisp.org>
64852
64853         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
64854         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
64855         Reported by Thorsten Maerz <torte@netztorte.de> via
64856         Aaron Stone <aaron@serendipity.cx>.
64857
64858 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64859
64860         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
64861         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
64862         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
64863         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
64864         not really conditional on the cache.
64865         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
64866
64867 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64868
64869         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
64870         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
64871         (my_usleep): Don't mishandle maximum value.
64872
64873 2006-05-19  Jim Meyering  <jim@meyering.net>
64874
64875         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
64876
64877 2006-05-17  Bruno Haible  <bruno@clisp.org>
64878
64879         Cygwin portability.
64880         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
64881
64882 2006-05-17  Bruno Haible  <bruno@clisp.org>
64883
64884         * lib/stdint_.h: Fix recognition of Cygwin.
64885
64886 2006-05-15  Bruno Haible  <bruno@clisp.org>
64887
64888         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
64889         on libtool patch by Ralf Wildenhues.
64890
64891 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64892
64893         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
64894         test for C99 conformance; (bool) 0.5 is an integer constant
64895         expression, but (bool) -0.5 is not.  Problem reported by Fedor
64896         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
64897
64898 2006-05-11  Simon Josefsson  <jas@extundo.com>
64899
64900         * m4/xvasprintf.m4: Fix obvious typo.
64901
64902 2006-05-11  Jim Meyering  <jim@meyering.net>
64903
64904         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
64905         James Lemley.
64906
64907 2006-05-10  Simon Josefsson  <jas@extundo.com>
64908
64909         * lib/md4.c: Typo fix, update copyright years.
64910         (K1, K2): Don't use L because it turn computations into 64-bit on
64911         64-bit platforms.
64912
64913 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64914
64915         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
64916         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
64917         unwanted sign propagation, e.g., on hosts with 64-bit int.
64918         There still are some problems with reeelly weird theoretical hosts
64919         (e.g., 33-bit int) but it's not worth worrying about now.
64920         * lib/sha1.c (rol): Likewise.
64921         (K1, K2, K3, K4): Remove unnecessary L suffix.
64922
64923 2006-05-10  Bruno Haible  <bruno@clisp.org>
64924
64925         * lib/des.c: Cast to avoid warnings.
64926
64927 2006-05-09  Bruno Haible  <bruno@clisp.org>
64928
64929         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
64930         (Depends-on): Depend also on xsize, stdarg.
64931         (configure.ac): Add gl_XVASPRINTF.
64932
64933 2006-05-09  Bruno Haible  <bruno@clisp.org>
64934
64935         * m4/xvasprintf.m4: New file.
64936
64937 2006-05-09  Bruno Haible  <bruno@clisp.org>
64938
64939         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
64940         (EOVERFLOW): Define fallback value.
64941         (xstrcat): New function.
64942         (xvasprintf): Recognize the special case of a string concatenation.
64943
64944 2006-05-08  Eric Blake  <ebb9@byu.net>
64945
64946         * gnulib-tool (func_version): Base copyright year on CVS date.
64947         (func_emit_copyright_notice): New function.
64948         (func_emit_lib_Makefile_am): Use it.
64949         (func_emit_tests_Makefile_am): Likewise.
64950         (func_import): Likewise.
64951
64952 2006-05-08  Bruno Haible  <bruno@clisp.org>
64953
64954         * modules/stdarg: New file.
64955         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
64956
64957 2006-05-08  Bruno Haible  <bruno@clisp.org>
64958
64959         * m4/stdarg.m4: New file, from GNU gettext.
64960
64961 2006-05-08  Bruno Haible  <bruno@clisp.org>
64962
64963         * config/srclist.txt (build-aux/config.rpath): different from latest
64964         release.
64965
64966 2006-05-08  Bruno Haible  <bruno@clisp.org>
64967
64968         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
64969
64970 2006-05-05  Jim Meyering  <jim@meyering.net>
64971
64972         * m4/warning.m4: New file, derived from bison's file by the same name.
64973
64974 2006-05-03  Bruno Haible  <bruno@clisp.org>
64975
64976         * lib/stdint_.h: Shorter URL.
64977         * lib/inttypes.h: Likewise.
64978
64979 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64980
64981         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
64982
64983 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64984
64985         * lib/verify.h: Document the internals better.  Most of this change
64986         was written by Bruno Haible.
64987
64988 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64989
64990         * doc/verify.texi: New file, partly based on a proposal by
64991         Bruno Haible.
64992
64993 2006-05-02  Bruno Haible  <bruno@clisp.org>
64994
64995         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
64996         test from here...
64997         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
64998
64999 2006-04-29  Bruno Haible  <bruno@clisp.org>
65000
65001         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
65002         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
65003
65004 2006-04-29  Bruno Haible  <bruno@clisp.org>
65005
65006         * gnulib-tool: Make --update option actually work.
65007
65008 2006-04-29  Bruno Haible  <bruno@clisp.org>
65009
65010         * doc/gcd.texi: New file.
65011         * doc/gnulib.texi: Include it.
65012
65013 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
65014
65015         * lib/getdate.y (get_date): When adding relative date, start with the
65016         initial time, not with the result of the first mktime call.
65017
65018 2006-04-25  Bruno Haible  <bruno@clisp.org>
65019
65020         * gnulib-tool (func_import): Output the include directives in three
65021         blocks, sorted separately.
65022         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65023
65024 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
65025
65026         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
65027         to define main with arguments, for C++.  Reported by Eric Blake.
65028         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
65029         Prefer 'int main ()' to 'int main (void)', for C++.
65030         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
65031         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
65032         for 'main', for C99 and C++.
65033
65034 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
65035
65036         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
65037         Don't assume that exit status -1 is valid.
65038         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65039         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
65040         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
65041         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
65042         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
65043         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
65044         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
65045         functions can be used without declaring them, or that you can
65046         exit with status -1.
65047         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
65048
65049 2006-04-24  Karl Berry  <karl@gnu.org>
65050
65051         * config/srclist.txt (longdouble.m4): sync lost.
65052
65053 2006-04-24  Eric Blake  <ebb9@byu.net>
65054
65055         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
65056
65057 2006-04-24  Bruno Haible  <bruno@clisp.org>
65058
65059         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
65060         poll() implementation in AIX.
65061         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65062
65063 2006-04-24  Bruno Haible  <bruno@clisp.org>
65064
65065         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
65066         assigned exactly once.
65067
65068 2006-04-23  Claudio Fontana  <claudio@gnu.org>
65069             Bruno Haible  <bruno@clisp.org>
65070
65071         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
65072         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
65073         for AM_CPPFLAGS.
65074
65075 2006-04-23  Bruno Haible  <bruno@clisp.org>
65076
65077         * modules/copy-file: Depend on unistd.
65078         * modules/execute: Likewise.
65079         * modules/fatal-signal: Likewise.
65080         * modules/findprog: Likewise.
65081         * modules/mkdtemp : Likewise.
65082         * modules/pipe: Likewise.
65083         * modules/wait-process: Likewise.
65084
65085 2006-04-23  Bruno Haible  <bruno@clisp.org>
65086
65087         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
65088         condition was already detected.
65089         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65090
65091 2006-04-23  Bruno Haible  <bruno@clisp.org>
65092
65093         * lib/copy-file.c: Include <unistd.h> unconditionally.
65094         * lib/execute.c: Likewise.
65095         * lib/fatal-signal.c: Likewise.
65096         * lib/findprog.c: Likewise.
65097         * lib/mkdtemp.c: Likewise.
65098         * lib/pipe.h: Likewise.
65099         * lib/pipe.c: Likewise.
65100         * lib/wait-process.h: Likewise.
65101
65102 2006-04-23  Bruno Haible  <bruno@clisp.org>
65103
65104         * gnulib-tool (func_usage): Fix --import description. Document
65105         --update.
65106         (func_import): Create temporary file in a temporary directory, if
65107         --dry-run is specified. Silence errors from 'grep' when there are no
65108         m4 files in $m4dir.
65109         (func_create_testdir): Silence errors from 'grep' when there are no
65110         m4 files in $m4dir.
65111         Reported by Karl Berry <karl@freefriends.org>.
65112
65113 2006-04-20  Bruno Haible  <bruno@clisp.org>
65114
65115         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
65116         one argument, so that the code will be portable to Autoconf 2.60.
65117         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
65118         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65119         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
65120
65121 2006-04-19  Derek Price  <derek@ximbiot.com>
65122             Eric Blake  <ebb9@byu.net>
65123
65124         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
65125         rather than "/full/path.h".  Update comment to match.  Shorten &
65126         generalize m4_translit call via AS_TR_CPP.
65127
65128 2006-04-19  Derek Price  <derek@ximbiot.com>
65129             Eric Blake  <ebb9@byu.net>
65130
65131         * lib/inttypes.h: Correct grammar in comment.
65132
65133 2006-04-18  Derek Price  <derek@ximbiot.com>
65134             Paul Eggert  <eggert@cs.ucla.edu>
65135
65136         * modules/inttypes: New file.
65137         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
65138
65139 2006-04-18  Derek Price  <derek@ximbiot.com>
65140             Paul Eggert  <eggert@cs.ucla.edu>
65141
65142         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
65143         New files.
65144
65145 2006-04-18  Derek Price  <derek@ximbiot.com>
65146             Paul Eggert  <eggert@cs.ucla.edu>
65147
65148         * lib/inttypes.h: New file.
65149         * lib/strtoimax.c: Assume <inttypes.h>.
65150
65151 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
65152
65153         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
65154         isn't mounted.  Problem reported by Kir Kolyshkin.
65155
65156 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65157
65158         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
65159         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
65160         Derek R. Price.
65161         * lib/regex.h (RE_DUP_MAX): Update comment to match current
65162         implementation.
65163
65164 2006-04-12  Eric Blake  <ebb9@byu.net>
65165
65166         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
65167         is now done automatically by the corresponding Autoconf macro.
65168
65169 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
65170
65171         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
65172         time_r.h.
65173
65174 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65175
65176         Merge regex changes from libc, removing some of our
65177         POSIX-conformance changes that were rejected and redoing them in a
65178         less-intrusive way.
65179
65180         * lib/regcomp.c (re_compile_internal, init_dfa):
65181         Length arg is now size_t, not Idx.  All uses changed.
65182         (peek_token): Forward decl now says internal_function.
65183         (__re_error_msgid, __re_error_msgid_idx):
65184         Now static rather than extern with attribute_hidden.
65185         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
65186         For some reason libc prefers K&R style defns for external functions.
65187         (regerror) [!defined _LIBC]: Likewise.
65188         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
65189         (seek_collating_symbol_entry, lookup_collation_sequence_value):
65190         (build_range_exp, build_collating_symbol):
65191         Use K&R-style defn.
65192         (re_compile_fastmap): Use '\0' to memset, not 0.
65193         (utf8_sb_map): Make the calculations more obvious.
65194         (init_dfa, parse_bracket_exp, build_charclass_op):
65195         Call calloc and cast result, as glibc does.
65196         (init_word_char, fetch_token, peek_token, peek_token_bracket):
65197         (build_range_exp, build_collating_symbol):
65198         Now internal functions.
65199
65200         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
65201
65202         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
65203         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
65204         Don't depend on VMS; depend on __VMS instead, for POSIX
65205         namespace cleanness.
65206         (regoff_t): Define to ssize_t, not long int.
65207
65208         Remove the REG_ macros named below.  Instead, make the old names
65209         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
65210         __USE_GNU_REGEX.
65211         (REG_BACKSLASH_ESCAPE_IN_LISTS):
65212         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
65213         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
65214         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
65215         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
65216         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
65217         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
65218         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
65219         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
65220         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
65221         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
65222         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
65223         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
65224         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
65225         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
65226         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
65227         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
65228         (REG_NREGS):
65229         Remove.  All uses replaced by the old RE_* names.
65230         (RE_BACKSLASH_ESCAPE_IN_LISTS):
65231         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
65232         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
65233         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
65234         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
65235         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
65236         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
65237         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
65238         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
65239         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
65240         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
65241         Don't bother having these macros be independent of each others'
65242         values, since they no longer exist in the POSIX name space.
65243
65244         Rename the following member names back to their old names,
65245         unless !__USE_GNU_REGEX.  All uses changed back.
65246         (buffer): Renamed from re_buffer.
65247         (allocated): Renamed from re_allocated.
65248         (used): Renamed from re_used.
65249         (syntax): Renamed from re_syntax.
65250         (fastmap): Renamed from re_fastmap.
65251         (translate): Renamed from re_translate.
65252         (can_be_null): Renamed from re_can_be_null.
65253         (regs_allocated): Renamed from re_regs_allocated.
65254         (fastmap_accurate): Renamed from re_fastmap_accurate.
65255         (no_sub): Renamed from re_no_sub.
65256         (not_bol): Renamed from re_not_bol.
65257         (not_eol): Renamed from re_not_eol.
65258         (newline_anchor): Renamed from re_newline_anchor.
65259         (num_regs): Renamed from rm_num_regs.
65260         (start): Renamed from rm_start.
65261         (end): Renamed from rm_end.
65262
65263         (free_state): Move up a bit.
65264
65265         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
65266         #define to be empty.
65267         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
65268         when that is what is intended.
65269         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
65270         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
65271         (MAX): New macro.
65272         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
65273         All uses changed back to re_malloc, etc.  It's now the caller's
65274         responsibility to check for overflow; all callers changed.
65275         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
65276         (re_x2nrealloc): Remove.
65277         (free_state): Remove decl.
65278
65279         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
65280         (re_set_registers, re_exec):
65281         Use K&R-style defn.
65282
65283         2006-01-31  Roland McGrath  <roland@redhat.com>
65284
65285         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
65286         Reported by Mike Frysinger <vapier@gentoo.org>.
65287
65288         2006-01-15  Andreas Jaeger  <aj@suse.de>
65289
65290         [BZ #1950]
65291         * lib/regex_internal.c (re_string_reconstruct): Adjust for
65292         build_wcs_upper_buffer change.
65293         (build_wcs_upper_buffer): Change return type.
65294
65295         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
65296
65297         * lib/regex_internal.h: Include <stdint.h> if available.
65298
65299         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
65300
65301         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
65302
65303         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65304
65305         * lib/regcomp.c: Adjust for changed secondary hash function.
65306
65307         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
65308
65309         * lib/regex.h: Pretty printing.
65310         Clean up namespace a bit.
65311
65312         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
65313
65314         * lib/regexec.c (update_cur_sifted_state, check_arrival,
65315         check_arrival_add_next_nodes): Avoid using uninitialized variable.
65316
65317         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65318                     Ulrich Drepper  <drepper@redhat.com>
65319
65320         [BZ #1302]
65321         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
65322         changed.
65323         (bitset_word_t): Renamed from bitset_word.  All uses changed.
65324
65325         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
65326
65327         [BZ #281]
65328         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
65329         * lib/regcomp.c: Remove unnecessary uses of
65330         unsigned RE_TRANSLATE_TYPE.
65331         * lib/regex_internal.h: Likewise.
65332         * lib/regex_internal.c: Likewise.
65333         * lib/regexec.c: Likewise.
65334         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
65335
65336         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
65337
65338         * lib/regexec.c (find_recover_state): Remove unnecessary
65339         initialization.
65340         (transit_state_bkref): Make DFA a const pointer.
65341         (get_subexp): Likewise.
65342         (check_arrival): Likewise.
65343         (update_cur_sifted_state): Likewise.
65344         (re_search_internal): Likewise.
65345         (prune_impossible_nodes): Likewise.
65346         (acquire_init_state_context): Likewise.
65347         (proceed_next_node): Likewise.
65348         (set_regs): Likewise.
65349         (free_fail_stack_return): Likewise.
65350         (check_arrival_expand_ecl): Mark DFA parameter as const.
65351         (check_arrival_expand_ecl_sub): Likewise.
65352         (check_subexp_limits): Likewise.
65353         (sub_epsilon_src_nodes):  Likewise.
65354         (add_epsilon_src_nodes):  Likewise.
65355         (merge_state_array): Likewise.
65356         (update_regs): Likewise.
65357         (build_trtable): Likewise.
65358         (sift_states_backward): Mark MCTX parameter as const.
65359         (build_sifted_states): Likewise.
65360         (update_cur_sifted_state): Likewise.
65361         (sift_states_mkref): Likewise.
65362         (check_arrival_expand_ecl): Mark eclosure as const.
65363         (check_dst_limits_calc_pos_1): Likewise.
65364         * lib/regex_internal.h (re_match_context_t): Make dfa a const
65365         pointer.
65366
65367         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
65368
65369         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
65370         (transit_state_sb): Likewise.
65371         (transit_state_mb): Likewise.
65372         (sift_states_iter_mb): Likewise.
65373         (check_arrival_add_next_nodes): Likewise.
65374         (check_node_accept_bytes): Change first parameter to pointer-to-const.
65375         [_LIBC] (re_search_2_stub): Use mempcpy.
65376
65377         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
65378         mbrtowc for very simple UTF-8 case.
65379
65380         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
65381         a pointer-to-const.
65382         (re_acquire_state_context): Likewise.
65383         * lib/regex_internal.h: Adjust prototypes.
65384
65385         * lib/regex.c: Prevent using C++ compilers.
65386
65387         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
65388         (re_acquire_state_context): Likewise.
65389
65390 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65391
65392         * modules/regex (Depends-on): Add ssize_t.
65393
65394 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65395
65396         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
65397         translation table.
65398
65399 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65400
65401         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
65402
65403 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
65404             Bruno Haible  <bruno@clisp.org>
65405
65406         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
65407         <sys/types.h> and <inttypes.h>.
65408
65409 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65410
65411         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
65412         `__error_t_defined', so argp.h will not typedef the former.
65413
65414 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
65415
65416         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
65417         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
65418         glibc names.  Even if glibc is changed to conform to POSIX, the
65419         traditional names will be available anyway, since regex depends on
65420         the extensions module.  Also, fix a longstanding typo in the
65421         implementation of Spencer ERE test #75 from grep 2.3.  Problems
65422         reported by Emanuele Giaquinta.  Also, change sense of cached
65423         variable, so that the message makes sense.
65424
65425 2006-03-24  Simon Josefsson  <jas@extundo.com>
65426
65427         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
65428         including some doc fixes.
65429         (base64_encode_alloc): Fix +1 bug on allocation failures.
65430
65431 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65432
65433         * lib/base64.c (base64_encode): Do not read past end of array with
65434         unsanitized input on systems with CHAR_BIT > 8.
65435
65436 2006-03-24  Eric Blake  <ebb9@byu.net>
65437
65438         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
65439
65440 2006-03-22  Karl Berry  <karl@gnu.org>
65441
65442         * config/srclist.txt (*setenv.[ch]): get from coreutils.
65443         * config/srclistvars.sh (COREUTILS): new var.
65444
65445 2006-03-17  Jim Meyering  <jim@meyering.net>
65446
65447         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
65448         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
65449
65450 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
65451
65452         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
65453         no longer needs it.  Instead, check that regoff_t is as least
65454         as wide as ptrdiff_t.
65455
65456         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
65457         so that our regex.h stays compatible with the installed regex.
65458         This is helpful for installers who configure --without-included-regex.
65459         Problem reported by Emanuele Giaquinta.
65460
65461 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
65462
65463         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
65464         Typedef to long int, not to off_, as POSIX will likely change
65465         in that direction.
65466
65467 2006-03-15  Eric Blake  <ebb9@byu.net>
65468
65469         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
65470
65471 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65472
65473         * lib/argp-help.c (validate_uparams): Fix typo
65474         * lib/argp-parse.c (argp_default_options): Consistently begin help
65475         messages with a lowercase letter.
65476
65477 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
65478
65479         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
65480         overrun buffers and shouldn't be used (much as gets shouldn't be
65481         used).
65482         * lib/time_r.c (asctime_r, ctime_r): Likewise.
65483
65484 2006-03-08  Simon Josefsson  <jas@extundo.com>
65485
65486         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
65487         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65488
65489 2006-03-08  Simon Josefsson  <jas@extundo.com>
65490
65491         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
65492         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65493
65494 2006-03-08  Simon Josefsson  <jas@extundo.com>
65495
65496         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
65497         signal that configure disabled the device.
65498
65499 2006-03-08  Simon Josefsson  <jas@extundo.com>
65500
65501         * build-aux/maint.mk: Fix refresh-po, to handle no translated
65502         languages.
65503
65504 2006-03-07  Simon Josefsson  <jas@extundo.com>
65505
65506         * modules/getopt (Depends-on): Add unistd.
65507
65508         * modules/unistd: New file.
65509
65510 2006-03-07  Simon Josefsson  <jas@extundo.com>
65511
65512         * modules/gc-random: New file.
65513
65514 2006-03-07  Simon Josefsson  <jas@extundo.com>
65515
65516         * m4/unistd_h.m4: New file.
65517
65518 2006-03-07  Simon Josefsson  <jas@extundo.com>
65519
65520         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
65521         test to be side-effect free by storing the result in the cache
65522         variable gl_cv_lib_readline, and moving the assignment of
65523         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
65524         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65525
65526 2006-03-07  Simon Josefsson  <jas@extundo.com>
65527
65528         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
65529         error on missing devices (the functions will return an error).
65530
65531         * m4/gc.m4: Move random stuff to gc-random.m4
65532
65533 2006-03-07  Simon Josefsson  <jas@extundo.com>
65534
65535         * lib/unistd_.h: New file.
65536
65537 2006-03-07  Simon Josefsson  <jas@extundo.com>
65538
65539         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
65540
65541 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65542
65543         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
65544         Problem reported by Juan Manuel Guerrero.
65545
65546 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65547
65548         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
65549         the unistd module.
65550         * lib/getlogin_r.c: Likewise.
65551         * lib/getlogin_r.h: Likewise.
65552         * lib/glob.c: Likewise.
65553         * lib/pagealign_alloc.c: Likewise.
65554         * lib/unistd_.h: Remove; no longer needed.
65555
65556 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65557
65558         * MODULES.html.sh (Support for systems lacking POSIX:2001):
65559         Add unistd.
65560         * modules/c-stack (Depends-on): Add unistd.
65561         * modules/getlogin_r: Likewise.
65562         * modules/glob: Likewise.
65563         * modules/pagealign_alloc: Likewise.
65564         * modules/unistd (Files): Remove lib/unistd_.h.
65565         (EXTRA_DIST): Remove.
65566         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
65567         need unistd_.h.
65568         (MOSTLYCLEANFILES): Remove unistd.h-t.
65569
65570 2006-03-03  Simon Josefsson  <jas@extundo.com>
65571
65572         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
65573
65574 2006-03-03  Simon Josefsson  <jas@extundo.com>
65575
65576         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
65577         libidn and bison.
65578
65579 2006-03-03  Simon Josefsson  <jas@extundo.com>
65580
65581         * build-aux/maint.mk: Add indent target.
65582
65583 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
65584
65585         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
65586         our replacement poll.h in any case, to avoid a differing
65587         declaration from a system header.  Seen on AIX.
65588
65589 2006-03-01  Simon Josefsson  <jas@extundo.com>
65590
65591         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
65592         <kasal@ucw.cz>.
65593
65594 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65595
65596         * modules/gettime (Depends-on): Add extensions module.
65597         * modules/nanosleep (Depends-on): Likewise.
65598         * modules/settime (Depends-on): Likewise.
65599
65600 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65601
65602         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
65603         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
65604         pedantically.
65605         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65606         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
65607
65608         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
65609         not "==".  Reported by Ralf Wildenhues.
65610
65611 2006-03-01  Karl Berry  <karl@gnu.org>
65612
65613         * doc/Copyright/request-*: new files, synced from gnuorg.
65614
65615 2006-03-01  Karl Berry  <karl@gnu.org>
65616
65617         * config/srclist.txt (Copyright/*): new entries.
65618
65619 2006-02-28  Simon Josefsson  <jas@extundo.com>
65620
65621         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
65622
65623 2006-02-27  Simon Josefsson  <jas@extundo.com>
65624
65625         * lib/base64.h: Indent #define's.  From Jim Meyering
65626         <jim@meyering.net>.
65627
65628 2006-02-27  Jim Meyering  <jim@meyering.net>
65629
65630         Revert the change of 2006-02-24, so these files can continue
65631         to be sync'd from gettext.
65632         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
65633         of `config.h'.
65634
65635 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65636
65637         * modules/intprops: New file.
65638         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65639         Add intprops.
65640         * modules/getloadavg (Files): Remove lib/intprops.h.
65641         (Depends-on): Add intprops.
65642         * modules/human: Likewise.
65643         * modules/inttostr: Likewise.
65644         * modules/openat: Likewise.
65645         * modules/sig2str: Likewise.
65646         * modules/userspec: Likewise.
65647         * modules/utimecmp: Likewise.
65648         * modules/xnanosleep: Likewise.
65649         * modules/xstrtol: Likewise.
65650
65651 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
65652
65653         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
65654         * modules/lock-tests (TESTS): Use $(EXEEXT).
65655         * modules/tls-tests: Likewise.
65656         * modules/argp-tests: Likewise.
65657         (check_PROGRAMS): New var, replacing...
65658         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
65659
65660 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65661
65662         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
65663         `config.h'.
65664
65665 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65666
65667         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
65668
65669 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65670
65671         Sync from coreutils.
65672         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
65673         gl_CHDIR_SAFER.
65674
65675 2006-02-22  Jim Meyering  <jim@meyering.net>
65676
65677         Sync from coreutils.
65678         * m4/chdir-safer.m4: New file.
65679
65680 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65681
65682         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
65683         AT_FDCWD exceeds INT_MAX.
65684         * lib/openat.h (AT_FDCWD): Likewise.
65685
65686 2006-02-17  Eric Blake  <address@hidden>
65687
65688         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
65689
65690 2006-02-16  Simon Josefsson  <jas@extundo.com>
65691
65692         * modules/getaddrinfo (Depends-on): Add sys_socket.
65693
65694 2006-02-15  Simon Josefsson  <jas@extundo.com>
65695
65696         * build-aux/maint.mk: Add dsyntax-check rule.
65697
65698 2006-02-15  Eric Blake  <ebb9@byu.net>
65699
65700         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
65701         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
65702         'present but cannot compile' warnings on cygwin.
65703         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
65704         use ws2tcpip.h if sys/socket.h works.
65705         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
65706         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
65707
65708 2006-02-14  Simon Josefsson  <jas@extundo.com>
65709
65710         * modules/maintainer-makefile (Files): Rename.
65711
65712         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
65713         and (the local) Makefile.cfg to maint-cfg.mk.
65714
65715         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
65716         to the latter.
65717
65718         * modules/maintainer-makefile: New module.
65719
65720         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
65721         severaly stripped to make it possible to build it up from scratch
65722         with reliable tests.
65723
65724         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
65725         fixes to permit overriding the default actions when configure and
65726         makefile are not available.
65727
65728 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65729
65730         Sync from coreutils.
65731         * modules/lstat (Depends-on): Don't depend on xalloc.
65732         (License): Change from GPL to LGPL, since this is now simply a
65733         replacement for a libc function.
65734
65735 2006-02-14  Jim Meyering  <jim@meyering.net>
65736
65737         Sync from coreutils.
65738
65739         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
65740         failure on deficient systems, and simplify gnulib lgpl dependencies.
65741         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
65742         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
65743
65744         * lib/xalloc-die.c: Remove unused definition of N_.
65745
65746 2006-02-14  Jim Meyering  <jim@meyering.net>
65747
65748         Sync from coreutils.
65749         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
65750         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
65751         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
65752         double-quote uses of that variable, to accommodate the rare case in
65753         which getmntent is available in none of the libraries checked.  This
65754         happens at least on FreeBSD 5.0.
65755
65756 2006-02-13  Simon Josefsson  <jas@extundo.com>
65757
65758         * gnulib-tool (Usage): Fix --import, from
65759         karl@freefriends.org (Karl Berry).
65760
65761 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65762
65763         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
65764
65765 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
65766
65767         * lib/argp-namefrob.h: Restore changes accidentally lost during the
65768         "autoupdate" on 2005-12-12.
65769
65770 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65771
65772         * modules/closeout (Depends-on): Remove atexit.
65773
65774 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65775
65776         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
65777         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
65778
65779 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65780
65781         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
65782         __EXTENSIONS__ if this causes compilation to fail.  Problem
65783         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
65784         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
65785
65786 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
65787
65788         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
65789         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
65790         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
65791         All uses changed.
65792
65793 2006-01-26  Simon Josefsson  <jas@extundo.com>
65794
65795         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
65796         prototype is visible on mingw32.
65797
65798         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
65799         for mingw32.
65800
65801         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
65802         mingw32).
65803
65804 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65805
65806         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
65807         attempt to open for write; this always fails, at least on POSIX
65808         hosts.  This reinstates the 2006-01-09 change, which was
65809         inadvertently removed.
65810
65811 2006-01-26  Bruno Haible  <bruno@clisp.org>
65812
65813         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
65814         Reported by Paul Eggert.
65815
65816 2006-01-26  Bruno Haible  <bruno@clisp.org>
65817             Paul Eggert  <eggert@cs.ucla.edu>
65818
65819         * lib/stdbool_.h (_Bool)
65820         [(! (defined __cplusplus || defined __BEOS__)
65821           && !defined __GNUC__
65822           && !(defined __HP_cc || defined __xlc__
65823                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
65824                || defined __sgi))]:
65825         #define to signed char in these cases too; this simplifies
65826         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
65827         etc., separately) and makes it more conservative.
65828
65829 2006-01-25  Simon Josefsson  <jas@extundo.com>
65830
65831         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
65832         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
65833         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
65834
65835 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65836
65837         * lib/argp-namefrob.h: Bugfix. Remove stray #
65838
65839 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
65840
65841         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
65842         so that we test the test.
65843         Check for yet another HP-UX cc bug involving *bool |= bool.
65844
65845 2006-01-25  Karl Berry  <karl@gnu.org>
65846
65847         * config/srclist.txt (vasnprintf.c): sync lost.
65848
65849 2006-01-25  Jim Meyering  <jim@meyering.net>
65850
65851         Sync from the stable (b5) branch of coreutils:
65852
65853         * lib/fts.c (fts_children): Don't let close() clobber errno from
65854         failed fchdir().
65855
65856         * lib/fts.c (fts_stat): When following a symlink-to-directory,
65857         don't necessarily interpret stat-fails+lstat-succeeds as indicating
65858         a dangling symlink.  That can also happen at least for ELOOP.
65859         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
65860         FYI, this bug predates the inclusion of fts.c in coreutils.
65861
65862         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
65863         in their own block, so pre-c99 compilers don't object.
65864
65865         Avoid the double-free (first in fts_read, second in fts_close) that
65866         would occur when an `active' directory is made inaccessible (e.g.,
65867         via chmod a-x) during a traversal.
65868         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65869         before returning.  Reproduce this failure by
65870         mkdir -p a/b; cd a; chmod a-x . b
65871         Reported by Stavros Passas.
65872
65873 2006-01-25  Jim Meyering  <jim@meyering.net>
65874
65875         * lib/fileblocks.c: Remove more useless parentheses.
65876         * lib/readutmp.h: Likewise.
65877
65878 2006-01-25  Bruno Haible  <bruno@clisp.org>
65879
65880         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
65881         warnings.
65882         Reported by Paul Eggert.
65883
65884 2006-01-25  Bruno Haible  <bruno@clisp.org>
65885
65886         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
65887         rid of a trap command. For Solaris sh.
65888         Reported by Mark D. Baushke <mdb@gnu.org>.
65889
65890 2006-01-24  Simon Josefsson  <jas@extundo.com>
65891
65892         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
65893         Bruno.
65894
65895 2006-01-24  Karl Berry  <karl@gnu.org>
65896
65897         * config/srclist.txt (argp-namefrob.h): sync lost.
65898
65899 2006-01-24  Jim Meyering  <jim@meyering.net>
65900
65901         * modules/openat (Files): Add lib/intprops.h.
65902         From Mark D. Baushke.
65903
65904 2006-01-24  Jim Meyering  <jim@meyering.net>
65905
65906         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
65907         Reported by Mark D. Baushke.
65908
65909 2006-01-24  Jim Meyering  <jim@meyering.net>
65910
65911         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
65912
65913 2006-01-24  Bruno Haible  <bruno@clisp.org>
65914
65915         * modules/strnlen (Maintainer): Change from glibc to all.
65916
65917 2006-01-24  Bruno Haible  <bruno@clisp.org>
65918
65919         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
65920         Patch by Paul Eggert.
65921
65922 2006-01-24  Bruno Haible  <bruno@clisp.org>
65923
65924         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
65925         already has it.
65926         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
65927         2005-11-26.
65928
65929         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
65930         'signed char' to avoid problems with the built-in _Bool type.
65931         Reported by Paul Eggert on 2005-11-26.
65932
65933 2006-01-24  Bruno Haible  <bruno@clisp.org>
65934
65935         * gnulib-tool (func_import): Avoid constructing complicated sed
65936         expressions inside backquote.
65937         Report and solution by Mark D. Baushke <mdb@gnu.org>.
65938
65939 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
65940
65941         These changes imported from libc.
65942         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
65943         test and two separate function calls.
65944         * lib/strndup.c (__strndup): Add libc_hidden_def.
65945
65946 2006-01-23  Simon Josefsson  <jas@extundo.com>
65947
65948         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
65949         Remove the test_*_SOURCES variable: automake infers it by default.
65950         * modules/tls-tests: Likewise.
65951
65952 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65953
65954         Work around porting bugs reported by Dieter in
65955         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
65956         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
65957         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
65958         Include "getopt.h" first, to check interface.
65959         (getenv): Declare only if defined HAVE_DECL_GETENV &&
65960         !HAVE_DECL_GETENV.
65961         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
65962         (__strndup): Revert to K&R-style function dfns, the glibc style.
65963         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
65964         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
65965         Include strnlen.h first, to get prototype properly.
65966         (strnlen): Renamed from __strnlen.
65967         Remove weak alias.
65968
65969 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65970
65971         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
65972
65973 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65974
65975         * config/srclist.txt: Adjust to reflect glibc reorganization.
65976         This affects only comments.
65977
65978 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65979
65980          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
65981          Reported by Bruce Korb <bkorb@gnu.org>.
65982
65983 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65984
65985         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
65986         to pacify gcc -Wswitch-default.
65987
65988 2006-01-22  Bruno Haible  <bruno@clisp.org>
65989
65990         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
65991         temporary buffer for sprintf, take into account the precision also
65992         for 'd', 'i', 'u', 'o', 'x', 'X'.
65993
65994 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65995
65996         * modules/argp-tests: New module
65997         * tests/test-argp.c: New file
65998         * tests/test-argp-2.sh: New file
65999
66000 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
66001
66002         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
66003         (__argp_base_name): Removed
66004         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
66005         typo.
66006         (__argp_base_name): Provide macro definition or extern declaration
66007         depending on the configuration
66008
66009 2006-01-20  Simon Josefsson  <jas@extundo.com>
66010
66011         * modules/inet_ntop (Depends-on): Depend on sys_socket.
66012
66013 2006-01-20  Simon Josefsson  <jas@extundo.com>
66014
66015         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
66016
66017 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66018
66019         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
66020         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
66021         Suggested by Bruno Haible.
66022
66023 2006-01-20  Karl Berry  <karl@gnu.org>
66024
66025         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
66026         until changes propagate, I guess.
66027
66028 2006-01-19  Simon Josefsson  <jas@extundo.com>
66029
66030         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
66031
66032 2006-01-19  Simon Josefsson  <jas@extundo.com>
66033
66034         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
66035
66036 2006-01-19  Simon Josefsson  <jas@extundo.com>
66037
66038         * gnulib-tool: Set check_PROGRAMS.
66039
66040         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
66041         modules/des-tests, modules/gc-arcfour-tests,
66042         modules/gc-arctwo-tests, modules/gc-des-tests,
66043         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
66044         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
66045         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
66046         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
66047         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
66048         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
66049         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
66050         test_*_SOURCES.
66051
66052 2006-01-18  Simon Josefsson  <jas@extundo.com>
66053
66054         * modules/socklen (Depends-on): Depend on sys_socket.
66055
66056 2006-01-18  Simon Josefsson  <jas@extundo.com>
66057
66058         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
66059         modules/des-tests, modules/gc-arcfour-tests,
66060         modules/gc-arctwo-tests, modules/gc-des-tests,
66061         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
66062         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
66063         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
66064         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
66065         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
66066         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
66067         $(EXEEXT) to automake TESTS variable, for mingw32.
66068
66069 2006-01-17  Simon Josefsson  <jas@extundo.com>
66070
66071         * modules/socklen (Include): Need sys/socket.h.
66072
66073 2006-01-17  Bruno Haible  <bruno@clisp.org>
66074
66075         * modules/ssize_t (Include): Add <sys/types.h>.
66076
66077 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
66078
66079         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
66080         it's not portable and it doesn't work with cross-compiles.
66081         Problem reported by Bruno Haible.  Fix missing-$ typo in
66082         'test "gl_cv_ignore_unused_libraries" ...' that prevented
66083         -zignore from being used with Sun's C compiler.
66084
66085 2006-01-12  Simon Josefsson  <jas@extundo.com>
66086
66087         * lib/base64.c: Fix warning, reported by Bruno Haible
66088         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
66089
66090 2006-01-12  Bruno Haible  <bruno@clisp.org>
66091
66092         * modules/ldd: New file.
66093         * build-aux/ldd.sh.in: New file.
66094         * MODULES.html.sh (Support for building libraries and executables): Add
66095         ldd.
66096
66097 2006-01-12  Bruno Haible  <bruno@clisp.org>
66098
66099         * m4/ldd.m4: New file.
66100
66101 2006-01-12  Bruno Haible  <bruno@clisp.org>
66102
66103         * gnulib-tool (func_import, func_create_testdir): Don't go into an
66104         endless loop while replacing $auxdir with build-aux.
66105
66106 2006-01-11  Simon Josefsson  <jas@extundo.com>
66107
66108         * lib/stdint_.h (SIZE_MAX): Add missing (.
66109
66110 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
66111
66112         Sync from coreutils.
66113         * lib/md5.c: Fix commentary typos.
66114         (alignof, UNALIGNED_P): No need for a GCC-specific version.
66115         * lib/md5.h (__attribute__): Remove; unused.
66116         * lib/sha1.c: Fix commentary to match md5 better.
66117         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
66118         so that we don't need to worry about alignment.  All uses changed.
66119         This merges the 2005-10-28 md5 change into sha1.
66120
66121 2006-01-11  Jim Meyering  <jim@meyering.net>
66122
66123         Sync from coreutils.
66124         * lib/md5.c (OP): Fix spacing.
66125
66126 2006-01-11  Bruno Haible  <bruno@clisp.org>
66127
66128         Ensure automatic ordering between gl_LOCK and gl_ARGP.
66129         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
66130         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
66131
66132 2006-01-11  Bruno Haible  <bruno@clisp.org>
66133
66134         Ensure automatic ordering between gl_LOCK and gl_ARGP.
66135         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
66136         the "early" section as well.
66137
66138 2006-01-11  Bruno Haible  <bruno@clisp.org>
66139
66140         Avoid "ar: no archive members specified" error on MacOS X.
66141         * gnulib-tool (func_modules_add_dummy): New function.
66142         (func_import, func_create_testdir): Invoke it.
66143
66144 2006-01-11  Bruno Haible  <bruno@clisp.org>
66145
66146         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
66147         with $auxdir in AC_CONFIG_FILES statements.
66148
66149 2006-01-11  Bruno Haible  <bruno@clisp.org>
66150
66151         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66152         Initialize also noinst_HEADERS to empty.
66153
66154 2006-01-11  Bruno Haible  <bruno@clisp.org>
66155
66156         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
66157         variables.
66158         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
66159         autoreconf.
66160
66161 2006-01-11  Bruno Haible  <bruno@clisp.org>
66162
66163         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
66164         overridable by the user.
66165         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66166
66167 2006-01-10  Simon Josefsson  <jas@extundo.com>
66168
66169         * modules/sys_socket: New file.
66170
66171 2006-01-10  Simon Josefsson  <jas@extundo.com>
66172
66173         * m4/sys_socket_h.m4: New file.
66174
66175 2006-01-10  Simon Josefsson  <jas@extundo.com>
66176
66177         * lib/socket_.h: New file.
66178
66179 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66180
66181         * modules/readutmp (Maintainer): Add myself.
66182
66183 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66184
66185         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
66186         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
66187         People who are still concerned with buggy memcmp implementations
66188         can invoke gl_FUNC_MEMCMP themselves.
66189
66190 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66191
66192         * lib/regex_internal.h (BITSET_WORD_BITS):
66193         Work around a bug in 64-bit PGC (before version 6.1-2), where the
66194         preprocessor mishandles large unsigned values as if they were signed.
66195         Problem reported by Claudio Fontana in
66196         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
66197
66198 2006-01-10  Jim Meyering  <jim@meyering.net>
66199
66200         Avoid the double-free (first in fts_read, second in fts_close) that
66201         would occur when an `active' directory is made inaccessible (e.g.,
66202         via chmod a-x) during a traversal.
66203         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
66204         before returning.  Reproduce this failure by
66205         mkdir -p a/b; cd a; chmod a-x . b
66206         Reported by Stavros Passas.
66207
66208         Sync from coreutils.
66209         * lib/sha1.c: Tweak grammar in a comment.
66210
66211 2006-01-10  Jim Meyering  <jim@meyering.net>
66212
66213         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
66214         Patch by Joerg Sonnenberger.
66215
66216 2006-01-10  Bruno Haible  <bruno@clisp.org>
66217
66218         * modules/readutmp: Depend on module free.
66219         * modules/strtok_r: Depend on module restrict.
66220
66221 2006-01-10  Bruno Haible  <bruno@clisp.org>
66222
66223         * modules/gettext (configure.ac): Add an invocation of
66224         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
66225
66226 2006-01-10  Bruno Haible  <bruno@clisp.org>
66227
66228         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
66229         Reported by Werner Lemberg <wl@gnu.org>.
66230
66231 2006-01-10  Bruno Haible  <bruno@clisp.org>
66232
66233         * lib/localcharset.c: Update from GNU gettext.
66234
66235 2006-01-10  Bruno Haible  <bruno@clisp.org>
66236
66237         * lib/argp.h (__const): Remove macro. Use const instead.
66238         * lib/argp-fmtstream.h (__const): Likewise.
66239         * lib/glob_.h (__const): Remove macro.
66240         * lib/glob-libc.h: Use const instead of __const.
66241
66242 2006-01-10  Bruno Haible  <bruno@clisp.org>
66243
66244         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
66245         variable.
66246         Needed to avoid an automake error regarding the 'gettext' module.
66247
66248 2006-01-09  Simon Josefsson  <jas@extundo.com>
66249
66250         * modules/inet_ntop (Depends-on): Add restrict.
66251
66252 2006-01-09  Simon Josefsson  <jas@extundo.com>
66253
66254         * modules/gc-rijndael-tests (License): Put under LGPL.
66255
66256         * modules/gc-des-tests (License): Likewise.
66257
66258         * modules/gc-arcfour-tests (License): Likewise.
66259
66260         * modules/gc-arctwo-tests (License): Likewise.
66261
66262         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
66263
66264         * modules/gc-hmac-sha1-tests (Files): Likewise.
66265
66266         * modules/gc-hmac-md5-tests (License): Likewise.
66267
66268         * modules/gc-sha1-tests (License): Likewise.
66269
66270         * modules/gc-md5-tests (License): Likewise.
66271
66272         * modules/gc-md4-tests (License): Likewise.
66273
66274         * modules/gc-md2-tests (License): Likewise.
66275
66276         * modules/gc-tests (License): Likewise.
66277
66278         * modules/des-tests (License): Likewise.
66279
66280         * modules/md4-tests (License): Likewise.
66281
66282         * modules/md2-tests (License): Likewise.
66283
66284 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66285
66286         Sync from coreutils:
66287
66288         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
66289         * modules/lib-ignore: New file.
66290         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
66291         chdir-safer.m4, lchmod.m4.
66292         * modules/openat: Add mkdirat.c, openat-priv.h.
66293
66294 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66295
66296         Sync from coreutils.
66297         * m4/lib-ignore.m4: New file.
66298         * m4/lchmod.m4: New file.
66299
66300 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66301
66302         Sync from coreutils.
66303         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
66304         for write access: POSIX says that must fail.
66305         * lib/fts.c (diropen): Likewise.
66306         * lib/save-cwd.c (save_cwd): Likewise.
66307         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
66308         well, for minor improvements on hosts that lack O_DIRECTORY.
66309         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
66310         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
66311         Fall back on chown if open failed with EACCES.
66312
66313         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
66314         Report an error at compile-time if only a 1-second nominal clock
66315         resolution is found.
66316
66317         * lib/lchmod.h: New file.
66318         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
66319         (make_dir_parents): Use lchown rather than chown, and
66320         lchmod rather than chmod.
66321
66322         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
66323         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
66324         "proc" reported by n0dalus.
66325
66326         * lib/mountlist.c: Include <limits.h>.
66327         (dev_from_mount_options)
66328         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
66329         New function.  It no longer assumes "dev=" has the System V meaning
66330         on Linux (since it doesn't).  It also parses "dev=" more carefully.
66331         (read_file_system_list)
66332         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
66333         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
66334         dev= in that case.
66335
66336         * lib/posixtm.h (PDS_PRE_2000): New macro.
66337         * lib/posixtm.c (year): Arg is now syntax_bits rather than
66338         allow_century.  All usages changed.  Reject dates outside the range
66339         1969-1999 if PDS_PRE_2000 is used.
66340
66341 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66342
66343         Sync from coreutils.
66344         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
66345         (Time of day items): Mention the possibility of leap seconds.
66346         Problem reported by Dr. David Alan Gilbert.
66347
66348 2006-01-09  Jim Meyering  <jim@meyering.net>
66349
66350         Sync from coreutils.
66351
66352         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
66353
66354         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
66355
66356         * lib/modechange.c (mode_compile): Reject an invalid mode string
66357         that starts with an octal digit.  From Andreas Gruenbacher.
66358
66359         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
66360         and dup to open_safer and dup_safer, respectively.
66361         (openat_permissive): Fix typo in comment.
66362
66363         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
66364         "gettext.h"; either no longer needed or are guaranteed by openat.h.
66365         (_): Remove; no longer needed.
66366         (openat): Renamed from rpl_openat; no need for rpl_openat
66367         since openat.h renames openat for us.
66368         Replace most of the body with a call to openat_permissive,
66369         to avoid duplicate code.
66370         Port to (probably hypothetical) environments were mode_t is
66371         wider than int.
66372         (openat_permissive): Require mode arg, so that we can check
66373         types better.  Put it just after flags.  Change cwd failure
66374         indicator from pointer-to-bool to pointer-to-errno-value.
66375         All callers changed.
66376         Invoke openat_save_fail and/or openat_restore_fail if
66377         cwd_errno is null, so that openat can call us.
66378         (openat_permissive, fdopendir, fstatat, unlinkat):
66379         Simplify errno handling to avoid some duplicate code,
66380         as it's OK to set errno on success.
66381         * lib/openat.h: Revamp code so that function macros depend on
66382         __OPENAT_PREFIX only, not also on AT_FDCWD.
66383         (openat_ro): Remove.  Caller changed to use openat_permissive.
66384         (openat_permissive): Now a macro, if not a function.
66385         (openat_restore_fail, openat_save_fail): Now always functions,
66386         since mkdirat needs them even if __OPENAT_PREFIX is defined.
66387
66388         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
66389         and openat.c.
66390         * lib/mkdirat.c: Include openat-priv.h.
66391         Remove definitions of macros defined therein.
66392         * lib/openat.c: Likewise.
66393
66394         * lib/mkdirat.c (mkdirat): New file and function.
66395         * lib/openat.h (mkdirat): Declare.
66396
66397         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
66398
66399         * lib/openat.h (openat_permissive): Declare.
66400         (openat_ro): Define.
66401
66402         * lib/openat.c (EXPECTED_ERRNO): New macro.
66403         (openat_permissive): New function -- used in remove.c rewrite.
66404         (all functions): Set errno just before returning, only if there
66405         was an actual failure.
66406         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
66407
66408         Emulate openat-family functions using Linux's procfs, if possible.
66409         Idea and some code based on Ulrich Drepper's glibc changes.
66410
66411         * lib/openat.c: (BUILD_PROC_NAME): New macro.
66412         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
66413         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
66414         before falling back on save_cwd and restore_cwd.
66415         (fdopendir, fstatat, unlinkat): Likewise.
66416
66417         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
66418         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
66419
66420         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
66421         as second argument to va_arg.  Otherwise, some versions of gcc
66422         warn that `if this code is reached, the program will abort'.
66423
66424 2006-01-09  Jim Meyering  <jim@meyering.net>
66425
66426         Sync from coreutils.
66427         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
66428         Require openat-priv.h.
66429
66430 2006-01-09  Bruno Haible  <bruno@clisp.org>
66431
66432         * modules/strnlen (Include): Use strnlen.h.
66433
66434 2006-01-09  Bruno Haible  <bruno@clisp.org>
66435
66436         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
66437
66438 2006-01-09  Bruno Haible  <bruno@clisp.org>
66439
66440         * lib/sysexit_.h (EX_OK): New macro.
66441         Suggested by Martin Lambers <marlam@marlam.de>.
66442
66443 2006-01-09  Bruno Haible  <bruno@clisp.org>
66444
66445         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
66446         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
66447
66448 2006-01-09  Bruno Haible  <bruno@clisp.org>
66449
66450         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
66451         numbers.
66452
66453 2006-01-09  Bruno Haible  <bruno@clisp.org>
66454
66455         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
66456         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
66457         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
66458         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
66459
66460 2006-01-09  Bruno Haible  <bruno@clisp.org>
66461
66462         * build-aux/javacomp.sh.in: New file, moved from lib/.
66463         * modules/javacomp-script (Files): Update.
66464         (configure.ac): Add AC_CONFIG_FILES invocation.
66465         (EXTRA_DIST): Remove variable.
66466
66467         * build-aux/javaexec.sh.in: New file, moved from lib/.
66468         * modules/javaexec (Files): Update.
66469         (configure.ac): Add AC_CONFIG_FILES invocation.
66470         (EXTRA_DIST): Remove javaexec.sh.in.
66471
66472         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
66473         * modules/csharpcomp-script (Files): Update.
66474         (configure.ac): Add AC_CONFIG_FILES invocation.
66475         (EXTRA_DIST): Remove variable.
66476
66477         * build-aux/csharpexec.sh.in: New file, moved from lib/.
66478         * modules/csharpexec (Files): Update.
66479         (configure.ac): Add AC_CONFIG_FILES invocation.
66480         (EXTRA_DIST): Remove csharpexec.sh.in.
66481
66482 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
66483
66484         Sync from coreutils.
66485
66486         Add POSIX ACL support
66487         * lib/acl.h (copy_acl, set_acl): Add declarations.
66488         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
66489         systems other than Linux.
66490         (chmod_or_fchmod): New function: use fchmod when possible,
66491         and chmod otherwise.
66492         (file_has_acl): Add a POSIX ACL implementation, with a
66493         Linux-specific subcase.
66494         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
66495         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
66496         acls are unsupported.
66497         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
66498         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
66499         are unsupported.
66500
66501 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
66502
66503         Sync from coreutils.
66504         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
66505
66506 2006-01-07  Bruno Haible  <bruno@clisp.org>
66507
66508         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
66509         gl_EARLY.
66510
66511 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66512
66513         * lib/strftime.c (tzname): Don't declare if it is already #defined.
66514         Problem reported for Mingw by Mark Junker.
66515
66516 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66517
66518         * README: Gnulib normally doesn't generate a tarball.
66519
66520 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
66521
66522         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
66523         long int, not int, for nanosecond counts, so that people who are
66524         used to POSIX struct timespec won't be surprised.  Reported by Jim
66525         Meyering.
66526
66527 2005-12-28  Bruno Haible  <bruno@clisp.org>
66528
66529         * build-aux/config.rpath: Update from GNU gettext.
66530
66531 2005-12-16  Jim Meyering  <jim@meyering.net>
66532
66533         * modules/fprintftime: New module.
66534         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
66535
66536 2005-12-16  Jim Meyering  <jim@meyering.net>
66537
66538         * m4/fprintftime.m4: New file.
66539
66540 2005-12-16  Jim Meyering  <jim@meyering.net>
66541
66542         * lib/fprintftime.c, lib/fprintftime.h: New files.
66543
66544 2005-12-15  Simon Josefsson  <jas@extundo.com>
66545
66546         * modules/socklen (configure.ac): Fix M4 macro name, to align with
66547         new m4/socklen.m4.
66548
66549 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66550
66551         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
66552         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
66553
66554 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66555
66556         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
66557         * lib/argp-help.c (fill_in_uparams): Check if the constructed
66558         struct uparams is valid. Fall back to the default values if it is
66559         not.
66560
66561 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66562
66563         * modules/argp (Files): Add argp-pin.c
66564         (Depends-on): dirname
66565         (lib_SOURCES): Add argp-pin.c
66566
66567 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66568
66569         * m4/argp.m4:  Check if program_invocation_name and
66570         program_invocation_short_name are declared and define appropriate
66571         macros if they are not.
66572
66573 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66574
66575         * lib/argp-help.c (__argp_base_name): New function
66576         (__argp_short_program_name): Rewrite using __argp_base_name
66577         * lib/argp-namefrob.h: Define program_invocation_name and
66578         program_invocation_short_name if requested
66579         (__argp_base_name): Add prototype
66580         * lib/argp-parse.c (argp_def): Use gettext wrappers
66581         (argp_default_parser): Use __argp_base_name
66582         * lib/argp-pin.c: New file. Defines program_invocation_name and
66583         program_invocation_short_name on systems that lack them.
66584
66585 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66586
66587         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
66588         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66589         porting problem reported by Georg Schwarz in
66590         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66591
66592 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66593
66594         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
66595         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66596         porting problem reported by Georg Schwarz in
66597         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66598
66599 2005-12-05  Bruno Haible  <bruno@clisp.org>
66600
66601         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
66602         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
66603         Reported by Mark Junker <mjscod@gmx.de>.
66604
66605 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
66606
66607         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
66608         Use implementation from Albert Chin, with some
66609         comments/corrections by Stepan Kasal and myself.
66610
66611 2005-12-02  Bruno Haible  <bruno@clisp.org>
66612
66613         * gnulib-tool (func_import): Accept GPLed build tool modules when
66614         --lgpl is given.
66615         * modules/csharpcomp-script: New file.
66616         * modules/csharpcomp: Depend on it.
66617         * modules/javacomp-script: New file.
66618         * modules/javacomp: Depend on it.
66619         Suggested by Simon Josefsson.
66620
66621 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
66622
66623         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
66624         statement, to work around an HP-UX 10.20 compiler bug reported by
66625         Peter O'Gorman.
66626
66627 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66628
66629         * modules/savedir (Depends-on): Add openat.
66630
66631 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66632
66633         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
66634         (uintmax_t) [defined uintmax_t]: Do not declare.
66635         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
66636         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
66637         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
66638         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
66639         sake of portability to weird hosts that C allows (though we don't
66640         know of any practical examples).
66641
66642         * lib/savedir.h (fdsavedir): New decl.
66643         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
66644         contains most of the former guts of savedir.
66645         (savedir): Use savedirstream.
66646         Include "openat.h".
66647
66648 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66649
66650         * modules/obstack (Files): Add m4/ulonglong.m4.
66651         Problem reported by Davide Angelocola.
66652
66653 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
66654
66655         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
66656         coreutils no longer futzes with rounding modes.
66657
66658 2005-11-14  Jim Meyering  <jim@meyering.net>
66659
66660         * lib/mkstemp-safer.c: Include <config.h>, required for possible
66661         replacement of mkstemp.
66662
66663 2005-11-10  Simon Josefsson  <jas@extundo.com>
66664
66665         * lib/readline.c: Remove EOL.
66666
66667 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66668
66669         * modules/gethrxtime (Depends-on): Add gettime.
66670
66671 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66672
66673         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
66674         or gettimeofday; no longer needed.
66675
66676 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66677
66678         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
66679         time business.
66680         (gethrxtime) [! (HAVE_NANOUPTIME
66681         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
66682         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
66683         our own approximation.
66684
66685 2005-11-08  Eric Blake  <ebb9@byu.net>
66686
66687         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66688
66689 2005-11-08  Eric Blake  <ebb9@byu.net>
66690
66691         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66692
66693 2005-11-04  Bruno Haible  <bruno@clisp.org>
66694
66695         * gnulib-tool: Implement --update mode.
66696
66697 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66698
66699         Fix porting problem reported by Theodoros V. Kalamatianos.
66700         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
66701         Don't assume that futimes failing means we must fail.
66702
66703 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66704
66705         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
66706         variables to suggest the intended function of the PATH_MAX check.
66707
66708 2005-10-30  Kean Johnston  <jkj@sco.com>
66709
66710         Trivial changes to support SCO systems.
66711         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
66712         as PATH_MAX.
66713         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
66714         where __ptr is null when no I/O is pending.
66715
66716 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66717
66718         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
66719         leave errno alone.  Problem reported by Dmitry V. Levin.
66720
66721 2005-10-28  Simon Josefsson  <jas@extundo.com>
66722
66723         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
66724         Test more.
66725
66726         * tests/test-gc-md2.c, tests/test-md2.c: New files.
66727
66728         * modules/md2, modules/md2-tests: New files.
66729
66730 2005-10-28  Simon Josefsson  <jas@extundo.com>
66731
66732         * m4/inet_ntop.m4: More tests.
66733
66734         * m4/gc-md2.m4, md2.m4: New file.
66735
66736 2005-10-28  Simon Josefsson  <jas@extundo.com>
66737
66738         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
66739         "restrict" keywords, as per POSIX.  Protect the function
66740         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
66741         Don't use K&R prototypes.  Check the sprintf return values.
66742         Re-define EAFNOSUPPORT if not present.  Indent.
66743
66744         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
66745         suggested by Bruno Haible <bruno@clisp.org>.
66746
66747         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
66748
66749         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
66750
66751         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
66752         libgcrypt).
66753
66754         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
66755
66756         * lib/md2.h, lib/md2.c: New files.
66757
66758 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
66759
66760         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
66761         errno alone.  Problem reported by Frederic Jolliton.
66762
66763 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66764
66765         * modules/verify (License): Change from GPL to LGPL.  This is a
66766         tiny module and there are apparently near-equivalents that are
66767         under the BSD license.
66768
66769 2005-10-24  Simon Josefsson  <jas@extundo.com>
66770
66771         * modules/sha1: Relicense to LGPL.
66772
66773 2005-10-24  Simon Josefsson  <jas@extundo.com>
66774
66775         * lib/md4.h: Shrink buffer size, now that we changed the type.
66776
66777 2005-10-23  Simon Josefsson  <jas@extundo.com>
66778
66779         * gnulib-tool (func_import): Fix --tests-base.
66780
66781 2005-10-22  Simon Josefsson  <jas@extundo.com>
66782
66783         * modules/arcfour (Depends-on): Need stdint.
66784
66785 2005-10-22  Simon Josefsson  <jas@extundo.com>
66786
66787         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
66788         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
66789
66790 2005-10-22  Simon Josefsson  <jas@extundo.com>
66791
66792         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
66793         suggested by Bruno Haible <bruno@clisp.org>.
66794
66795 2005-10-22  Simon Josefsson  <jas@extundo.com>
66796
66797         * lib/crc.h: Include stddef.h, for size_t.
66798
66799 2005-10-22  Simon Josefsson  <jas@extundo.com>
66800
66801         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
66802         arcfour_context struct (simplify test vector testing in GNU
66803         Shishi).
66804
66805 2005-10-21  Simon Josefsson  <jas@extundo.com>
66806
66807         * modules/des, modules/des-tests: New files.
66808
66809         * modules/gc-des, modules/gc-des-tests: New files.
66810
66811         * tests/test-des.c, tests/test-gc-des.c: New file.
66812
66813 2005-10-21  Simon Josefsson  <jas@extundo.com>
66814
66815         * modules/arctwo, modules/arctwo-tests: New files.
66816
66817         * tests/test-arctwo.c: New file.
66818
66819         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
66820
66821         * tests/test-gc-arctwo.c: New file.
66822
66823 2005-10-21  Simon Josefsson  <jas@extundo.com>
66824
66825         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
66826         Bruno Haible <bruno@clisp.org>.
66827
66828         * m4/gc-des.m4: New file.
66829
66830 2005-10-21  Simon Josefsson  <jas@extundo.com>
66831
66832         * m4/arctwo.m4: New file.
66833
66834         * m4/gc-arctwo.m4: New file.
66835
66836 2005-10-21  Simon Josefsson  <jas@extundo.com>
66837
66838         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
66839         block.
66840
66841 2005-10-21  Simon Josefsson  <jas@extundo.com>
66842
66843         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
66844         <bruno@clisp.org>.
66845
66846         * lib/hmac-sha1.c (hmac_sha1): Likewise.
66847
66848         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
66849         Bruno Haible <bruno@clisp.org>.
66850
66851         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
66852         <bruno@clisp.org>.
66853
66854 2005-10-21  Simon Josefsson  <jas@extundo.com>
66855
66856         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
66857
66858 2005-10-21  Simon Josefsson  <jas@extundo.com>
66859
66860         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
66861
66862 2005-10-21  Simon Josefsson  <jas@extundo.com>
66863
66864         * lib/des.h, lib/des.c: New files.
66865
66866         * lib/gc-gnulib.c: Support DES.c
66867
66868 2005-10-21  Simon Josefsson  <jas@extundo.com>
66869
66870         * lib/arctwo.h, lib/arctwo.c: New files.
66871
66872         * lib/gc-gnulib.c: Support ARCTWO.
66873
66874 2005-10-21  Simon Josefsson  <jas@extundo.com>
66875
66876         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
66877         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66878
66879 2005-10-21  Simon Josefsson  <jas@extundo.com>
66880
66881         * gnulib-tool (func_import, func_create_testdir): Define automake
66882         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
66883         Makefile.am snippet),
66884         suggested by Bruno Haible <bruno@clisp.org>.
66885
66886         * modules/gc (Makefile.am): Use it.
66887
66888 2005-10-21  Bruno Haible  <bruno@clisp.org>
66889
66890         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
66891         patch.
66892
66893 2005-10-19  Simon Josefsson  <jas@extundo.com>
66894
66895         * tests/test-gc-rijndael.c: New file.
66896
66897         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
66898
66899 2005-10-19  Simon Josefsson  <jas@extundo.com>
66900
66901         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
66902         interface too.
66903
66904 2005-10-19  Simon Josefsson  <jas@extundo.com>
66905
66906         * tests/test-gc-arcfour.c: New file.
66907
66908         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
66909
66910 2005-10-19  Simon Josefsson  <jas@extundo.com>
66911
66912         * modules/gc-md4, modules/gc-md4-tests: New file.
66913
66914         * tests/test-gc-md4.c: New file.
66915
66916 2005-10-19  Simon Josefsson  <jas@extundo.com>
66917
66918         * m4/gc-md4.m4: New file.
66919
66920 2005-10-19  Simon Josefsson  <jas@extundo.com>
66921
66922         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
66923         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
66924         <kasal@ucw.cz>.
66925
66926 2005-10-19  Simon Josefsson  <jas@extundo.com>
66927
66928         * m4/gc-arcfour.m4: New file.
66929
66930         * m4/gc-rijndael.m4: New file.
66931
66932 2005-10-19  Simon Josefsson  <jas@extundo.com>
66933
66934         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
66935
66936 2005-10-19  Simon Josefsson  <jas@extundo.com>
66937
66938         * lib/gc-gnulib.c: Support ARCFOUR.
66939
66940 2005-10-19  Simon Josefsson  <jas@extundo.com>
66941
66942         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
66943         support.
66944
66945         * lib/gc.h: Add ECB enum type.
66946
66947         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
66948
66949 2005-10-18  Simon Josefsson  <jas@extundo.com>
66950
66951         * tests/test-md5.c: New file.
66952
66953         * modules/md5-tests: New file.
66954
66955 2005-10-18  Simon Josefsson  <jas@extundo.com>
66956
66957         * tests/test-md4.c: New file.
66958
66959         * modules/md4, modules/md4-tests: New files.
66960
66961 2005-10-18  Simon Josefsson  <jas@extundo.com>
66962
66963         * m4/md4.m4: New file.
66964
66965 2005-10-18  Simon Josefsson  <jas@extundo.com>
66966
66967         * lib/md4.h, lib/md4.c: New files, based on md5.?.
66968
66969 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
66970
66971         * gnulib-tool (func_create_testdir): Omit the second check whether
66972         BUILT_SOURCES in nonempty.
66973
66974 2005-10-17  Simon Josefsson  <jas@extundo.com>
66975
66976         * tests/test-rijndael.c: New file.
66977
66978 2005-10-17  Simon Josefsson  <jas@extundo.com>
66979
66980         * modules/sha1: Depend on stdint instead of md5.
66981
66982         * modules/md5: Depend on stdint, remove uint32_t.
66983
66984 2005-10-17  Simon Josefsson  <jas@extundo.com>
66985
66986         * modules/gc-sha1-tests: New file.
66987
66988         * tests/test-gc-sha1.c: New file.
66989
66990 2005-10-17  Simon Josefsson  <jas@extundo.com>
66991
66992         * m4/md5.m4: Remove call to uint32_t.m4.
66993
66994 2005-10-17  Simon Josefsson  <jas@extundo.com>
66995
66996         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
66997
66998         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
66999         md5.h.
67000
67001         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
67002
67003         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
67004
67005 2005-10-17  Simon Josefsson  <jas@extundo.com>
67006
67007         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
67008
67009 2005-10-17  Simon Josefsson  <jas@extundo.com>
67010
67011         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
67012
67013 2005-10-17  Simon Josefsson  <jas@extundo.com>
67014
67015         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
67016
67017         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
67018
67019 2005-10-17  Bruno Haible  <bruno@clisp.org>
67020
67021         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
67022         that it can also be used in a test.
67023
67024 2005-10-16  Bruno Haible  <bruno@clisp.org>
67025
67026         * gnulib-tool (func_emit_tests_Makefile_am): Also define
67027         TESTS_ENVIRONMENT, so that individual tests can augment it.
67028
67029         * gnulib-tool (func_create_testdir): Use an intermediate target for
67030         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
67031         macros, like $(ALLOCA_H), which cannot be passed through the command
67032         line.
67033
67034 2005-10-15  Simon Josefsson  <jas@extundo.com>
67035
67036         * modules/rijndael-tests: New file.
67037
67038         * modules/rijndael: New file.
67039
67040 2005-10-15  Simon Josefsson  <jas@extundo.com>
67041
67042         * m4/rijndael.m4: New file.
67043
67044 2005-10-15  Simon Josefsson  <jas@extundo.com>
67045
67046         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
67047
67048         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
67049
67050 2005-10-14  Simon Josefsson  <jas@extundo.com>
67051
67052         * tests/test-arcfour.c: New file.
67053
67054         * modules/arcfour, modules/arcfour-tests: New files.
67055
67056 2005-10-14  Simon Josefsson  <jas@extundo.com>
67057
67058         * m4/arcfour.m4: New file.
67059
67060 2005-10-14  Simon Josefsson  <jas@extundo.com>
67061
67062         * lib/arcfour.h, lib/arcfour.c: New files.
67063
67064 2005-10-14  Roland McGrath  <roland@redhat.com>
67065
67066         Import from libc.  [BZ #1331]
67067         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
67068         macro argument.
67069         Reported by Matej Vela <vela@debian.org>.
67070
67071 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67072
67073         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
67074         include <wchar.h>; no longer needed.
67075
67076 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67077
67078         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
67079
67080 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
67081         and  Ulrich Drepper  <drepper@redhat.com>
67082
67083         Import from libc.
67084         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
67085         instead of inline stream orientation test and two separate
67086         function calls.  Pay no attention to USE_IN_LIBIO.
67087
67088 2005-10-13  Simon Josefsson  <jas@extundo.com>
67089
67090         * modules/gc-hmac-md5-tests: New file.
67091
67092         * tests/test-gc-hmac-sha1.c: New file.
67093
67094         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
67095
67096         * modules/gc-hmac-md5-tests: New file.
67097
67098         * tests/test-gc-md5.c: New file.
67099
67100         * modules/gc-md5-tests: New file.
67101
67102 2005-10-13  Simon Josefsson  <jas@extundo.com>
67103
67104         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
67105         Move memory allocation outside of loop.
67106
67107 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
67108
67109         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
67110         intermediate directory is in a read-only file system.  Problem
67111         reported by Eric Blake.
67112
67113 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
67114
67115         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
67116
67117 2005-10-12  Simon Josefsson  <jas@extundo.com>
67118
67119         * tests/test-hmac-sha1.c: New file.
67120
67121         * modules/hmac-sha1-tests: New file.
67122
67123         * modules/hmac-sha1: New file.
67124
67125 2005-10-12  Simon Josefsson  <jas@extundo.com>
67126
67127         * modules/gc-sha1: New file.
67128
67129 2005-10-12  Simon Josefsson  <jas@extundo.com>
67130
67131         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
67132
67133         * tests/test-gc-pbkdf2-sha1.c: New file.
67134
67135 2005-10-12  Simon Josefsson  <jas@extundo.com>
67136
67137         * modules/gc-md5, modules/gc-hmac-md5: New files.
67138
67139         * modules/gc (Files): Remove md5, memxor and hmac files.
67140
67141 2005-10-12  Simon Josefsson  <jas@extundo.com>
67142
67143         * m4/gc-pbkdf2-sha1.m4: New file.
67144
67145         * m4/gc-hmac-sha1.m4: New file.
67146
67147         * m4/gc-sha1: New file.
67148
67149         * m4/hmac-sha1.m4: New file.
67150
67151 2005-10-12  Simon Josefsson  <jas@extundo.com>
67152
67153         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
67154
67155         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
67156
67157 2005-10-12  Simon Josefsson  <jas@extundo.com>
67158
67159         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
67160         suggested by Bruno Haible <bruno@clisp.org>.
67161
67162 2005-10-12  Simon Josefsson  <jas@extundo.com>
67163
67164         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
67165
67166 2005-10-12  Simon Josefsson  <jas@extundo.com>
67167
67168         * lib/gc-pbkdf2-sha1.c: New file.
67169
67170         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
67171
67172 2005-10-12  Simon Josefsson  <jas@extundo.com>
67173
67174         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
67175
67176         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
67177
67178 2005-10-12  Simon Josefsson  <jas@extundo.com>
67179
67180         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
67181         GC_USE_HMAC_MD5, respectively.
67182
67183         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
67184         (gc_md5): Fix typo.
67185
67186         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
67187
67188         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
67189
67190         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
67191
67192 2005-10-12  Bruno Haible  <bruno@clisp.org>
67193
67194         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
67195         Reported by Stepan Kasal <kasal@ucw.cz>.
67196
67197 2005-10-11  Simon Josefsson  <jas@extundo.com>
67198
67199         * tests/test-crc.c: New file.
67200
67201         * modules/crc, modules/crc-tests: New files.
67202
67203 2005-10-11  Simon Josefsson  <jas@extundo.com>
67204
67205         * m4/crc.m4: New file.
67206
67207 2005-10-11  Simon Josefsson  <jas@extundo.com>
67208
67209         * lib/gc.h: Add gc_hash and gc_hash_buffer.
67210
67211         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
67212
67213         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
67214
67215 2005-10-11  Simon Josefsson  <jas@extundo.com>
67216
67217         * lib/crc.h, lib/crc.c: New files.
67218
67219         * lib/gc.h (gc_hash_buffer): Add doc.
67220
67221 2005-10-11  Bruno Haible  <bruno@clisp.org>
67222
67223         * modules/c-strcasestr: New file.
67224         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
67225
67226 2005-10-11  Bruno Haible  <bruno@clisp.org>
67227
67228         * modules/c-strcase: New file.
67229         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
67230
67231 2005-10-11  Bruno Haible  <bruno@clisp.org>
67232
67233         * lib/strcasecmp.c: Include limits.h.
67234         (strcasecmp): Avoid integer overflow on exotic platforms.
67235         * lib/strncasecmp.c: Include limits.h.
67236         (strncasecmp): Avoid integer overflow on exotic platforms.
67237         Reported by Paul Eggert.
67238
67239 2005-10-11  Bruno Haible  <bruno@clisp.org>
67240
67241         * lib/c-strcasestr.h: New file, from GNU gettext.
67242         * lib/c-strcasestr.c: New file, from GNU gettext.
67243
67244 2005-10-11  Bruno Haible  <bruno@clisp.org>
67245
67246         * lib/c-strcase.h: New file, from GNU gettext.
67247         * lib/c-strcasecmp.c: New file, from GNU gettext.
67248         * lib/c-strncasecmp.c: New file, from GNU gettext.
67249
67250 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67251
67252         * modules/mempcpy (License): GPL -> LGPL.
67253         * modules/strchrnul (License): Likewise.
67254         * modules/sysexits (License): Likewise.
67255
67256 2005-10-08  Simon Josefsson  <jas@extundo.com>
67257
67258         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
67259
67260 2005-10-07  Simon Josefsson  <jas@extundo.com>
67261
67262         * m4/memxor.m4: Remove gl_C_RESTRICT call.
67263
67264 2005-10-06  Simon Josefsson  <jas@extundo.com>
67265
67266         * tests/test-hmac-md5.c: New file.
67267
67268         * modules/hmac-md5-tests: New file.
67269
67270         * modules/hmac-md5: New file.
67271
67272 2005-10-06  Simon Josefsson  <jas@extundo.com>
67273
67274         * m4/hmac-md5.m4: New file.
67275
67276         * m4/memxor.m4: Require gl_C_RESTRICT.
67277
67278 2005-10-06  Simon Josefsson  <jas@extundo.com>
67279
67280         * lib/memxor.c (memxor): Avoid casts and warnings.
67281
67282 2005-10-06  Simon Josefsson  <jas@extundo.com>
67283
67284         * lib/hmac-md5.c: New file.
67285
67286         * lib/hmac.h: New file.
67287
67288 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67289
67290         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
67291         promotes to int, not unsigned int, to catch the AIX 5.3
67292         compiler bug.
67293
67294 2005-10-05  Simon Josefsson  <jas@extundo.com>
67295
67296         * modules/memxor: New file.
67297
67298         * modules/iconv (Files): Move config.rpath to havelib, it is used
67299         there.
67300
67301         * modules/havelib (Files): Add config.rpath.
67302
67303 2005-10-05  Simon Josefsson  <jas@extundo.com>
67304
67305         * m4/memxor.m4: New file.
67306
67307 2005-10-05  Simon Josefsson  <jas@extundo.com>
67308
67309         * lib/memxor.c (memxor): Fix compiler error.
67310
67311         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
67312         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
67313
67314         * lib/memxor.h, lib/memxor.c: New files.
67315
67316         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
67317         we assume all systems have it, suggested by Jim Meyering
67318         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
67319         any systems lack sys/socket.h; mingw32 is known to lack it, but we
67320         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
67321         same reasons.
67322
67323 2005-10-05  Simon Josefsson  <jas@extundo.com>
67324
67325         * config/srclist.txt: Add glibc bug 1423 for md5.h.
67326
67327 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67328
67329         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
67330         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
67331         needed, since the source code now assumes these .h files.
67332
67333 2005-10-05  Derek Price  <derek@ximbiot.com>
67334
67335         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
67336
67337 2005-10-05  Bruno Haible  <bruno@clisp.org>
67338
67339         * modules/stdint (License): Change to LGPL.
67340
67341 2005-10-04  Simon Josefsson  <jas@extundo.com>
67342
67343         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
67344         D. Baushke" <mdb@gnu.org>.
67345
67346 2005-10-04  Bruno Haible  <bruno@clisp.org>
67347
67348         * lib/verify.h (verify_true): Provide alternative definition for C++.
67349
67350 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
67351
67352         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
67353         (SSIZE_MAX): New macro, if not already defined.
67354         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
67355         than 2 GiB.
67356
67357 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67358
67359         Sync from coreutils.
67360         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
67361         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
67362         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
67363         ULLONG_MAX doesn't work with 2.7.2.1.
67364
67365 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67366
67367         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
67368         From Ben Pfaff.
67369
67370         * modules/exclude (Depends-on): Depend on verify.
67371         * modules/strtoimax (Depends-on): Likewise.
67372         * modules/utimecmp (Depends-on): Likewise.
67373
67374 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67375
67376         * lib/exclude.c: Include verify.h.
67377         (verify): Remove.  All callers changed to use verify.h's version.
67378         * lib/strtoimax.c: Likewise.
67379         * lib/utimecmp.c: Likewis.e
67380
67381         Sync from coreutils.
67382         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
67383         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
67384         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
67385         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
67386         bother returning ENOSYS if settimeofday or stime fails; just let
67387         them return whatever errno they want to return.
67388         * lib/utimens.c: Include unistd.h, for dup2.
67389         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
67390         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
67391
67392 2005-10-02  Jim Meyering  <jim@meyering.net>
67393
67394         Sync from coreutils.
67395         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
67396         from glibc-2.2.5 that fails for read-only files.
67397
67398 2005-10-02  Jim Meyering  <jim@meyering.net>
67399
67400         Sync from coreutils.
67401         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
67402         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
67403         `#if HAVE_CONFIG_H'.
67404         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
67405         Remove AT_FDCWD test.
67406         Do not consume the fd unless successful.
67407         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
67408         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
67409         block, so that we don't even try to compile it if settimeofday is
67410         available.  This works around a compilation failure on OSF1 V5.1,
67411         due to stime requiring a `long int*' while tv_sec is `int'.
67412
67413 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
67414
67415         Sync from coreutils.
67416         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
67417         against `yes', rather than just testing for nonempty.
67418
67419 2005-10-01  Simon Josefsson  <jas@extundo.com>
67420
67421         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
67422         and Darwin.
67423
67424         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
67425         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
67426         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
67427         freeaddrinfo and gai_strerror are declared by the POSIX headers.
67428         Check if struct addrinfo is declared.
67429
67430 2005-10-01  Simon Josefsson  <jas@extundo.com>
67431
67432         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
67433         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
67434         AI_* and EAI_* definitions.  Protect function declarations.
67435
67436 2005-10-01  Jim Meyering  <jim@meyering.net>
67437
67438         Sync from coreutils.
67439
67440         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
67441         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
67442         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
67443         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
67444         in the inet and nsl libraries.  Required on Solaris 5.7.
67445
67446 2005-10-01  Jim Meyering  <jim@meyering.net>
67447
67448         Sync from coreutils.
67449         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
67450         in the inet and nsl libraries.  Required on Solaris 5.7.
67451
67452 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
67453
67454         * lib/getdelim.c (getdelim): Remove unused variables.
67455
67456 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67457
67458         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
67459         so that the code works even with ancient cpp.  Portability problem
67460         with GCC 2.7.2.1 reported by Thomas M.Ott.
67461
67462 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67463
67464         * modules/regex (Depends-on): Add strcase.
67465
67466         * modules/gethostname (Licence): Change from GPL to LGPL, since
67467         gethostname.c is a trivial implementation of a standard library
67468         function.
67469         * modules/poll (License): Change from GPL to LGPL, since it's
67470         derived from LGPL code.
67471
67472 2005-09-27  Jim Meyering  <jim@meyering.net>
67473
67474         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
67475         HAVE_CONFIG_H.
67476
67477         * lib/intprops.h (signed_type_or_expr__): Define.
67478         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
67479         for unsigned types.
67480
67481 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67482
67483         * lib/verify.h (verify_expr): Remove, replacing with:
67484         (verify_true): New macro that returns true instead of void.
67485         (verify_type__): Remove.
67486         (verify): Use verify_true rather than verify_type__.
67487
67488 2005-09-26  Bruno Haible  <bruno@clisp.org>
67489
67490         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
67491         is necessary.
67492         (lib_SOURCES): Remove mbchar.c.
67493         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
67494         (Files): Add m4/mbrtowc.m4.
67495         * modules/mbiter: Likewise.
67496         * modules/mbuiter: Likewise.
67497
67498 2005-09-26  Bruno Haible  <bruno@clisp.org>
67499
67500         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
67501         compile mbchar.c if they are not both present.
67502         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
67503         * m4/mbiter.m4 (gl_MBITER): Likewise.
67504         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
67505         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
67506         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
67507
67508 2005-09-25  Jim Meyering  <jim@meyering.net>
67509
67510         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
67511         also uses socklen_t.
67512
67513 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
67514
67515         * lib/utimens.c (ENOSYS): Define if not already defined.
67516         (futimens): Support having a null PATH if the file descriptor
67517         is nonnegative.
67518
67519         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
67520         Remove.
67521         (__attribute): Define to empty unless GCC 3.1 or later.
67522         This works around a core dump on OpenBSD 3.4, which has GCC
67523         2.95.3, which dumps core when given __attribute__(()).  It also
67524         simplifies other tests, since we really don't want to bother with
67525         worrying about which ancient version of GCC supported what.
67526         Original problem reported by Yoann Vandoorselaere, with part of
67527         the fix suggested by Derek Price.
67528
67529 2005-09-24  Jim Meyering  <jim@meyering.net>
67530
67531         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
67532         so we can once again use a positive bitfield width of 1 -- now we
67533         don't have to explain why we were using a bitfield width of 2.
67534
67535 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67536
67537         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
67538         and similarly for the other external symbols.  Problem reported
67539         by James Gallager.
67540
67541         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
67542         bug reported by Jim Meyering.
67543
67544         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
67545         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
67546         not needed, since socklen is a prerequisite module.
67547
67548 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67549
67550         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
67551         Problem reported by Eric Blake.
67552         (getaddrinfo): Initialize se so that it's not garbage.
67553         Redo internal storage allocation so that it doesn't make unportable
67554         assumptions about alignment.
67555         Fix a memory leak.
67556
67557         * lib/utimens.c (futimens): Use futimesat if available.
67558         Prefer it to futimes since it doesn't have the futimes bug.
67559
67560         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
67561         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
67562         Instead, declare a function that returns a pointer to an array,
67563         and use verify_type__ to declare the size of the array.
67564         Problem and germ of a solution reported by Bruno Haible.
67565         (verify_type__): Use 2, not 1, for bitfield size, to avoid
67566         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
67567
67568 2005-09-23  Jim Meyering  <jim@meyering.net>
67569
67570         Sync from coreutils.
67571         Correct build failure (socklen_t not defined) on at least
67572         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
67573         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
67574
67575 2005-09-23  Jim Meyering  <jim@meyering.net>
67576
67577         * modules/getaddrinfo (Depends-on): Add socklen.
67578
67579 2005-09-23  Bruno Haible  <bruno@clisp.org>
67580
67581         * tests/test-verify.c: New file.
67582
67583 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67584
67585         Sync from coreutils.
67586
67587         * modules/argmatch (Depends-on): Add verify.
67588         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
67589         unistd-safer.
67590         * modules/save-cwd (Depends-on): Likewise.
67591
67592         * modules/openat (Files): Add lib/openat-die.c.
67593         (Depends-on): Remove error, exitfail.
67594         Add dirname.
67595
67596         * modules/verify: New file.
67597         * MODULES.html.sh (Diagnostics <assert.h>): New section,
67598         with "verify" module.
67599
67600 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67601
67602         Sync from coreutils.
67603
67604         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
67605         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
67606         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
67607         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
67608         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
67609         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
67610         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
67611         Don't bother checking for string.h, stdlib.h, unistd.h.
67612         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
67613         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
67614         module's job.
67615         * m4/jm-macros.m4 (gl_MACROS): Likewise.
67616         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
67617
67618         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
67619         (gl_GETDATE): Use it.
67620
67621         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
67622
67623 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67624
67625         Sync from coreutils.
67626
67627         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
67628         stat-time.h.
67629         * lib/argmatch.h: Include verify.h
67630         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
67631         (ARGMATCH_ASSERT): Remove; unused.
67632         * lib/canonicalize.c: Assume STDC_HEADERS.
67633         * lib/exclude.c: Include "strcase.h".
67634         * lib/regex_internal.h [!defined _LIBC]: Likewise.
67635         * lib/getusershell.c: Include stdio--.h rather than stdio.h
67636         and stdio-safer.h.
67637         (getusershell): Call fopen, not fopen_safer.
67638         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
67639         Do not include unistd-safer.h.
67640         (save_cwd): Don't call fd_safer; no longer needed
67641         now that we include fcntl--.h.
67642
67643         * lib/getdate.y (relative_time): New type.
67644         (RELATIVE_TIME_0): New constant.
67645         (parser_control): Use relative_time instead of doing it ourselves.
67646         (%union): Add new relative_time rel member.
67647         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
67648         Now typeless.
67649         (relunit, relunit_snumber): Now of type rel.
67650         (zone, rel, relunit, get_date): Adjust to above changes.
67651
67652         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
67653         Do not include unistd-safer.h.
67654         (getloadavg): Don't call fd_safer; no longer needed
67655         now that we include fcntl--.h.
67656
67657         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
67658         (make_dir_parents): Treat ENOSYS like EEXIST.
67659
67660         Improve quality of diagnostics on restore_cwd failure.
67661         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
67662         (make_dir_parents): Last arg is now int * (for errno), not bool *.
67663         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
67664         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
67665         each time through the loop.  Do not diagnose restore_cwd failure;
67666         that is the caller's job (and perhaps the caller does not care).
67667
67668         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
67669         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
67670         If the file already exists but is not a directory, don't bother
67671         to try to make its parents.
67672         Close potential file descriptor leak if we can't chdir("/") (!).
67673         Don't always return true if chdir($PWD) fails; return true only
67674         if the requested action was done successfully (except for the
67675         chdir($PWD)).
67676         Don't log final directory unless we actually made it.
67677         Refactor to avoid duplicate code to fix up permissions.
67678         Don't attempt to fix up parent permissions if chdir($PWD) fails.
67679
67680         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
67681         to make it a bit faster and (I hope) clearer.
67682         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
67683         Fix bug in formats like %2N.
67684
67685         * lib/verify.h: New file.
67686
67687 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67688
67689         Sync from coreutils.
67690         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
67691
67692 2005-09-22  Jim Meyering  <jim@meyering.net>
67693
67694         Sync from coreutils.
67695
67696         * m4/lstat.m4 (gl_FUNC_LSTAT):
67697         Use AC_LIBSOURCES to require lstat.c and lstat.h.
67698         Remove obsolete comment.
67699         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
67700         * m4/xstrtod.m4: Likewise.
67701
67702         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
67703
67704 2005-09-22  Jim Meyering  <jim@meyering.net>
67705
67706         Sync from coreutils.
67707
67708         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
67709
67710         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
67711         the .tm_year member, since otherwise gcc-4.0 would now warn about
67712         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
67713
67714         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
67715         order to avoid an unsuppressible warning from gcc on 64-bit systems.
67716
67717         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
67718         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
67719         when run in a time zone for which daylight savings time is in effect
67720         for the starting date.
67721
67722         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
67723         stop us from restricting permissions of just-created absolute-named
67724         directories.
67725         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
67726         to restore initial working directory.
67727         * lib/mkdir-p.c (make_dir_parents): New parameter:
67728         different_working_dir, to tell caller if/when we change the working
67729         directory and are unable to return to the initial one.
67730         * lib/mkdir-p.h (make_dir_parents): Update prototype.
67731         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
67732         `return false'.  This fixes a bug introduced on 2004-07-30.
67733
67734         * lib/openat.c (fdopendir): Be sure to close the supplied
67735         file descriptor before returning.  This makes our replacement
67736         implementation a little closer to Solaris's, where fdopendir
67737         ties the file descriptor to the returned DIR* pointer.
67738         * lib/openat.c (unlinkat): New function.
67739         * lib/openat.h (unlinkat): Add prototype.
67740         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
67741         (openat_restore_fail): Rename from openat_restore_die.
67742         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
67743
67744         Provide an alternative to exiting immediately upon save_cwd or
67745         restore_cwd failure.  Now, an application can arrange e.g.,
67746         to perform a longjump in that case.
67747         * lib/openat.c: Include dirname.h.
67748         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
67749         (rpl_openat, fdopendir, fstatat): Call openat_save_die
67750         and openat_restore_die rather than calling error directly.
67751         Don't include "error.h" or "exitfail.h"; they're no longer needed.
67752
67753         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
67754         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
67755         define.
67756
67757         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
67758         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
67759                             int utc, int nanoseconds);
67760         Background:
67761         date should not have to allocate a megabyte of virtual memory to
67762         handle a format argument like +%1048575T.  When implemented with
67763         strftime, it must allocate such a buffer, use strftime to fill it
67764         in, print it, then free it.
67765         With fprintftime, it simply prints everything and exits.
67766         With no need for memory allocation, that's one fewer way to fail.
67767         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
67768         optional field width, not before, so we accept %9:z, not %:9z.
67769         (my_strftime): Be sure to use L_('x') for literals.
67770
67771         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
67772         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
67773         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
67774         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
67775         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
67776         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
67777         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
67778         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
67779         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
67780         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
67781         * lib/xgethostname.c, lib/xreadlink.c:
67782         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
67783
67784         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
67785         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
67786         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
67787         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67788         and don't include <sys/file.h>).
67789
67790 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
67791
67792         Sync from coreutils.
67793
67794         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
67795         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
67796         [!LDAV_DONE]: Avoid unused variable warning.
67797
67798 2005-09-21  Bruno Haible  <bruno@clisp.org>
67799
67800         * lib/unicodeio.h (unicode_to_mb): New declaration.
67801
67802 2005-09-20  Derek Price  <derek@ximbiot.com>
67803
67804         * lib/getaddrinfo.c: Don't include <netdb.h> included from
67805         getaddrinfo.h.
67806
67807 2005-09-20  Bruno Haible  <bruno@clisp.org>
67808
67809         * gnulib-tool: Remove trailing slashes from the values specified for
67810         --source-base, --m4-base, --tests-base, --aux-dir.
67811         Suggested by Simon Josefsson <jas@extundo.com>.
67812
67813 2005-09-20  Bruno Haible  <bruno@clisp.org>
67814
67815         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
67816         func_modules_to_filelist, func_import, func_create_testdir): Make all
67817         sorting results locale-independent, so that gnulib-cache.m4 doesn't
67818         change when gnulib-tool is invoked in a different locale.
67819
67820 2005-09-19  Simon Josefsson  <jas@extundo.com>
67821
67822         * m4/socklen.m4: Fix typo.
67823
67824 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67825
67826         Use a consistent style for including <config.h>.
67827         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
67828         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
67829         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
67830         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
67831         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
67832         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
67833         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
67834         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
67835         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
67836         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
67837         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
67838         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
67839         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
67840         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
67841         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
67842         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
67843         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
67844         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
67845         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
67846         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
67847         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
67848         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
67849         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
67850         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
67851         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
67852         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
67853         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
67854         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
67855         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
67856         lib/xstrtoumax.c, lib/yesno.c:
67857         Standardize inclusion of config.h.
67858         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
67859         lib/inttostr.h:  Removed inclusion of config.h from header files.
67860         * lib/inttostr.c:  Adjusted in-tree users.
67861         * lib/timespec.h: Remove superfluous warning to include config.h.
67862         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
67863         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
67864         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
67865         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
67866         config.h with HAVE_CONFIG_H.
67867
67868 2005-09-19  Jim Meyering  <jim@meyering.net>
67869
67870         * modules/pathmax (License): Change to LGPL.
67871
67872 2005-09-19  Derek Price  <derek@ximbiot.com>
67873
67874         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
67875
67876 2005-09-19  Bruno Haible  <bruno@clisp.org>
67877
67878         * gnulib-tool (import): Provide default for --tests-base.
67879
67880 2005-09-19  Bruno Haible  <bruno@clisp.org>
67881
67882         * doc/quote.texi: New file, extracted from gnulib.texi.
67883         * doc/ctime.texi: New file, extracted from gnulib.texi.
67884         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
67885         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
67886         * doc/gnulib.texi: Include them.
67887
67888 2005-09-18  Bruno Haible  <bruno@clisp.org>
67889
67890         Portability fix.
67891         * gnulib-tool (func_readlink): New function.
67892         (func_ln_if_changed): Use it.
67893
67894 2005-09-18  Bruno Haible  <bruno@clisp.org>
67895
67896         * gnulib-tool: Support --with-tests also with --import.
67897         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
67898         (func_import): Use variables $testsbase and $inctests. Emit a
67899         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
67900         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
67901         SUBDIRS += $testsdir.
67902         (func_create_testdir): Update.
67903
67904 2005-09-18  Bruno Haible  <bruno@clisp.org>
67905
67906         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
67907         instead of $dry_run.
67908         (func_cp_if_changed, func_mv_if_changed): Remove functions.
67909         (func_ln_if_changed): Don't handle dry-run here.
67910         (func_import): In dry-run mode, detect more precisely which actions
67911         would be performed, and don't use "...ing" verbs.
67912
67913 2005-09-18  Bruno Haible  <bruno@clisp.org>
67914
67915         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
67916         (func_import): Use join on two temporary files instead of three nested
67917         loops, in order to determine which files are new or old.
67918
67919 2005-09-18  Bruno Haible  <bruno@clisp.org>
67920
67921         * gnulib-tool (func_import): Comment out code that spits out the
67922         new files with --dry-run.
67923
67924 2005-09-18  Bruno Haible  <bruno@clisp.org>
67925
67926         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
67927
67928 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67929
67930         * lib/stat-time.h: New file.
67931         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
67932         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
67933         in a different way.
67934         (timespec_cmp): New function.
67935         * lib/utimecmp.c: Include stat-time.h.
67936         (SYSCALL_RESOLUTION): Depend on whether various struct stat
67937         members exist, not on the obsolescent ST_MTIM_NSEC.
67938         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
67939
67940 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67941
67942         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
67943
67944 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67945
67946         * MODULES.html.sh (File system functions): Add stat-time.
67947         * modules/stat-time: New file.
67948         * modules/timespec (Files): Remove m4/st_mtim.m4; this
67949         is now done in a different way, by the stat-time module.
67950         * modules/utimecmp (Depends-on): Add stat-time.
67951
67952 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67953
67954         * m4/st_mtim.m4: Remove.  Superseded by...
67955         * m4/stat-time.m4: New file.
67956         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
67957         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
67958
67959 2005-09-15  Derek Price  <derek@ximbiot.com>
67960
67961         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
67962
67963 2005-09-15  Derek Price  <derek@ximbiot.com>
67964
67965         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
67966         * lib/regex_internal.c: Ditto, using this...
67967         (__GNUC_PREREQ): ...new macro.
67968         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
67969         using...
67970         (__GNUC_PREREQ): ...this new macro.
67971
67972         * lib/strstr.h: Include string.h. Define strstr as a macro here.
67973
67974 2005-09-15  Derek Price  <derek@ximbiot.com>
67975             Paul Eggert  <eggert@cs.ucla.edu>
67976
67977         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
67978         changes, consolidating in...
67979         * lib/regex_internal.h: ...this file.
67980
67981 2005-09-13  Jim Meyering  <jim@meyering.net>
67982
67983         * lib/canon-host.c: Filter through gnu indent and reword comments
67984         slightly.
67985         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
67986
67987 2005-09-13  Derek Price  <derek@ximbiot.com>
67988
67989         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
67990         failure.
67991         Reported by Jim Meyering  <jim@meyering.net>.
67992
67993 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67994
67995         * lib/base64.c: Typo.
67996         (base64_encode): Put b64str in initialized data section.
67997
67998 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
67999
68000         Merge glibc and coreutils changes into gnulib, plus a few
68001         extra fixes.
68002         * lib/md5.c: Use #error rather than a string.
68003         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
68004         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
68005         (__attribute__): Define to empty for non recent-GCC.
68006         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
68007         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
68008         Renamed from their non-__ counterparts, with new macros replacing
68009         them if not _LIBC.  Add __THROW attribute.
68010         (rol): Remove.
68011         (struct md5_ctx): Align buffer if using GCC.
68012         * lib/sha1.h (struct sha1_ctx): Likewise.
68013         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
68014         The old name was backwards.
68015         (NOTSWAP): Remove; not used.
68016         (rol): New macro, moved here from md5.h.
68017         (sha1_process_block): Remove a FIXME that doesn't make sense.
68018
68019 2005-09-12  Derek Price  <derek@ximbiot.com>
68020
68021         Return usable errors from canon-host.
68022         * lib/canon-host.h: New file.
68023         * lib/canon-host.c (canon_host): Wrap...
68024         (canon_host_r): ...this new function, which now relies exclusively on
68025         getaddrinfo.
68026         (ch_strerror): New function.
68027         (last_cherror): New global.
68028         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
68029         interface.
68030         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
68031         void *.
68032         (freeaddrinfo): Free ai->ai_canonname when set.
68033
68034 2005-09-12  Derek Price  <derek@ximbiot.com>
68035
68036         Make canon-host require getaddrinfo.
68037         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
68038         AC_LIBSOURCE canon-host.h.  Call...
68039         (gl_PREREQ_CANON_HOST): ...this new function, which requires
68040         gl_GETADDRINFO.
68041         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
68042
68043 2005-09-12  Derek Price  <derek@ximbiot.com>
68044
68045         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
68046         LGPL.
68047         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
68048
68049 2005-09-12  Derek Price  <derek@ximbiot.com>
68050
68051         * lib/gai_strerror.c: Include config.h when available.  Include
68052         getaddrinfo.h before other headers to test interface.
68053         Reported by Larry Jones <lawrence.jones@ugs.com>.
68054
68055 2005-09-12  Derek Price  <derek@ximbiot.com>
68056             Paul Eggert  <eggert@cs.ucla.edu>
68057
68058         * modules/glob (Files): Add glob-libc.h.
68059
68060 2005-09-12  Derek Price  <derek@ximbiot.com>
68061             Paul Eggert  <eggert@cs.ucla.edu>
68062
68063         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
68064         glob_.h, glob-libc.h.
68065         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
68066
68067 2005-09-12  Derek Price  <derek@ximbiot.com>
68068             Paul Eggert  <eggert@cs.ucla.edu>
68069
68070         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
68071         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
68072         protecting things that should be done only in gnulib contexts.
68073         * lib/glob_.h: New file, containing only the glob things needed for
68074         gnulib.
68075         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
68076         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
68077         (glob, globfree, glob_pattern_p): Now defined simply in terms of
68078         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
68079         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
68080         and to respect the namespace rules better.
68081
68082 2005-09-08  Simon Josefsson  <jas@extundo.com>
68083
68084         * modules/socklen: New file.
68085
68086 2005-09-08  Simon Josefsson  <jas@extundo.com>
68087
68088         * m4/socklen.m4: New file.
68089
68090 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68091
68092         * modules/utimens (Files): Add m4/utimbuf.m4, since
68093         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
68094         Reported by Sergey Poznyakoff.
68095
68096 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68097
68098         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
68099         definitions, since that's the preferred style in glibc.
68100         Fix a minor spacing issue, and update copyright notice to match
68101         glibc's.
68102
68103 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68104
68105         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
68106
68107 2005-09-06  Simon Josefsson  <jas@extundo.com>
68108
68109         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
68110         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
68111
68112 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68113
68114         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
68115         warning.
68116
68117 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68118
68119         * config/srclist.txt: Add glibc bug 1302.
68120
68121 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
68122
68123         Change bitset word type from unsigned int to unsigned long int,
68124         as this has better performance on typical 64-bit hosts.
68125         Port bitset code to hosts with unusual word sizes.
68126         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
68127         (build_collating_symbol):
68128         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
68129         argument is a bitset.  This is merely a style issue, but it makes
68130         it clearer that an entire array is expected.
68131         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
68132         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
68133         Port to the case where bitset_word is not the same as unsigned int.
68134         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
68135         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
68136         Likewise.
68137         * lib/regexec.c (check_dst_limits_calc_pos_1,
68138         check_subexp_matching_top):
68139         (build_trtable, group_nodes_into_DFAstates):
68140         Likewise.
68141         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
68142         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
68143         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
68144         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
68145         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
68146         * lib/regcomp.c (optimize_subexps, lower_subexp):
68147         Work even if bitset_word has holes in its bitwise representation.
68148         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
68149         * lib/regexec.c (check_dst_limits_calc_pos_1,
68150         check_subexp_matching_top):
68151         Likewise.
68152         * lib/regex_internal.c (re_string_reconstruct):
68153         Don't assume UCHAR_MAX == 255.
68154         * lib/regex_internal.h (bitset_set_all): Likewise.
68155         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
68156         All uses changed.
68157         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
68158         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
68159         All uses changed.
68160         (BITSET_WORD_MAX): New macro.
68161         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
68162         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
68163         (bitset_empty, bitset_copy):
68164         Prefer sizeof (bitset) to multiplying it out ourselves.
68165         (bitset_not_merge): Remove; unused.
68166         (bitset_contain): Return bool, not unsigned int with one bit on.
68167         All callers changed.
68168         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
68169         alignment than re_node_set; do this by defining a new internal
68170         type struct dests_alloc and using it to allocate memory.
68171
68172 2005-09-05  Bruno Haible  <bruno@clisp.org>
68173
68174         * gnulib-tool (func_import): Fix comparison in handling of symbolic
68175         links.
68176
68177 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
68178
68179         * modules/size_max (Makefile.am): Add size_max.h
68180
68181 2005-09-04  Derek Price  <derek@ximbiot.com>
68182
68183         * gnulib-tool (func_import): Fix reversed $symbolic logic.
68184
68185 2005-09-03  Simon Josefsson  <jas@extundo.com>
68186
68187         * gnulib-tool: Fix typo.
68188
68189 2005-09-03  Simon Josefsson  <jas@extundo.com>
68190
68191         * config/srclist.txt: Add glibc bug 1293.
68192
68193 2005-09-03  Derek Price  <derek@ximbiot.com>
68194
68195         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
68196         From Larry Jones <lawrence.jones@ugs.com>.
68197
68198 2005-09-02  Simon Josefsson  <jas@extundo.com>
68199
68200         * modules/socklen: New file.
68201
68202 2005-09-02  Simon Josefsson  <jas@extundo.com>
68203
68204         * modules/havelib: New module.
68205
68206         * modules/gettext, modules/iconv, modules/lock, modules/readline:
68207         Use havelib.
68208
68209 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
68210
68211         Check for arithmetic overflow when calculating sizes, to prevent
68212         some buffer-overflow issues.  These patches are conservative, in the
68213         sense that when I couldn't determine whether an overflow was possible,
68214         I inserted a run-time check.
68215         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
68216         macros.
68217         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
68218         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
68219         (re_xnrealloc, re_x2nrealloc): New inline functions.
68220         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
68221         parse_bracket_exp):
68222         (build_equiv_class, build_charclass): Check for arithmetic overflow
68223         in size expression calculations.
68224         * lib/regex_internal.c (re_string_realloc_buffers):
68225         (build_wcs_upper_buffer, re_node_set_add_intersect):
68226         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
68227         (re_dfa_add_node, register_state): Likewise.
68228         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
68229         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
68230         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
68231         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
68232
68233 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
68234
68235         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68236         m4/ulonglong.m4.  Problem reported by Martin Lambers.
68237
68238 2005-09-02  Bruno Haible  <bruno@clisp.org>
68239
68240         Support for lib vs. lib64 distinction on biarch platforms.
68241         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
68242         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
68243         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
68244
68245 2005-09-02  Bruno Haible  <bruno@clisp.org>
68246
68247         * gnulib-tool (import): In the other first-use case, provide defaults
68248         as well.
68249
68250 2005-09-02  Bruno Haible  <bruno@clisp.org>
68251
68252         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
68253         patches not yet found in the latest gettext release.
68254
68255 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68256
68257         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
68258         to avoid a collision with bits/local_lim.h in glibc.
68259         All uses changed.  Problem reported by Dmitry V. Levin in
68260         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
68261
68262         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
68263         bugs in int versus size_t comparisons.
68264         (re_string_context_at): Fix bug where the code assumed that
68265         Idx is signed.
68266
68267         Use bool where appropriate.
68268         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
68269         All callers changed.
68270         (calc_eclosure_iter): Likewise, for ROOT arg.
68271         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
68272         (build_charclass_op): Likewise, for NON_MATCH arg.
68273         * lib/regex_internal.c (re_string_allocate, re_string_construct):
68274         (re_string_construct_common): Likewise, for ICASE arg.
68275         * lib/regexec.c (re_search_2_stub, re_search_stub):
68276         Likewise, for RET_LEN arg.
68277         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
68278         (set_regs): Likewise, for FL_BACKTRACK arg.
68279         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
68280         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
68281         (calc_eclosure_iter, parse_bracket_exp):
68282         Use bool for internal variables that are booleans.
68283         * lib/regexec.c (re_search_internal, check_matching,
68284         proceed_next_node):
68285         (set_regs, build_sifted_states, sift_states_bkref):
68286         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
68287         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68288         (find_collation_sequence_value):
68289         Likewise.
68290         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
68291         (re_node_set_compare):
68292         Return bool, not int. All callers changed.
68293         * lib/regexec.c (check_halt_node_context, check_dst_limits):
68294         (build_trtable, check_node_accept): Likewise.
68295         * lib/regex_internal.h: Include stdbool.h.
68296
68297         Fix bugs uncovered when converting to bool.
68298         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
68299         failure instead of charging ahead blindly.
68300         * lib/regex_internal.c (register_state): Likewise.
68301         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
68302         for freeing internal storage.
68303         (group_nodes_into_DFA_states): Use unsigned int, not int, for
68304         bitset pieces used as boolean, to avoid undefined behavior
68305         on hosts that do int overflow checking.
68306
68307 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68308
68309         * config/srclist.txt: Add glibc bugs 1285-1287.
68310
68311 2005-09-01  Jim Meyering  <jim@meyering.net>
68312
68313         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
68314         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
68315         Require gl_STAT_MACROS, too.
68316
68317 2005-09-01  Bruno Haible  <bruno@clisp.org>
68318
68319         * gnulib-tool (import): In the first-use case, provide defaults.
68320
68321 2005-09-01  Bruno Haible  <bruno@clisp.org>
68322
68323         * gnulib-tool (func_import): Remove the .tmp files.
68324
68325 2005-09-01  Bruno Haible  <bruno@clisp.org>
68326
68327         * gnulib-tool (func_import): Fix handling of symbolic links.
68328
68329 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68330
68331         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
68332         old glibc regex code mishandles strings longer than 2**31 bytes.
68333         This patch fixes this when the regex code is used in gnulib
68334         (i.e., outside glibc).
68335
68336         This patch should not affect the use of the regex code inside
68337         glibc.  No doubt this problem also needs to be handled for glibc
68338         as well, but the result will be an incompatible change to the
68339         glibc ABI, and the old ABI will have to be supported too.  That
68340         can be the the subject for another patch.
68341
68342         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
68343         governing whether the rest of this patch is active.  By default,
68344         the macro is disabled and the patch has no effect.
68345         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
68346         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
68347         (struct re_pattern_buffer, re_search, re_search_2, re_match):
68348         (re_match_2, re_set_registers): Use the new types.
68349         * lib/regex_internal.h (Idx, re_hashval_t): New types.
68350         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
68351         New macros.
68352         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
68353         (re_string_context_at, bin_tree_t, re_dfastate_t):
68354         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
68355         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
68356         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
68357         (re_string_char_size_at, re_string_wchar_at):
68358         (re_string_elem_size_at):
68359         Use the new types and macros to port to 64-bit hosts.
68360         Use unsigned types for internal values, so that the code
68361         mostly works even for arrays larger than SSIZE_MAX.
68362         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
68363         (search_duplicated_node, calc_eclosure_iter, fetch_number):
68364         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
68365         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
68366         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
68367         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
68368         (calc_inveclosure, parse_dup_op, build_range_exp):
68369         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
68370         (fetch_number, create_token_tree, mark_opt_subexp):
68371         Likewise.
68372         * lib/regex_internal.c (re_string_construct_common,
68373         create_ci_newstate):
68374         (create_cd_newstate, re_string_allocate, re_string_construct):
68375         (re_string_realloc_buffers, build_wcs_upper_buffer):
68376         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68377         (re_string_reconstruct, re_string_peek_byte_case):
68378         (re_string_fetch_byte_case, re_string_context_at):
68379         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68380         (re_node_set_init_copy, re_node_set_add_intersect):
68381         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68382         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68383         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68384         (re_acquire_state, re_acquire_state_context, register_state):
68385         Likewise.
68386         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
68387         search_cur_bkref_entry):
68388         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
68389         (re_search_internal, re_search_2_stub, re_search_stub)
68390         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
68391         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
68392         (update_cur_sifted_state, check_dst_limits):
68393         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
68394         (check_subexp_limits, sift_states_bkref, merge_state_array):
68395         (check_subexp_matching_top, get_subexp, get_subexp_sub):
68396         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
68397         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68398         (expand_bkref_cache, check_node_accept_bytes):
68399         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
68400         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
68401         (acquire_init_state_context, check_halt_node_context):
68402         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
68403         (sift_states_backward, clean_state_log_if_needed):
68404         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
68405         (find_recover_state, transit_state_sb, transit_state_mb):
68406         (transit_state_bkref, build_trtable, match_ctx_clean):
68407         Likewise.
68408         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
68409         to work around an assumption that REG_MISSING is negative.
68410
68411         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
68412         (seek_collating_symbol_entry) [defined _LIBC]:
68413         (lookup_collation_sequence_value) [defined _LIBC]:
68414         (build_range_exp, build_collating_symbol) [defined _LIBC]:
68415         Use prototypes rather than old-style function definitions.
68416         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
68417         (transit_state_sb) [0]:
68418         (find_collation_sequence_value) [defined _LIBC]: Likewise.
68419
68420         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
68421         rm_eo.
68422
68423         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
68424         (optimize_subexps, lower_subexp):
68425         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
68426         since the signed shift might overflow.  Use 1u<<31 instead.
68427         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
68428         Likewise.
68429         * lib/regexec.c (check_dst_limits_calc_pos_1,
68430         check_subexp_matching_top): Likewise.
68431
68432         * lib/regcomp.c (optimize_subexps, lower_subexp):
68433         Use CHAR_BIT rather than 8, for clarity.
68434         * lib/regexec.c (check_dst_limits_calc_pos_1):
68435         (check_subexp_matching_top): Likewise.
68436         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
68437         have to worry about portability issues when shifting it left.
68438         Remove no-longer-needed test for table_size > 0.
68439         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
68440         in a word, as the resulting behavior is undefined.
68441         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
68442         in one case, a <= should have been an <, and in another case the
68443         whole test was missing.
68444         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
68445         the standard name CHAR_BIT.
68446         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
68447         this is not true on one's complement and signed-magnitude hosts.
68448
68449         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
68450         next_last_offset.
68451         (struct re_dfa_t): Remove unused member states_alloc.
68452         * lib/regcomp.c (init_dfa): Don't initialize unused members.
68453
68454 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68455
68456         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
68457         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
68458         and large-file glibc and in 32-bit large-file Solaris.
68459
68460 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68461
68462         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
68463         lengths fit in regoff_t; this isn't true if regoff_t is the same
68464         width as size_t.
68465         * lib/regex.c (re_search_internal): 5th arg is LAST_START
68466         (= START + RANGE) instead of RANGE.  This avoids overflow
68467         problems when regoff_t is the same width as size_t.
68468         All callers changed.
68469         (re_search_2_stub): Check for overflow when adding the
68470         sizes of the two strings.
68471         (re_search_stub): Check for overflow when adding START
68472         to RANGE; if it occurs, substitute the extreme value.
68473
68474 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68475
68476         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
68477
68478 2005-08-31  Jim Meyering  <jim@meyering.net>
68479
68480         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
68481         a pointer-to-const.
68482         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
68483         (register_state): Likewise.
68484         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
68485         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
68486         (group_nodes_into_DFAstates): Likewise.
68487
68488 2005-08-31  Jim Meyering  <jim@meyering.net>
68489
68490         * check-module: Add a FIXME comment.
68491
68492 2005-08-31  Eric Blake  <ebb9@byu.net>
68493
68494         * modules/unistd-safer (Files): Add unistd--.h.
68495         * modules/stdio-safer (Files): Add stdio--.h.
68496
68497 2005-08-31  Derek Price  <derek@ximbiot.com>
68498
68499         * lib/getdelim.c (getdelim): Return EOF on EOF.
68500         Reported by Larry Jones <lawrence.jones@ugs.com>.
68501
68502 2005-08-31  Bruno Haible  <bruno@clisp.org>
68503
68504         Avoid unnecessary diffs in the generated lib/Makefile.am.
68505         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
68506         the generated files.
68507         (func_import): Don't set cmd.
68508
68509 2005-08-31  Bruno Haible  <bruno@clisp.org>
68510
68511         * lib/strstr.c: Include <stddef.h>, for NULL.
68512         * lib/strcasestr.c: Likewise.
68513         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68514
68515 2005-08-31  Bruno Haible  <bruno@clisp.org>
68516
68517         * gnulib-tool: New option --macro-prefix.
68518         (func_import): Use macro_prefix.
68519         (import): Handle option --macro-prefix.
68520
68521 2005-08-31  Bruno Haible  <bruno@clisp.org>
68522
68523         * gnulib-tool (import): Rename most ac_* variables to cached_*.
68524         Also use new variables cached_lgpl, cached_libtool.
68525
68526 2005-08-31  Bruno Haible  <bruno@clisp.org>
68527
68528         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
68529         always instantiating them.
68530
68531 2005-08-31  Bruno Haible  <bruno@clisp.org>
68532
68533         * gnulib-tool (func_import): Read the previous cached settings
68534         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
68535         earlier added by gnulib but are now dropped. Warn when a gnulib file
68536         overwrites a non-gnulib file.
68537
68538 2005-08-31  Bruno Haible  <bruno@clisp.org>
68539
68540         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
68541         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
68542         projects that don't keep autogenerated files in CVS. Put into
68543         actioncmd only the specified modules, not the transitive closure.
68544
68545 2005-08-31  Bruno Haible  <bruno@clisp.org>
68546
68547         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
68548         Create directories that shall be filled.
68549         (import): Don't look for gl_* macros in configure.ac. Recurse across
68550         all directories containing a gnulib-cache.m4 files, if meaningful.
68551
68552 2005-08-31  Bruno Haible  <bruno@clisp.org>
68553
68554         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
68555         (import): Set seen_libtool when we see gl_LIBTOOL.
68556
68557 2005-08-31  Bruno Haible  <bruno@clisp.org>
68558
68559         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
68560         declaration macro definitions from generated gnulib.m4.
68561
68562 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
68563
68564         * lib/iconvme.h: Add prototype for iconv_alloc.
68565
68566 2005-08-29  Simon Josefsson  <jas@extundo.com>
68567
68568         * lib/iconvme.c: Fix errno.
68569
68570 2005-08-29  Bruno Haible  <bruno@clisp.org>
68571
68572         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
68573         that it works when the directory contains spaces.
68574
68575 2005-08-29  Bruno Haible  <bruno@clisp.org>
68576
68577         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
68578
68579 2005-08-29  Bruno Haible  <bruno@clisp.org>
68580
68581         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
68582         Emit more advice.
68583
68584 2005-08-29  Bruno Haible  <bruno@clisp.org>
68585         and Stepan Kasal  <kasal@ucw.cz>
68586
68587         * check-module: If more parameters are given, check each of them
68588         separately; add more exceptions, as noted by Jim Meyering.
68589         (check_module): New procedure.
68590         (%exempt_header): Now contains all exceptions.
68591
68592 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
68593
68594         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
68595
68596 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68597
68598         * lib/iconvme.c: Split iconv_string into iconv_alloc.
68599
68600 2005-08-28  Bruno Haible  <bruno@clisp.org>
68601
68602         * m4/gnulib-tool.m4: New file.
68603
68604 2005-08-27  Jim Meyering  <jim@meyering.net>
68605
68606         * modules/unistd-safer (Files): Add pipe-safer.c.
68607         * modules/fcntl-safer (Files): Add creat-safer.c.
68608
68609 2005-08-27  Jim Meyering  <jim@meyering.net>
68610
68611         * m4/stdlib-safer.m4: New file.  From coreutils.
68612         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
68613         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
68614         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
68615         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
68616         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
68617
68618 2005-08-27  Jim Meyering  <jim@meyering.net>
68619
68620         * lib/fopen-safer.c: Merge minor changes from coreutils.
68621         * lib/dup-safer.c: Likewise.
68622         * lib/fd-safer.c: Likewise.
68623
68624         Merge from coreutils.
68625         * lib/stdio--.h: New file.
68626         * lib/stdlib--.h: New file.
68627         * lib/mkstemp-safer.c: New file.
68628
68629         GNU tar needs these.
68630         * lib/pipe-safer.c: New file.
68631         * lib/creat-safer.c: New file.
68632         * lib/fcntl--.h (creat): Define to creat_safer.
68633         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
68634         * lib/unistd--.h (pipe): Define to pipe_safer.
68635         * lib/unistd-safer.h: Declare pipe_safer.
68636
68637 2005-08-26  Simon Josefsson  <jas@extundo.com>
68638
68639         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
68640         Haible <bruno@clisp.org>.
68641
68642 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
68643
68644         * lib/regex_internal.h: Remove all references to
68645         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
68646         or better.
68647         (bitset_not, bitset_merge, bitset_not_merge):
68648         (bitset_mask, re_string_allocate, re_string_construct):
68649         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
68650         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
68651         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
68652         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
68653         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68654         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68655         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
68656         (re_acquire_state_context):
68657         Remove unnecessary forward decls.
68658         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
68659         Put __attribute at function definition,
68660         now that the function decl has been removed.
68661         * lib/regex_internal.c (re_string_peek_byte_case):
68662         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
68663         Likewise.
68664
68665 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
68666
68667         * m4/regex.m4: Add AC_PREREQ(2.50).
68668         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
68669
68670 2005-08-25  Simon Josefsson  <jas@extundo.com>
68671
68672         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
68673         __fsetlocking.
68674
68675 2005-08-25  Simon Josefsson  <jas@extundo.com>
68676
68677         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
68678         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
68679         GLIBC specific code.
68680
68681 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68682
68683         Make regex safe for g++.  This fixes one real bug (an "err"
68684         that should have been "*err").  g++ problem reported by
68685         Sam Steingold.
68686         * lib/regex_internal.h (re_calloc): New macro, consistent with
68687         re_malloc etc.  All callers of calloc changed to use re_calloc.
68688         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
68689         not int.  All callers changed.
68690         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
68691         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
68692         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
68693         (find_recover_state): Change "err" to "*err"; this fixes what
68694         appears to be a real bug.
68695         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
68696         versus int.
68697
68698 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68699
68700         * modules/regex (Depends-on): Add malloc, since the code
68701         assumes that !malloc(0) means failure.
68702
68703 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68704
68705         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
68706
68707         alloca modernization/simplification for regex.
68708         * lib/regex.c: Remove portability cruft for alloca.  This no longer
68709         needs to be at the start of the file, and can be moved into
68710         regex_internal.h and simplified.
68711         * lib/regex_internal.h: Include <alloca.h>.
68712         (__libc_use_alloca) [!defined _LIBC]: New macro.
68713         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
68714         now works outside glibc.
68715
68716 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68717
68718         * config/srclist.txt: Add glibc bugs 1241, 1245.
68719
68720 2005-08-25  Jim Meyering  <jim@meyering.net>
68721
68722         * lib/open-safer.c: Include <config.h>.
68723         Otherwise, we'd lose LARGEFILE support in any file using
68724         e.g. "fcntl--.h"
68725
68726 2005-08-25  Bruno Haible  <bruno@clisp.org>
68727
68728         * m4/minmax.m4: Require autoconf 2.52.
68729         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
68730         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
68731         alternatives of translit over the alphabet.
68732         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
68733
68734 2005-08-24  Simon Josefsson  <jas@extundo.com>
68735
68736         * tests/test-getpass.c: New file.
68737
68738 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68739
68740         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
68741         for GNU regex features.
68742
68743 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68744
68745         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
68746         * lib/regex.h (regerror): Likewise.
68747
68748         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
68749         requires this.  (The code never needed it.)
68750
68751         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
68752         All uses of recently-renamed identifiers changed to use the new,
68753         POSIX-compliant names.  The code will build and run just fine
68754         without these changes, but it's better to eat our own dog food
68755         and use the standard-conforming names.
68756
68757         * lib/regex.h: Fix a multitude of POSIX name space violations.
68758         These changes have an effect only for programs that define
68759         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
68760         do not change anything for programs compiled in the normal way.
68761         Also, there is no effect on the ABI.
68762
68763         (_REGEX_SOURCE): New macro.
68764         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
68765         defined and _GNU_SOURCE is not; this fixes a name space violation.
68766
68767         Rename the following macros to obey POSIX requirements.
68768         The old names are still visible as macros if _REGEX_SOURCE is defined.
68769         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
68770         RE_BACKSLASH_ESCAPE_IN_LISTS.
68771         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
68772         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
68773         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
68774         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
68775         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
68776         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
68777         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
68778         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
68779         (REG_INTERVALS): renamed from RE_INTERVALS.
68780         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
68781         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
68782         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
68783         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
68784         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
68785         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
68786         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
68787         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
68788         RE_UNMATCHED_RIGHT_PAREN_ORD.
68789         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
68790         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
68791         (REG_DEBUG): renamed from RE_DEBUG.
68792         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
68793         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
68794         unusual, since we can't clash with the POSIX REG_ICASE.
68795         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
68796         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
68797         (REG_NO_SUB): renamed from RE_NO_SUB.
68798         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
68799         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
68800         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
68801         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
68802         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
68803         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
68804         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
68805         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
68806         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
68807         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
68808         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
68809         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
68810         RE_SYNTAX_POSIX_MINIMAL_BASIC.
68811         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
68812         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
68813         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
68814         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
68815         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
68816         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
68817         (REG_FIXED): Renamed from REGS_FIXED.
68818         (REG_NREGS): Renamed from RE_NREGS.
68819
68820         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
68821         of other REG_* macros, since POSIX says the user is allowed to
68822         #undef these macros selectively.
68823
68824         (reg_errcode_t): Update comment stating what other tables need
68825         to be consistent.
68826
68827         Rename the following enum values to obey POSIX requirements.
68828         The old names are still visible as macros.
68829         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
68830         is not defined, since GNU is supposed to be a superset of POSIX as
68831         much as possible, and since we want reg_errcode_t to be a signed
68832         type for implementation consistency.
68833         (_REG_NOERROR): Renamed from REG_NOERROR.
68834         (_REG_NOMATCH): Renamed from REG_NOMATCH.
68835         (_REG_BADPAT): Renamed from REG_BADPAT.
68836         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
68837         (_REG_ECTYPE): Renamed from REG_ECTYPE.
68838         (_REG_EESCAPE): Renamed from REG_EESCAPE.
68839         (_REG_ESUBREG): Renamed from REG_ESUBREG.
68840         (_REG_EBRACK): Renamed from REG_EBRACK.
68841         (_REG_EPAREN): Renamed from REG_EPAREN.
68842         (_REG_EBRACE): Renamed from REG_EBRACE.
68843         (_REG_BADBR): Renamed from REG_BADBR.
68844         (_REG_ERANGE): Renamed from REG_ERANGE.
68845         (_REG_ESPACE): Renamed from REG_ESPACE.
68846         (_REG_BADRPT): Renamed from REG_BADRPT.
68847         (_REG_EEND): Renamed from REG_EEND.
68848         (_REG_ESIZE): Renamed from REG_ESIZE.
68849         (_REG_ERPAREN): Renamed from REG_ERPAREN.
68850         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
68851         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
68852         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
68853         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
68854
68855         (_REG_RE_NAME, _REG_RM_NAME): New macros.
68856         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
68857         changed.  But support the old name if the new one is not defined
68858         and if _REGEX_SOURCE.
68859
68860         Change the following member names in struct re_pattern_buffer.
68861         The old names are still supported if !_REGEX_SOURCE.
68862         The new names are always supported, regardless of _REGEX_SOURCE.
68863         (re_buffer): Renamed from buffer.
68864         (re_allocated): Renamed from allocated.
68865         (re_used): Renamed from used.
68866         (re_syntax): Renamed from syntax.
68867         (re_fastmap): Renamed from fastmap.
68868         (re_translate): Renamed from translate.
68869         (re_can_be_null): Renamed from can_be_null.
68870         (re_regs_allocated): Renamed from regs_allocated.
68871         (re_fastmap_accurate): Renamed from fastmap_accurate.
68872         (re_no_sub): Renamed from no_sub.
68873         (re_not_bol): Renamed from not_bol.
68874         (re_not_eol): Renamed from not_eol.
68875         (re_newline_anchor): Renamed from newline_anchor.
68876
68877         Change the following member names in struct re_registers.
68878         The old names are still supported if !_REGEX_SOURCE.
68879         The new names are always supported, regardless of _REGEX_SOURCE.
68880         (rm_num_regs): Renamed from num_regs.
68881         (rm_start): Renamed from start.
68882         (rm_end): Renamed from end.
68883
68884         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
68885         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
68886         Prepend __ to parameter names.
68887
68888         Undo yesterday's changes.
68889
68890 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68891
68892         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
68893         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
68894         lib/regex.c.
68895
68896 2005-08-24  Jim Meyering  <jim@meyering.net>
68897
68898         Sync from coreutils.
68899         * m4/fcntl-safer.m4: New file.
68900
68901         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
68902         and object files for this module.
68903
68904 2005-08-24  Jim Meyering  <jim@meyering.net>
68905
68906         Sync from coreutils.
68907         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
68908
68909 2005-08-24  Jim Meyering  <jim@meyering.net>
68910
68911         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
68912         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
68913
68914 2005-08-24  Jim Meyering  <jim@meyering.net>
68915
68916         * modules/fcntl-safer: New module.
68917         * modules/fts (Depends-on): Add fcntl-safer.
68918         * MODULES.html.sh (File descriptor based Input/Output):
68919         Add fcntl-safer.
68920
68921 2005-08-24  Bruno Haible  <bruno@clisp.org>
68922
68923         Support for unit test modules.
68924         * modules/README: Mention tests modules.
68925         * modules/TEMPLATE-TESTS: New file.
68926         * gnulib-tool: New options --extract-tests-module, --with-tests and
68927         --tests-base (unused for the moment).
68928         (testsbase, inctests): New variables.
68929         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
68930         (func_verify_module): Exclude TEMPLATE-TESTS.
68931         (func_verify_nontests_module, func_verify_tests_module): New functions.
68932         (func_get_dependencies): Add implicit dependency for tests modules.
68933         (func_get_tests_module): New function.
68934         (func_modules_transitive_closure): When --with-tests was specified,
68935         include the unit tests as well, unless explicitly avoided.
68936         (func_emit_lib_Makefile_am): Ignore the tests modules here.
68937         (func_emit_tests_Makefile_am): New function.
68938         (func_create_testdir): When --with-tests was specified, emit a
68939         tests/ directory.
68940         * MODULES.html.sh (Future developments): Update.
68941
68942 2005-08-24  Bruno Haible  <bruno@clisp.org>
68943
68944         * modules/tls-tests: New file.
68945         * tests/test-tls.c: New file, from GNU gettext.
68946
68947 2005-08-24  Bruno Haible  <bruno@clisp.org>
68948
68949         * modules/lock-tests: New file.
68950         * tests/test-lock.c: New file, from GNU gettext.
68951
68952 2005-08-24  Bruno Haible  <bruno@clisp.org>
68953
68954         * lib/lock.h: Add multiple inclusion guard.
68955         * lib/tls.h: Add multiple inclusion guard.
68956
68957 2005-08-24  Bruno Haible  <bruno@clisp.org>
68958
68959         * gnulib-tool: Add support for the --aux-dir option to
68960         --create-testdir, --create-megatestdir, --test, --megatest.
68961         (func_create_testdir, func_create_megatestdir): Optionally emit a
68962         AC_CONFIG_AUX_DIR directive.
68963         (create-testdir, create-megatestdir, test, megatest): Provide a
68964         default value for $auxdir.
68965
68966 2005-08-24  Bruno Haible  <bruno@clisp.org>
68967
68968         * gnulib-tool (import): Use compound statement instead of subshell
68969         where possible.
68970
68971 2005-08-24  Bruno Haible  <bruno@clisp.org>
68972
68973         * gnulib-tool (import): Change --aux-dir default to "build-aux".
68974
68975 2005-08-24  Bruno Haible  <bruno@clisp.org>
68976
68977         * gnulib-tool (func_version): Update.
68978
68979 2005-08-24  Bruno Haible  <bruno@clisp.org>
68980
68981         * gnulib-tool (func_import, func_create_testdir,
68982         func_create_megatestdir): Quote all autoconf macro arguments.
68983
68984 2005-08-24  Bruno Haible  <bruno@clisp.org>
68985
68986         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
68987         option --force, because --force causes the aclocal.m4 of each
68988         subdirectory to be newer than the corresponding config.h.in.
68989
68990 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68991
68992         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
68993         All contents moved to gl_REGEX.
68994         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
68995         assume that it does.
68996
68997 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68998
68999         * lib/regex.h (REG_NOSYS)
69000         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
69001         Define, since POSIX requires it as of 2001.
69002         (_REG_ENOSYS)
69003         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
69004         New private symbol, used to keep the enum signed in all cases.
69005         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
69006         Youngman in
69007         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
69008
69009         * lib/regex_internal.c (re_string_skip_chars, register_state):
69010         (calc_state_hash):
69011         Remove forward decls; no longer needed now that we use prototypes.
69012         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
69013         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
69014         (clean_state_log_if_needed): Likewise.
69015
69016 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69017
69018         * config/srclist.txt: Add glibc bugs 1231-1233.
69019
69020 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69021
69022         Fix problems reported by Sam Steingold in
69023         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
69024         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
69025         assumed that reg_errcode_t is a signed type, which is not
69026         necessarily true if _XOPEN_SOURCE is not defined.
69027         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
69028         since some compilers warn about it otherwise.
69029
69030 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69031
69032         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
69033         (init_word_char, create_initial_state, duplicate_node_closure):
69034         (fetch_token, peek_token_bracket, build_range_exp):
69035         (build_collating_symbol): Remove forward decls; no longer needed
69036         now that we use prototypes.
69037
69038         * lib/regcomp.c:
69039         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
69040         (re_compile_fastmap_iter, regcomp, regerror, regfree):
69041         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
69042         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
69043         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
69044         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
69045         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
69046         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
69047         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
69048         (build_range_exp, build_collating_symbol, parse_bracket_exp):
69049         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
69050         (build_charclass, build_charclass_op, fetch_number, create_tree):
69051         (create_token_tree, mark_opt_subexp, duplicate_tree):
69052         Use prototypes rather than old-style definitions.
69053
69054         * lib/regex_internal.c:
69055         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
69056         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
69057         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69058         (re_string_reconstruct, re_string_peek_byte_case):
69059         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
69060         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69061         (re_node_set_init_copy, re_node_set_add_intersect):
69062         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69063         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69064         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69065         (re_acquire_state, re_acquire_state_context, register_state):
69066         (create_ci_newstate, create_cd_newstate, free_state):
69067         Likewise.
69068         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
69069         re_search_2):
69070         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
69071         (re_search_internal, prune_impossible_nodes):
69072         (acquire_init_state_context, check_matching, static):
69073         (check_halt_node_context, check_halt_state_context, proceed_next_node):
69074         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
69075         (update_regs, sift_states_backward, build_sifted_states):
69076         (clean_state_log_if_needed, merge_state_array):
69077         (update_cur_sifted_state, add_epsilon_src_nodes):
69078         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
69079         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
69080         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
69081         (find_recover_state, check_subexp_matching_top, transit_state_mb):
69082         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
69083         (check_arrival, check_arrival_add_next_nodes):
69084         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69085         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69086         (check_node_accept_bytes, check_node_accept, extend_buffers):
69087         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
69088         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
69089         (sift_ctx_init):
69090         Likewise.
69091
69092         * lib/regex_internal.h:
69093         (re_string_allocate, re_string_construct, re_string_reconstruct):
69094         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
69095         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
69096         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
69097         (re_string_context_at, re_string_peek_byte_case):
69098         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
69099         is defined, since we now use prototypes always.
69100
69101         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
69102         C89 or better.  All uses removed.
69103
69104 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69105
69106         * config/srclist.txt: Add glibc bugs 1220-1227.
69107
69108 2005-08-20  Jim Meyering  <jim@meyering.net>
69109
69110         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
69111         of unused local, dfa.
69112
69113 2005-08-20  Bruno Haible  <bruno@clisp.org>
69114
69115         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
69116
69117 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69118
69119         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
69120         (re_node_set_insert_last, re_dfa_add_node):
69121         Rename local variables to avoid GCC shadowing warnings.
69122
69123 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69124
69125         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
69126         [defined lint]: Suppress bogus uninitialized-variable warnings.
69127
69128         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
69129         and let the caller return REG_ESPACE if out of space.  This
69130         removes an uninitialied-variable warning with GCC 4.0.1, and also
69131         avoids taking the address of a local variable.  All callers
69132         changed.
69133
69134 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69135
69136         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
69137         $LIBCSRC/posix/regexec.c.
69138         Add glibc bug 1217 for regcomp.c.
69139
69140 2005-08-19  Jim Meyering  <jim@meyering.net>
69141
69142         * lib/regexec.c (proceed_next_node): Redo local variables to
69143         avoid GCC shadowing warnings.
69144
69145 2005-08-18  Bruno Haible  <bruno@clisp.org>
69146
69147         * lib/strstr.c (strstr): Fix return value in multibyte case.
69148         * lib/strcasestr.c (strcasestr): Likewise.
69149
69150 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69151
69152         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
69153
69154 2005-08-17  Jim Meyering  <jim@meyering.net>
69155
69156         Make the %s format (seconds since the epoch) work for a negative
69157         number and when used with a zero-padded field width, e.g. %015s.
69158
69159         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
69160         label so that it precedes the code to set `digits'.  Otherwise,
69161         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
69162         print `00-22'.  Now, it prints `-0022', as it should.
69163
69164 2005-08-17  Bruno Haible  <bruno@clisp.org>
69165
69166         * modules/strstr (Files): Add m4/mbrtowc.m4.
69167         (Depends-on): Add mbuiter.
69168
69169 2005-08-17  Bruno Haible  <bruno@clisp.org>
69170
69171         * modules/strcasestr: New file.
69172         * MODULES.html.sh (String handling, based on ANSI C 89): Add
69173         strcasestr.
69174
69175 2005-08-17  Bruno Haible  <bruno@clisp.org>
69176
69177         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
69178
69179 2005-08-17  Bruno Haible  <bruno@clisp.org>
69180
69181         * modules/mbuiter: New file.
69182         * MODULES.html.sh (Extended multibyte and wide character utilities):
69183         Add mbuiter.
69184
69185 2005-08-17  Bruno Haible  <bruno@clisp.org>
69186
69187         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
69188         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
69189
69190 2005-08-17  Bruno Haible  <bruno@clisp.org>
69191
69192         * m4/strcasestr.m4: New file.
69193
69194 2005-08-17  Bruno Haible  <bruno@clisp.org>
69195
69196         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
69197         * lib/strstr.c: Completely rewritten, with multibyte locale support.
69198
69199 2005-08-17  Bruno Haible  <bruno@clisp.org>
69200
69201         * lib/strcasestr.h: New file.
69202         * lib/strcasestr.c: New file.
69203
69204 2005-08-17  Bruno Haible  <bruno@clisp.org>
69205
69206         * lib/strcasecmp.c: Use mbuiter.h.
69207
69208 2005-08-17  Bruno Haible  <bruno@clisp.org>
69209
69210         * lib/mbuiter.h: New file.
69211
69212 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69213
69214         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
69215         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
69216         and gl_GETOPT are both invoked via different paths (as happens
69217         with GNU tar CVS because it uses both argp and getopt), the former
69218         wins.
69219
69220 2005-08-16  Bruno Haible  <bruno@clisp.org>
69221
69222         * modules/tls: New file.
69223         * MODULES.html.sh (Multithreading): Add tls.
69224
69225 2005-08-16  Bruno Haible  <bruno@clisp.org>
69226
69227         * modules/strnlen1: New file.
69228         * MODULES.html.sh (String handling): Add strnlen1.
69229
69230 2005-08-16  Bruno Haible  <bruno@clisp.org>
69231
69232         * modules/strcase (Files): Add m4/mbrtowc.m4.
69233         (Depends-on): Add strnlen1, mbchar.
69234
69235 2005-08-16  Bruno Haible  <bruno@clisp.org>
69236
69237         * modules/mbiter: New file.
69238         * MODULES.html.sh (Extended multibyte and wide character utilities):
69239         Add mbiter.
69240
69241 2005-08-16  Bruno Haible  <bruno@clisp.org>
69242
69243         * modules/mbfile: New file.
69244         * MODULES.html.sh (Extended multibyte and wide character utilities):
69245         Add mbfile.
69246
69247 2005-08-16  Bruno Haible  <bruno@clisp.org>
69248
69249         * modules/mbchar: New file.
69250         * MODULES.html.sh (Extended multibyte and wide character utilities):
69251         New section.
69252
69253 2005-08-16  Bruno Haible  <bruno@clisp.org>
69254
69255         * m4/tls.m4: New file, from GNU gettext.
69256
69257 2005-08-16  Bruno Haible  <bruno@clisp.org>
69258
69259         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
69260         always.
69261         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
69262
69263 2005-08-16  Bruno Haible  <bruno@clisp.org>
69264
69265         * m4/mbiter.m4: New file.
69266
69267 2005-08-16  Bruno Haible  <bruno@clisp.org>
69268
69269         * m4/mbfile.m4: New file.
69270
69271 2005-08-16  Bruno Haible  <bruno@clisp.org>
69272
69273         * m4/mbchar.m4: New file.
69274
69275 2005-08-16  Bruno Haible  <bruno@clisp.org>
69276
69277         * lib/tls.h: New file, from GNU gettext.
69278         * lib/tls.c: New file, from GNU gettext.
69279
69280 2005-08-16  Bruno Haible  <bruno@clisp.org>
69281
69282         * lib/strnlen1.h: New file.
69283         * lib/strnlen1.c: New file.
69284
69285 2005-08-16  Bruno Haible  <bruno@clisp.org>
69286
69287         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
69288         (mbi_init): Update.
69289         (mbi_avail, mbi_advance): Let the iteration end before the terminating
69290         NUL byte, not after it.
69291
69292 2005-08-16  Bruno Haible  <bruno@clisp.org>
69293
69294         * lib/strcase.h (strcasecmp): Add note in comments.
69295         * lib/strncasecmp.c: Use code from strcasecmp.c.
69296         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
69297         (strcasecmp): Work correctly in multibyte locales.
69298
69299 2005-08-16  Bruno Haible  <bruno@clisp.org>
69300
69301         * lib/mbiter.h: New file.
69302
69303 2005-08-16  Bruno Haible  <bruno@clisp.org>
69304
69305         * lib/mbfile.h: New file.
69306
69307 2005-08-16  Bruno Haible  <bruno@clisp.org>
69308
69309         * lib/mbchar.h: New file.
69310         * lib/mbchar.c: New file.
69311
69312 2005-08-16  Bruno Haible  <bruno@clisp.org>
69313
69314         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
69315         the valid ones. Makes the comparison operations transitive:
69316         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
69317         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
69318
69319 2005-08-15  Simon Josefsson  <jas@extundo.com>
69320
69321         * modules/ssize_t (License): Change to 'unlimited'.
69322
69323         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
69324
69325 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69326
69327         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
69328         Add comments for each pending glibc patch.
69329
69330 2005-08-15  Bruno Haible  <bruno@clisp.org>
69331
69332         * lib/regex.h (__restrict_arr): Don't define to __restrict if
69333         __cplusplus is defined.
69334
69335 2005-08-14  Jim Meyering  <jim@meyering.net>
69336
69337         Sync from coreutils.
69338
69339         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
69340         Use the hash-table-based cycle-detection code not just when
69341         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
69342         Reported by James Youngman in
69343         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
69344         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
69345         FTS_TIGHT_CYCLE_CHECK.
69346         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
69347         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
69348         once again.
69349         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
69350         * lib/fts.c (fd_safer): Remove decl.
69351         Include fcntl--.h rather than unistd-safer.h
69352         (fts_safe_changedir): Don't call fd_safer; no longer needed
69353         now that we include fcntl--.h.
69354
69355 2005-08-12  Simon Josefsson  <jas@extundo.com>
69356
69357         * modules/getndelim2: Use ssize_t module.
69358         * modules/getnline: Likewise.
69359         * modules/safe-read: Likewise.
69360         * modules/xreadlink: Likewise.
69361
69362         * modules/ssize_t: New file.
69363
69364 2005-08-12  Simon Josefsson  <jas@extundo.com>
69365
69366         * m4/readline.m4: Look for termcap, curses or ncurses if required.
69367
69368 2005-08-12  Simon Josefsson  <jas@extundo.com>
69369
69370         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69371         ssize_t.
69372
69373 2005-08-12  Simon Josefsson  <jas@extundo.com>
69374
69375         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
69376         readline, getdelim and check_version.
69377         (Support for systems lacking ISO C 99: Sizes of integer types):
69378         Add size_max.
69379
69380 2005-08-12  Bruno Haible  <bruno@clisp.org>
69381
69382         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
69383
69384 2005-08-11  Simon Josefsson  <jas@extundo.com>
69385
69386         * modules/readline: New file.
69387
69388         * modules/strnlen (Files): Add strnlen.h.
69389
69390 2005-08-11  Simon Josefsson  <jas@extundo.com>
69391
69392         * m4/readline.m4: New file.
69393
69394 2005-08-11  Simon Josefsson  <jas@extundo.com>
69395
69396         * lib/readline.h, readline.c: New file.
69397
69398 2005-08-11  Simon Josefsson  <jas@extundo.com>
69399
69400         * doc/gnulib.texi (Initial import, Finishing touches): Mention
69401         gl_AVOID.
69402
69403 2005-08-11  Bruno Haible  <bruno@clisp.org>
69404
69405         * lib/strnlen.h (strnlen): Change parameter name to match comment.
69406
69407 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
69408
69409         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
69410
69411 2005-08-10  Simon Josefsson  <jas@extundo.com>
69412
69413         * tests/test-iconvme.c: New file.
69414
69415 2005-08-10  Simon Josefsson  <jas@extundo.com>
69416
69417         * m4/strnlen.m4: New file.
69418
69419         * m4/strndup.m4: Don't check for strnlen declaration, done in
69420         strnlen.m4.
69421
69422 2005-08-10  Simon Josefsson  <jas@extundo.com>
69423
69424         * lib/strndup.c: Use strnlen.h.
69425
69426         * lib/strnlen.h: New file.
69427
69428 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69429
69430         * README: Typos.
69431
69432 2005-08-02  Simon Josefsson  <jas@extundo.com>
69433
69434         * modules/readline: New file.
69435
69436 2005-08-02  Simon Josefsson  <jas@extundo.com>
69437
69438         * modules/getdelim: New file.
69439
69440         * modules/getline: Rewrite, don't use getndelim2.
69441
69442 2005-08-02  Simon Josefsson  <jas@extundo.com>
69443
69444         * m4/getline.m4: Separate out getdelim stuff into separate module.
69445
69446         * m4/getdelim.m4: New file.
69447
69448 2005-08-02  Simon Josefsson  <jas@extundo.com>
69449
69450         * lib/getline.h, getline.c: Rewrite.
69451
69452         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
69453
69454 2005-07-31  Bruno Haible  <bruno@clisp.org>
69455
69456         * lib/lock.h (gl_lock_initializer): New macro.
69457         (gl_lock_define_initialized): Use it.
69458         (gl_rwlock_initializer): New macro.
69459         (gl_rwlock_define_initialized): Use it.
69460         (gl_recursive_lock_initializer): New macro.
69461         (gl_recursive_lock_define_initialized): Use it.
69462
69463 2005-07-30  Karl Berry  <karl@gnu.org>
69464
69465         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
69466         Report from Ben Pfaff, regarding getopt.
69467
69468 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
69469
69470         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
69471         normal way.
69472         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
69473         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
69474         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
69475         (gl_GETOPT): Use the new macros.  Most of the implementation
69476         is moved to the new macros.  This is for programs like Emacs
69477         that don't want all the functionality of gl_GETOPT.
69478
69479 2005-07-26  Bruno Haible  <bruno@clisp.org>
69480
69481         * m4/lock.m4: Update from GNU gettext.
69482
69483 2005-07-26  Bruno Haible  <bruno@clisp.org>
69484
69485         * lib/lock.h: Update from GNU gettext.
69486         * lib/lock.c: Update from GNU gettext.
69487
69488 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
69489
69490         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
69491         obsolescent AC_TRY_RUN.  Include the default includes files, for
69492         'exit'.
69493
69494 2005-07-24  Bruno Haible  <bruno@clisp.org>
69495
69496         * modules/visibility: New file.
69497         * MODULES.html.sh (Misc): Add visibility.
69498
69499 2005-07-24  Bruno Haible  <bruno@clisp.org>
69500
69501         * m4/visibility.m4: New file.
69502
69503 2005-07-24  Bruno Haible  <bruno@clisp.org>
69504
69505         * doc/visibility.texi: New file.
69506
69507 2005-07-22  Bruno Haible  <bruno@clisp.org>
69508
69509         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
69510         $(ALLOCA_H), redundant through BUILT_SOURCES.
69511         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
69512         redundant through BUILT_SOURCES.
69513         * modules/byteswap (Makefile.am): Remove explicit dependency on
69514         $(BYTESWAP_H), redundant through BUILT_SOURCES.
69515         * modules/fnmatch (Makefile.am): Remove explicit dependency on
69516         $(FNMATCH_H), redundant through BUILT_SOURCES.
69517         * modules/getopt (Makefile.am): Remove explicit dependency on
69518         $(GETOPT_H), redundant through BUILT_SOURCES.
69519         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
69520         redundant through BUILT_SOURCES.
69521         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
69522         redundant through BUILT_SOURCES.
69523         * modules/stdbool (Makefile.am): Remove explicit dependency on
69524         $(STDBOOL_H), redundant through BUILT_SOURCES.
69525         * modules/stdint (Makefile.am): Remove explicit dependency on
69526         $(STDINT_H), redundant through BUILT_SOURCES.
69527         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
69528         Remove explicit dependency on $(SYSEXITS_H).
69529         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
69530
69531 2005-07-18  Simon Josefsson  <jas@extundo.com>
69532
69533         * lib/check-version.c (check_version): Accept identical versions too.
69534
69535 2005-07-18  Bruno Haible  <bruno@clisp.org>
69536
69537         * modules/lock: New file.
69538         * MODULES.html.sh (Multithreading): New section.
69539
69540 2005-07-18  Bruno Haible  <bruno@clisp.org>
69541
69542         * m4/lock.m4: New file, from GNU gettext.
69543
69544 2005-07-18  Bruno Haible  <bruno@clisp.org>
69545
69546         * lib/lock.h: New file, from GNU gettext.
69547         * lib/lock.c: New file, from GNU gettext.
69548
69549 2005-07-18  Bruno Haible  <bruno@clisp.org>
69550
69551         * lib/lock.h (gl_once_t): New type.
69552         (gl_once_define, gl_once): New macros.
69553         * lib/lock.c (fresh_once): New variable.
69554         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
69555         functions.
69556
69557 2005-07-16  Simon Josefsson  <jas@extundo.com>
69558
69559         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
69560         workaround, suggested by Bruno.
69561
69562 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69563
69564         * modules/xalloc (Depends-on): Add xalloc-die.
69565         * modules/xvasprintf (Depends-on): Add xalloc-die.
69566
69567 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69568
69569         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
69570         with a minor change.
69571
69572 2005-07-15  Bruno Haible  <bruno@clisp.org>
69573
69574         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
69575         When using lib/poll.c, define poll as rpl_poll.
69576
69577 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
69578
69579         * modules/argp (Depends-on): Remove unlocked-io.
69580
69581 2005-07-14  Derek Price  <derek@ximbiot.com>
69582
69583         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
69584         for glob symlink bug.
69585
69586 2005-07-14  Bruno Haible  <bruno@clisp.org>
69587
69588         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
69589         Instead, test for *_unlocked function declarations directly.
69590
69591 2005-07-11  Simon Josefsson  <jas@extundo.com>
69592
69593         * modules/size_max: New file.
69594
69595         * modules/xsize: Depend on size_max module for size_max.m4.
69596
69597 2005-07-11  Simon Josefsson  <jas@extundo.com>
69598
69599         * lib/size_max.h: New file.
69600
69601 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
69602
69603         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
69604         copyright symbol and the year.
69605         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
69606         (version_etc_va): Use parameterized copyright notice.
69607         Reword to conform to the current GNU coding standards.
69608
69609 2005-07-11  Karl Berry  <karl@gnu.org>
69610
69611         * doc/gnulib.texi (Quoting): new node.
69612         (Initial import): more info, from Patrice.
69613
69614 2005-07-11  Bruno Haible  <bruno@clisp.org>
69615
69616         * gnulib-tool (func_usage): Document option --avoid.
69617         (Command line options): Handle --avoid.
69618         (func_acceptable): New function.
69619         (func_modules_transitive_closure): Use it.
69620
69621 2005-07-11  Bruno Haible  <bruno@clisp.org>
69622
69623         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
69624         Reported by Jim Meyering.
69625
69626 2005-07-10  Bruno Haible  <bruno@clisp.org>
69627
69628         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
69629         Needed when size_t is smaller than 'unsigned int'.
69630         Reported by Paul Eggert.
69631
69632 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69633
69634         * modules/argp (Depends-on): Add unlocked-io
69635
69636 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69637
69638         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
69639         block of defines.
69640
69641 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69642
69643         * config/srclist.txt: Comment out regcomp.c, since we have a porting
69644         fix now.
69645
69646 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
69647         and Paul Eggert  <eggert@cs.ucla.edu>
69648
69649         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
69650         in wint_t, not wchar_t.  Remove now-unnecessary cast.
69651
69652 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69653
69654         * modules/regex (Files): Add lib/regex_internal.c,
69655         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
69656         (Depends-on): Add extensions.
69657         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
69658
69659 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69660
69661         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
69662         pathconf.
69663         * m4/same.m4 (gl_SAME): Likewise.
69664         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
69665
69666         * m4/regex.m4: Adjust to new libc regex implementation.
69667         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
69668         all the .c and .h parts of (the new) regex.
69669         Quote the m4 stuff better.
69670         Check for RE_ICASE bug of old gnulib.
69671         Check for REG_STARTEND of recent libc.
69672         Rename local variables from jm_* to gl_*.
69673         Quote operand of "test -f".
69674         Say "recent enough" version of libc, not "version 2".
69675         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
69676         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
69677         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
69678         Remove check for btowc, isascii.
69679         Require AM_LANGINFO_CODESET.
69680
69681 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69682
69683         * lib/regex.c, regex.h: Sync from libc.
69684         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
69685         * lib/regexec.c:
69686         New files, synced from libc, except that regex_internal.h
69687         currently has a small porting fix.
69688
69689 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69690
69691         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
69692         regex_internal.c, regexec.c.
69693         Add regex_internal.h too, but as a comment, since the libc version
69694         is currently broken in gnulib mode.
69695
69696 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69697
69698         Support programs like Emacs that use gnulib but not gettext.
69699         * MODULES.html.sh (Internationalization functions): Add gettext-h.
69700         * modules/gettext-h: New file.
69701         * modules/gettext (Files): Remove lib/gettext.h.
69702         (Depends-on): Add gettext-h.
69703         (Makefile.am): Remove lib_SOURCES.
69704         * modules/argmatch, modules/c-stack, modules/closeout:
69705         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
69706         * modules/execute, modules/file-type, modules/getaddrinfo:
69707         * modules/getopt, modules/human, modules/javacomp:
69708         * modules/javaexec, modules/mkdir-p, modules/obstack:
69709         * modules/openat, modules/pagealign_alloc, modules/pipe:
69710         * modules/quotearg, modules/regex, modules/rpmatch:
69711         * modules/unicodeio, modules/userspec, modules/version-etc:
69712         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
69713         * modules/xsetenv:
69714         Depend on gettext-h, not gettext.
69715
69716 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69717
69718         * gnulib-tool (func_import): Add support for 'public domain' license.
69719         * modules/alloca, modules/atexit, modules/memmove:
69720         Now public domain, not GPL.
69721         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
69722         * modules/realloc, modules/strerror, modules/strtod:
69723         Now LGPL, not GPL.
69724
69725 2005-07-05  Bruno Haible  <bruno@clisp.org>
69726
69727         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
69728         autoconf CVS. Needed for mingw.
69729
69730 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69731
69732         Remove the dependency of the strftime module on the tzset module.
69733         * modules/strftime (Depends-on): Remove dependency on tzset.
69734
69735 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69736
69737         Remove the dependency of the strftime module on the tzset module.
69738         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
69739         gl_FUNC_TZSET_CLOBBER.
69740
69741 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69742
69743         Remove the dependency of the strftime module on the tzset module.
69744         * lib/strftime.c (my_strftime)
69745         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
69746         Copy the input structure, to work around some of the bug with
69747         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
69748         Solaris releases, you should also use the tzset module, but we won't
69749         require it as a dependency any more since we don't want LGPLed code
69750         to depend on GPLed code.
69751
69752 2005-07-02  Jim Meyering  <jim@meyering.net>
69753
69754         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
69755         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
69756         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
69757         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
69758
69759 2005-07-02  Jim Meyering  <jim@meyering.net>
69760
69761         * lib/backupfile.c (backup_args): Change a `0' to NULL.
69762
69763 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69764
69765         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
69766         declares only 'struct timespec;' (!).
69767
69768 2005-07-01  Jim Meyering  <jim@meyering.net>
69769
69770         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
69771         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
69772         * lib/save-cwd.c, tempname.c:
69773         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69774         and don't include <sys/file.h>).
69775
69776 2005-06-29  Jim Meyering  <jim@meyering.net>
69777
69778         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
69779         type name.  Use the variable name instead.
69780         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
69781         Likewise.
69782
69783 2005-06-28  Simon Josefsson  <jas@extundo.com>
69784
69785         * modules/check-version (Files): Add check-version.m4.
69786
69787 2005-06-28  Simon Josefsson  <jas@extundo.com>
69788
69789         * m4/check-version.m4: New file, suggested by Jim Meyering
69790         <jim@meyering.net>.
69791
69792 2005-06-28  Simon Josefsson  <jas@extundo.com>
69793
69794         * lib/check-version.h, lib/check-version.c: New files.
69795
69796 2005-06-28  Simon Josefsson  <jas@extundo.com>
69797
69798         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
69799         collision with global variable.  Better indentation.  Don't
69800         increment buffer pointer beyond buffer end.  Based on comments
69801         from Paul Eggert <eggert@cs.ucla.edu>.
69802
69803         * lib/base64.h: Indent.
69804
69805 2005-06-28  Simon Josefsson  <jas@extundo.com>
69806
69807         * doc/gnulib.texi (Library version handling): New section.
69808
69809 2005-06-28  Jim Meyering  <jim@meyering.net>
69810
69811         * check-module (find_included_lib_files): Hard-code another
69812         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
69813         but modules/fts-lgpl (correctly) does not list those files.
69814
69815         * modules/canonicalize (Files): Add lib/pathmax.h.
69816
69817 2005-06-25  Simon Josefsson  <jas@extundo.com>
69818
69819         * modules/check-version: New file.
69820
69821 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
69822
69823         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
69824         initializer of struct addrinfo, as an indication that we don't
69825         care how many members the structure has.
69826
69827 2005-06-24  Derek Price  <derek@ximbiot.com>
69828         and Bruno Haible  <bruno@clisp.org>
69829
69830         Remove stat module & update lstat.
69831         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
69832         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69833         * m4/stat.m4: Remove this file.
69834
69835 2005-06-24  Derek Price  <derek@ximbiot.com>
69836         and Bruno Haible  <bruno@clisp.org>
69837
69838         Remove stat module & update lstat.
69839         * lib/stat.c: Remove this file...
69840         (slash_aware_lstat): ...moving this content and its support...
69841         * lib/lstat.c (rpl_lstat): ...into here.
69842         * lib/lstat.h: New file.
69843
69844 2005-06-24  Derek Price  <derek@ximbiot.com>
69845         and Bruno Haible  <bruno@clisp.org>
69846
69847         Remove stat module & update lstat.
69848         * config/srclist.txt (libc sources): Remove stat.
69849
69850 2005-06-24  Derek Price  <derek@ximbiot.com>
69851         and Bruno Haible  <bruno@clisp.org>
69852
69853         Remove stat module & update lstat.
69854         * MODULES.html.sh (stat): Remove.
69855         * MODULES.html: Regenerated.
69856         * modules/lstat (Description): Correct function name.
69857         (Files): Add "lstat.h".
69858         (Depends-on): Remove stat, add xalloc, stat-macros.
69859         * modules/stat: Remove this file.
69860         (Include): Add "lstat.h", remove <sys/stat.h>.
69861
69862 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69863
69864         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
69865         (ranged_convert): Don't save conversion in a temporary struct.
69866         This causes a warning with GCC 4.0.0, and anyway in the typical
69867         case it's not worth the extra 100 bytes or so of code.
69868         (ranged_convert, __mktime_internal): When calling a function via a
69869         pointer P, use P () rather than (*P) (), as we now assume C89 or
69870         better.
69871
69872 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69873
69874         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
69875         "who -r" failed to give output.  Problem reported by Tim Waugh.
69876
69877         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
69878         (xcalloc): Use it to avoid needless tests.
69879         Problem reported by Jim Meyering.
69880
69881 2005-06-20  Derek Price  <derek@ximbiot.com>
69882
69883         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
69884         unnecessary for Autoconfs > 2.59c.
69885
69886 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69887
69888         * lib/argp.h (__option_is_short): Check upper limit of
69889         __key. Isprint() requires its argument to have the value
69890         of an unsigned char or EOF.
69891
69892 2005-06-16  Jim Meyering  <jim@meyering.net>
69893
69894         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
69895         when either N or S is zero.
69896
69897 2005-06-16  Derek Price  <derek@ximbiot.com>
69898
69899         * m4/bison.m4: Declare YACC & YFLAGS precious.
69900
69901 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
69902
69903         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
69904         multibyte string or pattern, fall back on unibyte matching.
69905         Problem reported by James Youngman.
69906
69907 2005-06-08  Bruno Haible  <bruno@clisp.org>
69908
69909         * modules/csharpcomp: New file.
69910         * MODULES.html.sh (C#): Add csharpcomp.
69911
69912 2005-06-08  Bruno Haible  <bruno@clisp.org>
69913
69914         * m4/csharpcomp.m4: New file, from GNU gettext.
69915
69916 2005-06-08  Bruno Haible  <bruno@clisp.org>
69917
69918         * lib/csharpcomp.h: New file, from GNU gettext.
69919         * lib/csharpcomp.c: New file, from GNU gettext.
69920         * lib/csharpcomp.sh.in: New file, from GNU gettext.
69921
69922 2005-06-08  Bruno Haible  <bruno@clisp.org>
69923
69924         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
69925         warning on mingw.
69926
69927 2005-06-07  Derek Price  <derek@ximbiot.com>
69928
69929         Sync from CVS.
69930         * lib/glob_.h: Indent nested #ifdef.
69931
69932 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69933
69934         Sync from coreutils.
69935         Use "file name" when talking about file names, instead of "filename"
69936         or "path", as per the GNU coding standards.
69937         * lib/mkdir-p.c: Renamed from makepath.c.
69938         (make_dir_parents): Renamed from make_path.  All callers changed.
69939         * lib/mkdir-p.h: Likewise.  All includers changed.
69940         * lib/filenamecat.c: Renamed from path-concat.c.
69941         (file_name_concat): Renamed from path_concat.  All callers changed.
69942         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
69943         * lib/filenamecat.h: Likewise.  All includers changed.
69944         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
69945         in comments or local variable names.
69946         * lib/basename.c: Likewise.
69947         * lib/canonicalize.c, canonicalize.h: Likewise.
69948         * lib/dirname.c, dirname.h: Likewise.
69949         * lib/euidaccess.c: Likewise.
69950         * lib/exclude.c: Likewise
69951         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
69952         * lib/fsusage.c, fsuage.h: Likewise.
69953         * lib/fts.c, fts_.h: Likewise.
69954         * lib/getcwd.c: Likewise.
69955         * lib/getloadavg.c: Likewise.
69956         * lib/mkstemp.c: Likewise.
69957         * lib/mountlist.c, mountlist.h: Likewise.
69958         * lib/openat.c, openat.h: Likewise.
69959         * lib/readlink-stub.c: Likewise.
69960         * lib/readutmp.c, readutmp.h: Likewise.
69961         * lib/rename.c: Likewise.
69962         * lib/rmdir.c: Likewise.
69963         * lib/same.c: Likewise.
69964         * lib/savedir.c: Likewise.
69965         * lib/stripslash.c: Likewise.
69966         * lib/tempname.c: Likewise.
69967         * lib/xreadlink.c: Likewise.
69968         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
69969         All uses changed.
69970         * lib/exclude.h: Likewise.
69971
69972         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
69973         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69974         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
69975         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69976         * lib/pathmax.h: Include <limits.h> unconditionally, since other
69977         files have been getting away with it for years (MORE/BSD 4.3
69978         is extinct now).
69979         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
69980         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69981
69982         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
69983         Define to 256, not 255, as per modern POSIX.
69984
69985 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69986
69987         Sync from coreutils.
69988         Use "file name" when talking about file names, instead of "filename"
69989         or "path", as per the GNU coding standards.
69990         * MODULES.html.sh: mkdir-p renamed from makepath.
69991         filenamecat renamed from path-concat.
69992         * modules/filenamecat: Renamed from modules/path-concat.
69993         (Files): filenamecat.h and filenamecat.c renamed from
69994         path-concat.h and path-concat.c.
69995         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
69996         (Include): filenamecat.h, not path-concat.h.
69997         * modules/mkdir-p: Renamed from modules/makepath.
69998         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
69999         makepath.c.
70000         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
70001         (Include): mkdir-p.h, not makepath.h.
70002
70003 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70004
70005         Sync from coreutils.
70006         * m4/mkdir-p.m4: Renamed from makepath.m4.
70007         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
70008         Rename files from makepath.c to mkdir-p.c, and from
70009         makepath.h to mkdir-p.h.
70010         * m4/filenamecat.m4: Renamed from path-concat.m4.
70011         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
70012         Rename files from path-concat.c to filenamecat.c,
70013         and from path-concat.h to filenamecat.h.
70014         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
70015         "file name" in local variables or comments.
70016         * m4/rename.m4: Likewise.
70017
70018 2005-06-01  Bruno Haible  <bruno@clisp.org>
70019
70020         * modules/csharpexec: New file.
70021         * MODULES.html.sh (C#): New section.
70022
70023 2005-06-01  Bruno Haible  <bruno@clisp.org>
70024
70025         * m4/csharp.m4: New file, from GNU gettext.
70026         * m4/csharpexec.m4: New file, from GNU gettext.
70027
70028 2005-06-01  Bruno Haible  <bruno@clisp.org>
70029
70030         * lib/csharpexec.h: New file, from GNU gettext.
70031         * lib/csharpexec.c: New file, from GNU gettext.
70032         * lib/csharpexec.sh.in: New file, from GNU gettext.
70033
70034 2005-05-31  Derek Price  <derek@ximbiot.com>
70035             Paul Eggert  <eggert@cs.ucla.edu>
70036
70037         Sync from cvs.
70038         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
70039
70040 2005-05-31  Derek Price  <derek@ximbiot.com>
70041             Paul Eggert  <eggert@cs.ucla.edu>
70042
70043         Sync from cvs.
70044         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
70045
70046 2005-05-29  Derek Price  <derek@ximbiot.com>
70047
70048         * config/srclist.txt (glob_.h, glob.c): Add these files.
70049
70050 2005-05-29  Derek Price  <derek@ximbiot.com>
70051
70052         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
70053         * modules/glob: New file.
70054         * modules/getlogin_r: Add link to POSIX spec in description.
70055
70056 2005-05-29  Derek Price  <derek@ximbiot.com>
70057             Paul Eggert  <eggert@cs.ucla.edu>
70058
70059         * m4/glob.m4: New file.
70060
70061 2005-05-29  Derek Price  <derek@ximbiot.com>
70062             Paul Eggert  <eggert@cs.ucla.edu>
70063
70064         * lib/glob_.h, lib/glob.c: New files.
70065
70066 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70067
70068         * modules/fts (Files): Remove m4/inttypes-pri.m4.
70069         * modules/fts-lgpl (Depends-on): Remove gettext.
70070
70071 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70072
70073         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
70074         and don't require gt_INTTYPES_PRI.
70075
70076 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70077
70078         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
70079
70080         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
70081         the configuration hassle isn't worth it.
70082         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
70083         (LONGEST_MODIFIER, PRIuMAX): Remove.
70084
70085 2005-05-27  Bruno Haible  <bruno@clisp.org>
70086
70087         * lib/getlogin_r.h: Remove second include of <stddef.h>.
70088
70089 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
70090
70091         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
70092         _POSIX_PTHREAD_SEMANTICS for Solaris.
70093
70094 2005-05-25  Derek Price  <derek@ximbiot.com>
70095
70096         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
70097
70098 2005-05-25  Derek Price  <derek@ximbiot.com>
70099             Paul Eggert  <eggert@cs.ucla.edu>
70100
70101         * modules/getlogin_r, m4/getlogin_r.m4: New files.
70102         * lib/getlogin_r.c, getlogin_r.h: New files.
70103
70104 2005-05-25  Bruno Haible  <bruno@clisp.org>
70105             Derek Price  <derek@ximbiot.com>
70106
70107         * lib/getlogin_r.h: Simplify API documentation.
70108
70109 2005-05-23  Derek Price  <derek@ximbiot.com>
70110
70111         * modules/minmax (Files): Add m4/minmax.m4.
70112         (configure.ac): Add gl_MINMAX.
70113
70114 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70115
70116         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
70117         so that unistd-safer.h (GPL'ed code) need not be included.
70118
70119 2005-05-22  Bruno Haible  <bruno@clisp.org>
70120
70121         * m4/minmax.m4: New file.
70122         Based on a patch by Derek Price <derek@ximbiot.com>.
70123
70124 2005-05-22  Bruno Haible  <bruno@clisp.org>
70125
70126         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
70127         (INT64_MIN): Fix definition.
70128         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
70129
70130         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
70131         NEED_SIGNED_INT_TYPES.
70132
70133         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
70134         HAVE_SYSTEM_INTTYPES.
70135
70136 2005-05-22  Bruno Haible  <bruno@clisp.org>
70137
70138         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
70139         Also include <sys/param.h> if it defines MIN, MAX.
70140         Based on a patch by Derek Price <derek@ximbiot.com>.
70141
70142 2005-05-21  Jim Meyering  <jim@meyering.net>
70143
70144         * modules/fts (Files): Add m4/inttypes-pri.m4.
70145         (Depends-on): Add lstat and remove gettext.  Alphabetize.
70146
70147 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70148
70149         New fts module.
70150         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
70151         (setup_dir, free_dir): New functions.
70152         (enter_dir, leave_dir): Define trivial
70153         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
70154         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
70155         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
70156         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
70157         Move to fts-cycle.c.
70158         (fts_open): Use setup_dir.
70159         (fts_close): Use free_dir.
70160         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
70161         This adds a label and some gotos, but the alternatives were messier.
70162         Check for memory allocation failure when entering a dir.
70163         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
70164         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
70165         (FTS): New member fts_cycle, that is a union that contains the
70166         old active_dir_ht and cycle_state.  All uses changed to mention
70167         fts_cycle.ht and fts_cycle.state.
70168         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
70169         fts.c, with the following changes:
70170         (setup_dir, free_dir): New functions.
70171         (enter_dir): Now returns bool.  Return true if successful, false
70172         if memory exhausted.  All callers changed.
70173         Do not bother partly cleaning up on
70174         memory allocation failure; that is free_dir's job.
70175         However, free ad if hash_insert fails, to avoid memory leak.
70176         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
70177         fts->fts_options to see which union member to use.
70178
70179 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70180
70181         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
70182         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
70183
70184 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70185
70186         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
70187
70188 2005-05-20  Jim Meyering  <jim@meyering.net>
70189
70190         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
70191         Now a macro, to pacify GCC.
70192
70193 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
70194
70195         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
70196         of -1.
70197
70198 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
70199
70200         * lib/chown.c (rpl_chown): Return -1 on failure.
70201
70202 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
70203
70204         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
70205         Don't check for stddef.h.
70206         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
70207         don't use its results.
70208         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
70209         since we include them unconditionally.  Don't require
70210         AM_STDBOOL_H, since stdbool is a prerequisite.
70211         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
70212         since we assume C89 or better.
70213         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
70214         as we don't use their results.
70215         Don't check for fchdir, memmove, memset, strrchr, as we use
70216         them unconditionally.
70217         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
70218         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
70219
70220 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
70221
70222         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
70223         Include <stddef.h> unconditionally, since we assume C89 now.
70224         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
70225         * lib/fts.c: Include fts_.h first, to check interface.
70226         Do not include intprops.h; no longer needed.
70227         Include cycle-check.h and hash.h, since fts_.h no longer does.
70228         Remove unnecessary casts of closedir to void.
70229         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
70230         decide whether to decrement nlinks.
70231         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
70232         (FTS): Use struct hash_table * instead of Hash_table, so that
70233         we no longer need to include hash.h here.
70234
70235 2005-05-18  Jim Meyering  <jim@meyering.net>
70236
70237         * modules/dirfd (License): Change to LGPL.  Most of the code
70238         is already in the public domain.
70239
70240 2005-05-18  Jim Meyering  <jim@meyering.net>
70241
70242         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
70243         Reported by Yoann Vandoorselaere.
70244
70245 2005-05-17  Jim Meyering  <jim@meyering.net>
70246
70247         * m4/fts.m4: New file, from coreutils.
70248
70249 2005-05-17  Jim Meyering  <jim@meyering.net>
70250
70251         * lib/fts.c, lib/fts_.h: New files, from coreutils.
70252
70253 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70254
70255         Sync from coreutils.
70256         * m4/unlinkdir.m4: New file.
70257
70258 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70259
70260         Sync from coreutils.
70261         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
70262         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
70263         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
70264         White space changes only.
70265         * lib/makepath.c (make_path): Port to hosts where leading "//" is
70266         special.
70267         * lib/yesno.c: Include getline.h, not ctype.h.
70268         (yesno): Don't remove leading white space; POSIX doesn't allow it.
70269         Use getline to remove arbitrary restriction on response length.
70270
70271 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70272
70273         * config/srclist-update: Spell out "Street" in FSF postal
70274         mail address; this is the style the FSF seems to prefer.
70275
70276         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
70277         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
70278         this updates FSF postal mail address.
70279
70280         Sync from coreutils.
70281         * modules/unlinkdir: New file.
70282         * modules/yesno (Depends-on): Add getline.
70283         * MODULES.html.sh (File system functions): Add unlinkdir.
70284
70285 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70286
70287         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
70288         lib/strsep.h:
70289         Change the initial comment to refer to GPL, not LGPL.
70290         gnulib-tool will change it to LGPL as needed.
70291
70292         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
70293         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
70294         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
70295         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
70296         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
70297         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
70298         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
70299         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
70300         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
70301         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
70302         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
70303         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
70304         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
70305         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
70306         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
70307         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
70308         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
70309         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
70310         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
70311         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
70312         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
70313         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
70314         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
70315         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
70316         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
70317         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
70318         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
70319         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
70320         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
70321         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
70322         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
70323         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
70324         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
70325         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
70326         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
70327         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
70328         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
70329         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
70330         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
70331         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
70332         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
70333         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
70334         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
70335         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
70336         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
70337         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
70338         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
70339         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
70340         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
70341         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
70342         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70343         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
70344         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
70345         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
70346         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
70347         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
70348         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
70349         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
70350         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
70351         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
70352         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
70353         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
70354         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
70355         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
70356         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
70357         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
70358         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
70359         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
70360         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
70361         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
70362         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
70363         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
70364         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
70365         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
70366         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
70367         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
70368         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
70369         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
70370         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
70371         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
70372         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
70373         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
70374         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
70375         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
70376         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
70377         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
70378         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
70379         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
70380         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
70381         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
70382         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
70383         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
70384         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
70385         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
70386         lib/yesno.c, lib/yesno.h:
70387         Update FSF postal mail address.
70388
70389 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70390
70391         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
70392         tests/test-memmem.c, tests/test-stpncpy.c:
70393         Update FSF postal mail address.
70394
70395 2005-05-13  Bruno Haible  <bruno@clisp.org>
70396
70397         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
70398         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
70399         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
70400         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
70401         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
70402         Add support for 64-bit integers in the MSVC compiler.
70403
70404 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70405
70406         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
70407
70408 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
70409
70410         * gnulib-tool (func_import): Sort and uniquify recommended includes.
70411
70412 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
70413
70414         * doc/getdate.texi (General date syntax): Don't say that date
70415         date --iso-8601=ns generates acceptable dates; it doesn't yet.
70416         Problem reported by Nic Ferrier.
70417
70418 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70419
70420         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
70421         specified in ai_socktype. Fix invalid ai_protocol
70422         check. ai_protocol is usually set to 0 or depending on
70423         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
70424         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
70425         ai_socktype / ai_protocol in the returned addrinfo structure.
70426
70427 2005-05-10  Simon Josefsson  <jas@extundo.com>
70428
70429         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
70430         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70431
70432 2005-05-10  Karl Berry  <karl@gnu.org>
70433
70434         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
70435         (from http://www.gnu.org/licenses).
70436         * doc/COPYING.LIB: also rename to COPYING.LESSER.
70437         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
70438         fdl.texi suffices.
70439
70440 2005-05-10  Karl Berry  <karl@gnu.org>
70441
70442         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
70443         (COPYING.DOC): remove.
70444
70445         * config/srclist-update: new FSF address.
70446
70447 2005-05-10  Derek Price  <derek@ximbiot.com>
70448
70449         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
70450         possible.
70451
70452 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70453             Bruno Haible  <bruno@clisp.org>
70454
70455         * modules/inet_ntop: New file.
70456         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70457         inet_ntop.
70458
70459 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70460             Bruno Haible  <bruno@clisp.org>
70461
70462         * m4/inet_ntop.m4: New file.
70463
70464 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70465             Bruno Haible  <bruno@clisp.org>
70466
70467         * lib/inet_ntop.h: New file.
70468         * lib/inet_ntop.c: New file, from glibc with modifications.
70469
70470 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
70471
70472         * modules/time_r (License): Change to LGPL.
70473         * modules/extensions (License): Change to LGPL.  Actually,
70474         the license is more permissive than that, but currently gnulib-tool
70475         doesn't know how to handle more-permissive licenses.
70476
70477         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
70478         Problem reported by Dave Love.
70479
70480 2005-05-08  Jim Meyering  <jim@meyering.net>
70481
70482         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
70483         blank.
70484
70485 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70486
70487         * modules/argmatch (Depends-on): Add stdbool.
70488         * modules/backupfile (Depends-on): Likewise.
70489         * modules/chdir-long (Depends-on): Likewise.
70490         * modules/closeout (Depends-on): Likewise.
70491         * modules/cycle-check (Depends-on): Likewise.
70492         * modules/dirname (Depends-on): Likewise.
70493         * modules/fnmatch (Depends-on): Likewise.
70494         * modules/fsusage (Depends-on): Likewise.
70495         * modules/fwriteerror (Depends-on): Likewise.
70496         * modules/getcwd (Depends-on): Likewise.
70497         * modules/getloadavg (Depends-on): Likewise.
70498         * modules/hard-locale (Depends-on): Likewise.
70499         * modules/makepath (Depends-on): Likewise.
70500         * modules/mountlist (Depends-on): Likewise.
70501         * modules/nanosleep (Depends-on): Likewise.
70502         * modules/posixtm (Depends-on): Likewise.
70503         * modules/quotearg (Depends-on): Likewise.
70504         * modules/readtokens (Depends-on): Likewise.
70505         * modules/readtokens0 (Depends-on): Likewise.
70506         * modules/readutmp (Depends-on): Likewise.
70507         * modules/save-cwd (Depends-on): Likewise.
70508         * modules/strftime (Depends-on): Likewise.
70509         * modules/userspec (Depends-on): Likewise.
70510         * modules/utimecmp (Depends-on): Likewise.
70511         * modules/xgetcwd (Depends-on): Likewise.
70512         * modules/xnanosleep (Depends-on): Likewise.
70513         * modules/xstrtod (Depends-on): Likewise.
70514         * modules/yesno (Depends-on): Likewise.
70515
70516 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
70517
70518         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
70519         needless checks.
70520
70521 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70522
70523         Merge from coreutils.  Among other things,
70524         add bulletproofing for cases where stdin, stdout, or stderr are closed.
70525         * lib/fd-safer.c: New file.
70526         * lib/fcntl-safer.h, open-safer.c: Remove.
70527         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
70528         * lib/dup-safer.c: Include unistd-safer.h first.
70529         Don't include errno.h.
70530         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
70531         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
70532         * lib/file-type.c: Rely on file-type.h change.
70533         * lib/getloadavg.c: Include unistd-safer.h.
70534         (getloadavg): Use safer open.
70535         * lib/getusershell.c: Include "stdio-safer.h".
70536         (getusershell): Use safer fopen.
70537         * lib/long-options.c (long_options): Use NULL rather than 0.
70538         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
70539         'free'.
70540         * lib/modechange.c: Likewise.
70541         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
70542         (MODE_DONE): New constant.
70543         (struct mode_change): Remove 'next' member.
70544         (make_node_op_equals): New function; like the old one of the
70545         same name, except it allocates an array.
70546         (mode_compile, mode_create_from_ref): Use it.
70547         (mode_compile): Allocate result as an array, not a linked list.
70548         Parse octal string ourself, so that we catch mistakes like "+0".
70549         (mode_adjust): Arg is an array, not a linked list.
70550         * lib/modechange.c: Include stat-macros.h, xalloc.h.
70551         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
70552         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
70553         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
70554         Remove.  This is now stat-macros.h's job.
70555         (talloc): Remove.  All callers replaced by xalloc, so that
70556         our invokers don't have to worry about reporting memory failures.
70557         (make_node_op_equals): Remove.
70558         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70559         New constants.
70560         (struct mode_change): Moved here from modechange.h.
70561         (mode_append_entry): Remove.
70562         (mode_compile): Remove MASKED_OPS arg, since it encouraged
70563         apps to have incorrect behavior.  Use simpler algorithm for head
70564         and tail.  Don't futz with umask; that's now the job of mode_adjust.
70565         Detect more invalid usages rather than having somewhat-random behavior.
70566         Don't insert an "a=" action, as that leads to incorrect behavior.
70567         (mode_compile, mode_create_from_ref): Return NULL on error instead
70568         of an enum, since now there's only one way to have an error.  All
70569         callers changed.
70570         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
70571         at the correct time.  Simplify calculation of "+u" and its ilk.
70572         Don't mishandle "+X".
70573         (mode_free): Remove "register" and localize decls.
70574         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70575         (struct mode_change): Move to modechange.c; callers don't
70576         need to see this stuff.
70577         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
70578         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
70579         (mode_change, mode_adjust): Reflect the new signatures noted above.
70580         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
70581         that might redefine system include files.
70582         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
70583         (my_usleep): Use NULL rather than (void *) 0.
70584         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
70585         Use siginterrupt to specify that system calls should be interrupted.
70586         (rpl_nanosleep): Move initialization of suspended closer to call of
70587         my_usleep.
70588         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
70589         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
70590         (desirable_utmp_entry): New function.
70591         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
70592         using x2nrealloc, to simplify logic.
70593         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
70594         size calculation.  Do not assume utmp file is a regular file.
70595         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
70596         (READ_UTMP_CHECK_PIDS): New constant.
70597         * lib/save-cwd.c: Include unistd-safer.h.
70598         (save_cwd): Use fd_safer.
70599         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
70600         [!_LIBC] Include "stat-macros.h" instead.
70601         * lib/unistd-safer.h (fd_safer): New decl.
70602
70603 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70604
70605         * modules/getloadavg (Depends-on): Add unistd-safer.
70606         * modules/getusershell (Depends-on): Add stdio-safer.
70607         * modules/lstat (Depends-on): Remove xalloc.
70608         * modules/mkstemp (Depends-on): Add stat-macros.
70609         * modules/modechange (Depends-on): Remove xstrtol.
70610         Add stat-macros, xalloc.
70611         * modules/save-cwd (Depends-on): Add unistd-safer.
70612         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
70613         * modules/unistd-safer (Files): Add lib/fd-safer.c
70614         (Makefile.am): Remove lib_SOURCES.
70615
70616         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
70617         Remove fcntl-safer; unistd-safer supersedes it.
70618
70619 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70620
70621         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
70622         AC_HEADER_STAT.
70623         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
70624         (gl_PREREQ_CHOWN): Remove.
70625         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
70626         it.  Don't require AC_HEADER_STAT.
70627         (gl_PREREQ_LSTAT): Remove.
70628         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
70629         Don't require AC_HEADER_STAT.
70630         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
70631         (gl_PREREQ_RMDIR): Remove.
70632         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
70633         mention stat-macros.h or AC_HEADER_STAT, since we'll make
70634         the stat-macros module a prerequisite.
70635         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
70636         * m4/filemode.m4 (gl_FILEMODE): Likewise.
70637         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
70638         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
70639         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
70640         variable names.
70641         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
70642         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
70643         variable prefixes.
70644         * m4/fcntl-safer.m4: Remove.
70645         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
70646         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
70647         Invoke gl_PREREQ_FD_SAFER.
70648         (gl_PREREQ_FD_SAFER): New macro.
70649         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
70650         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
70651         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
70652         Remove duplicate call to AC_LIBOBJ(readutmp).
70653         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
70654
70655         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
70656         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
70657
70658 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70659
70660         * MODULES.html.sh (Misc): Add byteswap.
70661
70662 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70663
70664         * modules/getcwd (Depends-on): Add extensions.
70665         * modules/openat (Depends-on): Likewise.
70666
70667 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70668
70669         * modules/byteswap: New file.
70670
70671 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70672
70673         * m4/byteswap.m4: New file.
70674
70675 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70676
70677         * lib/byteswap_.h: New file.
70678
70679 2005-04-25  Karl Berry  <karl@gnu.org>
70680
70681         * m4/gettext.m4: Update from GNU gettext 0.14.4.
70682
70683 2005-04-25  Albert Chin  <china@thewrittenword.com>
70684
70685         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
70686         Toolkit C bug.
70687
70688 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
70689
70690         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
70691         (func_ln_if_changed): Remove forcibly for no error message
70692         in case file does not exist.
70693
70694 2005-04-19  Simon Josefsson  <jas@extundo.com>
70695
70696         * gnulib-tool (Options): Make --symlink mean --symbolic.
70697
70698 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
70699
70700         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
70701
70702 2005-04-16  Simon Josefsson  <jas@extundo.com>
70703
70704         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
70705
70706 2005-04-15  Simon Josefsson  <jas@extundo.com>
70707
70708         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
70709
70710 2005-04-15  Simon Josefsson  <jas@extundo.com>
70711
70712         * gnulib-tool: Rename --symlink to --symbolic.
70713
70714 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
70715
70716         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
70717         symbolic links to files instead of copying/moving.  Add --aux-dir,
70718         specifying directory relative --dir where auxiliary build tools
70719         are placed.
70720
70721 2005-04-14  Bruno Haible  <bruno@clisp.org>
70722
70723         * modules/allocsa (License): Change to LGPL.
70724         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70725
70726 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70727
70728         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
70729         that "UTC +1 second" continues to work.  Problem reported
70730         by Dmitry V. Levin.
70731         (relunit_snumber): New rule.
70732         (relunit): Use it.
70733
70734 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70735
70736         * lib/getdate.y (universal_time_zone_table): New constant.
70737         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
70738         universal_time_zone_table.
70739         (lookup_zone): Prefer universal_time_zone_table to
70740         local_time_zone_table, so that "GMT" time stamps are allowed in
70741         London during the summer.  Problem reported by Ian Abbott.
70742
70743 2005-04-12  Jim Meyering  <jim@meyering.net>
70744
70745         * lib/human.c (humblock): Set *options even when returning due to
70746         xstrtoumax conversion failure.  Thanks to a used-uninitialized
70747         warning from gcc-4.
70748
70749 2005-04-09  Jim Meyering  <jim@meyering.net>
70750
70751         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
70752         -Wuninitialized: initialize tm0.tm_year.
70753
70754 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70755
70756         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
70757         count, since there's no maximum.  All uses changed.
70758         Add member dsts_seen.
70759         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
70760         not being INT_MAX.
70761         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
70762         Use pc_rels_seen to decide whther a date is absolute.
70763
70764         * lib/getdate.y (number): Don't overwrite year.
70765         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
70766         check.
70767
70768 2005-04-02  Simon Josefsson  <jas@extundo.com>
70769
70770         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
70771         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
70772
70773 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
70774
70775         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
70776         where no absolute path name can be longer than PATH_MAX.
70777
70778 2005-03-27  Jim Meyering  <jim@meyering.net>
70779
70780         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
70781
70782 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
70783
70784         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
70785         "one's complement" -> "ones' complement" in comment, as per Knuth.
70786         "value of type" -> "type or expression" in comment.
70787         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
70788
70789 2005-03-26  Jim Meyering  <jim@meyering.net>
70790
70791         Comment nits.
70792         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
70793         Correct typos: s/or/of/.
70794
70795 2005-03-26  Jim Meyering  <jim@meyering.net>
70796
70797         * modules/check-include-files: Move to ../ and rename to...
70798         * check-module: ...this.
70799
70800 2005-03-25  Jim Meyering  <jim@meyering.net>
70801
70802         * modules/xvasprintf (Files): Add xalloc.h.
70803
70804 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70805
70806         * modules/gettext (Files): config/config.rpath ->
70807         build-aux/config.rpath
70808         * modules/iconv (Files): Likewise.
70809         Problem reported by Oskar Liljeblad.
70810
70811 2005-03-23  Jim Meyering  <jim@meyering.net>
70812
70813         * modules/check-include-files: New script to check for
70814         missing dependencies, multiple includes, etc.
70815
70816         * modules/c-strtold (Depends-on): Add xalloc.
70817         * modules/c-strtod (Depends-on): Add xalloc.
70818         * modules/hash (Depends-on): Add xalloc.
70819         (Files): Remove lib/xalloc.h.
70820
70821         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
70822         * modules/userspec (Files): Add lib/inttostr.h.
70823
70824 2005-03-23  Jim Meyering  <jim@meyering.net>
70825
70826         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
70827
70828 2005-03-22  Jim Meyering  <jim@meyering.net>
70829
70830         * modules/stat-macros: New module.
70831         * modules/canonicalize, modules/euidaccess, modules/file-type,
70832         * modules/filemode, modules/lchown, modules/makepath,
70833         * modules/rmdir, modules/stat: Depend on new stat-macros module
70834         rather than listing lib/stat-macros.h manually.
70835         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
70836
70837 2005-03-22  Jim Meyering  <jim@meyering.net>
70838
70839         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
70840
70841 2005-03-22  Bruno Haible  <bruno@clisp.org>
70842
70843         * config/srclist.txt: Replace target directory 'config' with
70844         'build-aux'.
70845         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
70846         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
70847         ../build-aux/.
70848
70849 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
70850
70851         * modules/chdir-long (Depends-on): Add mempcpy.
70852
70853         * modules/acl, modules/backupfile, modules/c-strtod,
70854         modules/c-strtold, modules/canon-host, modules/canonicalize,
70855         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
70856         modules/exclude, modules/exitfail, modules/file-type,
70857         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
70858         modules/getdate, modules/getline, modules/getpagesize,
70859         modules/getpass, modules/getugroups, modules/group-member,
70860         modules/hard-locale, modules/hash, modules/human, modules/idcache,
70861         modules/inttostr, modules/long-options, modules/makepath,
70862         modules/md5, modules/memcasecmp, modules/memcoll,
70863         modules/modechange, modules/mountlist, modules/path-concat,
70864         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
70865         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
70866         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
70867         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
70868         modules/strftime, modules/strndup, modules/strverscmp,
70869         modules/timespec, modules/unlocked-io, modules/userspec,
70870         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
70871         modules/yesno:
70872         Remove lib_SOURCES line from Makefile.am section, as this is now
70873         done automatically by the corresponding Autoconf macro.
70874
70875 2005-03-21  Jim Meyering  <jim@meyering.net>
70876
70877         Changes imported from coreutils.
70878
70879         * lib/cycle-check.c: Don't include xalloc.h.
70880
70881         * lib/path-concat.c: Don't include assert.h.
70882         (path_concat): Remove assertion that would have triggered
70883         for ABASE starting with more than one slash.
70884         Reported by Andreas Schwab.
70885
70886         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
70887         properly when ABASE is an absolute file name.
70888         Correct the description of this function.
70889         Include <assert.h>.
70890         Add an assertion and a test driver.
70891         This fixes a bug introduced on 2004-07-02.
70892         Andreas Schwab reported the resulting failure of cp --parents:
70893         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
70894
70895 2005-03-21  Jim Meyering  <jim@meyering.net>
70896
70897         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
70898         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
70899
70900 2005-03-21  Jim Meyering  <jim@meyering.net>
70901         and  Paul Eggert  <eggert@cs.ucla.edu>
70902
70903         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
70904         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
70905         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
70906         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
70907         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
70908         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
70909         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
70910         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
70911         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
70912         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
70913         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
70914         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
70915         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
70916         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
70917         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
70918         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
70919         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
70920         for these modules.
70921
70922 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
70923
70924         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
70925         (which shouldn't happen), generate nothing instead of returning 0
70926         immediately, so that nstrftime (NULL, ...) doesn't return 0.
70927
70928 2005-03-16  Bruno Haible  <bruno@clisp.org>
70929
70930         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
70931         HAVE_LONGLONG_64BIT.
70932
70933 2005-03-16  Bruno Haible  <bruno@clisp.org>
70934
70935         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
70936         HAVE_LONGLONG_64BIT.
70937
70938 2005-03-16  Bruno Haible  <bruno@clisp.org>
70939
70940         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
70941         HAVE_LONGLONG_64BIT.
70942
70943 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70944
70945         * lib/strftime.c (my_strftime): Prepend space to format so that we can
70946         reliably distinguish strftime failure from empty output on POSIX
70947         hosts.
70948
70949 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70950
70951         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
70952         (iconv_string): Don't guess a size-zero buffer, as that might cause
70953         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
70954         result would be 'too large', where 'too large' is (heuristically)
70955         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
70956         overflow concerns.  This will prevent some unwanted malloc failures
70957         when the inputs are very large.
70958
70959 2005-03-15  Karl Berry  <karl@gnu.org>
70960
70961         * config/srclist.txt (config.rpath): from gettext.
70962         * config/config.rpath: update.
70963
70964 2005-03-15  Bruno Haible  <bruno@clisp.org>
70965
70966         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
70967         to 'negate'.
70968
70969         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
70970         variable.
70971
70972         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
70973         results.
70974
70975 2005-03-14  Simon Josefsson  <jas@extundo.com>
70976
70977         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
70978         <fx@gnu.org>.
70979
70980 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
70981
70982         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
70983         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
70984         intprops.h.
70985         * lib/strtol.c: Likewise.
70986
70987 2005-03-14  Jim Meyering  <jim@meyering.net>
70988
70989         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
70990         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
70991         to be nonzero so that we (and caller) can detect the difference
70992         between a valid zero-length expansion and an error return, even
70993         when the underlying strftime fails before writing anything into
70994         that location.
70995
70996 2005-03-14  Bruno Haible  <bruno@clisp.org>
70997
70998         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
70999         Update from GNU gettext 0.14.3.
71000
71001 2005-03-10  Jim Meyering  <jim@meyering.net>
71002
71003         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
71004
71005 2005-03-10  Jim Meyering  <jim@meyering.net>
71006
71007         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
71008         so that this module works on systems without fchdir.
71009
71010 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
71011
71012         Factor int-properties macros into a single file, except for
71013         glibc-related files.
71014         * lib/intprops.h: New file.
71015         * lib/getloadavg.c: Include it instead of limits.h.
71016         (INT_STRLEN_BOUND): Remove.
71017         * lib/human.c: Include intprops.h.
71018         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
71019         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
71020         302/1000.
71021         * lib/inttostr.h: Include intprops.h instead of limits.h.
71022         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
71023         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
71024         for consistency with intprops.h.
71025         (time_t_is_integer, twos_complement_arithmetic): Use them.
71026         * lib/sig2str.h: Include <signal.h>, intprops.h.
71027         (INT_STRLEN_BOUND): Remove.
71028         * lib/strftime.c (TYPE_SIGNED): Remove.
71029         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
71030         * lib/strtol.c: Adjust comments to match intprops.h.
71031         * lib/userspec.c: Include intprops.h.
71032         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
71033         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
71034         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
71035         instead of rolling our own expressions.
71036         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
71037
71038         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
71039         instead of int.
71040         (my_strftime): Do not mishandle years close to INT_MAX, by doing
71041         the right thing even if adding 1900 would overflow.  Similarly
71042         for tm_mon + 1 and tm_yday + 1.
71043         Make %Y always equivalent to %C%y, and similarly for %G and %g.
71044         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
71045         (DO_SIGNED_NUMBER): New macro.
71046         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
71047
71048 2005-03-07  Bruno Haible  <bruno@clisp.org>
71049
71050         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
71051
71052 2005-03-07  Bruno Haible  <bruno@clisp.org>
71053
71054         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
71055
71056 2005-03-04  Derek R. Price  <derek@ximbiot.com>
71057
71058         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
71059         (func_import): Only replace files via --import when they have actually
71060         changed.
71061
71062 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71063
71064         * m4/mmap-anon.m4: New file.
71065         * m4/pagealign_alloc.m4: New file.
71066
71067 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71068             Bruno Haible  <bruno@clisp.org>
71069
71070         * modules/pagealign_alloc: New file.
71071         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
71072
71073 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71074             Bruno Haible  <bruno@clisp.org>
71075
71076         * lib/pagealign_alloc.h: New file.
71077         * lib/pagealign_alloc.c: New file.
71078
71079 2005-03-03  Bruno Haible  <bruno@clisp.org>
71080
71081         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
71082         Use an all-permissive copyright notice, recommended by RMS.
71083
71084 2005-03-02  Bruno Haible  <bruno@clisp.org>
71085
71086         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
71087         of AIX, the replacement has to be done only after <string.h> is
71088         included, therefore not in config.h. stpncpy.h does the replacement,
71089         and stpncpy.c uses it.
71090
71091 2005-03-02  Bruno Haible  <bruno@clisp.org>
71092
71093         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
71094         stpncpy.c uses it.
71095
71096 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71097
71098         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
71099         The workaround isn't strictly needed for POSIX conformance, and
71100         it's too much of a pain to configure and maintain.  We'll ask
71101         people to fix their kernels instead.
71102         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
71103         (NANOSLEEP_BUG_WORKAROUND): Remove.
71104         (xnanosleep): Remove the workaround.
71105
71106 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71107
71108         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
71109         Reported by Derek Price.
71110         (Include): Add "timespec.h".
71111
71112         * modules/xnanosleep (Depends-on): Remove gethrxtime.
71113
71114 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71115
71116         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
71117         to detect nanosleep bug.
71118
71119 2005-03-01  Bruno Haible  <bruno@clisp.org>
71120
71121         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
71122
71123 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71124
71125         * modules/gethrxtime: New file.
71126         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
71127         (Depends-on): Add gethrxtime.
71128         (configure.ac): Add gl_XNANOSLEEP.
71129         (Makefile.am): Remove lib_SOURCES line.
71130
71131 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71132
71133         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
71134         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
71135
71136 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71137
71138         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
71139         * lib/timespec.h (gettime): Return void, since it always
71140         succeeds now.  All uses changed.
71141         * lib/gettime.c (gettime): Likewise.
71142         [HAVE_NANOTIME]: Prefer nanotime.
71143         Assume gettimeofday succeeds, as POSIX requires.
71144         Assime time () succeeds, since other code already does.
71145         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
71146         (timespec_subtract): Remove.
71147         (NANOSLEEP_BUG_WORKAROUND): New constant.
71148         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
71149         things considerably.  Use it only on GNU/Linux hosts, since the
71150         workaround shouldn't be needed elsewhere.
71151
71152 2005-02-24  Bruno Haible  <bruno@clisp.org>
71153
71154         * modules/gettext (Files): Add m4/glibc2.m4.
71155
71156 2005-02-24  Bruno Haible  <bruno@clisp.org>
71157
71158         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
71159         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
71160         * m4/progtest.m4:
71161         Update from GNU gettext 0.14.2.
71162         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
71163
71164 2005-02-24  Bruno Haible  <bruno@clisp.org>
71165
71166         * lib/localcharset.c: Update from GNU gettext 0.14.2.
71167         * lib/config.charset: Update from GNU gettext 0.14.2.
71168
71169 2005-02-24  Bruno Haible  <bruno@clisp.org>
71170
71171         * lib/gettext.h: Update from GNU gettext 0.14.2.
71172
71173 2005-02-23  Simon Josefsson  <jas@extundo.com>
71174
71175         * m4/iconvme.m4: New file.
71176
71177 2005-02-23  Jim Meyering  <jim@meyering.net>
71178
71179         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
71180         change.
71181         Thanks to Bruno Haible for catching it.
71182
71183 2005-02-22  Simon Josefsson  <jas@extundo.com>
71184
71185         * modules/iconvme: New file.
71186
71187         * MODULES.html.sh: Add iconvme.
71188
71189 2005-02-22  Simon Josefsson  <jas@extundo.com>
71190
71191         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
71192
71193 2005-02-22  Simon Josefsson  <jas@extundo.com>
71194
71195         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
71196
71197 2005-02-22  Jim Meyering  <jim@meyering.net>
71198
71199         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
71200         s/ifndef/ifdef/.
71201
71202 2005-02-20  Neil Conway  <neilc@samurai.com>
71203
71204         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
71205         returned by OSX/Darwin if the specified buffer is not large
71206         enough for the hostname.
71207
71208 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71209
71210         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
71211         pass it to _help, otherwise the latter coredumps trying to
71212         dereference state.root_argp.
71213
71214 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71215
71216         * modules/chdir-long (Depends-on): Add memrchr.
71217         * modules/memrchr (Files): Add lib/memrchr.h.
71218         (Include): "memrchr.h".
71219
71220 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71221
71222         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
71223
71224 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71225
71226         * lib/memrchr.h: New file.
71227         * lib/chdir-long.c: Include it.
71228         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
71229         Don't bother including stddef.h.
71230
71231 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
71232
71233         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
71234         inclusion.
71235         Include <sys/types.h>, for dev_t.
71236         (ME_DUMMY, ME_REMOTE): Move from here....
71237         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
71238         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
71239         Dmitry V. Levin.
71240         Include mountlist.h first, to test the interface.
71241
71242 2005-01-29  Bruno Haible  <bruno@clisp.org>
71243
71244         * lib/progname.c (program_name): Initialize.
71245         Needed when linking statically on MacOS X.
71246
71247 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71248
71249         Sync from coreutils.
71250         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
71251         (Depends-on): Add c-strtod.
71252         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
71253
71254 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71255
71256         Sync from coreutils.
71257         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
71258
71259         Remove files that are specific to coreutils.
71260         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
71261
71262 2005-01-28  Bruno Haible  <bruno@clisp.org>
71263
71264         * modules/javacomp: New file.
71265         * MODULES.html.sh (Java): Add javacomp.
71266
71267 2005-01-28  Bruno Haible  <bruno@clisp.org>
71268
71269         * m4/javacomp.m4: New file, from GNU gettext.
71270
71271 2005-01-28  Bruno Haible  <bruno@clisp.org>
71272
71273         * lib/javacomp.sh.in: New file, from GNU gettext.
71274         * lib/javacomp.h: New file, from GNU gettext.
71275         * lib/javacomp.c: New file, from GNU gettext.
71276
71277 2005-01-26  Simon Josefsson  <jas@extundo.com>
71278
71279         * lib/gai_strerror.c: Use GPL in header.
71280
71281 2005-01-26  Bruno Haible  <bruno@clisp.org>
71282
71283         * modules/javaexec: New file.
71284         * MODULES.html.sh (Java): Add javaexec.
71285
71286 2005-01-26  Bruno Haible  <bruno@clisp.org>
71287
71288         * m4/javaexec.m4: New file, from GNU gettext.
71289
71290 2005-01-26  Bruno Haible  <bruno@clisp.org>
71291
71292         * lib/javaexec.sh.in: New file, from GNU gettext.
71293         * lib/javaexec.h: New file, from GNU gettext.
71294         * lib/javaexec.c: New file, from GNU gettext.
71295
71296 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71297
71298         * modules/lchown (Depends-on): Remove lchown.h
71299
71300 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71301
71302         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
71303         must be defined if the header file was not found, in order
71304         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
71305
71306 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71307
71308         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
71309         initializers for struct pentry_state.
71310         (__argp_error): Check return value of __asprintf
71311         (__argp_failure): Translate error message
71312
71313         * lib/argp-parse.c: Removed braces around the expansion of N_()
71314
71315 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71316
71317         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
71318         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
71319         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
71320         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
71321         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
71322         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
71323         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
71324         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
71325         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
71326         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
71327         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
71328         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
71329         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
71330         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
71331         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
71332         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
71333         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
71334         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
71335         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
71336         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
71337         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
71338         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
71339         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
71340         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
71341         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
71342         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
71343         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
71344         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
71345         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
71346         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
71347         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
71348         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
71349         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
71350         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
71351         xstrtol.m4, xstrtoumax.m4, yesno.m4:
71352         Use an all-permissive copyright notice, recommended by RMS.
71353
71354 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
71355
71356         * modules/chdir-long (Depends-on): Remove mempcpy.
71357
71358 2005-01-21  Jim Meyering  <jim@meyering.net>
71359
71360         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
71361         same value as for Solaris 9.
71362
71363         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
71364         component length.  This included changing the parameter to be
71365         of type `char *' rather than `char const *'.
71366         * lib/chdir-long.h (chdir_long): Update prototype.
71367
71368         * lib/openat.c (fdopendir, fstatat): New functions.
71369         * lib/openat.h: Include headers required for use of DIR and struct
71370         stat.
71371         [AT_SYMLINK_NOFOLLOW]: Define.
71372         (fdopendir, fstatat): Add prototypes.
71373
71374 2005-01-21  Bruno Haible  <bruno@clisp.org>
71375
71376         * modules/classpath: New file.
71377         * MODULES.html.sh (Java): Add classpath.
71378
71379 2005-01-21  Bruno Haible  <bruno@clisp.org>
71380
71381         * lib/classpath.h: New file, from GNU gettext.
71382         * lib/classpath.c: New file, from GNU gettext.
71383
71384 2005-01-20  Simon Josefsson  <jas@extundo.com>
71385
71386         * modules/version-etc-fsf: New file.
71387
71388 2005-01-20  Simon Josefsson  <jas@extundo.com>
71389
71390         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
71391         * lib/version-etc.c: Remove version_etc_copyright.
71392         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
71393         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
71394
71395 2005-01-20  Simon Josefsson  <jas@extundo.com>
71396
71397         * lib/base64.h (isbase64): Add.
71398
71399         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
71400         using a unsigned prototype, don't inline.
71401         (base64_decode): Use it.
71402
71403 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71404
71405         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
71406         it.
71407
71408 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71409
71410         * lib/save-cwd.c (save_cwd): Remove code to support the case
71411         where fchdir is missing or flaky.
71412
71413 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71414
71415         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
71416
71417 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71418
71419         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
71420         AC_LIBSOURCES now does this.
71421         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
71422         with new ullong_max module.
71423
71424 2005-01-19  Bruno Haible  <bruno@clisp.org>
71425
71426         * modules/sh-quote: New file.
71427         * MODULES.html.sh (Executing programs): Add sh-quote.
71428
71429 2005-01-19  Bruno Haible  <bruno@clisp.org>
71430
71431         * lib/sh-quote.h: New file, from GNU gettext.
71432         * lib/sh-quote.c: New file, from GNU gettext.
71433
71434 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71435
71436         Merge from coreutils.
71437         * m4/ullong_max.m4: New file.
71438         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
71439         (gl_MACROS): Assume localeconv exists.
71440
71441 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71442
71443         Merge changes from coreutils, as described below in several
71444         changelogs dated today.
71445
71446         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
71447         (O_DIRECTORY): Remove; not needed here, since "." must be
71448         a directory.  All uses removed.
71449         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
71450         universal on Suns, and we also need to test for IRIX.
71451         Revamp code to use 'if' rather than '#if'.
71452         Avoid unnecessary comparison of cwd->desc to 0.
71453
71454         * lib/utimens.c (futimens): Robustify the previous patch, by checking
71455         for known valid error numbers rather than observed invalid ones.
71456
71457 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71458
71459         * modules/ullong_max: New file.
71460
71461         * modules/chdir-long, modules/openat: New files.
71462         * modules/save-cwd (Depends-on): Depend on chdir-long.
71463         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
71464
71465 2005-01-18  Jim Meyering  <jim@meyering.net>
71466
71467         Merge from coreutils.
71468         * m4/chdir-long.m4, m4/openat.m4: New files.
71469         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
71470         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
71471         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
71472         is sane and DOES follow symlinks.  Besides, testing 20 different
71473         systems found no broken chown implementations.
71474         Prompted by a change in rsync's copy of this macro.
71475         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
71476
71477         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
71478
71479         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
71480         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
71481         NULL-means-set-to-current-time semantics.
71482         Remove temporary file immediately, rather than waiting
71483         for configure's at-exit trap code to do it.
71484
71485 2005-01-18  Jim Meyering  <jim@meyering.net>
71486
71487         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71488
71489         * lib/utimens.c (futimens): Account for the fact that futimes
71490         can also fail with errno == ENOSYS or errno == ENOENT.
71491         Patch from Dmitry V. Levin.
71492
71493         Change the name of the robust chdir function from chdir to chdir_long.
71494         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
71495         (restore_cwd): Use chdir_long, not chdir.
71496         * lib/chdir-long.c: Renamed from chdir.c.
71497         * lib/chdir-long.h: Renamed from chdir.h.
71498         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
71499         Hurd.
71500
71501 2005-01-18  Bruno Haible  <bruno@clisp.org>
71502
71503         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
71504         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
71505         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
71506         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
71507         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
71508         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
71509         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
71510         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
71511         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
71512         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
71513         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
71514         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
71515         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
71516         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
71517         Use an all-permissive copyright notice, recommended by RMS.
71518
71519 2005-01-18  Bob Proulx  <bob@proulx.com>
71520
71521         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
71522         simplify offsetof() macro construct to avoid compile failure with
71523         native HP-UX 11.0 ANSI C compiler.
71524
71525 2005-01-17  Bruno Haible  <bruno@clisp.org>
71526
71527         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
71528         redundant because stpncpy.m4 takes care of it.
71529
71530 2005-01-17  Bruno Haible  <bruno@clisp.org>
71531
71532         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
71533
71534 2005-01-17  Bruno Haible  <bruno@clisp.org>
71535
71536         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
71537         used.
71538
71539 2005-01-17  Bruno Haible  <bruno@clisp.org>
71540
71541         * lib/fwriteerror.h (fwriteerror): Change specification to include
71542         fclose.
71543         * lib/fwriteerror.c: Include <stdbool.h>.
71544         (fwriteerror): At the end, close the file stream. Record whether
71545         stdout was already closed.
71546
71547 2005-01-17  Bruno Haible  <bruno@clisp.org>
71548
71549         * lib/execute.c (environ): Declare if needed.
71550         * lib/pipe.c (environ): Likewise.
71551         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
71552
71553 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71554
71555         * modules/argp: Depend on vsnprintf
71556
71557 2005-01-10  Jim Meyering  <jim@meyering.net>
71558
71559         * modules/closeout (Depends-on): Add atexit.
71560
71561 2005-01-06  Bruno Haible  <bruno@clisp.org>
71562
71563         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
71564
71565 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71566
71567         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
71568         definitions to be after all include files, to avoid collisions.
71569         Problem reported by Bob Proulx.
71570
71571 2005-01-04  Jim Meyering  <jim@meyering.net>
71572
71573         Changes imported from coreutils.
71574         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
71575         as the mkstemp template, use a temporary directory and an
71576         8.3-friendly template to avoid trouble on systems like DJGPP.
71577         Reported by Juan M. Guerrero via Stepan Kasal.
71578         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
71579         close. Remove the temporary directory right away, rather than waiting
71580         for configure's at-exit trap code to do it.
71581         Suggestion from Stepan Kasal.
71582
71583 2005-01-01  Simon Josefsson  <jas@extundo.com>
71584
71585         * gnulib-tool: Print #include directives when --import'ing.
71586
71587 2004-12-28  Simon Josefsson  <jas@extundo.com>
71588
71589         * tests/test-base64.c: Include required header files.  Remove
71590         unused variables.
71591
71592 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71593
71594         * modules/error (Depends-on): Remove gettext.
71595
71596 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71597
71598         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
71599         not needed.  This removes a dependency on the gettext module.
71600         [defined _LIBC]: Do not include <libintl.h>; not needed.
71601
71602 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71603
71604         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
71605         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
71606
71607 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71608
71609         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
71610         HAVE_DECL_STRTOLD.
71611
71612 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71613
71614         * modules/getdate (Depends-on): Remove alloca-opt.
71615
71616 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71617
71618         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
71619
71620 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71621
71622         * lib/argp-parse.c: Include <stddef.h>.
71623         (alignof, alignto): New macros.
71624         (parser_init): Don't assume that void * is aligned sufficiently
71625         for struct option.
71626
71627         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
71628         need to extend the stack.
71629         (YYINITDEPTH): New macro, so that the initial stack isn't overly
71630         large.
71631
71632 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71633
71634         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
71635
71636 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71637
71638         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
71639         (2004-10-24) change.  Apparently this was a false alarm.
71640
71641         * modules/getdate: Depend on alloca-opt, not alloca.
71642
71643 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71644
71645         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
71646         Remove now-obsolete comment about AIX.
71647         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
71648         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
71649         (YYMAXDEPTH): New macro.
71650
71651 2004-12-18  Simon Josefsson  <jas@extundo.com>
71652
71653         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
71654
71655 2004-12-18  Bruno Haible  <bruno@clisp.org>
71656
71657         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
71658
71659 2004-12-18  Bruno Haible  <bruno@clisp.org>
71660
71661         * lib/fatal-signal.c (fatal_signals): Make non-const.
71662         (init_fatal_signals): New function.
71663         (uninstall_handlers, install_handlers): Ignore signals that were set to
71664         SIG_IGN.
71665         (at_fatal_signal): Call init_fatal_signals.
71666         (init_fatal_signal_set): Likewise. Ignore signals that were set to
71667         SIG_IGN.
71668         Reported by Paul Eggert.
71669
71670 2004-12-18  Bruno Haible  <bruno@clisp.org>
71671
71672         * doc/alloca.texi: New file.
71673         * doc/alloca-opt.texi: New file.
71674
71675 2004-12-17  Jim Meyering  <jim@meyering.net>
71676
71677         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
71678         Otherwise, install-sh could exit with improper exit status when
71679         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
71680
71681 2004-12-16  Simon Josefsson  <jas@extundo.com>
71682
71683         * tests/test-base64.c: Add license.
71684
71685 2004-12-15  Stepan Kasal  <address@hidden>
71686
71687         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
71688
71689 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
71690
71691         * modules/getcwd (Files): Add m4/d-ino.m4.
71692         Suggested by Mark D. Baushke.
71693
71694 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71695
71696         * lib/getdate.y (textint): New member "negative".
71697         (time_zone_hhmm): New function.
71698         Expect 14 shift-reduce conflicts, not 13.
71699         (o_colon_minutes): New rule.
71700         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
71701         (yylex): Set the "negative" member of signed numbers.
71702
71703 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71704
71705         * doc/getdate.texi (Time of day items, Time zone items):
71706         Describe new formats +00:00, UTC+00:00.
71707
71708 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71709
71710         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
71711         spurious "-l"s.  Problem reported by Stepan Kasal.
71712
71713 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
71714
71715         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
71716         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
71717
71718 2004-12-04  Simon Josefsson  <jas@extundo.com>
71719
71720         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
71721         Vandoorselaere <yoann@prelude-ids.org>.
71722
71723 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71724
71725         Changes imported from coreutils.
71726         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
71727         exist.
71728         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
71729
71730 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71731
71732         Changes imported from coreutils.
71733         * lib/hard-locale.c: Assume <locale.h> exists.
71734         Include "strdup.h".
71735         (GLIBC_VERSION): New macro.
71736         (hard_locale): Assume setlocale exists.
71737         Rewrite to avoid #ifdef.
71738         Use strdup rather than malloc + strcpy.
71739         * lib/human.c: Assume <locale.h> exists.
71740         (human_readable): Assume localeconv exists.
71741
71742 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71743
71744         * modules/hard-locale (Depends-on): Add strdup.
71745
71746 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71747
71748         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
71749         convert T2, not T.  (Imported from libc.)
71750
71751 2004-11-30  Simon Josefsson  <jas@extundo.com>
71752
71753         * modules/restrict (License): Change to LGPL.
71754
71755 2004-11-30  Simon Josefsson  <jas@extundo.com>
71756
71757         * m4/restrict.m4: Add copyright and copying conditions.
71758
71759 2004-11-30  Simon Josefsson  <jas@extundo.com>
71760
71761         * m4/base64.m4: New file.
71762
71763 2004-11-30  Simon Josefsson  <jas@extundo.com>
71764
71765         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
71766         base64.
71767
71768         * tests/test-base64.c: New file.
71769
71770         * modules/base64: New file.
71771
71772 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71773
71774         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
71775         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
71776
71777         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
71778
71779 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71780
71781         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
71782         (__getcwd.c): Don't restore errno; glibc doesn't.
71783         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
71784         first, falling back to our code only if its results look suspicious.
71785         Ensure that the resulting buffer is only as large as necessary.
71786
71787         * lib/readutmp.c: Include readutmp.h first.
71788         Include <errno.h>, since readutmp.h no longer does that.
71789         * lib/readutmp.h: Don't include <errno.h>,
71790         <sys/param.h>, <time.h>; not needed to establish interface.
71791         (errno): Remove decl.
71792         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
71793         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
71794         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
71795
71796 2004-11-28  Simon Josefsson  <jas@extundo.com>
71797
71798         * lib/base64.h, base64.c: New file.
71799
71800 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71801
71802         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
71803
71804 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71805
71806         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
71807         (Depends-on): Remove pathmax, same.  Add mempcpy.
71808         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
71809         (Makefile.am): Append getcwd.h to lib_SOURCES.
71810         (Include): Add getcwd.h.
71811         (Maintainer): Change from Jim Meyering to "all, glibc",
71812         since getdate now uses intended-for-glibc code.
71813         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
71814         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
71815
71816 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71817
71818         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
71819         HP's ANSI C compiler.
71820         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
71821         Declaring int functions causes warnings on some modern systems and
71822         shouldn't be needed to compile on ancient ones.
71823         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
71824         defined.
71825
71826         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
71827         with the following changes.
71828         (__set_errno): Parenthesize properly.
71829         Include <stdbool.h>.
71830         (MIN, MAX, MATCHING_INO): New macros.
71831         (__getcwd): Define with prototype, not K&R form.
71832         Use heuristics to allocate default buffer on stack if possible.
71833         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
71834         behavior, and to avoid the PATH_MAX limit when computing
71835         ../../../../...
71836         Use MATCHING_INO to compare inode number to file.
71837         Check for arithmetic overflow in size calculations.
71838         Fix bug in reallocation of dot array that caused getcwd to fail
71839         on directories nested deeper than 75.
71840         Be more careful about saving errno on error.
71841         Do not use realloc; use only free+malloc, as this is a bit
71842         more flexible and avoids a needless copy operation.
71843         Do not inspect st_dev and st_ino for symbolic links; POSIX
71844         doesn't specify the latter.
71845         Check for closedir errors.
71846         Avoid needless casts.
71847         Use "#ifdef weak_alias" around weak_alias, to be like other
71848         glibc code.
71849         The following changes to getcwd.c have effect only when used in
71850         gnulib; they have no effect inside glibc proper.
71851         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
71852         as alloca isn't used.
71853         (alloca, __alloca): Likewise.
71854         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
71855         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71856         unconditionally, as gnulib assumes C89 or better.
71857         Do not include <sys/param.h>.
71858         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
71859         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
71860         better.
71861         (NULL) [!defined NULL]: Remove; we assume C89 or better.
71862         Include <dirent.h> in a way that is compatible with modern Autoconf.
71863         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
71864         New macros, if not already defined.
71865         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
71866         Use "_LIBC", not "defined _LIBC", for consistency.
71867         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
71868         a mempcpy module.
71869         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
71870         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
71871         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
71872         credit only to Jim Meyering and adjust the copyright dates.
71873         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
71874         <stdlib.h>, <unistd.h>, "pathmax.h".
71875         Instead, include "xgetcwd.h" (first) and "getcwd.h".
71876         (INITIAL_BUFFER_SIZE): Remove.
71877         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
71878
71879 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71880
71881         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
71882         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
71883         Use the _ONCE methods, for efficiency.
71884         Check for fcntl.h.  In test program, include <errno.h>
71885         and <fcntl.h> if available.  Remove old K&R cruft from
71886         test program.  Check for common errors in GNU/Linux,
71887         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
71888         don't do AC_LIBOBJ, as that's getcwd.m4's job.
71889         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
71890         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
71891         name accordingly.
71892         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
71893         accommodate new getcwd.c.
71894         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
71895         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
71896         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
71897         that's all we need now.
71898
71899 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71900
71901         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
71902         argp-parse.c depends on getopt internals, that means we should
71903         always use our getopt, to be on the safe side.
71904         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
71905         order not to spoil the result of an eventual previous invocation
71906         of gl_GETOPT_SUBSTITUTE.
71907
71908 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71909
71910         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
71911         redefinition warnings. To avoid them, include the defines
71912         in `#if !defined __need_getopt ... #endif'. The only place
71913         where __getopt_argv_const is used is in definitions
71914         of getopt_long and getopt_long_only below, which are as well
71915         protected by `#ifndef __need_getopt'.
71916         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
71917         __need_getopt after including <stdio.h> and <unistd.h> These
71918         headers might have defined it.
71919
71920 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71921
71922         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
71923
71924 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71925
71926         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
71927         (futimens): New function, which uses futimes if available.
71928         (futimens, utimens): Support timespec==NULL, with same semantics
71929         as utime and utimens.
71930         * lib/utimens.h (futimens): New decl.
71931
71932 2004-11-23  Jim Meyering  <jim@meyering.net>
71933
71934         * lib/getopt_.h: Remove trailing blanks.
71935
71936 2004-11-23  Jim Meyering  <jim@meyering.net>
71937
71938         * lib/__fpending.c: Add comment.
71939
71940 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
71941
71942         * modules/canonicalize (Depends-on): Add xreadlink.
71943         Problem reported by James Youngman.
71944
71945 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71946
71947         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
71948         New macros.
71949         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
71950         optopt): Use them instead of invoking ## directly; otherwise, the
71951         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
71952
71953 2004-11-19  Bruno Haible  <bruno@clisp.org>
71954
71955         * lib/strtok_r.c: Move comments from here...
71956         * lib/strtok_r.h: ... to here.
71957
71958 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71959
71960         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
71961         implementations that mishandle size_t overflow.
71962
71963 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71964
71965         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
71966         might fail.  Problem reported by Yoann Vandoorselaere.
71967         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
71968         implementations that mishandle size_t overflow.
71969
71970 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71971
71972         * modules/canon-host (Depends-on): Add strdup.
71973
71974 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71975
71976         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
71977
71978 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71979
71980         * lib/canon-host.c: Include "strdup.h".
71981         (canon_host): Use getaddrinfo if available, so that IPv6 works.
71982         Use strdup instead of malloc/strcpy to duplicate strings.
71983
71984         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
71985         (human_space_before_unit): New constant.
71986         * lib/human.c (human_readable): Support it.
71987
71988         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
71989         (xgetcwd): Set errno correctly when failing.
71990         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
71991         the failure is actually due to a PATH_MAX problem.
71992
71993         Further getopt changes to make it more likely that glibc will
71994         buy the changes back.
71995         * lib/getopt.c (POSIXLY_CORRECT): New constant.
71996         (getopt): Use it, so to preserve glibc semantic
71997         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
71998         when compiling for libc.
71999         * lib/getopt_.h (__getopt_argv_const): Bring it back.
72000         (getopt_long, getopt_long_only): Use it.
72001
72002         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
72003         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
72004         (getopt): Argv is now char * const *, as per standard.
72005         (_getopt_internal_r, _getopt_internal): Argv is now char **,
72006         not char *__getopt_argv_const *.
72007         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
72008         _getopt_long_only_r): Likewise.
72009         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
72010         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
72011         _getopt_long_r, _getopt_long_only_r): Likewise.
72012         * lib/getopt_.h (__getopt_argv_const): Remove.
72013         (getopt): Argv is now char * const *, as per standard.
72014
72015         * lib/getdate.y (tORDINAL): New token.
72016         (day, relunit): Allow it for relative times.
72017         (relative_time_table): Use tORDINAL for ordinals.
72018
72019 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72020
72021         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
72022         Document that "second" isn't allowed as an ordinal number.
72023
72024 2004-11-16  Jim Meyering  <jim@meyering.net>
72025
72026         * modules/closeout (Depends-on): Add fpending.
72027
72028 2004-11-15  Jim Meyering  <jim@meyering.net>
72029
72030         * lib/closeout.c: Include "__fpending.h" once again.
72031         Include <stdbool.h>.
72032         (close_stdout): Don't fail just because stdout was closed initially,
72033         since some programs don't write to stdout in the normal course of
72034         operation (other than --version and --help), and we don't want this
72035         function to make e.g. `touch file >&-' fail.
72036         But do fail if it was closed and someone has tried to write to it.
72037         E.g., `printf foo >&-' must fail.
72038
72039 2004-11-13  Jim Meyering  <jim@meyering.net>
72040
72041         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
72042
72043 2004-11-12  Simon Josefsson  <jas@extundo.com>
72044
72045         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
72046         small doc fix is still pending.
72047
72048 2004-11-11  Simon Josefsson  <jas@extundo.com>
72049
72050         * modules/strtok_r: New file.
72051
72052         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72053         strtok_r.
72054
72055 2004-11-11  Simon Josefsson  <jas@extundo.com>
72056
72057         * m4/strtok_r.m4: New file.
72058
72059         * m4/getopt.m4: Replace opterr.
72060
72061 2004-11-11  Simon Josefsson  <jas@extundo.com>
72062
72063         * lib/strtok_r.h, strtok_r.c: New file.
72064
72065 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
72066
72067         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
72068         of replacing opterr, getopt, etc.  This should handle the
72069         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
72070
72071 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
72072
72073         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
72074         we can stop lying to compilers about the constness of argv when we
72075         are compiled outside glibc.
72076         (getopt, getopt_long, getopt_long_only): Use it.
72077         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
72078         _getopt_internal, getopt): Likewise.
72079         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
72080         _getopt_long_only_r): Likewise.
72081         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
72082         _getopt_long_r, _getopt_long_only_r): Likewise.
72083
72084         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
72085         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
72086         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
72087         the other external symbols.
72088         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
72089         declaration, since the above renaming now works around collisions.
72090
72091 2004-11-11  Jim Meyering  <jim@meyering.net>
72092
72093         * lib/linebreak.c: Remove trailing blanks.
72094         * lib/alloca_.h: Likewise.
72095         * lib/acosl.c: Likewise.
72096         * lib/euidaccess.c: Likewise.
72097         * lib/allocsa.h: Likewise.
72098
72099 2004-11-10  Simon Josefsson  <jas@extundo.com>
72100
72101         * m4/getaddrinfo.m4: New file.
72102
72103 2004-11-10  Simon Josefsson  <jas@extundo.com>
72104
72105         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
72106
72107 2004-11-10  Simon Josefsson  <jas@extundo.com>
72108
72109         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72110         getaddrinfo.
72111
72112         * modules/getaddrinfo: New file.
72113
72114 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72115
72116         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
72117
72118 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72119
72120         * lib/mktime.c (SHR): New macro, which is a portable
72121         substitute for >> that should work even on Crays.
72122         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
72123         Problem reported by Mark D. Baushke in
72124         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
72125         * lib/getdate.y (SHR): Likewise.
72126         (tm_diff): Use it.
72127         * lib/strftime.c (SHR): Likewise.
72128         (tm_diff): Use it.
72129         * lib/quotearg.c (struct quoting_options): Use unsigned int for
72130         quote_these_too, so that right shifts are well defined.  All uses
72131         changed.
72132
72133 2004-11-10  Jim Meyering  <jim@meyering.net>
72134
72135         Ensure that no close failure goes unreported.
72136         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
72137         return early when it seems there's nothing to flush.
72138         Don't include __fpending.h.
72139
72140 2004-11-10  Jim Meyering  <jim@meyering.net>
72141
72142         * modules/closeout (Depends-on): Remove fpending.
72143
72144 2004-11-10  Jim Meyering  <jim@meyering.net>
72145
72146         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
72147
72148 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72149
72150         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
72151         gl_FUNC_STRFTIME.
72152         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
72153         and AC_REQUIRE when possible, to avoid duplicate checks.
72154         Check for <wchar.h>.
72155
72156 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72157
72158         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
72159
72160 2004-11-09  Bruno Haible  <bruno@clisp.org>
72161
72162         * m4/sockpfaf.m4: New file.
72163
72164 2004-11-05  Bruno Haible  <bruno@clisp.org>
72165
72166         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
72167         Reported by Mark D. Baushke <mdb@cvshome.org>.
72168
72169 2004-11-04  Bruno Haible  <bruno@clisp.org>
72170
72171         2004-09-11  Bruno Haible  <bruno@clisp.org>
72172                 * allocsa.valgrind: New file.
72173         2004-02-06  Bruno Haible  <bruno@clisp.org>
72174                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
72175                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
72176                 Reported by Christopher Seip <chris.seip@hp.com>.
72177
72178 2004-11-04  Bruno Haible  <bruno@clisp.org>
72179
72180         * modules/allocsa (Files): Add lib/allocsa.valgrind.
72181         (Makefile.am): Distribute it.
72182
72183 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72184
72185         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
72186         with errno == ERANGE if the buffer is too small.
72187         Problem reported by Mark D. Baushke.
72188
72189 2004-11-03  Albert Chin  <china@thewrittenword.com>
72190             Paul Eggert  <eggert@cs.ucla.edu>
72191
72192         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
72193         equivalent, substitute $ac_type for equivalent type rather than
72194         blindly using uint32_t *always* which won't work if uint32_t is not
72195         available.  Define _UINT32_T to work around typedef of uint32_t if
72196         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
72197         2.5.1.
72198
72199 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72200
72201         * m4/jm-macros.m4: Sync from coreutils.
72202         (gl_MACROS): Check for mbrlen, for pathchk.
72203         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
72204
72205 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72206
72207         * lib/xreadlink.c (MAXSIZE): New macro.
72208         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
72209         size does not exceed MAXSIZE.  Avoid cast.
72210         As suggested by Mark D. Baushke in
72211         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
72212         if readlink fails with buffer size just under MAXSIZE, try again
72213         with MAXSIZE.
72214
72215 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72216
72217         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
72218
72219 2004-11-02  Derek R. Price  <derek@ximbiot.com>
72220         and  Paul Eggert  <eggert@cs.ucla.edu>
72221
72222         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
72223         (get_date): Overparenthesize to avoid GCC warning.
72224
72225 2004-11-02  Bruno Haible  <bruno@clisp.org>
72226
72227         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
72228         returns void.
72229
72230 2004-11-02  Bruno Haible  <bruno@clisp.org>
72231
72232         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
72233         function returns void.
72234
72235 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
72236
72237         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
72238         fflush_unlocked, flockfile, funlockfile, funlockfile,
72239         fputs_unlocked, putc_unlocked.
72240
72241 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
72242
72243         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
72244         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
72245         already declared.
72246
72247 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72248
72249         * modules/getdate (Files): Add doc/getdate.texi.
72250         (Depends-on): Add setenv, xalloc.
72251
72252 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72253
72254         * lib/getdate.y: Add support for TZ="foo" within a date string.
72255         Fix some bugs near time_t boundaries.  Reject dates with
72256         out-of-range components, e.g., "Sept 31".
72257         Include <stdlib.h>, "setenv.h", "xalloc.h".
72258         (ISDIGIT_LOCALE): Remove; unused.
72259         Note that the TZ and time functions used here are not reentrant.
72260         (mktime_ok, get_tz): New functions.
72261         (TZBUFSIZE): New constant.
72262         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
72263         This requires that we sometimes generate our own TZ="XXX..." setting.
72264
72265 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72266
72267         * doc/getdate.texi: New file, from coreutils with modifications for
72268         the new TZ parsing.
72269
72270 2004-10-27  Derek R. Price  <derek@ximbiot.com>
72271
72272         * lib/mktime.c (not_equal_tm): Remove redundant check.
72273
72274 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72275
72276         * modules/regex (lib_SOURCES): Add regex.c.
72277         Reported by James Youngman in
72278         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
72279
72280 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72281
72282         * lib/getdate.y: Use Bison 1.875 features, and some minor
72283         code cleanups.  This change does not affect semantics.
72284         Don't include <stdlib.h>; no longer needed.
72285         Don't include unlocked-io.h; only the "#if TEST" code uses
72286         stdio, and performance isn't crucial there.
72287         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
72288         Bison 1.875 features as described below.
72289         All uses of "PC." replaced by "pc->".
72290         (YYSTYPE): Add a forward declaration.
72291         (yylex, yyerror): Use full prototypes in forward decls.
72292         Use "%pure-parser" rather than obsolescent "%pure_parser".
72293         Use %parse-param and %lex-param instead of obsolescent
72294         YYPARSE_PARAM and YYLEX_PARAM.
72295         (meridian_table, month_and_day_table, time_units_table,
72296         relative_time_table, time_zone_table, military_table,
72297         lookup_zone, lookup_word, get_date):
72298         Use NULL instead of 0 where appropriate.
72299         (to_hour): Avoid abort (), to avoid a dependency on
72300         stdlib.h.
72301         (yyerror, yylex): Now accepts parser_control * arg.
72302         (main) [TEST]: Use '\0' rather than 0 for char.
72303
72304 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
72305
72306         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
72307
72308 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
72309
72310         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
72311         It's now the caller's responsibility to handle the case where
72312         !HAVE_GETPAGESIZE && !defined getpagesize.
72313
72314         * lib/mktime.c (leapyear): Arg is long int, not int.
72315
72316 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
72317
72318         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
72319
72320 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72321
72322         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
72323         missing.  Problem reported by James Youngman.
72324
72325 2004-10-16  Simon Josefsson  <jas@extundo.com>
72326
72327         * gnulib-tool: Fix comments.  Fix parse problem.
72328         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
72329
72330 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
72331
72332         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
72333         implementation of getopt_long.  Problem reported by Alexander Taler in:
72334         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
72335
72336 2004-10-15  Bruno Haible  <bruno@clisp.org>
72337
72338         * gnulib-tool: Untabify. Initialize supplied_libname.
72339         (func_usage): More homogenous output.
72340         (func_modules_transitive_closure, func_modules_to_filelist,
72341         func_emit_lib_Makefile_am): New functions.
72342         (func_import): New function, extracted from big case statement. Use
72343         func_get_license, func_modules_transitive_closure,
72344         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
72345         opt_lgpl. Don't use test -a, as it's not portable.
72346         (func_create_testdir): Use func_modules_transitive_closure,
72347         func_modules_to_filelist, func_emit_lib_Makefile_am.
72348
72349 2004-10-15  Bruno Haible  <bruno@clisp.org>
72350
72351         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
72352
72353 2004-10-15  Bruno Haible  <bruno@clisp.org>
72354
72355         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
72356         the portions belonging to each module.
72357         Suggested by Derek Robert Price <derek@ximbiot.com>.
72358
72359 2004-10-12  Simon Josefsson  <jas@extundo.com>
72360
72361         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
72362         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
72363         to real functions.
72364
72365 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72366
72367         * modules/vsnprintf: New file.
72368
72369 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72370
72371         * m4/vsnprintf.m4: New file.
72372
72373 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72374
72375         * lib/vsnprintf.h: New file.
72376         * lib/vsnprintf.c: New file.
72377
72378 2004-10-11  Bruno Haible  <bruno@clisp.org>
72379
72380         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
72381         vsnprintf.
72382
72383 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72384
72385         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
72386
72387 2004-10-07  Bruno Haible  <bruno@clisp.org>
72388
72389         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
72390         fits into the provided buffer.
72391
72392 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72393
72394         * lib/diacrit.c, diacrit.h: Add GPL notice.
72395
72396         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
72397         notice.
72398         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
72399         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
72400         This avoids a potential constant-folding bug.
72401
72402 2004-10-05  Bruno Haible  <bruno@clisp.org>
72403
72404         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
72405         for the declaration of strsep.
72406
72407 2004-10-05  Bruno Haible  <bruno@clisp.org>
72408
72409         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
72410
72411 2004-10-04  Simon Josefsson  <jas@extundo.com>
72412
72413         * modules/memmem: New file.
72414         * tests/test-memmem.c: New file.
72415         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
72416
72417 2004-10-04  Simon Josefsson  <jas@extundo.com>
72418
72419         * m4/memmem.m4: New file.
72420
72421 2004-10-04  Simon Josefsson  <jas@extundo.com>
72422
72423         * lib/memmem.h: New file.
72424         * lib/memmem.c: New file, taken from glibc.
72425
72426 2004-10-04  Simon Josefsson  <jas@extundo.com>
72427
72428         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
72429         '#ifdef USE_UNLOCKED_IO'.
72430
72431 2004-10-04  Simon Josefsson  <jas@extundo.com>
72432
72433         * config/srclist.txt: Add memmem from glibc.
72434
72435 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72436
72437         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
72438
72439         * modules/argmatch, modules/argp, modules/closeout, modules/error,
72440         modules/exclude, modules/getdate, modules/getline,
72441         modules/getndelim2, modules/getpass, modules/getpass-gnu,
72442         modules/getusershell, modules/linebuffer, modules/md5,
72443         modules/mountlist, modules/posixtm, modules/readtokens,
72444         modules/readutmp, modules/regex, modules/sha1,
72445         modules/version-etc, modules/yesno:
72446         Remove dependency on unlocked-io.
72447
72448 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72449
72450         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
72451
72452         * m4/unlocked-io.m4: Add copyright notice.
72453         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
72454
72455 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72456
72457         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
72458         * lib/xmalloc.c (xmemdup): Likewise.
72459         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
72460         XFREE): Remove these long-obsolescent macros.
72461         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
72462         * lib/xstrdup.c: Remove.
72463
72464         * lib/regex.c (re_comp): Cast gettext return value to char *,
72465         Problem reported by Martin Neitzel via Mark D. Baushke.
72466
72467 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72468
72469         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
72470         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
72471         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
72472         regex.c, sha1.c, version-etc.c, yesno.c:
72473         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
72474         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
72475         the includer's responsibility.
72476
72477         Sync from coreutils.
72478
72479         * lib/modechange.c (mode_compile): Don't decrement a pointer that
72480         points to the start of a string, as the C Standard says the
72481         resulting behavior is undefined.
72482
72483         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
72484         simple -> simple_backups, numbered_existing ->
72485         numbered_existing_backups, numbered -> numbered_backups
72486         to avoid shadowing problems.  All uses changed.
72487         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
72488         * lib/backupfile.c (check_extension, numbered_backup):
72489         Rename locals to avoid shadowing 'basename'.
72490         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
72491         once.
72492
72493         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
72494         * lib/.cvsignore: Add getopt.h.
72495
72496 2004-10-04  Bruno Haible  <bruno@clisp.org>
72497
72498         * modules/README: New file.
72499         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
72500         not a module.
72501
72502 2004-10-02  Jim Meyering  <jim@meyering.net>
72503
72504         * lib/dirfd.h, getpagesize.h: Add copyright notice.
72505
72506 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72507
72508         * modules/strsep: New file.
72509
72510 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72511
72512         * m4/strsep.m4: New file.
72513
72514 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72515
72516         * lib/strsep.h: New file.
72517         * lib/strsep.c: New file.
72518
72519 2004-10-01  Simon Josefsson  <jas@extundo.com>
72520
72521         * lib/snprintf.c (snprintf): Handle size==0.
72522
72523 2004-10-01  Simon Josefsson  <jas@extundo.com>
72524             Bruno Haible  <bruno@clisp.org>
72525
72526         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
72527         (snprintf): Declare 'args'.
72528
72529 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
72530
72531         * lib/snprintf.c: Remove comments as to why each header is needed.
72532
72533 2004-10-01  Bruno Haible  <bruno@clisp.org>
72534
72535         * MODULES.html.sh: Add strsep.
72536
72537 2004-09-30  Simon Josefsson  <jas@extundo.com>
72538
72539         * modules/snprintf: New file.
72540
72541 2004-09-30  Simon Josefsson  <jas@extundo.com>
72542
72543         * m4/snprintf.m4: New file.
72544
72545 2004-09-30  Simon Josefsson  <jas@extundo.com>
72546
72547         * lib/snprintf.h, lib/snprintf.c: New files.
72548
72549 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72550
72551         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
72552         (hol_entry_help): Never translate an empty string.
72553         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
72554         * lib/argp.h (OPTION_NO_TRANS): New option.
72555
72556 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72557
72558         * modules/argp (Maintainer): Replace Simon Josefsson
72559         by Sergey Poznyakoff.
72560
72561 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72562
72563         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
72564         changes merged back into glibc.
72565
72566 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72567
72568         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
72569
72570 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72571
72572         * lib/xvasprintf.c: Include xalloc.h.
72573         (xvasprintf): Use xalloc_die, not xmalloc_die.
72574
72575 2004-09-29  Bruno Haible  <bruno@clisp.org>
72576
72577         * modules/alloca-opt: New file, derived from modules/alloca.
72578         * modules/allocsa: Depend on alloca-opt instead of alloca.
72579         * modules/setenv: Likewise.
72580         * modules/vasnprintf: Likewise.
72581         * MODULES.html.sh: Add alloca-opt.
72582
72583 2004-09-28  Simon Josefsson  <jas@extundo.com>
72584
72585         * gnulib-tool: New parameter --lgpl, to asseert that modules are
72586         LGPL, and to replace license template from GPL to LGPL.
72587
72588 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72589
72590         * modules/dummy: Change license to LGPL.
72591
72592 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72593
72594         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
72595
72596 2004-09-24  Simon Josefsson  <jas@extundo.com>
72597
72598         * modules/minmax (License): Change from GPL to LGPL.
72599
72600 2004-09-23  Simon Josefsson  <jas@extundo.com>
72601
72602         * gnulib-tool (--import): Typo.
72603
72604 2004-09-23  Simon Josefsson  <jas@extundo.com>
72605
72606         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
72607
72608 2004-09-22  Bruno Haible  <bruno@clisp.org>
72609
72610         * modules/*: Add 'License' field.
72611         * gnulib-tool: Accept --extract-license option.
72612         (func_get_license): New function.
72613
72614 2004-09-21  Bruno Haible  <bruno@clisp.org>
72615
72616         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
72617         Reported by Simon Josefsson.
72618
72619 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72620
72621         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
72622         gl_AC_TYPE_LONG_LONG.
72623
72624 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72625
72626         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
72627
72628 2004-09-18  Simon Josefsson  <jas@extundo.com>
72629         and  Paul Eggert  <eggert@cs.ucla.edu>
72630
72631         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
72632         calls with autoreconf.  Define GL_LIB.
72633
72634 2004-09-14  Karl Berry  <karl@gnu.org>
72635
72636         * config/srclist.txt: unsync setenv.c, sigh.
72637
72638 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72639
72640         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
72641         Problem reported by Bruno Haible in:
72642         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
72643
72644 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72645
72646         * config/srclist.txt: Comment out argp-pvh.c.
72647
72648 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
72649
72650         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
72651         in case some system header has #define'd it.  Problem reported by
72652         Soeren D. Schulze in
72653         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
72654
72655 2004-09-09  Karl Berry  <karl@gnu.org>
72656
72657         * regex.[ch]: delete from the root.  These were supposed to be
72658                 synced with emacs cvs, but this has not happened for about
72659                 a year, and anyway nothing else uses emacs regex.[ch].
72660                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
72661                 lib/regex[.ch] is untouched.
72662
72663 2004-09-09  Bruno Haible  <bruno@clisp.org>
72664
72665         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
72666
72667 2004-09-09  Bruno Haible  <bruno@clisp.org>
72668
72669         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
72670         modifications.
72671         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
72672
72673 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72674
72675         * modules/xvasprintf: New file.
72676         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
72677
72678 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72679
72680         * lib/xvasprintf.h: New file.
72681         * lib/xvasprintf.c: New file.
72682         * lib/xasprintf.c: New file.
72683
72684 2004-09-08  Bruno Haible  <bruno@clisp.org>
72685
72686         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
72687
72688 2004-09-08  Bruno Haible  <bruno@clisp.org>
72689
72690         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
72691         length is > INT_MAX.
72692         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
72693         more.
72694
72695 2004-09-08  Bruno Haible  <bruno@clisp.org>
72696
72697         * lib/stdint_.h: New file, taken from GNU clisp.
72698
72699 2004-09-08  Bruno Haible  <bruno@clisp.org>
72700             Oskar Liljeblad  <oskar@osk.mine.nu>
72701
72702         * modules/stdint: New file.
72703         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
72704
72705 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72706
72707         Import from coreutils.
72708         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
72709         strings on unbounded length.  alloca's performance benefits aren't
72710         that important here.
72711         (V_STRDUP): Remove.
72712         (parse_with_separator): New function, with most of the internals
72713         of the old parse_user_spec.  Allow user to omit both user and group,
72714         for compatibility with FreeBSD.
72715         Clone only the user name, not the entire spec.
72716         Do not set *uid, *gid unless entirely successful.
72717         Avoid memory leak in some failing cases.
72718         Fix regression for USER.GROUP reported by Dmitry V. Levin in
72719         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
72720         (parse_user_spec): Rewrite to use parse_with_separator.
72721
72722 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72723
72724         * modules/userspec: Don't depend on alloca.
72725
72726 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72727
72728         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
72729
72730 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72731
72732         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
72733         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
72734         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
72735
72736 2004-08-16  Simon Josefsson  <jas@extundo.com>
72737
72738         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
72739         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
72740         Add --dry-run for --import.
72741         Let user provided command line parameters override configure.ac
72742         settings.
72743
72744 2004-08-12  Simon Josefsson  <jas@extundo.com>
72745
72746         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
72747         as discussed with Paul Eggert in threads rooted at
72748         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
72749         and
72750         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
72751         Before, the test was empty, and relied on ELIDE_CODE in source
72752         code.)
72753         (gl_PREREQ_GETOPT): New macro.
72754         (gl_GETOPT): Use them.
72755
72756 2004-08-12  Simon Josefsson  <jas@extundo.com>
72757
72758         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
72759         * lib/getopt_.h: Renamed from getopt.h.
72760
72761 2004-08-12  Simon Josefsson  <jas@extundo.com>
72762
72763         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
72764         Change default library name from libfoo to libgnu.
72765         Now, if you have a configure.ac that says:
72766                 gl_SOURCE_BASE(gl)
72767                 gl_M4_BASE(gl/m4)
72768                 gl_MODULES(error getopt etcetera)
72769                 gl_INIT
72770         you can import all you need by running:
72771                 ../gnulib/gnulib-tool --import
72772
72773         * modules/getopt (Files): Rename getopt.h to getopt_.h.
72774         (Makefile.am): Rewrite, use logic from argz.
72775         (Include): Use <getopt.h> instead of "getopt.h".
72776
72777 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72778
72779         * modules/argp (Files): Add m4/unlocked-io.m4.
72780         (Depends-on): Add extensions.
72781
72782 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72783
72784         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
72785         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
72786         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
72787         Check for program_invocation_name, program_invocation_short_name,
72788         flockfile, funlockfile, features.h, _getopt_long_only_r.
72789
72790 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72791
72792         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
72793         its complicated substitute.
72794         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
72795         and program_invocation_name.
72796         (__argp_basename) [!_LIBC]: Remove; the only use was
72797         replaced by its body.
72798         (__argp_short_program_name): Change condition from
72799         !defined __argp_short_program_name to
72800         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
72801         to match argp-namefrob.h.
72802         (__argp_failure): Don't assume strerror_r returns char *.
72803         * lib/argp-parse.c (N_): Define unconditionally.
72804         (argp_default_options): Fill out initializers with 0 to avoid
72805         gcc warnings.
72806
72807 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72808
72809         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
72810         getopt1.c.
72811
72812 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72813
72814         Merge from coreutils.
72815
72816         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
72817
72818         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
72819         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
72820
72821 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72822
72823         Merge from coreutils.
72824
72825         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
72826         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
72827         for Reliant Unix 5.43.
72828
72829         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
72830         (union fooround): Use uintmax_t, not long int.
72831         The rest is a merge from libc:
72832         [defined _LIBC]: Include <shlib-compat.h>.
72833         (_obstack) [defined _LIBC]: Remove after 2.3.4.
72834
72835         * lib/settime.c (settime): Recode to avoid warning with
72836         Sun Forte C 6U2.
72837
72838         * lib/strverscmp.c: Convert to UTF-8.
72839
72840 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72841
72842         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72843         m4/uintmax_t.m4.
72844
72845 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72846
72847         * modules/xalloc-die: New file.
72848         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
72849
72850         * modules/md5 (Files): Add m4/uint32_t.m4.
72851         * modules/sha1: Renamed from modules/sha.
72852         (Files):
72853         Rename lib/sha.h to lib/sha1.h.
72854         Rename lib/sha.c to lib/sha1.c.
72855         Rename m4/sha.m4 to m4/sha1.m4.
72856         (lib_SOURCES): Likewise.
72857         (configure.ac): Rename gl_SHA to gl_SHA1.
72858         (Include): sha.h -> sha1.h.
72859
72860 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72861
72862         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
72863         * m4/sha1.m4: Renamed from sha.m4.
72864         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
72865
72866 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72867
72868         * lib/obstack.h (obstack_empty_p):
72869         Don't assume that chunk->contents is suitably aligned.
72870         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
72871         Likewise. Problem reported by Benno in
72872         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
72873
72874         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
72875         readable.  This could be improved further but it'd take some work.
72876
72877 2004-08-08  Simon Josefsson  <jas@extundo.com>
72878
72879         * modules/xgethostname (Depends-on): Remove exit and error (not
72880         used).
72881
72882         * modules/getpass-gnu: Add getpass.h.
72883         (Depends-on): Add stdbool.
72884         * modules/getpass: Add getpass.h.
72885
72886 2004-08-08  Simon Josefsson  <jas@extundo.com>
72887
72888         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
72889         Check getpass declaration.
72890
72891 2004-08-08  Simon Josefsson  <jas@extundo.com>
72892
72893         * lib/xgethostname.c: Don't include error.h (not used).
72894
72895         * lib/getpass.h: Add.
72896         * lib/getpass.c: Include getpass.h first.
72897
72898 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
72899
72900         * lib/xalloc-die.c: New file.
72901         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
72902         All uses removed.
72903         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
72904         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
72905         xalloc-die.c.
72906         (_, N_, xalloc_die): Move to xalloc-die.c.
72907         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
72908         so that we needn't mess with xalloc_msg_memory_exhausted.
72909
72910         * lib/sha1.h: Renamed from sha.h.
72911         (SHA1_H): Renamed from _SHA_H.
72912         (sha1_ctx): Renamed from sha_ctx.
72913         (sha1_init_ctx): Renamed from sha_init_ctx.
72914         (sha1_process_block): Renamed from sha_process_block.
72915         (sha1_process_bytes): Renamed from sha_process_bytes.
72916         (sha1_finish_ctx): Renamed from sha_finish_ctx.
72917         (sha1_read_ctx): Renamed from sha_read_ctx.
72918         (sha1_stream): Renamed from sha_stream.
72919         (sha1_buffer): Renamed from sha_buffer.
72920         * lib/sha1.c: Likewise; renamed from sha.c.
72921         Do not include <sys/types.h>.
72922         Include <stddef.h> rather than <stdlib.h>.
72923
72924 2004-08-08  Bruno Haible  <bruno@clisp.org>
72925
72926         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
72927         FILESYSTEM_PREFIX_LEN.
72928         * lib/progreloc.c: Likewise.
72929         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
72930
72931 2004-08-06  Simon Josefsson  <jas@extundo.com>
72932
72933         * modules/progname (Depends-on): Don't depend on stdbool.
72934
72935 2004-08-06  Simon Josefsson  <jas@extundo.com>
72936
72937         * modules/getsubopt: New file.
72938         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72939         getsubopt.
72940
72941 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72942
72943         More merge from coreutils.
72944
72945         * m4/utimens.m4, m4/utimecmp.m4: New files.
72946         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
72947         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
72948         prereq.m4, sha.m4: Import changes from coreutils.
72949
72950 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72951
72952         More merge from coreutils.
72953         * modules/raise, modules/readtokens0, modules/utimens:
72954         * modules/utimecmp, module/xnanosleep: New files.
72955         * modules/strftime: Add lib/strftime.h.
72956         Change include from <time.h> to "strftime.h".
72957         * modules/yesno: Add lib/yesno.h.
72958         * modules/backupfile: Remove lib/addext.c.
72959         * modules/euidaccess: Add stat-macros.h.
72960         * modules/canonicalize, modules/euidaccess,
72961         modules/filemode, modules/lchown, modules/makepath,
72962         modules/rmdir, modules/stat: Likewise.
72963
72964 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72965
72966         Merge from tar.
72967         * lib/argp-help.c (make_hol, hol_append): Don't assume that
72968         SIZE_MAX is a valid preprocessor constant.
72969         (__argp_basename): Change from "#ifndef _LIBC"
72970         to "#ifndef __argp_short_program_name", so that
72971         we don't compile these functions for tar.
72972
72973         More merges from coreutils.
72974         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
72975         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
72976         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
72977         * lib/addext.c: Remove; no longer needed.
72978         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
72979         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
72980         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
72981         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
72982         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
72983         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
72984         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
72985         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
72986         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
72987         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72988         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
72989         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
72990         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
72991         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
72992         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
72993         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
72994         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
72995         Import changes from coreutils.
72996
72997 2004-08-05  Simon Josefsson  <jas@extundo.com>
72998
72999         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
73000
73001 2004-08-05  Simon Josefsson  <jas@extundo.com>
73002
73003         * m4/getsubopt.m4: New file.
73004
73005 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73006
73007         Merge from coreutils.
73008
73009         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
73010         * m4/getcwd-path-max.m4: New files.
73011
73012         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
73013         FILESYSTEM_PREFIX_LEN ->
73014         FILE_SYSTEM_PREFIX_LEN.
73015         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
73016         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
73017         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
73018         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
73019
73020         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
73021         prerequisite modules now handle the DOS stuff.
73022         Don't check for unistd.h.
73023
73024 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73025
73026         Merge from coreutils.
73027
73028         * lib/.gdb-history: Remove; this doesn't belong here.
73029
73030         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
73031         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
73032         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
73033         * lib/getcwd.c: New files.
73034
73035         * lib/dirname.h: Include <stdbool.h>.
73036         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
73037         for consistency with POSIX terminology.  All uses changed.
73038         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
73039         (strip_trailing_slashes): Use bool for booleans.
73040         * lib/stripslash.c (strip_trailing_slashes): Likewise.
73041
73042         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
73043         sometimes returns a positive errno value even when it succeeds.
73044         (print_errno_message) [!LIBC]: Fall back on strerror if
73045         __strerror_r fails.
73046
73047         * lib/path-concat.c (mempcpy): Don't define if a system header defines
73048         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
73049         (longest_relative_suffix): New function.
73050         (path_concat): Use it.  Assume first argument is not NULL.
73051         Port to DOS.  Omit redundant separators.
73052         Report an error instead of returning NULL.
73053         Use mempcpy instead of memcpy.
73054         (xpath_concat): Remove: not declared or used.
73055
73056         * lib/same.h: Include <stdbool.h>
73057         (same_name): Return bool, not int.
73058         * lib/same.c (same_name): Likewise.
73059         (errno): Don't declare; we assume C89 or better now.
73060
73061         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
73062         if not already defined.
73063
73064         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
73065         * lib/dup-safer.c (errno): Likewise.
73066
73067 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73068
73069         Merge from coreutils.
73070         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
73071         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
73072         * modules/path-concat: Don't depend on strdup.
73073
73074 2004-08-03  Simon Josefsson  <jas@extundo.com>
73075
73076         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
73077         * lib/progname.h: Don't include stdbool.h.
73078
73079 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73080
73081         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
73082         * MODULES.html.sh (func_all_modules): Remove fatal.
73083
73084 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73085
73086         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
73087
73088 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73089
73090         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
73091         working.
73092
73093 2004-08-02  Simon Josefsson  <jas@extundo.com>
73094
73095         * lib/getsubopt.h: New file, with comments from Bruno Haible.
73096         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
73097         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
73098
73099 2004-08-01  Simon Josefsson  <jas@extundo.com>
73100
73101         * lib/xgetdomainname.c: Include stdlib.h, for free().
73102
73103 2004-07-19  Bruno Haible  <bruno@clisp.org>
73104
73105         * MODULES.html.sh (func_all_modules): Add dummy.
73106
73107 2004-07-16  Simon Josefsson  <jas@extundo.com>
73108
73109         * modules/dummy: New file.
73110
73111 2004-07-16  Simon Josefsson  <jas@extundo.com>
73112
73113         * lib/dummy.c: New file.
73114
73115 2004-07-16  Bruno Haible  <bruno@clisp.org>
73116
73117         * lib/backupfile.h: Add extern "C" for C++.
73118         * lib/closeout.h: Likewise.
73119         * lib/copy-file.h: Likewise.
73120         * lib/findprog.h: Likewise.
73121         * lib/full-write.h: Likewise.
73122         * lib/pathname.h: Likewise.
73123         * lib/progname.h: Likewise.
73124         * lib/stpcpy.h: Likewise.
73125         * lib/stpncpy.h: Likewise.
73126         * lib/strcase.h: Likewise.
73127         * lib/strstr.h: Likewise.
73128         * lib/xalloc.h: Likewise.
73129
73130         * lib/mbswidth.h: Add extern "C" for C++.
73131         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
73132
73133 2004-07-13  Robert Millan  <robertmh@gnu.org>
73134
73135         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
73136
73137 2004-07-09  Simon Josefsson  <jas@extundo.com>
73138
73139         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
73140         failed without this.)
73141
73142 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73143
73144         * modules/chown (Files): Add lib/fchown-stub.c, since
73145         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
73146
73147 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73148
73149         * lib/fchown-stub.c: New file.
73150
73151 2004-06-24  Jim Meyering  <jim@meyering.net>
73152
73153         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
73154
73155 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73156
73157         * modules/argz: Omit "#include".
73158
73159         * MODULES.html.sh (func_all_modules): Add calloc, to match
73160         2004-06-01 addition of calloc module.
73161
73162 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73163
73164         * m4/argz.m4: New file, which is autoupdated from libtool.
73165
73166 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73167
73168         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
73169         libtool.
73170
73171 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73172
73173         * config/srclist-update: Don't insist on "USA." before the
73174         close-comment, as libtool omits the period and puts the */ on a
73175         separate line.
73176         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
73177         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
73178
73179 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
73180
73181         * modules/argz: New file.
73182         * MODULES.html.sh (func_all_modules): Add argz.
73183
73184 2004-06-12  Jim Meyering  <jim@meyering.net>
73185         and  Paul Eggert  <eggert@cs.ucla.edu>
73186
73187         * modules/hash (Files): Add lib/xalloc.h.
73188         * modules/pipe (Depends-on): Add wait-process.
73189         * modules/stat (Depends-on): Add xalloc.
73190         * modules/userspec (Files): Add lib/userspec.h.
73191         * modules/xstrto
73192
73193         Upgrade from gettext-0.13.
73194         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
73195         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
73196         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
73197
73198 2004-06-10  Jim Meyering  <jim@meyering.net>
73199
73200         * lib/calloc.c: New file.
73201
73202 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
73203
73204         * lib/getdate.y (yylex): Allow space between sign and number.
73205         Problem reported by Dan Jacobson.
73206
73207 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
73208
73209         Merge from coreutils CVS.
73210
73211         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
73212         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
73213         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
73214         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
73215         xstrtol.m4: Fix copyright date and/or serial number.
73216
73217         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
73218         See if we need an fchown replacement.
73219         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
73220         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
73221         and use the replacement function if we detect either defect.
73222
73223         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
73224         gl_UTIMECMP.
73225
73226 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
73227         and  Jim Meyering  <jim@meyering.net>
73228
73229         Merge from coreutils CVS.
73230
73231         * lib/stat-macros.h: New file, with contents from file-type.h
73232         and coreutils' system.h.
73233         * lib/file-type.c: Include "stat-macros.h".
73234         * lib/file-type.h (file_type): Move all macro definitions to new file,
73235         stat-macros.h.
73236
73237         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
73238         Wrap old code with this conditional.
73239         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
73240         function that does not dereference symlinks.
73241         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
73242
73243         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
73244         dependency problems.
73245         (xreadlink): Accept new arg SIZE, for efficiency.
73246         All decls and uses changed.
73247         * lib/xreadlink.h: Include <stddef.h>, for size_t.
73248
73249         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
73250         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
73251
73252         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
73253         sysexits.h.
73254
73255 2004-06-01  Jim Meyering  <jim@meyering.net>
73256
73257         * m4/calloc.m4: New file.
73258
73259 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
73260
73261         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
73262         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
73263         Also, fix a typo in a diagnostic.
73264
73265 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
73266
73267         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
73268         or AC_FUNC_REALLOC.
73269
73270 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
73271
73272         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
73273         macros to be defined.
73274         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
73275         the allocator returns NULL because the requested size is zero.
73276
73277 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73278
73279         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
73280         var.  Add comment explaining why libc still defines it.  This
73281         merges the following patch from glibc:
73282         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
73283
73284 2004-05-20  Andreas Schwab  <schwab@suse.de>
73285
73286         * m4/free.m4: Replace free if it not known to work, not the other
73287         way round.
73288
73289 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73290
73291         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
73292         present in glibc since revision 1.1 of this file.
73293         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
73294         obstack_alignment_mask, obstack_alloc, obstack_base,
73295         obstack_blank, obstack_blank_fast, obstack_chunk_size,
73296         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
73297         obstack_grow0, obstack_init, obstack_int_grow,
73298         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
73299         obstack_next_free, obstack_object_size, obstack_ptr_grow,
73300         obstack_ptr_grow_fast, obstack_room): Remove declarations of
73301         nonexistent functions.
73302
73303 2004-05-18  Karl Berry  <karl@gnu.org>
73304
73305         * config/srclist.txt: break link for vasnprintf.c.
73306
73307 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
73308
73309         Port obstack to the AS/400, where pointers are 16 bytes wide and
73310         you cannot cast an integer to a valid pointer.  This patch is
73311         currently waiting to be integrated into glibc; see
73312         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
73313
73314         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
73315         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
73316         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
73317         (struct obstack): temp member is now a union of a pointer and
73318         an integer, instead of an integer.  All integer uses changed.
73319         This does not affect the physical layout of struct obstack,
73320         except on hosts (like the AS/400) where the size or alignment of
73321         void * is greater than that of ptrdiff_t.
73322         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
73323         __STDC__)]: Store temporary in pointer member of union, not
73324         integer member.
73325         * lib/obstack.c: Include <stddef.h>, for offsetof.
73326         (struct fooalign): Remove; it doesn't need a name.
73327         (union fooround): Change double to long double, and add void *.
73328         (DEFAULT_ALIGNMENT): Use offsetof to compute.
73329         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
73330         not a macro.  Hence the values are always int; so remove all
73331         casts-to-int in uses.
73332
73333 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
73334
73335         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
73336         we can get this patch merged into glibc.
73337
73338 2004-05-17  Derek R. Price  <derek@ximbiot.com>
73339             Paul Eggert  <eggert@cs.ucla.edu>
73340
73341         * m4/argp: Depend on alloca.
73342
73343 2004-05-17  Derek R. Price  <derek@ximbiot.com>
73344             Paul Eggert  <eggert@cs.ucla.edu>
73345
73346         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
73347         freecoding.
73348
73349 2004-05-17  Bruno Haible  <bruno@clisp.org>
73350
73351         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
73352         precision that consists of a '.' followed by an empty digit string.
73353         Patch by Tor Lillqvist <tml@iki.fi>.
73354
73355 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
73356
73357         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
73358         for backward compatibility with older code.  We need our own
73359         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
73360         it under some other name, and our alloca.h will define it.
73361
73362 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
73363             Derek Price  <derek@ximbiot.com>
73364
73365         * lib/alloca.c: Include <alloca.h>, to get our interface.
73366         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
73367         include <alloca.h> first.  Use C89 prototype for alloca; this
73368         requires including <stddef.h> for size_t.  Use extern "C" if C++.
73369         Use #elif for simplicity, since we can assume C89 now.
73370         Don't try to source the system alloca.h since it will not be found
73371         and to prevent recursively including its replacement.
73372         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
73373         * lib/regex.c: Likewise.
73374
73375 2004-05-16  Derek Price  <derek@ximbiot.com>
73376             Paul Eggert  <eggert@cs.ucla.edu>
73377
73378         getline cleanup.  This changes the getndelim2 API: both order of
73379         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
73380         no delimiter).
73381
73382         * lib/getline.c: Don't include stddef.h or stdio.h, since our
73383         interface does that.
73384         (getline): Always use getdelim, so that we don't have two
73385         copies of this code.
73386         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
73387         if available.
73388         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
73389         (GETNDELIM2_MAXIMUM): New macro.
73390         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
73391         instead of the old practice of delim2==0.  All callers changed.
73392         Return -1 on overflow, instead of returning junk.
73393         Do not set *linesize unless allocation succeeds.
73394         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
73395         that we include sys/types.h.
73396         * lib/getnline.h: Likewise.
73397         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
73398         (getndelim2): Reorder arguments.
73399         * lib/getnline.c (getnline, getndelim):
73400         Don't discard the NMAX argument.
73401         (getnline): Invoke getndelim, to avoid code duplication.
73402         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
73403         of (size_t) -1 by callers of the getnline family.
73404
73405 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73406
73407         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
73408         Check for gettimeofday.
73409         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
73410         Check for settimeofday, stime.
73411
73412 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73413
73414         * lib/nanosleep.c (suspended): Change its type from int to
73415         sig_atomic_t volatile.
73416         (first_call): Make it private to rpl_nanosleep, and have it
73417         be zero initially as that's a bit faster.
73418         (my_usleep): Round up fractional times instead of truncating them,
73419         as this is the usual meaning for 'sleep'.
73420
73421         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
73422         doesn't work.
73423         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
73424         (ENOSYS): Define if not defined.
73425         (settime): Fall back on stime if it exists and settimeofday fails.
73426         But don't bother with fallbacks if a method fails with errno == EPERM.
73427
73428 2004-05-11  Jim Meyering  <jim@meyering.net>
73429
73430         Prior to this change, the save_cwd caller required read access to the
73431         current directory on most systems (ones with the fchdir function).
73432
73433         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
73434         fails, try write-only, and finally, resort to using xgetcwd.
73435
73436 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73437
73438         * lib/obstack.c, obstack.h: Import changes from libc.
73439
73440 2004-04-28  Bruno Haible  <bruno@clisp.org>
73441
73442         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
73443         also implicitly appends .exe to executables.
73444         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
73445         accepts Windows pathnames.
73446         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
73447         Treat Cygwin like Windows, since it now accepts Windows pathnames.
73448         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
73449         Treat Cygwin like Windows, since it now accepts Windows pathnames.
73450         Reported by Derek Robert Price <derek@ximbiot.com>.
73451
73452 2004-04-21  Karl Berry  <karl@gnu.org>
73453
73454         * config/srclist.txt (localcharset.c): break sync.
73455
73456 2004-04-20  Paul Eggert  <eggert@twinsun.com>
73457
73458         * m4/host-os.m4: Add a copyright notice.
73459
73460 2004-04-20  Jim Meyering  <jim@meyering.net>
73461
73462         Change UTILS_ to gl_ in AC_DEFINE'd names.
73463         Change utils_- and jm_-prefixed variables, too.
73464         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
73465         UTILS_FUNC_MKDIR_TRAILING_SLASH.
73466         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
73467
73468         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
73469         Don't emit trailing blanks.
73470         Also rename jm_-prefixed variables to have gl_ prefix.
73471
73472         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
73473         Also rename jm_-prefixed variables to have gl_ prefix.
73474
73475         * m4/jm-macros.m4: Reflect the renamings.
73476         * m4/prereq.m4: Likewise.
73477
73478 2004-04-20  Jim Meyering  <jim@meyering.net>
73479
73480         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
73481         memory.
73482
73483 2004-04-20  Jim Meyering  <jim@meyering.net>
73484             Bruno Haible  <bruno@clisp.org>
73485
73486         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
73487         memory when realloc fails.
73488
73489 2004-04-19  Jim Meyering  <jim@meyering.net>
73490
73491         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
73492         now that readutmp.c may call `free (0)'.
73493
73494 2004-04-19  Bruno Haible  <bruno@clisp.org>
73495
73496         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
73497         * m4/inttypes_h.m4: Likewise.
73498         * m4/stdint_h.m4: Likewise.
73499         * m4/intmax_t.m4: Likewise.
73500         * m4/uintmax_t.m4: Likewise.
73501
73502 2004-04-18  Jim Meyering  <jim@meyering.net>
73503
73504         * m4/prereq.m4: Don't forbid jm_ prefix.
73505
73506         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
73507         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
73508         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
73509         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
73510         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
73511         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
73512         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
73513         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
73514         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
73515         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
73516         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
73517         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
73518         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
73519         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
73520         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
73521         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
73522         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
73523         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
73524         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
73525
73526 2004-04-18  Jim Meyering  <jim@meyering.net>
73527
73528         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
73529         failure, don't leak memory and do call END_UTMP_ENT.
73530
73531 2004-04-16  Jim Meyering  <jim@meyering.net>
73532
73533         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
73534         coreutils' stat program.
73535         (gl_PREREQ): Don't require jm_PREREQ_STAT.
73536
73537 2004-04-11  Paul Eggert  <eggert@twinsun.com>
73538
73539         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
73540         C89.
73541         (CHAR_BIT): Remove, since we assume C89.
73542         Include <stdint.h> if available, as per current Autoconf CVS advice.
73543
73544 2004-03-31  Jim Meyering  <jim@meyering.net>
73545
73546         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
73547         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
73548         * m4/xalloc.m4: Likewise.
73549
73550 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73551
73552         Merge from coreutils.
73553
73554         * m4/inttostr.m4: New file.
73555         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
73556         Require AM_STDBOOL_H and gl_TIMESPEC instead.
73557         Require gl_CLOCK_TIME.
73558         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
73559
73560 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73561
73562         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
73563         not bool, to be more consistent with Unix conventions.
73564         Suggested by Bruno Haible.
73565
73566         Merge from coreutils.
73567
73568         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
73569         * lib/umaxtostr.c: New files.
73570
73571         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
73572         the usual <time.h> dance.
73573         (get_date): Change signature to support fractional time stamps.
73574         All callers changed.
73575         * lib/getdate.y: Include "getdate.h" first, as we can now
73576         assume C89 and don't need to worry about 'const'.
73577         Similarly, include "unlocked-io.h" near start, not in middle.
73578         Include <limits.h>.
73579         (textint.value): Use long int rather than int.
73580         (textint.digits): Use size_t rather than int.
73581         (BILLION, LOG10_BILLION): New constants.
73582         (parser_control): New member rel_ns.  Members day_ordinal,
73583         time_zone, month, day, hour, minutes, rel_year, rel_month,
73584         rel_day, rel_hour, rel_minutes, rel_seconds
73585         are now long int, not int.  Member seconds is now struct timespec,
73586         not int.  New member timespec_seen.  Members dates_seen, days_seen,
73587         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
73588         not int.
73589         (%union.intval): Now long int, not int.
73590         New member timespec.
73591         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
73592         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
73593         (spec): Now is a timespec or an item list.
73594         (timespec, items): New nonterminals.
73595         (time, rel, relunit, number, get_date):
73596         Add support for fractional seconds.
73597         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
73598         (gmtime, localtime, mktime): Remove decls; not needed with C89.
73599         (to_hour): First arg is now long int, not int.
73600         (to_year): Returns long int, not int.
73601         Don't treat year -70 like 70.
73602         (tm_diff): Returns long int, not int.
73603         (lookup_word): Use bool instead of int when appropriate.
73604         (yylex): Use size_t for count, not int.
73605         Detect overflow when parsing large integer constants.
73606         Add support for fractions.
73607         (get_date): Make pointers 'const' if possible.
73608         Use more-portable code to detect integer overflow.
73609         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
73610         Don't use ctime; it's not reliable if the year has >4 digits.
73611
73612         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
73613         This is for compatibility with BSD.
73614
73615         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
73616         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
73617         From coreutils' system.h.
73618
73619         * lib/userspec.c: Don't include "posixver.h".
73620         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
73621         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
73622         compatible extension.  Simplify code by removing a boolean int
73623         that was always nonzero if a string was nonnull.
73624
73625 2004-03-30  Jim Meyering  <jim@meyering.net>
73626
73627         Merge from coreutils.
73628
73629         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
73630         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
73631         on some systems one must include <grp.h> before it.
73632         Reported by Christian Krackowizer.
73633
73634 2004-03-30  Jim Meyering  <jim@meyering.net>
73635
73636         Merge from coreutils.
73637
73638         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
73639
73640         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
73641         an empty input stream.
73642
73643         * lib/readtokens.c: Include <stdbool.h>.
73644         (readtoken): Use `size_t' rather than int/long.
73645         All callers adjusted.
73646         Use `bool' rather than `int' where appropriate.
73647         Use memset rather than an explicit loop.
73648         Use x2nrealloc rather than xrealloc.
73649         Allow the use of `\0' as a delimiter.
73650         (readtokens): Likewise.
73651         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
73652
73653 2004-03-30  Jim Meyering  <jim@meyering.net>
73654
73655         * m4/realloc.m4: Remove file, since now it does no more than
73656         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
73657         the `configure.ac' section of module/realloc.
73658         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
73659
73660 2004-03-30  Bruno Haible  <bruno@clisp.org>
73661
73662         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
73663         nonnull.
73664
73665 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73666
73667         Merge changes to getloadavg.c from coreutils and Emacs.
73668
73669         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
73670         Define to an expression, not to the empty string.
73671         Include cloexec.h and xalloc.h.
73672         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
73673         Use set_cloexec_flag rather than rolling our own.
73674         * lib/cloexec.c, lib/cloexec.h: New files.
73675
73676 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73677
73678         * m4/cloexec.m4: New file.
73679
73680 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73681
73682         * lib/getopt.h: Sync with libc CVS.
73683
73684 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73685             Bruno Haible  <bruno@clisp.org>
73686
73687         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
73688         mbswidth.
73689
73690 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73691             Bruno Haible  <bruno@clisp.org>
73692
73693         * lib/mbswidth.h: Include <wchar.h> only if
73694         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
73695         <wchar.h>.
73696         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
73697
73698 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73699
73700         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
73701         Sync with libc CVS.
73702         * lib/getopt_int.h: New file, also synced from libc.
73703
73704 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73705
73706         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
73707         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
73708         Bring back getopt.c, getopt.h, getopt1.c.
73709
73710 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73711
73712         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
73713         All uses changed.  Check for sa_sigaction member; this fixes
73714         a bug first reported by Jason Andrade in
73715         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73716
73717 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73718
73719         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
73720         '#if' expressions.  Unlike the code it replaces, it does not
73721         depend on (defined _SC_PAGESIZE).  However, it does depend on
73722         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
73723         first reported by Jason Andrade in
73724         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73725
73726 2004-02-25  Simon Josefsson  <jas@extundo.com>
73727
73728         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
73729
73730 2004-02-25  Simon Josefsson  <jas@extundo.com>
73731
73732         * lib/strdup.h: New file.
73733         * lib/strdup.c: Include it.
73734         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
73735         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
73736
73737 2004-02-23  Karl Berry  <karl@gnu.org>
73738
73739         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
73740         (from fencepost.gnu.org:/gd/gnuorg).
73741
73742 2004-02-23  Karl Berry  <karl@gnu.org>
73743
73744         * config/srclistvars.sh (GNUORG) [karl]: redefine.
73745         * config/srclist.txt: add maintain/standards documents.
73746
73747 2004-02-18  Bruno Haible  <bruno@clisp.org>
73748
73749         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
73750         Reported by Derek Robert Price <derek@ximbiot.com>.
73751
73752 2004-02-16  Karl Berry  <karl@gnu.org>
73753
73754         * config/mkinstalldirs, install-sh: update from automake.
73755
73756 2004-02-06  Karl Berry  <karl@gnu.org>
73757
73758         * m4/po.m4: update from gettext 0.14.1.
73759
73760 2004-02-06  Karl Berry  <karl@gnu.org>
73761
73762         * lib/config.charset: update from gettext 0.14.1.
73763
73764 2004-02-05  Paul Eggert  <eggert@twinsun.com>
73765
73766         Add comments and code, prompted by suggestions from Bruno Haible
73767         for sh-quote.
73768         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
73769         describing the enum quoting_style values.
73770         * lib/quotearg.c (quotearg_alloc): New function.
73771         (quotearg_buffer_restyled): Treat lone { and } as special.
73772         Treat = as special.  Work around bug with older shells
73773         that "see" a '\' that is really the 2nd byte of a multibyte char.
73774         Quote empty string with shell_quoting_style.
73775
73776 2004-02-03  Bruno Haible  <bruno@clisp.org>
73777
73778         * m4/pipe.m4: New file, from GNU gettext.
73779
73780 2004-02-03  Bruno Haible  <bruno@clisp.org>
73781
73782         * lib/pipe.h: New file, from GNU gettext.
73783         * lib/pipe.c: New file, from GNU gettext.
73784
73785 2004-01-27  Bruno Haible  <bruno@clisp.org>
73786
73787         * m4/execute.m4: New file, from GNU gettext.
73788
73789 2004-01-27  Bruno Haible  <bruno@clisp.org>
73790
73791         * lib/execute.h: New file, from GNU gettext.
73792         * lib/execute.c: New file, from GNU gettext.
73793         * lib/w32spawn.h: New file, from GNU gettext.
73794
73795 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73796
73797         Merge from diffutils.
73798
73799         * lib/file-type.c (file_type): Add typed memory objects.
73800         * lib/file-type.h (S_TYPEISTMO): New macro.
73801
73802         * lib/c-stack.h (c_stack_action): Remove argv argument.
73803         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
73804         (die): Don't calculate message unless segv_action returns.
73805         (get_stack_location, min_address_from_argv, max_address_from_argv,
73806         volatile stack_base, volatile_stack_size): Remove.
73807         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
73808         that every segmentation violation is a stack overflow.  (Ouch!)
73809         See Debian bug 136249 (still outstanding) for more info about why
73810         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
73811
73812 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73813
73814         Exit-status fix from coreutils.
73815
73816         Use exit_failure consistently in place of EXIT_FAILURE,
73817         so that program exit statuses are consistent on failure.
73818
73819         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
73820         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
73821         * lib/argmatch.h: Comment fix to match the above.
73822         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
73823         Now a macro referring to exit_failure, instead of a separate
73824         variable.  Include "exitfail.h" to get it.
73825         * lib/xstrtol.h: Include "exitfail.h".
73826         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
73827
73828         * lib/long-options.c (parse_long_options): Use prototype
73829         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
73830         for clarity.
73831
73832 2004-01-21  Jim Meyering  <jim@meyering.net>
73833
73834         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
73835         so as not to conflict with a different-sized __mktime_internal
73836         function in GNU libc.
73837         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
73838         Problem building statically-linked `ls' reported by Michael Brunnbauer.
73839
73840 2004-01-20  Karl Berry  <karl@gnu.org>
73841
73842         * config/config.guess: update from config.
73843
73844         * config/srclistvars.sh: GNUWWWLICENSES for karl.
73845
73846 2004-01-20  Bruno Haible  <bruno@clisp.org>
73847
73848         Safer stack allocation.
73849         * lib/setenv.c: Include allocsa.h.
73850         (alloca): Remove fallback definition.
73851         (freea): Remove macro.
73852         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
73853         instead of freea.
73854
73855 2004-01-20  Bruno Haible  <bruno@clisp.org>
73856
73857         * m4/eealloc.m4: New file, from GNU gettext.
73858
73859 2004-01-20  Bruno Haible  <bruno@clisp.org>
73860
73861         * m4/allocsa.m4: New file, from GNU gettext.
73862
73863 2004-01-20  Bruno Haible  <bruno@clisp.org>
73864
73865         * lib/xallocsa.h: New file, from GNU gettext.
73866         * lib/xallocsa.c: New file, from GNU gettext.
73867
73868 2004-01-20  Bruno Haible  <bruno@clisp.org>
73869
73870         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
73871
73872 2004-01-20  Bruno Haible  <bruno@clisp.org>
73873
73874         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
73875         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
73876         specially.
73877
73878 2004-01-20  Bruno Haible  <bruno@clisp.org>
73879
73880         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
73881         patch.
73882
73883 2004-01-20  Bruno Haible  <bruno@clisp.org>
73884
73885         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
73886
73887 2004-01-20  Bruno Haible  <bruno@clisp.org>
73888
73889         * lib/eealloc.h: New file.
73890
73891 2004-01-20  Bruno Haible  <bruno@clisp.org>
73892
73893         * lib/binary-io.h: Avoid warnings on Cygwin.
73894
73895 2004-01-20  Bruno Haible  <bruno@clisp.org>
73896
73897         * lib/allocsa.h: New file, from GNU gettext.
73898         * lib/allocsa.c: New file, from GNU gettext.
73899
73900 2004-01-18  Karl Berry  <karl@gnu.org>
73901
73902         * doc/gpl.texi, doc/lgpl.texi: new files.
73903
73904 2004-01-18  Karl Berry  <karl@gnu.org>
73905
73906         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
73907         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
73908
73909 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73910
73911         Merge from coreutils.
73912
73913         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
73914         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
73915         (gl_DEFAULT_POSIX2_VERSION): Move
73916         the documentation from 'configure' into 'config.hin',
73917         so that 'configure --help' isn't burdened by it and
73918         we don't have to worry about its formatting there.
73919         Reword the documentation so that it's more succinct
73920         and can be run together into a single paragraph.
73921         * m4/same.m4 (gl_SAME): Check for pathconf.
73922
73923 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73924
73925         Merge from coreutils.
73926
73927         * lib/posixver.c: Include posixver.h.
73928
73929         * lib/same.c: Include <stdbool.h>, <limits.h>.
73930         (_POSIX_NAME_MAX): Define if not defined.
73931         (MIN): New macro.
73932         (same_name): If file names are silently truncated, report
73933         that the file names are the same if they are the same after
73934         the silent truncation.
73935
73936         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
73937         conversion function.
73938         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
73939         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
73940         longer needed.
73941
73942 2004-01-15  Jim Meyering  <jim@meyering.net>
73943
73944         Merge from coreutils.
73945
73946         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
73947         if no library is required.
73948         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
73949         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
73950         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
73951         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
73952         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
73953         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
73954         value, $ac_cv_search_crypt, if it's "none required".
73955         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
73956         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
73957         not gl_FUNC_GETLOADAVG.
73958         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
73959         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
73960
73961 2004-01-15  Jim Meyering  <jim@meyering.net>
73962
73963         Merge from coreutils.
73964
73965         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
73966         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
73967         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
73968
73969         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
73970         optional configure-time default.
73971
73972         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73973
73974         * lib/xreadlink.c (xreadlink): Correct outdated comment.
73975
73976 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
73977
73978         Merge from coreutils.
73979
73980         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
73981         value, $ac_cv_search_nanosleep, if it's "none required".
73982
73983 2004-01-14  Paul Eggert  <eggert@twinsun.com>
73984
73985         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
73986         with like-named macro in fnmatch.c.
73987         (EXT): Use an internal constant instead.
73988
73989         Merge fnmatch patches from glibc.
73990         * lib/fnmatch.c (mbsinit): Remove define.
73991         Add libc_hidden_ver (__fnmatch, fnmatch).
73992         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
73993         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
73994
73995 2004-01-14  Karl Berry  <karl@gnu.org>
73996
73997         * config/install-sh: update from automake.
73998
73999 2004-01-13  Karl Berry  <karl@gnu.org>
74000
74001         * config/install-sh: update from automake.
74002
74003 2004-01-09  Karl Berry  <karl@gnu.org>
74004
74005         * config/install-sh: update from automake.
74006
74007 2004-01-05  Karl Berry  <karl@gnu.org>
74008
74009         * config/config.{sub,guess}: update from config.
74010
74011 2003-12-31  Karl Berry  <karl@gnu.org>
74012
74013         * config/depcomp: update from automake.
74014
74015 2003-12-14  Karl Berry  <karl@gnu.org>
74016
74017         * lib/config.charset: update from gettext-runtime.
74018
74019 2003-12-03  Paul Eggert  <eggert@twinsun.com>
74020
74021         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
74022         Bug reported by Alfred M. Szmidt.
74023
74024 2003-12-03  Bruno Haible  <bruno@clisp.org>
74025
74026         * m4/gettext.m4: Upgrade from gettext-0.13.
74027         * m4/po.m4: Upgrade from gettext-0.13.
74028         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
74029         * m4/intmax.m4: New file, from gettext-0.13.
74030         * m4/printf-posix.m4: New file, from gettext-0.13.
74031
74032 2003-11-29  Karl Berry  <karl@gnu.org>
74033
74034         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
74035
74036 2003-11-25  Paul Eggert  <eggert@twinsun.com>
74037             Bruno Haible  <bruno@clisp.org>
74038
74039         * lib/printf-parse.h: Don't include sys/types.h.
74040         (ARG_NONE): New macro.
74041         (char_directive): Change type of *arg_index fields to size_t.
74042         * lib/printf-parse.c: Don't include sys/types.h.
74043         (SSIZE_MAX): Remove macro.
74044         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
74045         Remove unnecessary overflow check.
74046         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
74047         fields.
74048
74049 2003-11-25  Bruno Haible  <bruno@clisp.org>
74050
74051         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
74052
74053 2003-11-25  Bruno Haible  <bruno@clisp.org>
74054
74055         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
74056         gt_TYPE_SSIZE_T.
74057
74058 2003-11-24  Paul Eggert  <eggert@twinsun.com>
74059
74060         * modules/alloca: Remove dependency on xalloc.
74061
74062 2003-11-24  Paul Eggert  <eggert@twinsun.com>
74063
74064         * lib/alloca.c: Remove dependency on xalloc module.
74065         (xalloc_die): Remove.
74066         (memory_full) [!defined emacs]: New macro.
74067         [!defined emacs]: Don't include xalloc.h.
74068         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
74069         address arithmetic overflows.  Change datatypes a bit to avoid
74070         unnecessary casts.
74071
74072 2003-11-22  Jim Meyering  <jim@meyering.net>
74073
74074         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
74075         s/size/size_t/.
74076
74077 2003-11-21  Karl Berry  <karl@gnu.org>
74078
74079         * config/config.{sub,guess}: update from config.
74080
74081 2003-11-18  Karl Berry  <karl@gnu.org>
74082
74083         * config/config.{sub,guess}: update from config.
74084
74085         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
74086
74087 2003-11-17  Paul Eggert  <eggert@twinsun.com>
74088
74089         * README: Mention that S+T cannot overflow if S is the size of
74090         an existing object and T is sufficiently small.
74091
74092 2003-11-17  Jim Meyering  <jim@meyering.net>
74093
74094         On systems without utime and without a utimes function capable of
74095         dealing with a NULL struct utimbuf* argument, this utime replacement
74096         could -- in unusual circumstances -- leak a file descriptor.
74097         * lib/utime.c: Include <unistd.h> and <errno.h>.
74098         (utime_null): Be sure to close `fd' and to preserve errno.
74099         Reported by Geoff Collyer via Arnold Robbins.
74100
74101 2003-11-17  Bruno Haible  <bruno@clisp.org>
74102
74103         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
74104         (Depends-on): Add xsize.
74105
74106 2003-11-17  Bruno Haible  <bruno@clisp.org>
74107
74108         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
74109
74110 2003-11-17  Bruno Haible  <bruno@clisp.org>
74111
74112         * lib/vasnprintf.c (alloca): Remove fallback definition.
74113         (freea): Remove definition.
74114         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
74115         Reported by Paul Eggert.
74116
74117 2003-11-16  Paul Eggert  <eggert@twinsun.com>
74118             Bruno Haible  <bruno@clisp.org>
74119
74120         Protect against address arithmetic overflow.
74121         * lib/printf-args.h: Include stddef.h.
74122         (arguments): Change type of field 'count' to size_t.
74123         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
74124         'unsigned int' where appropriate.
74125         * lib/printf-parse.h: Include sys/types.h.
74126         (char_directive): Change type of *arg_index fields to ssize_t.
74127         (char_directives): Change type of fields 'count', max_*_length to
74128         size_t.
74129         * lib/printf-parse.c: Include sys/types.h and xsize.h.
74130         (SSIZE_MAX): Define fallback value.
74131         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
74132         instead of 'int' where appropriate. Check a_allocated, d_allocated
74133         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
74134         * lib/vasnprintf.c: Include xsize.h.
74135         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
74136         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
74137         overflow. Avoid wraparound when converting a width or precision from
74138         decimal to binary.
74139
74140 2003-11-16  Bruno Haible  <bruno@clisp.org>
74141
74142         Update from GNU gettext.
74143         * lib/printf-parse.c: Generalize to it can be compiled for wide
74144         strings.
74145         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
74146         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
74147         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
74148         SNPRINTF): New macros.
74149         Don't include <alloca.h> if the file is used inside libintl.
74150         (local_wcslen): New function, for Solaris 2.5.1.
74151         (VASNPRINTF): Use it instead of wcslen.
74152
74153 2003-11-16  Bruno Haible  <bruno@clisp.org>
74154
74155         * lib/xsize.h (xmax): New function.
74156         (xsum, xsum3, xsum4): Declare as "pure" functions.
74157
74158 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74159
74160         * modules/xalloc (Files): Undo latest change, since xalloc.h
74161         no longer needs SIZE_MAX or PTRDIFF_MAX.
74162
74163 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74164
74165         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
74166         gl_PTRDIFF_MAX.
74167
74168 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74169
74170         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
74171         "return", to pacify some unknown compiler.  Problem reported
74172         by Joerg Schilling.
74173
74174 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74175
74176         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
74177         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
74178         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
74179         heuristic is just as accurate as far as we know, and it removes a
74180         dependency on size_max.m4 and ptrdiff_max.m4.
74181
74182 2003-11-11  Bruno Haible  <bruno@clisp.org>
74183
74184         * modules/xsize (Files): Add m4/size_max.m4.
74185         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
74186
74187 2003-11-11  Bruno Haible  <bruno@clisp.org>
74188
74189         * m4/size_max.m4: New file.
74190         * m4/ptrdiff_max.m4: New file.
74191         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
74192         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
74193         (gl_XALLOC): Invoke it.
74194
74195 2003-11-11  Bruno Haible  <bruno@clisp.org>
74196
74197         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
74198         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
74199         defined.
74200
74201 2003-11-10  Paul Eggert  <eggert@twinsun.com>
74202
74203         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
74204         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
74205         rejected some allocations of exactly SIZE_MAX - 2 bytes.
74206         From Bruno Haible.
74207         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
74208         not (size_t) -1, since it's defined here.
74209
74210 2003-11-09  Karl Berry  <karl@gnu.org>
74211
74212         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
74213
74214 2003-11-06  Paul Eggert  <eggert@twinsun.com>
74215
74216         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
74217         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
74218         Reject sizes of exactly SIZE_MAX bytes.
74219         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
74220         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
74221
74222 2003-11-05  Bruno Haible  <bruno@clisp.org>
74223
74224         * lib/xsize.h: Include limits.h, to avoid a possible collision with
74225         SIZE_MAX defined in <limits.h> on Solaris.
74226
74227 2003-11-04  Jim Meyering  <jim@meyering.net>
74228
74229         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
74230         variable names, rather than @VAR@.
74231         * modules/poll: Likewise.
74232
74233 2003-11-04  Bruno Haible  <bruno@clisp.org>
74234
74235         * modules/xsize: New file.
74236         * modules/linebreak: Depend on xsize.
74237         * MODULES.html.sh (func_all_modules): Add xsize.
74238
74239 2003-11-04  Bruno Haible  <bruno@clisp.org>
74240
74241         * m4/xsize.m4: New file.
74242
74243 2003-11-04  Bruno Haible  <bruno@clisp.org>
74244
74245         * lib/xsize.h: New file.
74246         * lib/linebreak.c: Include xsize.h.
74247         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
74248         argument for overflow.
74249         Suggested by Paul Eggert.
74250
74251 2003-11-03  Karl Berry  <karl@gnu.org>
74252
74253         * config/config.{guess,sub}: update from config.
74254
74255 2003-11-03  Jim Meyering  <jim@meyering.net>
74256
74257         * modules/userspec (lib_SOURCES): Add userspec.h.
74258         (Include): Add "userspec.h".
74259         Improve description.
74260
74261 2003-11-03  Jim Meyering  <jim@meyering.net>
74262
74263         * lib/userspec.c: Include "userspec.h".
74264         * lib/userspec.h: New file.
74265
74266 2003-11-03  Bruno Haible  <bruno@clisp.org>
74267
74268         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
74269
74270 2003-11-03  Bruno Haible  <bruno@clisp.org>
74271
74272         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
74273         available, to avoid (extremely rare) race condition.
74274         Suggested by Paul Eggert.
74275
74276 2003-11-02  Karl Berry  <karl@gnu.org>
74277
74278         * config/srclist.txt (vasprintf.c): sync broken, sigh.
74279
74280 2003-10-31  Paul Eggert  <eggert@twinsun.com>
74281
74282         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
74283         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
74284         (read_filesystem_list): Set and use me_type_malloced.
74285         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
74286         whatever the type happens to be), for brevity and consistency.
74287         Check for size calculation overflow on Alphas running OSF/1.
74288
74289 2003-10-31  Jim Meyering  <jim@meyering.net>
74290
74291         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
74292
74293         * lib/linebuffer.c: Include <string.h> for declaration of memset.
74294
74295 2003-10-30  Paul Eggert  <eggert@twinsun.com>
74296             Bruno Haible  <bruno@clisp.org>
74297
74298         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
74299         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
74300
74301 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74302
74303         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
74304         netbsd*-gnu*.  Suggested by Robert Millan.
74305
74306 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74307
74308         * modules/group-member: Depend on stdbool.
74309
74310 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74311
74312         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
74313
74314 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74315
74316         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
74317         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
74318         after the 'gnu' in these cases.  This fixes some bugs in the
74319         previous change, and is based on suggestions by Robert Millan.
74320
74321 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74322
74323         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
74324         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
74325         no longer needed.
74326         * lib/quotearg.c (quotearg_n_options): Use it.
74327         * lib/group-member.c: Include <stdbool.h>.
74328         (free_group_info): Arg is now const *; don't free arg.
74329         (get_group_info): Now returns bool and accepts struct group_info *,
74330         rather than returning a malloc'ed struct group_info *.
74331         All uses changed.  Check for overflow in internal size calculation.
74332
74333         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
74334         rather than xmalloc/xrealloc.
74335         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
74336         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
74337         conformance bug: the old code used a pointer after freeing the
74338         storage that it addressed.
74339         * lib/hash.c (hash_initialize): Simplify the code by using
74340         xalloc_oversized rather than doing it by hand.
74341         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
74342         the buffer preserved.  Use free and xmalloc instead.
74343         * lib/quotearg.c (quotearg_n_options): Likewise.
74344         Use a simpler test for size overflow.  Don't use xalloc_oversized
74345         because unsigned int might be wider than size_t (!); this suggests
74346         that we should switch from unsigned int to size_t for slot numbers.
74347
74348 2003-10-28  Paul Eggert  <eggert@twinsun.com>
74349
74350         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
74351         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
74352         NetBSD kernels.  Requested by Richard Stallman.
74353
74354 2003-10-27  Paul Eggert  <eggert@twinsun.com>
74355
74356         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
74357         to allocate the returned structure.  Do not allocate a subarray,
74358         as x2nrealloc will do that.
74359         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
74360         instead of xnrealloc.
74361         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
74362
74363 2003-10-27  Bruno Haible  <bruno@clisp.org>
74364
74365         * lib/stdbool_.h: Better support for BeOS.
74366
74367 2003-10-26  Paul Eggert  <eggert@twinsun.com>
74368
74369         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
74370         now uses inline.
74371
74372 2003-10-26  Paul Eggert  <eggert@twinsun.com>
74373
74374         * lib/xalloc.h (xalloc_oversized): New static inline function, for
74375         callers that want to do their own size-overflow checking.  Include
74376         <stdbool.h>, since xalloc_oversized returns bool.
74377         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
74378         to use xalloc_oversized.
74379
74380         Add two functions x2realloc, x2nrealloc, for programs that grow
74381         arrays dynamically by doubling their sizes.
74382         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
74383         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
74384         New functions.
74385
74386         Port to C99 semantics for 'inline' of external functions.
74387         Bug reported by Bruno Haible.
74388         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
74389         with the old contents of xnmalloc.
74390         (xnmalloc, xmalloc): Use it.
74391         (xnrealloc_inline): New static inline function,
74392         with the old contents of xnrealloc.
74393         (xnrealloc, xrealloc): Use it.
74394
74395         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
74396         that.
74397
74398 2003-10-26  Karl Berry  <karl@gnu.org>
74399
74400         * config/srclist.txt (COPYING.DOC): no longer available from
74401         /gd/gnuorg; don't know where the ultimate source is.
74402
74403 2003-10-25  Paul Eggert  <eggert@twinsun.com>
74404
74405         Fix several address-calculation bugs in the hash modules,
74406         plus some minor code cleanup.
74407
74408         * lib/hash.h: Include <stdbool.h>, for bool.
74409         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
74410         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
74411         hash_get_n_entries, hash_get_max_bucket_length,
74412         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
74413         hash_rehash): Use size_t rather than unsigned.
74414         * lib/hash.c (struct hash_table, hash_get_n_buckets,
74415         hash_get_n_buckets_used, hash_get_n_entries,
74416         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
74417         hash_get_entries, hash_do_for_each, hash_string, is_prime,
74418         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
74419         Likewise.
74420         (SIZE_MAX): Define if not defined.
74421         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
74422         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
74423         hash_print):
74424         Use const * when possible.
74425         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
74426         (check_tuning): Fix bug: if tuning parameters were very close to
74427         0 or 1, rounding errors could have caused subscript violations.
74428         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
74429         (hash_initialize): Add 'fail:' label
74430         to free table and return NULL, and use it to simplify code.
74431         Use calloc rather than clearing the storage ourself.
74432         (hash_initialize, hash_rehash): Check for arithmetic overflow in
74433         buffer size calculations.
74434         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
74435         Include <stddef.h>, for size_t.
74436         * lib/hash-pjw.c (hash_pjw): Likewise.
74437         Switch to method described by Bruno Haible.
74438         Include <limits.h>, for CHAR_BIT.
74439         (SIZE_BITS): New macro.
74440
74441 2003-10-23  Paul Eggert  <eggert@twinsun.com>
74442
74443         * m4/getline.m4 (AM_FUNC_GETLINE):
74444         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
74445         hosts.  Problem reported by Derek Robert Price in
74446         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
74447         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
74448         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
74449
74450 2003-10-21  Paul Eggert  <eggert@twinsun.com>
74451
74452         * lib/getndelim2.c (getndelim2): When size calculation overflows,
74453         ceiling the allocation at NMAX bytes rather than silently
74454         discarding input bytes before NMAX is reached.  This makes
74455         a difference only if NMAX exceeds SIZE_MAX / 2.
74456
74457         * lib/obstack.c: Merge from glibc.
74458         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
74459         Add libc_hidden_def (_obstack_newchunk).
74460         (_obstack_free) [! defined _LIBC]: Remove.
74461         [defined _LIBC]: Make a strong alias from obstack_free, rather than
74462         a clone of the function body.
74463         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
74464         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
74465
74466         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
74467         glibc.
74468         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
74469         arg to memcpy.
74470
74471         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
74472         (obstack_ptr_grow_fast, obstack_int_grow_fast):
74473         Don't use lvalue casts, as GCC plans to remove support for them
74474         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
74475         was also present in the non-GCC version, indicating that this
74476         code had always been buggy and had never been widely used.
74477         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
74478         Use the fast variant of each macro, rather than copying the
74479         definiens of the fast variant; that way, we'll be more likely to
74480         catch future bugs in the fast variants.
74481
74482 2003-10-20  Bruno Haible  <bruno@clisp.org>
74483
74484         * modules/wait-process: New file.
74485         * MODULES.html.sh (func_all_modules): Add wait-process.
74486
74487 2003-10-20  Bruno Haible  <bruno@clisp.org>
74488
74489         * m4/wait-process.m4: New file.
74490
74491 2003-10-20  Bruno Haible  <bruno@clisp.org>
74492
74493         * lib/wait-process.h: New file, from GNU gettext.
74494         * lib/wait-process.c: New file, from GNU gettext.
74495
74496 2003-10-19  Jim Meyering  <jim@meyering.net>
74497
74498         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
74499         HPUX 10.20.
74500
74501 2003-10-18  Karl Berry  <karl@gnu.org>
74502
74503         * config/config.guess: update from config.
74504
74505 2003-10-16  Paul Eggert  <eggert@twinsun.com>
74506
74507         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
74508         (getgroups): First arg is int, not size_t.
74509         Don't let 'free' mangle errno.
74510
74511 2003-10-16  Paul Eggert  <eggert@twinsun.com>
74512
74513         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
74514
74515 2003-10-16  Karl Berry  <karl@gnu.org>
74516
74517         * config/config.{guess,sub}: update from config.
74518
74519 2003-10-16  Jim Meyering  <jim@meyering.net>
74520
74521         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
74522         memcpy.
74523
74524 2003-10-15  Paul Eggert  <eggert@twinsun.com>
74525
74526         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
74527         (SIZE_MAX): Remove.
74528         (new_exclude, add_exclude_file): Initial size no longer needs to
74529         be a power of 2.
74530         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
74531         our own address arithmetic overflow checking.
74532
74533         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
74534         (fnmatch): Do not alloca more than 2000 wide characters;
74535         instead, use malloc for large buffers.
74536         Check for address arithmetic overflow, and return -1
74537         with errno set to ENOMEM in that case.
74538         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
74539         (NEW_PATTERN): Do not alloca more than 8000 bytes;
74540         instead, return -1.  Check for address arithmetic overflow.
74541
74542 2003-10-14  Paul Eggert  <eggert@twinsun.com>
74543
74544         Handle invalid suffixes and overflow independently, so that
74545         callers can treat them independently as needed.  Fix some bugs in
74546         suffix handling, e.g., "100k@" was not diagnosed as an invalid
74547         suffix for a human-readable blocksize.  The major caller-visible
74548         change is the addition of a new
74549         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
74550         that both overflow and suffix chars were found.
74551
74552         * lib/human.c (humblock): Don't check separately for invalid suffix
74553         char; that is xstrtoumax's job (now that its bug is fixed).
74554         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
74555         INTMAX_MAX]: New macros.
74556         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
74557         TYPE_MAXIMUM): New macros.
74558         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
74559         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
74560         if overflow occurs, as it's what __strtol does and it's more useful
74561         in practice.
74562         (__xstrtol): If __strtol reports some error other than ERANGE,
74563         reflect it to the caller as LONGINT_INVALID.  If it reports
74564         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
74565         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
74566         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
74567         value.
74568         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
74569         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
74570         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
74571         [defined UINTMAX_MAX]: New macros.
74572
74573 2003-10-14  Bruno Haible  <bruno@clisp.org>
74574
74575         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
74576
74577 2003-10-14  Bruno Haible  <bruno@clisp.org>
74578
74579         * m4/sig_atomic_t: New file, from GNU gettext.
74580         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
74581
74582 2003-10-14  Bruno Haible  <bruno@clisp.org>
74583
74584         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
74585         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
74586         Also use volatile where needed.
74587
74588 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74589
74590         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
74591         Change maintainer from Bruno Haible to 'all'.
74592
74593 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74594
74595         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
74596
74597 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74598
74599         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
74600         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
74601         and define in terms of the other primitives.
74602         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
74603         (SIZE_MAX): Define if not already defined.
74604         (array_size_overflow): New function.
74605         (xalloc_die): Abort instead of exiting if 'error' returns.
74606         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
74607         (xmalloc, xrealloc): Use them.
74608         (xcalloc): Check for address arithmetic overflow.
74609         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
74610         a bit faster than strcpy.
74611
74612 2003-10-10  Simon Josefsson  <jas@extundo.com>
74613
74614         * modules/argp (Depends-on): Add restrict and strcase.
74615
74616 2003-10-10  Simon Josefsson  <jas@extundo.com>
74617
74618         * m4/argp.m4: Add AC_C_INLINE.
74619
74620 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74621
74622         Merge getpass from libc, plus a few fixes.
74623
74624         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
74625         Include <stdbool.h>.
74626         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
74627         __fsetlocking to empty.
74628         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
74629         do include <bits/libc-lock.h>.
74630         Do not include <fcntl.h>; not needed.
74631         [_LIBC]: Include <wchar.h>.
74632         (NOTCANCEL_MODE): New macro.
74633         (flockfile, funlockfile) [_LIBC]: New macros.
74634         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
74635         [!_LIBC]: New macros.
74636         (call_fclose): New function.
74637         (getpass): Use it.  Save tty stream separately; this simplifies the
74638         code and makes it more reliable if stdin happens to equal stdout.
74639         Invoke __fsetlocking on tty.
74640         Handle thread cancellation if needed.
74641         Namespace cleanup (use __tcgetattr, __getline).
74642         Use bool for Booleans.
74643         [USE_IN_LIBIO]: Handle wide streams.
74644         [!_LIBC]: Unconditionally do the fseek, since we don't know what
74645         stream might go where.
74646
74647         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
74648         doesn't have to include <stdio.h> before us.
74649         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
74650         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
74651         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
74652         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
74653         if not declared, so that we can use getpass.c code from libc without
74654         rewriting it.
74655         (flockfile, ftrylockfile, funlockfile): New macros.
74656
74657 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74658
74659         * modules/getpass: Depend on stdbool.
74660
74661 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74662
74663         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
74664
74665 2003-10-07  Karl Berry  <karl@gnu.org>
74666
74667         * config/config.{guess,sub}: update from config.
74668
74669 2003-10-06  Jim Meyering  <jim@meyering.net>
74670             Bruno Haible  <bruno@clisp.org>
74671
74672         This lets translators provide better translations for the
74673         "Written by ..." part of --version output.
74674         * lib/version-etc.h: Include stdarg.h.
74675         (version_etc_copyright): Declare as readonly.
74676         (version_etc): Make this function variadic with a NULL-terminated list
74677         of author name strings.
74678         (version_etc_va): New declaration.
74679         * lib/version-etc.c: Include stdarg.h, stdlib.h.
74680         (version_etc_copyright): Declare as readonly.
74681         (version_etc_va): New function. Provide a different translatable string
74682         for each possible number of authors < 10. Abbreviate when there are 10
74683         authors or more.
74684         (version_etc): Make this function variadic. Call version_etc_va.
74685         Suggestion from Gary V. Vaughan.
74686
74687         * lib/long-options.h (parse_long_options): Change prototype: the
74688         authors string is moved to the end and becomes variadic.
74689         * lib/long-options.c: Include stdarg.h.
74690         (parse_long_options): Make this function variadic, too.
74691         Call version_etc_va, not version_etc.
74692
74693 2003-10-06  Bruno Haible  <bruno@clisp.org>
74694
74695         * modules/version-etc-2: Remove file.
74696         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
74697
74698 2003-10-06  Bruno Haible  <bruno@clisp.org>
74699
74700         * modules/fatal-signal: New file.
74701         * MODULES.html.sh (func_all_modules): Add fatal-signal.
74702
74703 2003-10-06  Bruno Haible  <bruno@clisp.org>
74704
74705         * m4/fatal-signal.m4: New file.
74706         * m4/signalblocking.m4: New file, from GNU gettext.
74707
74708 2003-10-06  Bruno Haible  <bruno@clisp.org>
74709
74710         * lib/version-etc-2.h: Remove file.
74711         * lib/version-etc-2.c: Remove file.
74712
74713 2003-10-06  Bruno Haible  <bruno@clisp.org>
74714
74715         * lib/fatal-signal.h: New file, from GNU gettext.
74716         * lib/fatal-signal.c: New file, from GNU gettext.
74717
74718 2003-10-05  Paul Eggert  <eggert@twinsun.com>
74719
74720         * README: Rework advice for preventing empty .o files.
74721         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
74722         not <sys/types.h>.
74723
74724 2003-10-04  Karl Berry  <karl@gnu.org>
74725
74726         * lib/argp*: update from libc.
74727
74728 2003-10-04  Karl Berry  <karl@gnu.org>
74729
74730         * config/config.{guess,sub}: update from config.
74731
74732 2003-10-02  Bruno Haible  <bruno@clisp.org>
74733
74734         * modules/lchown (Include): Add lchown.h.
74735         * modules/time_r (Include): Use "..." syntax.
74736         * modules/xgetdomainname (Include): Add xgetdomainname.h.
74737
74738 2003-10-01  Simon Josefsson  <jas@extundo.com>
74739
74740         * MODULES.html.sh (func_all_modules): Move gethostname from section
74741         'based on' to section 'lacking' POSIX:2001.
74742
74743 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
74744
74745         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
74746         to output mode on the same stream.
74747
74748 2003-09-29  Paul Eggert  <eggert@twinsun.com>
74749
74750         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
74751         Fix arg typo in previous patch.
74752
74753 2003-09-28  Jim Meyering  <jim@meyering.net>
74754
74755         * lib/error.c: Correct cpp indentation.
74756
74757 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74758
74759         * modules/free: New file.
74760
74761 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74762
74763         * m4/free.m4: New file.
74764
74765 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74766
74767         * lib/minmax.h (MIN, MAX)
74768         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
74769         Omit the special code that used __typeof__, since we worry that
74770         it could be more trouble than it's worth.  See:
74771         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
74772         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
74773
74774         * lib/free.c: New file.
74775
74776 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
74777
74778         Trivial fixes to Makefile.am parts of module listings.
74779         * modules/strstr: Append strstr.h to lib_SOURCES.
74780         * modules/strcase: Likewise, for strcase.h.
74781
74782 2003-09-27  Karl Berry  <karl@gnu.org>
74783
74784         * config/mkinstalldirs: update from automake.
74785
74786 2003-09-26  Paul Eggert  <eggert@twinsun.com>
74787
74788         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
74789         (error_tail): Do not loop, reallocating temporary buffer, since
74790         the output cannot contain more wide characters than the input
74791         contains bytes, the size must be big enough already.  This avoids
74792         one potential size overflow calculation.  Check for size overflow
74793         when calculating temporary buffer size.  Free temporary buffer
74794         when done, if it was allocated with malloc; this plugs a memory
74795         leak.  Remove casts from void * to pointers, that are no longer
74796         needed now that we're assuming C89 or better.
74797
74798         Merge error changes from glibc.
74799
74800         * lib/error.c, error.h: Update copyright notice header to match glibc.
74801         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
74802         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
74803         Disable cancellation while printing error.
74804         * lib/error.h: Prepend __ to parameter names.
74805
74806 2003-09-26  Jim Meyering  <jim@meyering.net>
74807
74808         * lib/error.c (error_tail): Move some declarations
74809         into inner scope where the local variables are used.
74810
74811 2003-09-26  Bruno Haible  <bruno@clisp.org>
74812
74813         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
74814         stpncpy().
74815         Don't define stpncpy through config.h; it's now done through stpncpy.h.
74816
74817 2003-09-26  Bruno Haible  <bruno@clisp.org>
74818
74819         * lib/stpncpy.h (gnu_stpncpy): New declaration.
74820         (stpncpy): Define as alias for gnu_stpncpy.
74821         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
74822
74823 2003-09-25  Simon Josefsson  <jas@extundo.com>
74824
74825         * lib/xgetdomainname.h: New file.
74826         * lib/xgetdomainname.c: New file.
74827
74828 2003-09-25  Simon Josefsson  <jas@extundo.com>
74829             Bruno Haible  <bruno@clisp.org>
74830
74831         * modules/getdomainname: New file.
74832         * modules/xgetdomainname: New file.
74833         * MODULES.html.sh (func_all_modules): Add getdomainname,
74834         xgetdomainname.
74835
74836 2003-09-25  Simon Josefsson  <jas@extundo.com>
74837             Bruno Haible  <bruno@clisp.org>
74838
74839         * m4/getdomainname.m4: New file.
74840
74841 2003-09-25  Simon Josefsson  <jas@extundo.com>
74842             Bruno Haible  <bruno@clisp.org>
74843
74844         * lib/getdomainname.h: New file.
74845         * lib/getdomainname.c: New file.
74846
74847 2003-09-25  Karl Berry  <karl@gnu.org>
74848
74849         * lib/argp-fmtstream.c, argp-help.c: update from libc.
74850
74851 2003-09-25  Karl Berry  <karl@gnu.org>
74852
74853         * config/install-sh: update from automake.
74854
74855 2003-09-25  Bruno Haible  <bruno@clisp.org>
74856
74857         * modules/version-etc-2: New file, from modules/version-etc with
74858         modifications.
74859         * MODULES.html.sh (func_all_modules): Add version-etc-2.
74860
74861 2003-09-25  Bruno Haible  <bruno@clisp.org>
74862
74863         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
74864         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
74865
74866 2003-09-24  Simon Josefsson  <jas@extundo.com>
74867
74868         * modules/xgethostname: Add xgethostname.h.
74869
74870 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74871
74872         * lib/linebuffer.c (freebuffer): Don't free the argument, just
74873         the buffer associated with the argument.  Bug reported by
74874         Simon Josefsson.
74875
74876 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74877
74878         * README: Document assumptions that 'int' is at least 32 bits
74879         wide, that integer arithmetic is 2's complement without overflow,
74880         that there are no holes in integer values, that adding sizes of
74881         two nonoverlapping objects can't overflow, and that all-bits-zero
74882         yields scalar zero.  Fix spelling and capitalization typos.
74883
74884 2003-09-19  Karl Berry  <karl@gnu.org>
74885
74886         * lib/argp.h: update from libc.
74887
74888 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74889
74890         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
74891         to avoid spurious warnings like "AC_RUN_IFELSE was called before
74892         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
74893
74894 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74895
74896         * gnulib-tool: Use "test -h", not "test -L", for portability
74897         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
74898         (tags_regexp): Remove, since \| doesn't conform to POSIX.
74899         (sed_extract_prog): Issue s commands one-by-one, rather than
74900         using \| in one s command.
74901
74902 2003-09-16  Paul Eggert  <eggert@twinsun.com>
74903
74904         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
74905         input error, instead of returning NULL the next time we are called
74906         (and therefore losing track of errno).
74907
74908 2003-09-16  Bruno Haible  <bruno@clisp.org>
74909
74910         * gnulib-tool (func_create_testdir): Warn about duplicated
74911         dependencies.
74912
74913 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74914
74915         * modules/argmatch, modules/fatal, modules/obstack,
74916         modules/xalloc, modules/xgethostname: Sort dependencies by
74917         importance, not alphabetically.
74918
74919 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74920
74921         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
74922         fails, so that the caller gets the proper errno.
74923
74924         * lib/readutmp.c (read_utmp): Likewise.
74925         Check for fstat error.  Close stream and free storage
74926         when failing.
74927
74928 2003-09-14  Karl Berry  <karl@gnu.org>
74929
74930         * config/srclist.txt (strdup.c): disable for c89 changes.
74931
74932 2003-09-14  Jim Meyering  <jim@meyering.net>
74933
74934         * lib/getloadavg.c: Correct cpp indentation.
74935         * lib/strdup.c: Likewise.
74936         * lib/vasnprintf.c: Likewise.
74937
74938 2003-09-14  Bruno Haible  <bruno@clisp.org>
74939
74940         * modules/fwriteerror: New file.
74941         * MODULES.html.sh (func_all_modules): Add fwriteerror.
74942
74943 2003-09-14  Bruno Haible  <bruno@clisp.org>
74944
74945         * lib/fwriteerror.h: New file.
74946         * lib/fwriteerror.c: New file.
74947
74948 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74949
74950         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
74951         modules/xgethostname, modules/xalloc: Depend on exit.
74952
74953 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74954
74955         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
74956
74957         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
74958         and AC_MINIX, too, so that their extensions are available.
74959
74960         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
74961         This macro has been superseded by gl_BACKUPFILE.
74962
74963         More patches to assume C89 or better.
74964
74965         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
74966
74967         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
74968         unconditionally.
74969         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
74970         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
74971         Include <string.h>, <stdlib.h> unconditionally.
74972         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
74973         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
74974         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
74975         headers or for string.h.
74976         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
74977         or strtoul.
74978
74979         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
74980         headers.
74981         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
74982         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74983         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
74984         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
74985         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74986         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
74987         memcpy, memset.
74988         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
74989         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
74990         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
74991         strtol.
74992         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
74993         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
74994         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
74995         strtoul.
74996
74997 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74998
74999         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
75000         * lib/obstack.c [!defined _LIBC]: Likewise.
75001         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
75002         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
75003         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
75004
75005         More changes to assume C89 or better.
75006
75007         * lib/error.c (error_tail): Assume vprintf.
75008
75009         * lib/argmatch.c (getenv): Remove decl.
75010         * lib/progreloc.c (get_full_program_name): Define via prototype.
75011         * lib/setenv.c (clearenv): Likewise.
75012         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
75013         needed.
75014         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
75015         (malloc, memcpy): Remove decls.
75016         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
75017         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
75018         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
75019         (memcpy): Remove macro.
75020         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
75021         (__P): Remove.  All uses removed.
75022         (PTR): Remove.  All uses changed to void *.
75023         (CHAR_BIT, NULL): Remove.
75024         (spaces, zeros, memset_space, memset_zero)
75025         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
75026         Remove.
75027         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
75028         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
75029         Define with prototype.
75030         Remove now-unnecessary prototype decl.
75031         (extra_args_spec): Assume ANSI C.  All uses changed.
75032         (extra_args_spec_iso): Remove.
75033         (my_strftime, emacs_strftimeu): Define via prototype.
75034         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
75035         unconditionally.
75036         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
75037         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
75038         (strtoul, strtol): Remove decls.
75039         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
75040         LONG_MAX): Remove.
75041         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
75042         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
75043         (LOCALE_PARAM_PROTO): New macro.
75044         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
75045         (INTERNAL (strtol), strtol): Define with a prototype.
75046         (PARAMS): Remove.  All uses removed.
75047         * lib/tempname.c: Include <string.h> unconditionally.
75048         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
75049         * lib/xgethostname.c (main): Define with a prototype.
75050         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
75051         Include <stdlib.h> unconditionally.
75052         (calloc, malloc, realloc, free): Remove decls.
75053         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
75054         Include <stdlib.h> unconditionally.  Sort include file names.
75055         (strtod): Remove.
75056         (xstrtod): Define with a prototype.
75057         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
75058         (strtol, strtoul): Remove decls.
75059
75060 2003-09-11  Paul Eggert  <eggert@twinsun.com>
75061
75062         More patches to assume C89 or better.
75063         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
75064         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
75065         string.h, memchr, STDC_HEADERS.
75066
75067 2003-09-11  Paul Eggert  <eggert@twinsun.com>
75068
75069         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
75070         Include <stdlib.h>, <string.h> unconditionally.
75071         Remove now-unnecessary cast to char *.
75072         * lib/strnlen.c: Include <string.h> unconditionally.
75073         * lib/yesno.c (yesno): Define with a prototype.
75074
75075 2003-09-11  Bruno Haible  <bruno@clisp.org>
75076
75077         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
75078
75079 2003-09-10  Jim Meyering  <jim@meyering.net>
75080
75081         * lib/error.c: Correct indentation of cpp directives.
75082
75083 2003-09-10  Bruno Haible  <bruno@clisp.org>
75084
75085         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
75086         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
75087         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
75088         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
75089         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
75090         <stdlib.h> and <string.h> checks.
75091         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
75092         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
75093
75094 2003-09-10  Bruno Haible  <bruno@clisp.org>
75095
75096         * lib/strcspn.c: Include <string.h> unconditionally.
75097         * lib/strpbrk.c: Include <string.h> unconditionally.
75098         * lib/strstr.c: Include <string.h> unconditionally.
75099         * lib/unicodeio.c: Include <string.h> unconditionally.
75100         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
75101         * lib/unsetenv.c: Likewise.
75102         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
75103         * lib/yesno.c: Include <stdlib.h> unconditionally.
75104         (rpmatch): Add prototype.
75105
75106 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75107
75108         More patches to assume C89 or better.
75109         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
75110         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
75111         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
75112         or for string.h.
75113         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
75114         stdlib.h.
75115         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
75116         C headers.
75117         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
75118         string.h.
75119         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
75120         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
75121         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
75122         or for string.h.
75123         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
75124         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
75125         C headers.
75126         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
75127         memcpy.
75128         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
75129         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
75130         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
75131         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
75132         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
75133         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
75134         string.h, free.
75135         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
75136         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
75137         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
75138         C headers, or for string.h.
75139         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
75140         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
75141         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
75142         headers, memory.h, stdlib.h, string.h, strings.h.
75143         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
75144         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
75145         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
75146         strchr.
75147         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
75148         headers, memory.h, string.h.
75149         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
75150         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
75151         free.
75152         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
75153         headers.
75154         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
75155         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
75156         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
75157         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
75158         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
75159
75160 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75161
75162         More K&R removal.
75163
75164         * lib/acosl.c (main): Use a prototype.
75165         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
75166         tanl.c: Likewise.
75167
75168         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
75169
75170         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
75171         (getopt, etopt_long, getopt_long_only, _getopt_internal)
75172         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
75173         with a prototype.
75174         * lib/getopt.c (const): Remove macro.
75175         Include <string.h> unconditionally.
75176         (my_index): Remove; all uses changed to strchr.
75177         (strlen): Remove decl.
75178         (exchange): Remove forward decl; no longer needed.
75179         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
75180         Define with prototype.
75181         * lib/getopt1.c (const): Remove macro.
75182         (getopt_long, getopt_long_only, main): Define with prototype.
75183
75184         * lib/getugroups.c: Include <string.h> unconditionally.
75185
75186         * lib/getusershell.c: Include <stdlib.h> unconditionally.
75187         (getusershell, setusershell, endusershell, readname, main):
75188         Define with prototypes.
75189
75190         * lib/group-member.c: Include group-member.h first.
75191         Include <stdlib.h> unconditionally.
75192
75193         * lib/hard-locale.c: Include hard-locale.h first.
75194         Include <stdlib.h>, <string.h> unconditionally.
75195
75196         * lib/hash.c (free, malloc): Remove decls.
75197         Include <stdlib.h> unconditionally.
75198
75199         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
75200         (getenv): Do not declare.
75201
75202         * lib/idcache.c: Include <string.h> unconditionally.
75203
75204         * lib/long-options.c: Include long-options.h first, to test interface.
75205         Include <stdlib.h> unconditionally.
75206
75207         * lib/makepath.c: Include makepath.h first, to test interface.
75208         Include <stdlib.h> and <string.h> unconditionally.
75209
75210         * lib/linebuffer.c: Include <stdlib.h>.
75211         (free): Remove decl.
75212
75213         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
75214         stddef.h. rpl_malloc returns void *, not char *.
75215         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
75216         prototype.
75217
75218         * lib/md5.h: Include <limits.h> unconditionally.
75219         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
75220         (__P): Remove; all uses removed.
75221         * lib/md5.c: Include "md5.h" first.
75222         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
75223         md5_buffer, md5_process_bytes, md5_process_block):
75224         Define with prototypes.
75225         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
75226         * lib/sha.c: Include "sha.h" first.
75227         Include <stdlib.h>, <string.h> unconditionally.
75228
75229         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
75230         * lib/memcmp.c (__ptr_t): Likewise.
75231         * lib/memrchr.c (__ptr_t): Likewise.
75232         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
75233         Include <string.h> unconditionally.
75234         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
75235         * lib/memchr.c: Include <stdlib.h> unconditionally.
75236         * lib/memchr.c (LONG_MAX): Remove.
75237         * lib/memrchr.c (LONG_MAX): Likewise.
75238         * lib/memchr.c (__memchr): Define via a prototype.
75239         * lib/memrchr.c (__memrchr): Likewise.
75240         * lib/memcmp.c (__P): Remove, and remove all uses.
75241         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
75242         Remove forward decls; no longer needed.
75243         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
75244         Use types required by C89 in prototype.
75245
75246         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
75247         * lib/savedir.c: Likewise.
75248         * lib/mkdir.c (free): Remove decl.
75249         * lib/rmdir.c (rmdir): Define with a prototype.
75250         * lib/savedir.c: Include savedir.h first, to test interface.
75251
75252         * lib/mktime.c (STDC_HEADERS): Remove.
75253         Include <stdlib.h>, <string.h> unconditionally.
75254
75255         * lib/modechange.c: Include <stdlib.h> unconditionally.
75256         (malloc): Remove decl.
75257
75258         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
75259         (free): Remove decl.
75260
75261         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
75262         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
75263         (This type really should be intptr_t, but that's a C99ism.)
75264         (_obstack_memcpy): Remove: all uses changed to memcpy.
75265         Include <string.h> unconditionally.
75266         (struct obstack): Assume __STDC__ for types of members
75267         chunkfun, freefun, extra_arg.
75268         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
75269         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
75270         obstack_begin, obstack_specify_allocation,
75271         obstack_specify_allocation_with_arg, obstack_chunkfun,
75272         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
75273         Remove unprototyped decls and the macros that use them.
75274         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
75275         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
75276         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
75277         (defined __STDC__ && __STDC__)]:
75278         Remove nonprototyped code.
75279         Include <stdlib.h> unconditionally.
75280         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
75281         _obstack_allocated_p, _obstack_free, obstack_free,
75282         _obstack_memory_used, print_and_abort):
75283         Define using prototypes.
75284         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
75285         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
75286         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
75287         obstack_next_free, obstack_object_size, obstack_room) [0]:
75288         Remove unused, unprototyped code.
75289
75290         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
75291
75292         * lib/physmem.c (physmem_total, physmem_available, main): Define
75293         with prototypes.
75294
75295         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
75296         (main): Define with a prototype.
75297
75298         * lib/posixver.c (getenv): Remove decl.
75299
75300         * lib/putenv.c (malloc): Returns void *, not char *.
75301         Include <string.h> unconditionally.
75302         (strchr, memcpy, NULL): Do not define.
75303
75304         * lib/readtokens.c: Include readtokens.h first, to test interface.
75305         Include <stdlib.h>, <string.h> unconditionally.
75306         (init_tokenbuffer): Define with a prototype.
75307
75308         * lib/regex.c (PARAMS): Remove.  All uses removed.
75309         All uses of _RE_ARGS removed, too.
75310         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75311         unconditionally.
75312         (bzero): Assume memset exists.
75313         (memcmp, memcpy, NULL): Remove.
75314         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
75315         char, or assignments to local vars of type signed char.
75316         (init_syntax_once, PREFIX(extract_number_and_incr),
75317         PREFIX(print_partial_compiled_pattern),
75318         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
75319         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
75320         PREFIX(regex_grow_registers), PREFIX(regex_compile),
75321         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
75322         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
75323         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
75324         wcs_compile_range, byte_compile_range, truncate_wchar,
75325         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
75326         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
75327         count_mbs_length, wcs_re_match_2_internal,
75328         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
75329         PREFIX(alt_match_null_string_p),
75330         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
75331         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
75332         regfree, PREFIX(extract_number)): Define with prototype.  Remove
75333         now-unnecessary declaration, if any.
75334         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
75335         regcomp, regexec):
75336         Remove now-unnecessary casts among pointer types.
75337         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
75338
75339         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
75340         (free): Remove decl.
75341
75342         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
75343
75344         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
75345         (free): Remove decl.
75346
75347         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
75348         * lib/xgetcwd.c: Likewise.
75349
75350         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
75351         (free): Remove decl.
75352
75353         * lib/strchrnul.c (strchrnul): Define with a prototype.
75354         Fix bug: c_in was not converted to char before searching.
75355
75356         The following changes are not K&R related:
75357
75358         * lib/group-member.h: Include <sys/types.h>, so that this file is
75359         self-contained.
75360         * lib/makepath.h: Likewise.
75361
75362         * lib/getusershell.c (readname, default_index, line_size, readname):
75363         Use size_t, not int, for sizes.
75364         (readname): If the size overflows, report an error instead of
75365         looping forever.
75366
75367 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75368
75369         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
75370         libc.
75371
75372 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75373
75374         * README: New section: portability guidelines.
75375
75376 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
75377
75378         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
75379         C89 spec.
75380
75381 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
75382
75383         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
75384
75385 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75386
75387         Assume C89 or better; remove K&R cruft.
75388         A few of these changes were first proposed by Derek Robert Price
75389         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
75390
75391         * lib/addext.c: Include <string.h> unconditionally.
75392         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
75393         Don't declare getenv or malloc.
75394
75395         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
75396         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
75397         (NULL): Remove.
75398         (find_stack_direction, alloca): Use prototypes.
75399
75400         * lib/atexit.c (atexit): Define using a prototype.
75401
75402         * lib/basename.c, dirname.c, stripslash.c:
75403         Include <string.h> unconditionally.
75404
75405         * lib/bcopy.c: Include <stddef.h>.
75406         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
75407
75408         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
75409
75410         * lib/error.h (error, error_at_line, error_print_progname)
75411         [! (defined (__STDC__) && __STDC__)]: Remove decls.
75412         * lib/error.c: Include error.h first, to check interface.
75413         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
75414         (VA_START): Remove; all uses changeed to va_start.
75415         (exit, strerror): Remove decls.
75416         (error_print_progname): Prototype uncondionally.
75417         Don't include <errno.h>; no longer needed.
75418         (private_strerror): Remove.
75419         (error_tail): Always define.
75420         (error, error_at_line): Assume C89 or better; always use prototypes.
75421         * lib/fatal.c: Include "fatal.h" first, to test interface.
75422         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
75423         (VA_START): Remove; all uses changed to va_start.
75424         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
75425         this case.
75426         (exit): Remove decl.
75427         (fatal): Prototype unconditionally.  Assume va_start works.
75428         Abort at end, to pacify gcc.
75429
75430         * lib/euidaccess.c (main): Define with a prototype.
75431
75432         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
75433
75434         * lib/exitfail.c: Include <stdlib.h> unconditionally.
75435
75436         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
75437         prototypes.
75438         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
75439         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
75440         (getenv): Remove decl.
75441         (fnmatch): Define using a prototype.
75442         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
75443         (FCT): Define using a prototype.
75444
75445         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
75446
75447         * lib/gethostname.c: Include <stddef.h>.
75448         (gethostname): Define with prototype.  Length is size_t, not int.
75449
75450 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75451
75452         Assume C89 or better; remove K&R cruft.
75453         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
75454         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
75455         string.h, getenv, malloc.
75456         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
75457         headers.
75458         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
75459         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
75460         do not check for strerror.
75461         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
75462         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
75463         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
75464         do not check for doprnt or vprintf.
75465         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
75466         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
75467
75468 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75469
75470         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
75471         getversion.c should have been removed then, but was accidentally
75472         preserved.
75473
75474         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
75475         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
75476
75477 2003-09-08  Karl Berry  <karl@gnu.org>
75478
75479         * config/config.sub, config.guess, srclistvars.sh: update from savannah
75480                 config, forget about prep.
75481
75482         * config/depcomp, missing: update from automake.
75483
75484 2003-09-07  Paul Eggert  <eggert@twinsun.com>
75485
75486         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
75487         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
75488
75489 2003-09-07  Paul Eggert  <eggert@twinsun.com>
75490
75491         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
75492         copy_tm_result.  Bug reported by Simon Josefsson in
75493         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
75494
75495 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75496
75497         * m4/time_r.m4: New file.
75498         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
75499         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
75500         is. Check for timegm declaration.
75501         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
75502         Do not check for gmtime_r.
75503         Replace mktime if __mktime_internal does not exist and if mktime
75504         hasn't been replaced already.
75505
75506 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75507
75508         * lib/time_r.c, lib/time_r.h: New files.
75509
75510         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
75511         __localtime_r.
75512         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
75513         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
75514
75515         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
75516         __gmtime_r.
75517         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
75518         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
75519         Include <time_r.h>.
75520
75521         * lib/timegm.c: Switch to glibc implementation, with the following
75522         changes:
75523         [defined HAVE_CONFIG_H]: Include <config.h>.
75524         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
75525         (__mktime_internal) [!defined _LIBC]: New decl.
75526         (__gmtime_r) [!defined _LIBC]: New macro and function.
75527         (timegm): Use a prototype, since gnulib assumes C89.
75528         Do not bother declaring tmp to be const, as it's not really usefu.
75529         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
75530         (timegm): Declare only if HAVE_DECL_TIMEGM.
75531
75532 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75533
75534         * MODULES.html.sh (func_all_modules): Add time_r.
75535         * modules/time_r: New file.
75536         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
75537         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
75538
75539 2003-09-03  Paul Eggert  <eggert@twinsun.com>
75540
75541         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
75542         Bug reported by Lute Kamstra in
75543         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
75544
75545         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
75546         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
75547         course with correspondingly smaller numbers for tomorrow and
75548         yesterday.  From Tadayoshi Funaba.  Originally installed into
75549         sh-utils on 1999-08-07, but the patch got lost (I guess during the
75550         coreutils merge?).
75551
75552 2003-08-31  Simon Josefsson  <jas@extundo.com>
75553
75554         * modules/timegm: New file.
75555         * MODULES.html.sh (func_all_modules): Add timegm.
75556
75557 2003-08-31  Simon Josefsson  <jas@extundo.com>
75558
75559         * m4/timegm.m4: New file.
75560
75561 2003-08-31  Simon Josefsson  <jas@extundo.com>
75562
75563         * lib/timegm.h: New file.
75564         * lib/timegm.c: New file.  Based on
75565         wget-1.8.2/src/http.c:mktime_from_utc.
75566
75567 2003-08-31  Karl Berry  <karl@gnu.org>
75568
75569         * lib/argp.h: update from libc.
75570
75571 2003-08-28  Bruno Haible  <bruno@clisp.org>
75572
75573         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
75574         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
75575         followed by '#define fnmatch fnmatch_posix' gives an error.
75576
75577 2003-08-28  Bruno Haible  <bruno@clisp.org>
75578
75579         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
75580         warning on QNX, which defines O_BINARY to 000000.
75581
75582 2003-08-27  Jim Meyering  <jim@meyering.net>
75583
75584         * m4/mkstemp.m4: Require that the system mkstemp be able to create
75585         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
75586         would fail after 32.  Reported by Danny Levinson.  Details here:
75587         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
75588
75589 2003-08-24  Bruno Haible  <bruno@clisp.org>
75590
75591         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
75592         MSVC7 <stdio.h> is included later.
75593
75594 2003-08-22  Simon Josefsson  <jas@extundo.com>
75595
75596         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
75597
75598 2003-08-20  Karl Berry  <karl@gnu.org>
75599
75600         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
75601
75602 2003-08-20  Bruno Haible  <bruno@clisp.org>
75603
75604         * modules/progname: New file.
75605         * MODULES.html.sh (func_all_modules): Add progname.
75606
75607 2003-08-20  Bruno Haible  <bruno@clisp.org>
75608
75609         * lib/progname.h: New file, from GNU gettext.
75610         * lib/progname.c: New file, from GNU gettext.
75611         * lib/progreloc.c: New file, from GNU gettext.
75612
75613 2003-08-19  Jim Meyering  <jim@meyering.net>
75614
75615         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
75616         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
75617
75618 2003-08-19  Bruno Haible  <bruno@clisp.org>
75619
75620         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
75621         more.
75622
75623 2003-08-19  Bruno Haible  <bruno@clisp.org>
75624
75625         * lib/xstrdup.c: Assume <string.h> exists.
75626
75627 2003-08-18  Paul Eggert  <eggert@twinsun.com>
75628
75629         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
75630         in makefile rules.
75631
75632 2003-08-18  Jim Meyering  <jim@meyering.net>
75633
75634         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
75635         * m4/lib-ld.m4: Likewise.
75636
75637 2003-08-18  Jim Meyering  <jim@meyering.net>
75638
75639         * lib/setenv.h: Indent nested cpp directive.
75640         * lib/vasnprintf.c: Remove trailing blanks.
75641
75642 2003-08-17  Simon Josefsson  <jas@extundo.com>
75643
75644         * modules/xstrndup: New file.
75645         * MODULES.html.sh (func_all_modules): Add xstrndup.
75646
75647 2003-08-17  Simon Josefsson  <jas@extundo.com>
75648
75649         * modules/argp: Fix autoconf macro name. Add more dependencies.
75650
75651 2003-08-17  Simon Josefsson  <jas@extundo.com>
75652
75653         * m4/xstrndup.m4: New file.
75654
75655 2003-08-17  Simon Josefsson  <jas@extundo.com>
75656
75657         * m4/argp.m4: New file.
75658
75659 2003-08-17  Simon Josefsson  <jas@extundo.com>
75660             Bruno Haible  <bruno@clisp.org>
75661
75662         * lib/xstrndup.h: New file.
75663         * lib/xstrndup.c: New file.
75664
75665 2003-08-17  Bruno Haible  <bruno@clisp.org>
75666
75667         * modules/strndup (Files, Include): Add lib/strndup.h.
75668
75669 2003-08-17  Bruno Haible  <bruno@clisp.org>
75670
75671         * modules/euidaccess (Files): Add lib/euidaccess.h.
75672
75673 2003-08-17  Bruno Haible  <bruno@clisp.org>
75674
75675         * lib/strndup.h: New file.
75676
75677 2003-08-17  Bruno Haible  <bruno@clisp.org>
75678
75679         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
75680         like AC_GNU_SOURCE.
75681         * modules/extensions (configure.ac): Comment out the invocation of
75682         gl_USE_SYSTEM_EXTENSIONS.
75683
75684 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75685
75686         Merges from coreutils, etc.
75687         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
75688         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
75689         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
75690         fixing a typo.
75691         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
75692         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
75693
75694 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75695
75696         Document merge from coreutils.
75697         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
75698         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
75699         * modules/utime: Add m4/utimes-null.m4.
75700
75701 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75702
75703         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
75704         space, undoing this 2003-08-12 change:
75705         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75706
75707 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75708
75709         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
75710         strtoul.c from libc, undoing this 2003-08-12 change:
75711         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75712
75713 2003-08-16  Jim Meyering  <jim@meyering.net>
75714
75715         Merges from coreutils.
75716         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
75717         prefix.  Adjust cache variables similarly.  Create 500 rather than
75718         just 300 files, to exercise bug on Darwin6.5, too.
75719         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
75720         $missing_dir.
75721         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
75722         AM_SYS_POSIX_TERMIOS.
75723         Reported by mkc@mathdogs.com.
75724         Also change use of $am_cv_sys_posix_termios
75725         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
75726         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
75727         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
75728         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
75729         in /proc/mounts until it finds one with matching device number.  This
75730         is unnecessary when the FILE argument *is* a mount point.  No stat call
75731         is necessary in that case.  So, disable the statvfs-testing code on
75732         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
75733         as RedHat bug# 84846.
75734         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75735         to 1MB, so as not to render systems with no stack size limit (e.g.,
75736         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75737         Include <unistd.h>.  On some systems,
75738         it is required for the definition of _SC_PAGESIZE.
75739
75740 2003-08-16  Jim Meyering  <jim@meyering.net>
75741
75742         Merge from coreutils.
75743         * lib/xstrtoimax.c: #else #if -> #elif.
75744         * lib/xstrtoumax.c: Likewise.
75745
75746 2003-08-16  Jim Meyering  <jim@meyering.net>
75747
75748         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
75749         * m4/utimes.m4: Removed.
75750         * m4/utimes-null.m4: Renamed from utimes.m4.
75751
75752         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75753         to 1MB, so as not to render systems with no stack size limit (e.g.,
75754         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75755         Include <unistd.h>.  On some systems,
75756         it is required for the definition of _SC_PAGESIZE.
75757
75758 2003-08-16  Jim Meyering  <jim@meyering.net>
75759         and Paul Eggert  <eggert@cs.ucla.edu>
75760
75761         Merges from coreutils, etc.
75762
75763         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
75764         using the latest version from cvs.  This avoids problems with #line
75765         directives using a vendor (Sun) compiler.
75766         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
75767         Don't set GETGROUPS_LIB here; now it's
75768         done via getgroups.m4's wrapper function.
75769         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
75770         rather than just in sh-util/configure.in, so that the
75771         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
75772         same.
75773         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
75774         AC_FUNC_GETLOADAVG where to find getloadavg.c.
75775         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
75776         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
75777         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
75778         Remove code that is now done by the newly-required macros.
75779         Append $(EXEEXT) to DF_PROG.
75780         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
75781         Do not invoke or require the following here,
75782         since prereq.m4 or some gnulib .m4 now does this for us:
75783         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
75784         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
75785         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
75786         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
75787         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
75788         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
75789         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
75790         AC_FUNC_OBSTACK.
75791         Do not replace the following functions, as this is now the job
75792         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
75793         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
75794         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
75795         atexit getpass, strdup, getpagesize.
75796         Replace 'raise'.
75797         Do not check for the following functions, as this is now the job
75798         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
75799         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
75800         setregid.
75801         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
75802         Check for sys/sysctl.h.
75803         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
75804         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
75805         of checking for ssize_t ourselves.
75806
75807         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
75808         Require every macro that gnulib/modules/* suggests for us.
75809         (jm_PREREQ_ADDEXT): New macro.
75810         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
75811         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
75812
75813         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
75814         (gl_PHYSMEM): Use it.
75815         Also check for `table' function.
75816         Check for new headers and functions.
75817         Add check for sys/sysmp.h.
75818         With suggestions from Kaveh Ghazi.
75819         Ignore headers that are present but cannot be compiled.  This
75820         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
75821         C 5.4.
75822
75823 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75824
75825         Document merge from coreutils.
75826         * modules/userspec: Depend on posixver.
75827         * modules/strftime: Depend on tzset.
75828
75829 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75830
75831         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
75832         rather than tab, after '#' in shell-script copyright notices.
75833         Suggested by Bruno Haible.
75834
75835 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75836
75837         * config/srclist-update: Use three spaces, rather than tab, after '#'
75838         in shell-script copyright notices.  Suggested by Bruno Haible.
75839         Remove unnecessary parenthesization in regular expression.
75840
75841 2003-08-15  Jim Meyering  <jim@meyering.net>
75842
75843         Merge from coreutils.
75844         * lib/xgethostname.c: Include <stdlib.h>.
75845         (xghostname): Don't exit for anything other than memory-related
75846         failure; just return NULL.
75847         * lib/userspec.c: Include "posixver.h".
75848         (parse_user_spec): Accept `.' as a separator only
75849         in pre-POSIX-200112 mode.
75850         * lib/strtoimax.c: Use #elif rather than #else #if.
75851         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
75852         Remove function, now that we can rely on a working tzset function.
75853         [!_LIBC]: Ensure that the required autoconf test has been run.
75854         [!defined _NL_CURRENT && HAVE_STRFTIME]:
75855         Use underlying_strftime for %r.
75856         * lib/sha.c: Merge in some clean-up and optimization changes from
75857         glibc.
75858         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
75859         Ensure that it is a multiple of 64.
75860         Rearrange loop exit tests so as to avoid performing an
75861         additional fread after encountering an error or EOF.
75862         * lib/realloc.c: Update copyright date.
75863
75864 2003-08-15  Jim Meyering  <jim@meyering.net>
75865         and Paul Eggert  <eggert@twinsun.com>
75866
75867         Merge from coreutils.
75868         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
75869         member but strut utmpx does not.  Needed for AIX 4.3.3.
75870         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
75871
75872 2003-08-15  Jim Meyering  <jim@meyering.net>
75873         and Paul Eggert  <eggert@cs.ucla.edu>
75874
75875         Merges from coreutils, etc.
75876         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
75877         Require gl_FUNC_TZSET_CLOBBER.
75878         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
75879         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
75880         members.
75881
75882 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75883
75884         Help the merge from coreutils.
75885         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
75886         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
75887         * m4/tzset.m4: Use it too.
75888
75889 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75890
75891         * modules/tzset: New file.
75892
75893 2003-08-14  Jim Meyering  <jim@meyering.net>
75894
75895         Merges from coreutils.
75896         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
75897         variable names, rather than @FNMATCH_H@.
75898         * modules/alloca: Likewise for $(ALLOCA_H).
75899
75900         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
75901         the three copies of the literal target, `fnmatch.h'.
75902         * modules/alloca (alloca.h): Likewise.
75903
75904 2003-08-14  Jim Meyering  <jim@meyering.net>
75905
75906         Merge from coreutils.
75907         * m4/tzset.m4: New file.
75908         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
75909         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
75910         otherwise, AIX 5.1 systems would end up using the latter.
75911         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
75912         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
75913         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
75914         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
75915
75916 2003-08-14  Jim Meyering  <jim@meyering.net>
75917
75918         Merge from coreutils.
75919         * lib/obstack.h: Whitespace changes.
75920         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
75921         and xcalloc return values.
75922         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
75923         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
75924         hang on OSF/1 5.1 for DIR on both local and remote file systems.
75925         Reported by (and fix confirmed by) Nelson H. F. Beebe.
75926         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75927         error from mntctl.
75928         Use mntctl's return value to drive the entry-processing loop, since
75929         we can't rely on the value of the vmt_length member in the last
75930         entry.  On some systems doing so could result in exhausting
75931         virtual memory.  Based in part on a patch from Mike Jetzer.
75932
75933 2003-08-14  Jim Meyering  <jim@meyering.net>
75934         and Paul Eggert  <eggert@twinsun.com>
75935
75936         Merges from coreutils, plus other fixes.
75937         * lib/physmem.c: Merge in portability changes from gcc/libiberty
75938         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
75939         for credits and details.  Thanks to Kaveh Ghazi for helping
75940         to keep these files in sync.
75941         (ARRAY_SIZE): Define it.
75942         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
75943         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
75944         (memcasecmp): Don't assume size_t fits in unsigned int.
75945         Remove casts and duplicate code.
75946         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
75947         (memcpy): Remove definition.
75948         Merge in some clean-up and optimization changes from glibc.
75949         [BLOCKSIZE]: Move definition to top of file.
75950         Ensure that it is a multiple of 64.
75951         Rearrange loop exit tests so as to avoid performing an
75952         additional fread after encountering an error or EOF.
75953         * lib/md5.h (md5_uintptr): Define.
75954         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
75955         return to the initial working directory.  Preserve errno
75956         for caller.
75957         * lib/idcache.c: Include "xalloc.h".
75958         (xmalloc, xrealloc): Remove decls.
75959         (getuser): Remove casts no longer required in C89.
75960         * lib/human.c: Include stdio.h, for sprintf.
75961         * lib/group-member.c: Include "xalloc.h".
75962         (xmalloc, xrealloc): Remove decls.
75963         (get_group_info): Remove casts no longer required in C89.
75964         * lib/getusershell.c (readname): Remove casts no longer required in
75965         C89.
75966         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
75967         * lib/getline.c: Whitespace fix, from coreutils.
75968
75969 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75970
75971         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
75972         Check for isascii.
75973
75974         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75975         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75976         Undo previous (whitespace-only) change.
75977
75978 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75979
75980         * lib/exclude.c: Include <ctype.h>
75981         (IN_CTYPE_DOMAIN): New macro.
75982         (is_space): New fn.
75983         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
75984         and empty lines.
75985
75986         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75987         Undo previous (whitespace-only) change.
75988
75989 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75990
75991         * config/srclist-update: Change update back to the old behavior,
75992         leaving whitespace alone.  Use one 'sed' command rather than a
75993         pipeline.
75994         (fixlicense): Now a variable, not a function.
75995         (remove_trailing_blanks): Remove.
75996         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
75997         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75998         Undo previous (whitespace-only) change.
75999
76000 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76001
76002         Merge from coreutils.
76003         * modules/euidaccess: Add lib_SOURCES, include for new
76004         file euidaccess.h
76005
76006 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76007
76008         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
76009         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
76010         Normalize leading white space and remove trailing white space.
76011
76012         Merge from coreutils
76013         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
76014
76015         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
76016         0.12.1.  These files are now being upgraded automatically by
76017         ../config/srclist-update.
76018
76019 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76020
76021         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
76022         Normalize leading white space and remove trailing white space.
76023         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
76024         notice, as per ../config/srclist-update.
76025
76026         Merge from coreutils.
76027         * lib/euidaccess.h: New file.
76028         * lib/euidaccess.c: Include it.
76029         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
76030         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
76031         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
76032
76033 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76034
76035         * config/srclist-update: Add copyright notice.
76036         (remove_id_lines, remove_trailing_blanks): New constants.
76037         (fixfile): Use them to normalize spacing a bit in copied files.
76038         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
76039         Normalize leading white space and remove trailing white space.
76040
76041         * config/texinfo.tex: Sync with texinfo.
76042
76043         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
76044         strtoul.c from libc, to merge coreutils whitespace changes.
76045
76046         * config/srclist.txt: Get the following m4 files from gettext:
76047         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
76048         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
76049         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
76050         wint_t.m4.
76051
76052 2003-08-12  Karl Berry  <karl@gnu.org>
76053
76054         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
76055         been made.
76056
76057 2003-08-11  Paul Eggert  <eggert@twinsun.com>
76058
76059         * modules/gnu-source, m4/gnu-source.m4:
76060         Remove; we're assuming Autoconf 2.54 or later now.
76061         Suggested by Bruno Haible.
76062         * MODULES.html.sh (func_all_modules): Remove gnu-source.
76063
76064 2003-08-11  Bruno Haible  <bruno@clisp.org>
76065
76066         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
76067
76068 2003-08-11  Bruno Haible  <bruno@clisp.org>
76069
76070         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
76071         (vasnprintf): Use it instead of wcslen.
76072
76073 2003-08-11  Bruno Haible  <bruno@clisp.org>
76074
76075         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
76076         value to ensure that _Bool promotes to int. Use #define for _Bool when
76077         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
76078
76079 2003-08-10  Karl Berry  <karl@gnu.org>
76080
76081         * lib/regex.h: update from libc (whitespace fix).
76082
76083 2003-08-09  Paul Eggert  <eggert@twinsun.com>
76084
76085         Merge some files from coreutils.  These changes were
76086         originally made by Jim Meyering.
76087         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
76088         many older Unixes require this.
76089         * lib/alloca.c (alloca): Remove cast to argument of free;
76090         no longer needed in C89.
76091         * lib/alloca_.h, regex.h: Fix white space to match
76092         what GNU indent does.
76093
76094 2003-08-09  Paul Eggert  <eggert@twinsun.com>
76095
76096         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
76097         apparently Emacs's Unicode mode got confused before my 2003-08-05
76098         checkin.
76099
76100 2003-08-08  Paul Eggert  <eggert@twinsun.com>
76101
76102         * m4/extensions.m4: New file.
76103         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
76104         Require gl_USE_SYSTEM_EXTENSIONS.
76105         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
76106         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
76107
76108 2003-08-08  Paul Eggert  <eggert@twinsun.com>
76109
76110         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
76111         * modules/extensions, modules/gnu-source: New files.
76112         * modules/timespec, modules/unlocked-io: Depend on extensions.
76113
76114 2003-08-07  Paul Eggert  <eggert@twinsun.com>
76115
76116         * modules/restrict: New file.
76117         * MODULES.html.sh (func_all_modules): Add restrict.
76118         * modules/regex: Depend on restrict.
76119
76120 2003-08-07  Paul Eggert  <eggert@twinsun.com>
76121
76122         * m4/restrict.m4: New file.
76123         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
76124
76125 2003-08-07  Bruno Haible  <bruno@clisp.org>
76126
76127         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
76128         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
76129
76130 2003-08-07  Bruno Haible  <bruno@clisp.org>
76131
76132         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
76133         makes the module 'getndelim2' compatible with the module 'getline'.
76134
76135 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76136
76137         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
76138         byte with "\201" to avoid glitches when editing that source file
76139         with multi-gnome-terminal.
76140
76141 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76142
76143         * lib/bumpalloc.h: Remove.
76144
76145 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76146
76147         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
76148         * modules/bumpalloc: Remove.
76149
76150 2003-08-04  Paul Eggert  <eggert@twinsun.com>
76151
76152         * lib/getloadavg.c: Change copyright notice and spacing to conform to
76153         GNU coding style.
76154
76155         Merge from coreutils.
76156         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
76157         1. From glibc.
76158         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
76159         from Karl Berry, implemented by Jim Meyering.
76160         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
76161         from Dmitry V. Levin.
76162         Remove anachronistic cast of xrealloc.
76163         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
76164         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
76165         type. Otherwise, it wouldn't compile with at least /bin/cc on
76166         ymp-cray-unicos9.0.2.X.
76167         Combine two mostly-identical uses of alloca into one.
76168         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
76169
76170 2003-08-04  Dave Love  <d.love@dl.ac.uk>
76171
76172         [From Emacs.]
76173
76174         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
76175         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
76176         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
76177         obsolete NLIST_NAME_UNION.
76178         [__GNU__]: Undef BSD and FSCALE.
76179         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
76180
76181 2003-08-03  Paul Eggert  <eggert@twinsun.com>
76182
76183         * lib/stdbool_.h (_Bool): Make it signed char, instead of
76184         an enum type, so that it's guaranteed to promote to int.  See:
76185         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
76186
76187 2003-08-03  Karl Berry  <karl@gnu.org>
76188
76189         * config/depcomp: update from automake.
76190
76191 2003-07-31  Paul Eggert  <eggert@twinsun.com>
76192
76193         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
76194         (strerror): Don't assume that a printable int fits in 14 bytes.
76195
76196 2003-07-31  Bruno Haible  <bruno@clisp.org>
76197
76198         * modules/getpass-gnu: New file.
76199         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
76200
76201 2003-07-31  Bruno Haible  <bruno@clisp.org>
76202
76203         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
76204
76205 2003-07-24  Karl Berry  <karl@gnu.org>
76206
76207         * config/missing: update from automake.
76208
76209 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
76210             Bruno Haible  <bruno@clisp.org>
76211
76212         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
76213         * lib/getline.c (getline, getdelim): Likewise.
76214         Remove _GNU_SOURCE define; now it's defined in config.h through
76215         m4/getline.m4.
76216
76217 2003-07-23  Karl Berry  <karl@gnu.org>
76218
76219         * config/config.sub: update from prep.
76220
76221 2003-07-22  Paul Eggert  <eggert@twinsun.com>
76222
76223         * modules/xalloc (Depends-on): Add exitfail.
76224         * modules/xmemcoll: Likewise.
76225
76226 2003-07-22  Paul Eggert  <eggert@twinsun.com>
76227
76228         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
76229         over-parenthesization in macros.
76230
76231         Sync with coreutils.
76232
76233         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
76234         required by C99.
76235
76236         Use `exit_failure' for xalloc and xmemcoll instead of their own
76237         private exit-failure variables.
76238         * lib/xalloc.h (xalloc_exit_failure): Remove.
76239         * lib/xmalloc.c: Likewise.  Include exitfail.h.
76240         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
76241         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
76242         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
76243         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
76244
76245 2003-07-20  Jim Meyering  <jim@meyering.net>
76246
76247         * modules/closeout (Depends-on): Add exitfail.
76248         Suggestion from Bruno Haible.
76249
76250 2003-07-19  Karl Berry  <karl@gnu.org>
76251
76252         * config/config.sub: update from prep.
76253
76254 2003-07-18  Paul Eggert  <eggert@twinsun.com>
76255
76256         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
76257         Remove.
76258         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
76259         to test that it can stand by itself.  Include "exitfail.h".
76260         Clients should set exit_failure instead.
76261         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
76262
76263 2003-07-18  Bruno Haible  <bruno@clisp.org>
76264
76265         * modules/getndelim2: New file.
76266         * modules/getline: Share files with module getndelim2.
76267         * modules/getnline: Depend on getndelim2 instead of sharing files with
76268         it. Add getnline.c to lib_SOURCES.
76269         * MODULES.html.sh (func_all_modules): Add getndelim2.
76270
76271 2003-07-18  Bruno Haible  <bruno@clisp.org>
76272
76273         * m4/getndelim2.m4: New file.
76274         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
76275         invoke gl_PREREQ_GETNDELIM2.
76276         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
76277         gl_PREREQ_GETNDELIM2.
76278         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
76279         gl_GETNDELIM2.
76280
76281 2003-07-18  Bruno Haible  <bruno@clisp.org>
76282
76283         * lib/getndelim2.h: New file.
76284         * lib/getndelim2.c: Make into a module of its own. Include config.h,
76285         getndelim2.h.
76286         (getndelim2): Make non-static. Change return type to ssize_t.
76287         * lib/getline.h: Change argument names.
76288         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
76289         * lib/getnline.c: Include getndelim2.h.
76290
76291 2003-07-18  Andreas Schwab  <schwab@suse.de>
76292
76293         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
76294
76295 2003-07-17  Karl Berry  <karl@gnu.org>
76296
76297         * config/config.sub: update from prep.
76298
76299 2003-07-17  Bruno Haible  <bruno@clisp.org>
76300
76301         * modules/getnline: New file.
76302         * modules/getline: Add lib/getndelim2.c to source file list.
76303         * MODULES.html.sh (func_all_modules): Add getnline.
76304
76305 2003-07-17  Bruno Haible  <bruno@clisp.org>
76306
76307         * m4/getnline.m4: New file.
76308
76309 2003-07-17  Bruno Haible  <bruno@clisp.org>
76310
76311         * m4/Makefile.am.in: Remove file.
76312         * m4/Makefile.am: Remove file.
76313         * m4/Makefile.in: Remove file.
76314
76315 2003-07-17  Bruno Haible  <bruno@clisp.org>
76316
76317         * lib/getnline.h: New file.
76318         * lib/getnline.c: New file.
76319         * lib/getndelim2.c: New file, extracted from getline.c.
76320         (getndelim2): Renamed from getdelim2, with added nmax argument.
76321         * lib/getline.c: Include getndelim2.c.
76322         (getdelim2): Moved out to getndelim2.c.
76323         (getline, getdelim): Update.
76324
76325 2003-07-17  Bruno Haible  <bruno@clisp.org>
76326
76327         * lib/Makefile.am: Remove file.
76328         * lib/Makefile.in: Remove file.
76329
76330 2003-07-17  Bruno Haible  <bruno@clisp.org>
76331
76332         * configure.in: Remove file.
76333         * Makefile.in: Remove file.
76334
76335 2003-07-17  Bruno Haible  <bruno@clisp.org>
76336
76337         * MODULES.html.sh: Put the </BODY> right before </HTML>.
76338
76339 2003-07-16  Karl Berry  <karl@gnu.org>
76340
76341         * config/srclist-update: was running fixlicense twice, which caused
76342                 texinfo.tex to be nullified for some reason.  Simplify,
76343                 $gplsrc is no longer needed as far as I can see?
76344
76345 2003-07-16  Jim Meyering  <jim@meyering.net>
76346
76347         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
76348
76349 2003-07-15  Paul Eggert  <eggert@twinsun.com>
76350
76351         * config/srclist.txt: Get the following files from gettext-runtime/intl
76352         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
76353         ref-del.sin.  From Bruno Haible.
76354         * config/srclist-update (fixfile): Change grep pattern again, since the
76355         previous fix didn't work (there was another trailing $).  Use
76356         '[$]' to escape the $s.
76357
76358 2003-07-15  Karl Berry  <karl@gnu.org>
76359
76360         * lib/vasnprintf.c: update from gettext.
76361
76362 2003-07-15  Karl Berry  <karl@gnu.org>
76363
76364         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
76365         gets expanded when surrounded by '$'.
76366
76367 2003-07-15  Jim Meyering  <jim@meyering.net>
76368
76369         * modules/save-cwd: Don't depend on error.  From Derek Price.
76370
76371 2003-07-15  Jim Meyering  <jim@meyering.net>
76372
76373         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
76374
76375 2003-07-14  Simon Josefsson  <jas@extundo.com>
76376
76377         * modules/mempcpy: New file.
76378         * MODULES.html.sh (func_all_modules): Add mempcpy.
76379
76380 2003-07-14  Simon Josefsson  <jas@extundo.com>
76381
76382         * m4/mempcpy.m4: New file.
76383
76384 2003-07-14  Simon Josefsson  <jas@extundo.com>
76385
76386         * lib/mempcpy.h: New file.
76387         * lib/mempcpy.c: New file.
76388
76389 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76390
76391         * modules/getdate, modules/posixtm: Depend on mktime.
76392
76393 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76394
76395         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
76396         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
76397         unicodeio.c, unicodeio.h, unlocked-io.h:
76398         Switch from LGPL to GPL.
76399
76400 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76401
76402         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
76403         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
76404         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
76405         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
76406         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
76407         updated automatically by ../config/srclist-update.  This changes
76408         their license from LPGL to GPL.
76409
76410 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76411
76412         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
76413         assumed to refer to the root of the most recent stable gettext version.
76414         * config/srclistvars.sh: Add defaults for eggert.
76415         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
76416         Match "This program" as well as "The program".  This is needed
76417         for gettext.
76418
76419 2003-07-14  Jim Meyering  <jim@meyering.net>
76420
76421         Don't emit diagnostics.  Let callers do that.
76422         * lib/save-cwd.c: Don't include "error.h".
76423         (save_cwd): Don't call error.  Ensure that errno is valid
76424         when returning nonzero.
76425
76426         * lib/save-cwd.h (restore_cwd): Update prototype.
76427         * lib/save-cwd.c (restore_cwd): Remove two parameters.
76428         Simplify.  Don't call error upon failure.  Let callers do that.
76429         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
76430         when auditing is enabled.  But don't bother updating the #if.
76431
76432 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
76433
76434         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
76435         it breaks C++ compilation.
76436         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
76437
76438 2003-07-10  Simon Josefsson  <jas@extundo.com>
76439
76440         * modules/strchrnul (Makefile.am): Add strchrnul.h.
76441
76442 2003-07-10  Jim Meyering  <jim@meyering.net>
76443
76444         * m4/clock_time.m4: Remove trailing blank.
76445         * m4/intmax_t.m4: Likewise.
76446
76447 2003-07-10  Jim Meyering  <jim@meyering.net>
76448
76449         * lib/vasnprintf.c: Remove trailing blanks.
76450         Make cpp indentation consistent.
76451
76452 2003-07-09  Paul Eggert  <eggert@twinsun.com>
76453
76454         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
76455         posixver.c, strftime.c, strnlen.c, strverscmp.c:
76456         Switch from LGPL to GPL.
76457
76458 2003-07-09  Paul Eggert  <eggert@twinsun.com>
76459
76460         * config/srclist.txt: Sort sublists.  Add
76461         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
76462         that differ from gnulib for one reason or another; we'd like this list
76463         to be smaller but for now let's document what we have.
76464
76465 2003-07-08  Paul Eggert  <eggert@twinsun.com>
76466
76467         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
76468         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
76469         and sweeter "eval x=$x".
76470         * config/srclist.txt: Get lib/argp* from glibc.
76471
76472 2003-07-07  Paul Eggert  <eggert@twinsun.com>
76473
76474         * lib/mktime.c: Fix some boundary cases and remove need for floating
76475         point.
76476
76477         Issue a compile-time diagnostic if time_t is floating point, or if
76478         two's complement arithmetic is not in effect, or if arithmetic
76479         right shift does not propagate the sign.  These assumptions were
76480         all in the original code but they weren't checked.
76481
76482         (TIME_T_MIDPOINT, verify): New macros.
76483         (__isleap): Remove; it has integer overflow problems.
76484         (leapyear): New function, without those problems.
76485         (ydhms_tm_diff): Remove; splitting into two parts.
76486         (ydhms_diff): New function, containing the arithmetic part of
76487         the old ydhms_tm_diff function.  Issue a compile-time
76488         diagnostic if we are not using C99 integer division.
76489         Avoid casts when possible.
76490         (guess_time_tm): New function, containing the checking part of
76491         the old ydhms_tm_diff function.  Return the new value, rather than
76492         the difference between it and the old.  Accept a new argument T
76493         so that *T specifies the old value.  Check for overflow in the result.
76494
76495         (__mktime_internal): Use a time_t offset, not a long int offset.
76496         This undoes the 2003-06-04 change, which is no longer needed now
76497         that we have better overflow checking.
76498         (localtime_offset): Likewise.
76499
76500         (__mktime_internal): Avoid harmful overflow on hosts where time_t
76501         and long are 64-bit but int is only 32-bit.
76502         (ydhms_diff): Use long int to store year1 and yday1.
76503         Issue a compile-time diagnostic if long int is not wide enough.
76504
76505         (__mktime_internal): Use long int to store adjusted year and yday.
76506         Use plain C rather than preprocessor commands, if that doesn't
76507         affect efficiency.
76508         Check for overflow (and try to repair) after each probe
76509         rather than checking only at the very end.  This avoids some bugs
76510         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
76511         does not equal GMT offset at maximum time).
76512         Use integer to check for overflow rather than floating point; this
76513         is more portable to non-IEEE hosts, and is a tad faster.
76514         When we detect that we are oscillating between two values,
76515         don't check whether tm_isdst has the requested value, since
76516         we already know the answer.  When tm_isdst has the wrong value,
76517         use a different heuristic to find the right one, based on the
76518         extreme values actually observed in practice in tz2003a,
76519         rather than the (overly optimistic) "previous 3 calendar quarters".
76520
76521         (not_equal_tm, print_tm, check_result): Use "const T" rather than
76522         "T const" to accommodate glibc style.
76523         (check_result): Use less-confusing report format.  "long" -> "long int.
76524         (main): Likewise.
76525         Don't loop if the iteration overflows time_t.
76526         Allow a negative step in the iteration.
76527
76528 2003-07-06  Karl Berry  <karl@gnu.org>
76529
76530         * config/depcomp: update from automake.
76531         * config/config.sub: update from prep.
76532
76533 2003-07-03  Karl Berry  <karl@gnu.org>
76534
76535         * config/config.guess: update from prep.
76536
76537 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76538
76539         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
76540         xreadlink.c now includes it unconditionally.
76541
76542 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76543
76544         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
76545         having it depend on HAVE_SYS_TYPES_H.
76546
76547 2003-07-01  Bruno Haible  <bruno@clisp.org>
76548
76549         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
76550         <sys/types.h> should be sufficient.
76551         Reported by Paul Eggert.
76552
76553 2003-06-26  Karl Berry  <karl@gnu.org>
76554
76555         * config/depcomp: update from automake.
76556
76557 2003-06-26  Bruno Haible  <bruno@clisp.org>
76558
76559         * modules/human: Depend on module stdbool.
76560
76561 2003-06-25  Bruno Haible  <bruno@clisp.org>
76562
76563         * modules/readlink: New file.
76564         * modules/xreadlink: Depend on it.
76565         * MODULES.html.sh (func_all_modules): Add readlink.
76566
76567 2003-06-25  Bruno Haible  <bruno@clisp.org>
76568
76569         * m4/readlink.m4: New file.
76570
76571 2003-06-25  Bruno Haible  <bruno@clisp.org>
76572
76573         * lib/readlink.c: New file.
76574
76575 2003-06-22  Karl Berry  <karl@gnu.org>
76576
76577         * config/srclist.txt: update mkinstalldirs from automake.
76578         * config/mkinstalldirs: update.
76579
76580 2003-06-22  Bruno Haible  <bruno@clisp.org>
76581
76582         Portability to mingw32.
76583         * m4/ssize_t.m4: New file, from GNU gettext.
76584         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
76585         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
76586
76587 2003-06-22  Bruno Haible  <bruno@clisp.org>
76588
76589         * modules/safe-read: Add m4/ssize_t.m4.
76590         * modules/xreadlink: Add m4/ssize_t.m4.
76591
76592 2003-06-20  Bruno Haible  <bruno@clisp.org>
76593
76594         Assume C89, so PARAMS isn't needed.
76595         * lib/unicodeio.h (PARAMS): Remove.
76596         * lib/unicodeio.c: Don't use PARAMS.
76597
76598 2003-06-18  Karl Berry  <karl@gnu.org>
76599
76600         * config/config.{guess,sub}: update from prep.
76601
76602 2003-06-18  Jim Meyering  <jim@meyering.net>
76603
76604         Merge changes from coreutils.
76605         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
76606         Remove explicit declarations of xmalloc and realloc.
76607         Include xalloc.h.
76608         (read_utmp): Remove anachronistic cast of xmalloc.
76609
76610 2003-06-17  Paul Eggert  <eggert@twinsun.com>
76611
76612         Assume C89, so PARAMS isn't needed.
76613         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
76614         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
76615         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
76616         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
76617         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
76618         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
76619         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
76620         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
76621         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
76622         lib/xstrtod.h, lib/xstrtol.h: Likewise.
76623         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
76624         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
76625         no longer needed. Anyway, config.h should always be included before any
76626         other file.
76627
76628 2003-06-11  Simon Josefsson  <jas@extundo.com>
76629
76630         * modules/sysexits: New file.
76631         * MODULES.html.sh (func_all_modules): Add sysexits.
76632
76633 2003-06-11  Simon Josefsson  <jas@extundo.com>
76634
76635         * lib/sysexit_.h: New file.
76636
76637 2003-06-11  Derek Price  <derek@ximbiot.com>
76638
76639         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
76640         necessary.
76641
76642 2003-06-11  Bruno Haible  <bruno@clisp.org>
76643
76644         * m4/sysexits.m4: New file.
76645
76646 2003-06-10  Simon Josefsson  <jas@extundo.com>
76647
76648         * lib/argp.h: New file, from glibc.
76649         * lib/argp-ba.c: New file, from glibc.
76650         * lib/argp-eexst.c: New file, from glibc.
76651         * lib/argp-fmtstream.c: New file, from glibc.
76652         * lib/argp-fmtstream.h: New file, from glibc.
76653         * lib/argp-fs-xinl.c: New file, from glibc.
76654         * lib/argp-help.c: New file, from glibc.
76655         * lib/argp-namefrob.h: New file, from glibc.
76656         * lib/argp-parse.c: New file, from glibc.
76657         * lib/argp-pv.c: New file, from glibc.
76658         * lib/argp-pvh.c: New file, from glibc.
76659         * lib/argp-xinl.c: New file, from glibc.
76660
76661 2003-06-10  Simon Josefsson  <jas@extundo.com>
76662
76663         * modules/strchrnul: New file.
76664
76665 2003-06-10  Simon Josefsson  <jas@extundo.com>
76666
76667         * modules/argp: New file.
76668
76669 2003-06-10  Simon Josefsson  <jas@extundo.com>
76670
76671         * m4/strchrnul.m4: New file.
76672
76673 2003-06-10  Simon Josefsson  <jas@extundo.com>
76674
76675         * lib/strchrnul.h: New file.
76676         * lib/strchrnul.c: New file.
76677
76678 2003-06-10  Bruno Haible  <bruno@clisp.org>
76679
76680         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
76681
76682 2003-06-07  Karl Berry  <karl@gnu.org>
76683
76684         * config/config.{guess,sub}: update from prep.
76685
76686 2003-06-07  Jim Meyering  <jim@meyering.net>
76687
76688         * modules/strtod: Use $(...) notation, not @...@ for
76689         AC_REPLACE'd variables.
76690         * modules/localcharset: Likewise.
76691
76692 2003-06-07  Jim Meyering  <jim@meyering.net>
76693
76694         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
76695         in place of my name in the copyright comment.
76696         Remove definition and uses of __P.
76697
76698         From coreutils.
76699         * lib/stat.c: Don't declare xmalloc explicitly.
76700         Instead, include "xalloc.h".
76701         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
76702         xrealloc, and xcalloc return values.
76703         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
76704         Improve comment.
76705         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
76706
76707 2003-06-07  Bruno Haible  <bruno@clisp.org>
76708
76709         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
76710         avoid AC_CONFIG_LINKS.
76711         * modules/fnmatch (Makefile.am): Use explicit creation rule for
76712         fnmatch.h, to avoid AC_CONFIG_LINKS.
76713         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
76714
76715 2003-06-07  Bruno Haible  <bruno@clisp.org>
76716
76717         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
76718         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
76719         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76720         directory.
76721         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
76722         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76723         directory.
76724
76725 2003-06-06  Jim Meyering  <jim@meyering.net>
76726
76727         Merge from coreutils.
76728         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
76729         Consolidate declarations and initializations of *_base* locals.
76730
76731         Merge from coreutils.
76732         This avoids a core dump on systems without GNU putenv,
76733         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
76734         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
76735         (unsetenv): New static function, from GNU libc.
76736         (rpl_putenv): Use it.
76737
76738         * lib/modechange.c: Remove trailing blanks.
76739
76740         Merge from coreutils.
76741         * lib/fsusage.c: Remove declaration of statfs.
76742         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
76743
76744         * lib/posixtm.c: Include <stdbool.h> unconditionally.
76745
76746 2003-06-06  Jim Meyering  <jim@meyering.net>
76747
76748         * lib/stdbool_.h: Renamed from stdbool.h.in.
76749
76750 2003-06-06  Jim Meyering  <jim@meyering.net>
76751             Bruno Haible  <bruno@clisp.org>
76752
76753         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
76754         Adjust Makefile.am snippet not to redirect directly to target.
76755         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
76756
76757 2003-06-05  Paul Eggert  <eggert@twinsun.com>
76758
76759         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
76760         mismatch, look in future quarters as well as past.  This fixes a
76761         bug when processing fall-backwards gaps immediately after a long
76762         period of daylight-saving time.
76763
76764         * lib/mktime.c: Assume freestanding C89 or better.
76765         (HAVE_LIMITS_H): Remove.  Assume it's 1.
76766         (__P): Remove; not used.
76767         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
76768         (mktime, not_equal_tm, print_tm, check_result,
76769         main): Use prototypes.  Use const * where appropriate.
76770         (main): Fix typo in testing code that uncovered by above changes.
76771         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
76772
76773 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76774
76775         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
76776         locale.h, localeconv.  This merges changes from coreutils.
76777
76778         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
76779         It can be removed after the next Autoconf is released.
76780         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
76781         needed.
76782
76783 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76784
76785         * lib/mktime.c: Fix Debian bug 177940
76786         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
76787         (localtime_offset): Now long int, not time_t, because we want it
76788         to be guaranteed to be signed.  All uses changed.
76789         (__mktime_internal): If overflow would occur when adding offset,
76790         don't add it.
76791
76792         Merge 'human' changes from coreutils.  Rewrite to support
76793         locale-specific notations like thousands separators.
76794         * lib/human.c: Simplify authorship notice.
76795         Include human.h immediately after config.h.
76796         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
76797         <limits.h>: Do not include, since human.h does.
76798         (SIZE_MAX, UINTMAX_MAX): New macros.
76799         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
76800         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
76801         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
76802         (power_letter): Renamed from suffixes.
76803         (generate_suffix_backwards): Remove.
76804         (adjust_value): Now takes int style (because of human.h changes)
76805         and long double value (for greater precision on some platforms).
76806         (group_number): New function.
76807         (human_readable): Use it.  Use integer options, not enum.
76808         Put the options before the sizes in the arg list.
76809         Support all the new options.
76810         The old human_readable function has been removed;
76811         use inttostr.h instead.
76812         (human_readable, default_block_size, humblock):
76813         Use uintmax_t, not int, for block sizes.
76814         (human_readable_inexact, block_size_types): Remove.
76815         (block_size_opts): New constant.
76816         (human_options): Renamed from human_block_size, with new signature
76817         that allows block sizes up to UINTMAX_MAX.  All callers changed.
76818         * lib/human.h: Add copyright and authorship notice.
76819         Include <limits.h> and <stdbool.h> unconditionally.
76820         (PARAMS): Remove.  All uses removed.
76821         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
76822         (enum human_inexact_style): Remove tag; now a nameless enum.
76823         (human_floor, human_ceiling, human_round_to_even): Now have
76824         values 2, 0, 1 rather than -1, 1, 0.
76825         (human_group_digits, human_suppress_point_zero, human_autoscale,
76826         human_base_1024, human_SI, human_B): New constants.
76827         (human_readable_inexact, human_block_size): Remove.
76828         (human_readable): Size args are now uintmax_t, not int.
76829         (human_options): New decl.
76830
76831         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
76832         unnecessary now that we assume C89 or better.  This change
76833         imported from coreutils.
76834
76835         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76836         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
76837         in the 2003-05-30 sync from glibc.
76838
76839         .h files should stand alone, but we shouldn't include <sys/types.h>
76840         if we can get away with just <stddef.h>.
76841
76842         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
76843         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
76844         rather than <sys/types.h>, as we merely need size_t.
76845         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
76846         to get size_t.
76847         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
76848         Include <stdio.h>, to get FILE.
76849         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
76850         memcasecmp.h has included <stddef.h> and all we need is size_t.
76851         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
76852         our interface, instead of including <sys/types.h>
76853
76854 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76855
76856         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
76857         now, as glibc mktime is buggy on non-glibc systems.
76858
76859 2003-06-03  Karl Berry  <karl@gnu.org>
76860
76861         * config/config.sub: update from prep.
76862
76863 2003-06-02  Paul Eggert  <eggert@twinsun.com>
76864
76865         [from coreutils]
76866         Fix some minor time-related bugs with POSIX time arguments.
76867         Some valid time stamps were being rejected (notably -1, and
76868         time stamps before 1900 on 64-bit hosts).  And some invalid
76869         time stamps were being accepted, e.g. September 31.
76870
76871         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
76872         that we can return (time_t) -1 successfully.
76873         * lib/posixtm.c: Likewise.
76874         [HAVE_STDBOOL_H]: Include <stdbool.h>.
76875         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
76876         (t): Remove static var.
76877         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
76878         of static var.  All uses changed.
76879         (year): Do not reject years before 1900; they can occur with
76880         64-bit time_t.
76881         (posix_time_parse): Do not check for out-of-range components;
76882         that is now the caller's responsibility, since our checks were
76883         only approximations.
76884         (posixtime): Use mktime to check for out-of-range components,
76885         since it knows them exactly.
76886         If mktime returns (time_t) -1, check whether an error actually occurred
76887         by invoking localtime on -1.
76888         (main) [TEST_POSIXTIME]: Check for input data errors, and report
76889         posixtime failures better.
76890         Improve the test data (in comments only).
76891
76892 2003-06-02  Karl Berry  <karl@gnu.org>
76893
76894         * config/mkinstalldirs (version): new variable.
76895         (--version): new option.
76896         (usage): improve message.
76897
76898 2003-05-30  Karl Berry  <karl@gnu.org>
76899
76900         * lib/mktime.c: update from libc.
76901
76902 2003-05-30  Bruno Haible  <bruno@clisp.org>
76903
76904         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
76905         * config/config.rpath: Upgrade to gettext-0.12.1.
76906
76907 2003-05-30  Bruno Haible  <bruno@clisp.org>
76908
76909         * m4/gettext.m4: Upgrade to gettext-0.12.1.
76910         * m4/nls.m4: New file, from gettext-0.12.1.
76911         * m4/po.m4: New file, from gettext-0.12.1.
76912         * m4/progtest.m4: Upgrade to gettext-0.12.1.
76913
76914 2003-05-30  Bruno Haible  <bruno@clisp.org>
76915
76916         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
76917         * lib/localcharset.h: Likewise.
76918         * lib/localcharset.c: Likewise.
76919
76920 2003-05-29  Karl Berry  <karl@gnu.org>
76921
76922         * config/config.rpath: update from gettext.
76923
76924 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76925
76926         Assume the headers required for C89 freestanding compilers.
76927         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
76928         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
76929         * m4/human.m4 (gl_HUMAN): Likewise.
76930         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
76931         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
76932         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76933         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
76934         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76935         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
76936
76937 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76938
76939         Assume the headers required for C89 freestanding compilers.
76940         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
76941         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
76942         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
76943         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
76944         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
76945         define, since <limits.h> is guaranteed to do that.
76946         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
76947         * lib/exclude.c: Include <stdbool.h> unconditionally.
76948         * lib/tempname.c: Include <stddef.h> unconditionally.
76949         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
76950         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
76951         <stddef.h> does that.
76952         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
76953         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
76954         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
76955         needed.
76956         * lib/xstrtol.c: Likewise.
76957         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
76958         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
76959
76960         * lib/addext.c (addext): Use assignment rather than cast, to avoid
76961         warnings on some platforms.
76962
76963         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76964         arbitrarily.
76965
76966 2003-05-26  Jim Meyering  <jim@meyering.net>
76967
76968         Merge in a change from coreutils:
76969         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
76970         that is guaranteed to be `no'.  Use `no_such_member' to indicate
76971         that condition, rather than `-1' which is slightly misleading.
76972         Change the name of the cache variable to have the gl_ prefix.
76973         Prompted by a patch from Richard Dawe for DJGPP.
76974
76975 2003-05-24  Karl Berry  <karl@gnu.org>
76976
76977         * config/config.guess: update from prep.
76978
76979 2003-05-22  Karl Berry  <karl@gnu.org>
76980
76981         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
76982
76983 2003-05-20  Karl Berry  <karl@gnu.org>
76984
76985         * config/config.guess: update from prep.
76986
76987 2003-05-18  Karl Berry  <karl@gnu.org>
76988
76989         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
76990         might actually be set by the user.
76991
76992         * config/depcomp, install-sh, mdate-sh: update from automake.
76993
76994 2003-05-17  Bruno Haible  <bruno@clisp.org>
76995
76996         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
76997         invalid expansion for AC_EGREP_CPP.
76998         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
76999         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
77000         Suggested by Akim Demaille <akim@epita.fr> in
77001         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
77002
77003 2003-05-12  Jim Meyering  <jim@meyering.net>
77004
77005         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
77006         the space-padded-by-default conversion specifiers, %e, %k, %l.
77007
77008 2003-05-12  Bruno Haible  <bruno@clisp.org>
77009
77010         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
77011         the string is longer than 4 KB.
77012
77013 2003-05-11  Karl Berry  <karl@gnu.org>
77014
77015         * config/config.{guess,sub}: update from prep.
77016
77017 2003-05-09  Bruno Haible  <bruno@clisp.org>
77018
77019         * modules/error: Add m4/strerror_r.m4 to file list.
77020
77021 2003-05-03  Bruno Haible  <bruno@clisp.org>
77022
77023         Upgrade to Unicode-4.0.
77024         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
77025         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
77026         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
77027         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
77028         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
77029         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
77030         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
77031         Change width of U+E0100..U+E01EF from 1 to 0.
77032
77033 2003-04-25  Jim Meyering  <jim@meyering.net>
77034
77035         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
77036         of type size_t, not int.
77037
77038 2003-04-25  Bruno Haible  <bruno@clisp.org>
77039
77040         * lib/copy-file.c: Include <stddef.h>, for size_t.
77041
77042 2003-04-21  Paul Eggert  <eggert@twinsun.com>
77043
77044         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
77045         code which expansion is under static control.  Patch imported from
77046         Akim Demaille's patch to Bison; see
77047         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
77048
77049 2003-04-14  Bruno Haible  <bruno@clisp.org>
77050
77051         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
77052
77053 2003-04-11  Jim Meyering  <jim@meyering.net>
77054
77055         Merge changes from Coreutils.
77056
77057         2003-03-22  Jim Meyering  <jim@meyering.net>
77058
77059         * lib/strftime.c (widen): Cast alloca return value to proper type.
77060
77061         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
77062
77063         From GNU libc.
77064         * lib/strftime.c (my_strftime): Handle very large width
77065         specifications for numeric values correctly.  Improve checks for
77066         overflow.
77067
77068         2003-01-19  Jim Meyering  <jim@meyering.net>
77069
77070         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
77071         definitions.
77072         (nl_get_alt_digit) [! defined my_strftime]: Define.
77073         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
77074         _nl_get_alt_digit and _nl_get_walt_digit.
77075
77076         * lib/strftime.c (my_strftime): Merge in locale-related changes from
77077         libc. These changes have no effect outside of _LIBC.
77078
77079 2003-04-10  Bruno Haible  <bruno@clisp.org>
77080
77081         * modules/findprog: New file.
77082         * MODULES.html.sh (func_all_modules): Add it.
77083
77084 2003-04-10  Bruno Haible  <bruno@clisp.org>
77085
77086         * m4/findprog.m4: New file.
77087         * m4/eaccess.m4: New file.
77088
77089 2003-04-10  Bruno Haible  <bruno@clisp.org>
77090
77091         * lib/findprog.h: New file, from GNU gettext.
77092         * lib/findprog.c: New file, from GNU gettext.
77093
77094 2003-04-05  Jim Meyering  <jim@meyering.net>
77095
77096         Merge changes from Coreutils.
77097
77098         * lib/exclude.h (PARAMS): Remove definition and uses.
77099         * lib/exclude.c: Remove uses of `PARAMS'.
77100
77101         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
77102         Add test-cases for DOS filenames. Declare program_name.
77103         (main): Set up program_name.  Patch by Rich Dawe.
77104
77105         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77106         error from mntctl.
77107         Use mntctl's return value to drive the entry-processing loop, since
77108         we can't rely on the value of the vmt_length member in the last
77109         entry.  On some systems doing so could result in exhausting
77110         virtual memory.  Based in part on a patch from Mike Jetzer.
77111
77112 2003-04-04  Bruno Haible  <bruno@clisp.org>
77113
77114         * modules/linebreak: New file.
77115         * MODULES.html.sh (func_all_modules): Add it.
77116
77117 2003-04-04  Bruno Haible  <bruno@clisp.org>
77118
77119         * m4/linebreak.m4: New file.
77120
77121 2003-04-04  Bruno Haible  <bruno@clisp.org>
77122
77123         * lib/linebreak.h: New file, from GNU gettext.
77124         * lib/linebreak.c: New file, from GNU gettext with slight
77125         modifications.
77126         * lib/lbrkprop.h: New file, from GNU gettext.
77127
77128 2003-04-03  Bruno Haible  <bruno@clisp.org>
77129
77130         * modules/utf8-ucs4: New file.
77131         * modules/utf16-ucs4: New file.
77132         * modules/ucs4-utf8: New file.
77133         * modules/ucs4-utf16: New file.
77134         * MODULES.html.sh (func_all_modules): Add them.
77135
77136 2003-04-03  Bruno Haible  <bruno@clisp.org>
77137
77138         * m4/utf-ucs4.m4: New file.
77139         * m4/ucs4-utf.m4: New file.
77140
77141 2003-04-03  Bruno Haible  <bruno@clisp.org>
77142
77143         * lib/utf8-ucs4.h: New file, from GNU gettext.
77144         * lib/utf16-ucs4.h: New file, from GNU gettext.
77145         * lib/ucs4-utf8.h: New file, from GNU gettext.
77146         * lib/ucs4-utf16.h: New file, from GNU gettext.
77147
77148 2003-04-02  Bruno Haible  <bruno@clisp.org>
77149
77150         * modules/binary-io: New file.
77151         * MODULES.html.sh (func_all_modules): Add it.
77152
77153 2003-04-02  Bruno Haible  <bruno@clisp.org>
77154
77155         * lib/binary-io.h: New file, from GNU gettext.
77156
77157 2003-04-01  Bruno Haible  <bruno@clisp.org>
77158
77159         * modules/pathname: New file.
77160         * MODULES.html.sh (func_all_modules): Add it.
77161
77162 2003-04-01  Bruno Haible  <bruno@clisp.org>
77163
77164         * lib/pathname.h: New file, from GNU gettext.
77165         * lib/concatpath.c: New file, from GNU gettext.
77166
77167 2003-03-30  Bruno Haible  <bruno@clisp.org>
77168
77169         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
77170
77171 2003-03-30  Bruno Haible  <bruno@clisp.org>
77172
77173         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
77174         function chown() doesn't exist.
77175
77176 2003-03-28  Bruno Haible  <bruno@clisp.org>
77177
77178         * modules/copy-file: New file.
77179         * MODULES.html.sh (func_all_modules): Add it.
77180
77181 2003-03-28  Bruno Haible  <bruno@clisp.org>
77182
77183         * m4/copy-file.m4: New file.
77184
77185 2003-03-28  Bruno Haible  <bruno@clisp.org>
77186
77187         * lib/copy-file.h: New file, from GNU gettext.
77188         * lib/copy-file.c: New file, from GNU gettext.
77189
77190 2003-03-18  Jim Meyering  <jim@meyering.net>
77191
77192         * lib/quote.c (quote_n): Fix typo in comment.
77193
77194 2003-03-18  Bruno Haible  <bruno@clisp.org>
77195
77196         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
77197         checking.
77198         * m4/onceonly_2_57.m4: Likewise.
77199
77200 2003-03-17  Bruno Haible  <bruno@clisp.org>
77201
77202         * m4/onceonly.m4: Require autoconf 2.54 or newer.
77203         (m4_quote): Remove macro.
77204         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
77205
77206 2003-03-14  Jim Meyering  <jim@meyering.net>
77207
77208         Merge changes from Coreutils.
77209         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
77210         to be const, in order to avoid warnings.
77211         (obstack_room): Likewise.
77212         (obstack_empty_p): Likewise.
77213
77214 2003-03-14  Bruno Haible  <bruno@clisp.org>
77215
77216         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
77217         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
77218
77219 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77220
77221         Merge changes from Bison.
77222         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
77223         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
77224         when compiling Bison 1.875's `bitset bset = obstack_alloc
77225         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
77226         * lib/hash.c: Include <stdbool.h> unconditionally.
77227
77228 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77229
77230         * m4/onceonly.m4 (m4_quote): New macro.
77231         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
77232         Quote AC_FOREACH variable-expansions properly.
77233
77234 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77235
77236         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
77237
77238 2003-03-09  Paul Eggert  <eggert@twinsun.com>
77239
77240         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
77241         Reported by Bruce Becker; see:
77242         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
77243
77244 2003-03-03  Paul Eggert  <eggert@twinsun.com>
77245             Bruno Haible  <bruno@clisp.org>
77246
77247         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
77248         Reported by John Hughes, see
77249         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
77250
77251 2003-02-20  Bruno Haible  <bruno@clisp.org>
77252
77253         * MODULES.html.sh (func_all_modules): Add poll.
77254
77255 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77256
77257         * modules/poll: New file.
77258
77259 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77260
77261         * lib/poll_.h: New file.
77262         * lib/poll.c: New file.
77263
77264 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77265
77266         * m4/poll.m4: New file.
77267
77268 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77269
77270         * modules/mathl: New file.
77271
77272 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77273
77274         * lib/mathl.h: New file.
77275         * lib/acosl.c: New file.
77276         * lib/asinl.c: New file.
77277         * lib/atanl.c: New file.
77278         * lib/ceill.c: New file.
77279         * lib/cosl.c: New file.
77280         * lib/expl.c: New file.
77281         * lib/floorl.c: New file.
77282         * lib/frexpl.c: New file.
77283         * lib/ldexpl.c: New file.
77284         * lib/logl.c: New file.
77285         * lib/sincosl.c: New file.
77286         * lib/sinl.c: New file.
77287         * lib/sqrtl.c: New file.
77288         * lib/tanl.c: New file.
77289         * lib/trigl.c: New file.
77290         * lib/trigl.h: New file.
77291
77292 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77293
77294         * m4/mathl.m4: New file.
77295
77296 2003-02-18  Bruno Haible  <bruno@clisp.org>
77297
77298         * MODULES.html.sh (func_all_modules): Add mathl.
77299
77300 2003-02-17  Bruno Haible  <bruno@clisp.org>
77301
77302         * modules/mkdtemp: New module.
77303         * MODULES.html.sh (func_all_modules): Add it.
77304
77305 2003-02-17  Bruno Haible  <bruno@clisp.org>
77306
77307         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
77308
77309 2003-02-17  Bruno Haible  <bruno@clisp.org>
77310
77311         * lib/mkdtemp.h: New file, from GNU gettext.
77312         * lib/mkdtemp.c: New file, from GNU gettext.
77313
77314 2003-02-02  Jim Meyering  <jim@meyering.net>
77315
77316         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
77317         e.g. glibc-2.2.93.
77318
77319 2003-01-31  Bruno Haible  <bruno@clisp.org>
77320
77321         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
77322         'rpl_rename'.
77323         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
77324         'rpl_strnlen'.
77325         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
77326         'rpl_strtod'.
77327         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
77328         'rpl_utime'.
77329
77330 2003-01-31  Bruno Haible  <bruno@clisp.org>
77331
77332         * lib/rename.c: #undef rename before defining rpl_rename.
77333         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
77334
77335 2003-01-30  Bruno Haible  <bruno@clisp.org>
77336
77337         * modules/vasnprintf, modules/vasprintf: New modules.
77338         * MODULES.html.sh (func_all_modules): Add them.
77339
77340 2003-01-30  Bruno Haible  <bruno@clisp.org>
77341
77342         * m4/signed.m4: New file, from GNU gettext.
77343         * m4/longdouble.m4: New file, from GNU gettext.
77344         * m4/wchar_t.m4: New file, from GNU gettext.
77345         * m4/wint_t.m4: New file, from GNU gettext.
77346         * m4/vasnprintf.m4: New file.
77347         * m4/vasprintf.m4: New file.
77348
77349 2003-01-30  Bruno Haible  <bruno@clisp.org>
77350
77351         * lib/printf-args.h: New file, from GNU gettext.
77352         * lib/printf-args.c: New file, from GNU gettext.
77353         * lib/printf-parse.h: New file, from GNU gettext.
77354         * lib/printf-parse.c: New file, from GNU gettext.
77355         * lib/vasnprintf.h: New file, from GNU gettext.
77356         * lib/vasnprintf.c: New file, from GNU gettext.
77357         * lib/asnprintf.c: New file, from GNU gettext.
77358         * lib/vasprintf.h: New file, from GNU gettext with modifications.
77359         * lib/vasprintf.c: New file, from GNU gettext.
77360         * lib/asprintf.c: New file, from GNU gettext.
77361
77362 2003-01-29  Bruno Haible  <bruno@clisp.org>
77363
77364         * modules/stpncpy: New module.
77365         * MODULES.html.sh (func_all_modules): Add it.
77366
77367 2003-01-29  Bruno Haible  <bruno@clisp.org>
77368
77369         * m4/stpncpy.m4: New file.
77370
77371 2003-01-29  Bruno Haible  <bruno@clisp.org>
77372
77373         * lib/stpncpy.h: New file, from GNU gettext with modifications.
77374         * lib/stpncpy.c: New file, from GNU gettext with modifications.
77375
77376 2003-01-28  Bruno Haible  <bruno@clisp.org>
77377
77378         * modules/c-ctype: New module.
77379         * MODULES.html.sh (func_all_modules): Add it.
77380
77381 2003-01-28  Bruno Haible  <bruno@clisp.org>
77382
77383         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
77384         Paul Eggert.
77385         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
77386         Paul Eggert.
77387
77388 2003-01-27  Bruno Haible  <bruno@clisp.org>
77389
77390         * modules/xsetenv: New module.
77391         * MODULES.html.sh (func_all_modules): Add it.
77392
77393 2003-01-27  Bruno Haible  <bruno@clisp.org>
77394
77395         * lib/xsetenv.h: New file, from GNU gettext.
77396         * lib/xsetenv.c: New file, from GNU gettext.
77397
77398 2003-01-23  Jim Meyering  <jim@meyering.net>
77399
77400         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
77401         from working on systems without dirfd (at least Irix and OSF1/Tru64).
77402
77403 2003-01-23  Bruno Haible  <bruno@clisp.org>
77404
77405         * modules/minmax: New module.
77406         * MODULES.html.sh (func_all_modules): Add it.
77407
77408 2003-01-23  Bruno Haible  <bruno@clisp.org>
77409
77410         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
77411         Eggert.
77412
77413 2003-01-22  Bruno Haible  <bruno@clisp.org>
77414
77415         * modules/exit: New module.
77416         * MODULES.html.sh (func_all_modules): Add it.
77417
77418 2003-01-22  Bruno Haible  <bruno@clisp.org>
77419
77420         * lib/exit.h: New file, from GNU gettext.
77421
77422 2003-01-19  Bruno Haible  <bruno@clisp.org>
77423
77424         * gnulib-tool: Recognize option --extract-maintainer.
77425         (func_get_maintainer): New function.
77426         * modules/*: Add Maintainer entry.
77427
77428 2003-01-16  Jim Meyering  <jim@meyering.net>
77429
77430         * m4/regex.m4: The `regex' struct is both input and output.
77431         Initialize it before each use.  Patch by Tim Waugh.
77432
77433 2003-01-16  Bruno Haible  <bruno@clisp.org>
77434
77435         * MODULES.html.sh: Add a table of contents. Add the module name as
77436         leftmost column. Add hyperlinks.
77437
77438 2003-01-15  Bruno Haible  <bruno@clisp.org>
77439
77440         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
77441
77442 2003-01-15  Bruno Haible  <bruno@clisp.org>
77443
77444         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
77445         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
77446         suffix.
77447
77448 2003-01-15  Bruno Haible  <bruno@clisp.org>
77449
77450         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
77451
77452 2003-01-15  Bruno Haible  <bruno@clisp.org>
77453
77454         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
77455         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
77456
77457 2003-01-14  Jim Meyering  <jim@meyering.net>
77458
77459         * lib/same.c (same_name): Tweak a comment.
77460
77461 2003-01-14  Bruno Haible  <bruno@clisp.org>
77462
77463         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
77464         when a string comparison is sufficient.
77465
77466 2003-01-14  Bruno Haible  <bruno@clisp.org>
77467
77468         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
77469         'unsigned int'.
77470
77471 2003-01-14  Bruno Haible  <bruno@clisp.org>
77472
77473         * lib/hash-pjw.c: Add comment about low quality of this function.
77474
77475 2003-01-13  Bruno Haible  <bruno@clisp.org>
77476
77477         * modules/stpcpy: Distribute lib/stpcpy.h.
77478         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
77479
77480 2003-01-13  Bruno Haible  <bruno@clisp.org>
77481
77482         * modules/*: Add a description.
77483         * modules/strpbrk: Fix Makefile.am snippet.
77484         * modules/strtoimax: Fix dependencies.
77485         * modules/strtoumax: Likewise.
77486
77487 2003-01-13  Bruno Haible  <bruno@clisp.org>
77488
77489         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
77490         * modules/alloca (Makefile.am): All object files depend on alloca.h.
77491         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
77492
77493 2003-01-13  Bruno Haible  <bruno@clisp.org>
77494
77495         * gnulib-tool (func_create_testdir): Store config/* files in the main
77496         directory.
77497         * config.rpath: Move to ...
77498         * config/config.rpath: ... here.
77499         * modules/gettext: Contains config/config.rpath, not config.rpath.
77500         * modules/iconv: Likewise.
77501
77502 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77503
77504         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77505         to avoid collisions with libcurses and libreadline.
77506
77507         * m4/getstr.m4: Remove.
77508         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
77509
77510 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77511
77512         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77513         to avoid collisions with libcurses and libreadline.
77514
77515         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
77516         * lib/getstr.h, getstr.c: Remove.
77517         * lib/getline.c: Include "getline.h", to check interface.
77518         Move body of old getstr.c here: this defines MIN_CHUNK and
77519         declares getdelim2, which is renamed from getstr.
77520         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
77521
77522         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
77523         All uses changed.
77524         * lib/linebuffer.h: Likewise.
77525         (readline): Remove backward-compatibility macro.
77526
77527 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77528
77529         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77530         to avoid collisions with libcurses and libreadline.
77531         * getstr: Remove.
77532         * MODULES.html.sh: Remove getstr.
77533         * modules/getline: Depend on unlocked-io, not getstr.
77534
77535 2003-01-12  Jim Meyering  <jim@meyering.net>
77536
77537         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
77538
77539 2003-01-10  Bruno Haible  <bruno@clisp.org>
77540
77541         * modules/alloca: Change Makefile.am requirements. Simplify Include
77542         requirements. Add lib/alloca_.h to file list.
77543
77544 2003-01-10  Bruno Haible  <bruno@clisp.org>
77545
77546         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
77547
77548 2003-01-10  Bruno Haible  <bruno@clisp.org>
77549
77550         * lib/alloca_.h: New file.
77551         * lib/getdate.y: Unconditionally include alloca.h.
77552         * lib/makepath.c: Likewise.
77553         * lib/setenv.c: Likewise.
77554         * lib/userspec.c: Likewise.
77555
77556 2003-01-09  Karl Berry  <karl@gnu.org>
77557
77558         * MODULES.html.sh: include `dirname $0` in PATH, to find
77559         gnulib-tool.
77560
77561 2003-01-09  Bruno Haible  <bruno@clisp.org>
77562
77563         * modules/stdbool: Change configure.ac, Makefile.am requirements.
77564         Simplify Include requirements. Add lib/stdbool.h.in to file list.
77565
77566 2003-01-09  Bruno Haible  <bruno@clisp.org>
77567
77568         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
77569
77570 2003-01-09  Bruno Haible  <bruno@clisp.org>
77571
77572         * lib/stdbool.h.in: New file.
77573
77574 2003-01-09  Bruno Haible  <bruno@clisp.org>
77575
77576         * gnulib-tool (func_all_modules): Ignore files ending in ~.
77577         * MODULES.html.sh: Likewise.
77578
77579 2003-01-08  Jim Meyering  <jim@meyering.net>
77580
77581         * lib/full-write.c: Undefine and define-away `const' after inclusion
77582         of errno.h, not before.  Suggestion from Bruno Haible.
77583
77584 2003-01-08  Bruno Haible  <bruno@clisp.org>
77585
77586         * modules/full-read: Depend on full-write.
77587
77588 2003-01-08  Bruno Haible  <bruno@clisp.org>
77589
77590         * lib/safe-read.c: Include specification header first, to ensure its
77591         selfcontainedness.
77592         * lib/full-write.c: Likewise.
77593
77594 2003-01-07  Jim Meyering  <jim@meyering.net>
77595
77596         * lib/full-write.c: Rework so that it may serve to define full_read,
77597         too.
77598         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
77599
77600 2003-01-07  Bruno Haible  <bruno@clisp.org>
77601
77602         * lib/strtoimax.c: Include <stdint.h> as an alternative to
77603         <inttypes.h>.
77604         * lib/xstrtol.h: Likewise.
77605         * lib/xstrtoimax.c: Likewise.
77606         * lib/xstrtoumax.c: Likewise.
77607         * lib/human.h: Likewise.
77608
77609         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
77610         on systems that have <inttypes.h> but not <stdint.h>.
77611
77612 2003-01-07  Bruno Haible  <bruno@clisp.org>
77613
77614         * MODULES.html.sh: Add copyright notice.
77615         (missed_files): Omit CVS directory entries.
77616         (func_module): Make it work with sed-3.02.
77617         * MODULES.txt: Remove file.
77618
77619 2003-01-06  Jim Meyering  <jim@meyering.net>
77620
77621         * lib/version-etc.c: Update year in translatable copyright string.
77622
77623 2003-01-03  Karl Berry  <karl@gnu.org>
77624
77625         * config/config.{guess,sub}: update from prep.
77626
77627 2003-01-02  Karl Berry  <karl@gnu.org>
77628
77629         * doc/COPYING.DOC: belatedly updated to 1.2.
77630
77631 2003-01-01  Karl Berry  <karl@gnu.org>
77632
77633         * gnulib-tool (func_verify_module): report module name $module in
77634         error message, not $1.
77635         * gnulib-tool (create-testdir): don't complain if destdir couldn't
77636         be created, only if it doesn't exist.
77637         * gnulib-tool (last_checkin_date): don't expand the $Date here.
77638
77639 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77640
77641         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
77642
77643 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77644
77645         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
77646         memcmp if strcoll doesn't work.
77647
77648 2002-12-31  Bruno Haible  <bruno@clisp.org>
77649
77650         * lib/utime.c (utime_null): No need to call ftruncate if the file was
77651         nonempty.
77652
77653 2002-12-31  Bruno Haible  <bruno@clisp.org>
77654
77655         * lib/memcoll.c (STRCOLL): New macro.
77656         (memcoll): Use it.
77657
77658 2002-12-31  Bruno Haible  <bruno@clisp.org>
77659
77660         * lib/localcharset.h: New file.
77661         * lib/localcharset.c: Include it.
77662         * lib/unicodeio.c: Likewise.
77663
77664 2002-12-31  Bruno Haible  <bruno@clisp.org>
77665
77666         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
77667         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
77668
77669 2002-12-31  Bruno Haible  <bruno@clisp.org>
77670
77671         * lib/getline.h: Include <stddef.h>, for size_t.
77672
77673         * lib/unicodeio.h: Include <stddef.h>, for size_t.
77674         * lib/unicodeio.c: Don't include <stddef.h>.
77675
77676 2002-12-31  Bruno Haible  <bruno@clisp.org>
77677
77678         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
77679         HAVE_TM_ZONE.
77680
77681 2002-12-24  Karl Berry  <karl@gnu.org>
77682
77683         * config/config.guess: update from prep.
77684
77685 2002-12-24  Bruno Haible  <bruno@clisp.org>
77686
77687         General infrasructure.
77688         * m4/README: Rewritten.
77689         * m4/onceonly.m4: New file.
77690         * m4/onceonly_2_57.m4: New file.
77691
77692         Module atexit.
77693         * m4/atexit.m4: New file.
77694
77695         Module strtod.
77696         * m4/strtod.m4: New file.
77697
77698         Module strtol.
77699         * m4/strtol.m4: New file.
77700
77701         Module strtoul.
77702         * m4/strtoul.m4: New file.
77703
77704         Module memchr.
77705         * m4/memchr.m4: New file.
77706
77707         Module memcmp.
77708         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
77709         (jm_FUNC_MEMCMP): Invoke it.
77710
77711         Module memcpy.
77712         * m4/memcpy.m4: New file.
77713
77714         Module memmove.
77715         * m4/memmove.m4: New file.
77716
77717         Module memset.
77718         * m4/memset.m4: New file.
77719
77720         Module strcspn.
77721         * m4/strcspn.m4: New file.
77722
77723         Module strpbrk.
77724         * m4/strpbrk.m4: New file.
77725
77726         Module strstr.
77727         * m4/strstr.m4: New file.
77728
77729         Module strerror.
77730         * m4/strerror.m4: New file.
77731
77732         Module mktime.
77733         * m4/mktime.m4: Renamed from jm-mktime.m4.
77734         (gl_PREREQ_MKTIME): New macro.
77735         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
77736
77737         Module malloc.
77738         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
77739         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
77740         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
77741
77742         Module realloc.
77743         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
77744         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
77745         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
77746
77747         Module strftime.
77748         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
77749         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
77750         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
77751         gl_TM_GMTOFF.
77752         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
77753
77754         Module xalloc.
77755         * m4/xalloc.m4: New file.
77756
77757         Module alloca.
77758         * m4/alloca.m4: New file.
77759
77760         Module putenv.
77761         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
77762         (jm_FUNC_PUTENV): Invoke it.
77763
77764         Module setenv.
77765         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
77766         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
77767         when invoked twice.
77768         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
77769         gt_FUNC_SETENV.
77770
77771         Module memrchr.
77772         * m4/memrchr.m4: New file.
77773
77774         Module stpcpy.
77775         * m4/stpcpy.m4: New file.
77776
77777         Module strcase.
77778         * m4/strcase.m4: New file.
77779
77780         Module strdup.
77781         * m4/strdup.m4: New file.
77782
77783         Module strnlen.
77784         * m4/strnlen.m4: New file.
77785
77786         Module strndup.
77787         * m4/strndup.m4: New file.
77788
77789         Module xstrtod.
77790         * m4/xstrtod.m4: New file.
77791
77792         Module xstrtol.
77793         * m4/xstrtol.m4: New file.
77794
77795         Module getdate.
77796         * m4/getdate.m4: New file.
77797
77798         Module unlocked-io.
77799         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
77800         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
77801         * m4/jm-glibc-io.m4n: Remove file.
77802
77803         Module long-options.
77804         * m4/long-options.m4: New file.
77805
77806         Module md5.
77807         * m4/md5.m4: New file.
77808
77809         Module sha.
77810         * m4/sha.m4: New file.
77811
77812         Module getstr.
77813         * m4/getstr.m4: New file.
77814
77815         Module getline.
77816         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
77817         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
77818         <sys/types.h>, for size_t. Use the function name gnu_getline, not
77819         simply getline. Infoke gl_PREREQ_GETLINE.
77820
77821         Module obstack.
77822         * m4/obstack.m4: New file.
77823
77824         Module hash.
77825         * m4/hash.m4: New file.
77826
77827         Module readtokens.
77828         * m4/readtokens.m4: New file.
77829
77830         Module strverscmp.
77831         * m4/strverscmp.m4: New file.
77832
77833         Module stdbool.
77834         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
77835         OSF/1.
77836
77837         Module strtoll.
77838         * m4/strtoll.m4: New file.
77839
77840         Module strtoull.
77841         * m4/strtoull.m4: New file.
77842
77843         Module strtoimax.
77844         * m4/strtoimax.m4: New file.
77845
77846         Module strtoumax.
77847         * m4/strtoumax.m4: New file.
77848
77849         Module xstrtoimax.
77850         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
77851         jm_AC_PREREQ_XSTRTOIMAX.
77852         Moved the strtol prerequisites to strtol.m4.
77853         Moved the strtoll prerequisites to strtoll.m4.
77854         Moved the strtoimax prerequisites to strtoimax.m4.
77855
77856         Module xstrtoumax.
77857         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
77858         jm_AC_PREREQ_XSTRTOUMAX.
77859         Moved the strtoul prerequisites to strtoul.m4.
77860         Moved the strtoull prerequisites to strtoull.m4.
77861         Moved the strtoumax prerequisites to strtoumax.m4.
77862
77863         Module chown.
77864         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
77865         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
77866
77867         Module dup2.
77868         * m4/dup2.m4: New file.
77869
77870         Module ftruncate.
77871         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
77872         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
77873
77874         Module getgroups.
77875         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
77876         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
77877
77878         Module gettimeofday.
77879         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
77880         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
77881         gl_PREREQ_GETTIMEOFDAY.
77882
77883         Module mkdir.
77884         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
77885         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
77886
77887         Module mkstemp.
77888         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
77889         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
77890         jm_AC_TYPE_UINTMAX_T.
77891         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
77892
77893         Module stat.
77894         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
77895         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
77896
77897         Module lstat.
77898         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
77899         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
77900
77901         Module timespec.
77902         * m4/timespec.m4 (gl_TIMESPEC): New macro.
77903         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
77904         * m4/st_mtim.m4: Indentation.
77905
77906         Module nanosleep.
77907         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
77908         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
77909         gl_PREREQ_NANOSLEEP.
77910
77911         Module regex.
77912         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
77913         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
77914         (gl_REGEX): New macro.
77915
77916         Module rename.
77917         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
77918         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
77919
77920         Module rmdir.
77921         * m4/rmdir.m4: New file.
77922
77923         Module utime.
77924         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
77925         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
77926         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
77927
77928         Module dirname.
77929         * m4/dirname.m4: New file.
77930
77931         Module getopt.
77932         * m4/getopt.m4: New file.
77933
77934         Module unistd-safer.
77935         * m4/unistd-safer.m4: New file.
77936
77937         Module fnmatch.
77938         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
77939         declaration.
77940         (gl_PREREQ_FNMATCH_EXTRA): New macro.
77941         (gl_FUNC_FNMATCH_POSIX): New macro.
77942         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
77943         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
77944         simply fnmatch.
77945
77946         Module exclude.
77947         * m4/exclude.m4: New file.
77948
77949         Module human.
77950         * m4/human.m4: New file.
77951
77952         Module acl.
77953         * m4/acl.m4: Nop.
77954
77955         Module backupfile.
77956         * m4/backupfile.m4: New file.
77957         * m4/d-ino.m4: Indentation.
77958
77959         Module fsusage.
77960         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
77961         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
77962         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
77963
77964         Module dirfd.
77965         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
77966         requirements.
77967
77968         Module euidaccess.
77969         * m4/euidaccess.m4: New file.
77970
77971         Module file-type.
77972         * m4/file-type.m4: New file.
77973
77974         Module fileblocks.
77975         * m4/fileblocks.m4: New file.
77976
77977         Module filemode.
77978         * m4/filemode.m4: New file.
77979
77980         Module isdir.
77981         * m4/isdir.m4: New file.
77982
77983         Module lchown.
77984         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
77985         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
77986
77987         Module makepath.
77988         * m4/makepath.m4: New file.
77989
77990         Module modechange.
77991         * m4/modechange.m4: New file.
77992
77993         Module mountlist.
77994         * m4/mountlist.m4: New file.
77995         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
77996         Indentation.
77997
77998         Module path-concat.
77999         * m4/path-concat.m4: New file.
78000
78001         Module pathmax.
78002         * m4/pathmax.m4: New file.
78003
78004         Module same.
78005         * m4/same.m4: New file.
78006
78007         Module save-cwd.
78008         * m4/save-cwd.m4: New file.
78009
78010         Module savedir.
78011         * m4/savedir.m4: New file.
78012
78013         Module xgetcwd.
78014         * m4/xgetcwd.m4: New file.
78015         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
78016
78017         Module xreadlink.
78018         * m4/xreadlink.m4: New file.
78019
78020         Module safe-read.
78021         * m4/safe-read.m4: New file.
78022
78023         Module safe-write.
78024         * m4/safe-write.m4: New file.
78025
78026         Module closeout.
78027         * m4/closeout.m4: New file.
78028
78029         Module stdio-safer.
78030         * m4/stdio-safer.m4: New file.
78031
78032         Module getpass.
78033         * m4/getpass.m4: New file.
78034
78035         Module getugroups.
78036         * m4/getugroups.m4: New file.
78037
78038         Module group-member.
78039         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
78040         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
78041
78042         Module idcache.
78043         * m4/idcache.m4: New file.
78044
78045         Module userspec.
78046         * m4/userspec.m4: New file.
78047
78048         Module gettime.
78049         * m4/clock_time.m4: New file.
78050         * m4/gettime.m4: New file.
78051
78052         Module settime.
78053         * m4/settime.m4: New file.
78054
78055         Module posixtm.
78056         * m4/posixtm.m4: New file.
78057
78058         Module gethostname.
78059         * m4/gethostname.m4: New file.
78060
78061         Module canon-host.
78062         * m4/canon-host.m4: New file.
78063
78064         Module gettext.
78065         * m4/codeset.m4: New file, from gettext-0.11.5.
78066         * m4/gettext.m4: New file, from gettext-0.11.5.
78067         * m4/glibc21.m4: New file, from gettext-0.11.5.
78068         * m4/iconv.m4: New file, from gettext-0.11.5.
78069         * m4/intdiv0.m4: New file, from gettext-0.11.5.
78070         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
78071         * m4/inttypes.m4: New file, from gettext-0.11.5.
78072         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
78073         * m4/isc-posix.m4: New file, from gettext-0.11.5.
78074         * m4/lcmessage.m4: New file, from gettext-0.11.5.
78075         * m4/lib-ld.m4: New file, from gettext-0.11.5.
78076         * m4/lib-link.m4: New file, from gettext-0.11.5.
78077         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
78078         * m4/progtest.m4: New file, from gettext-0.11.5.
78079         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
78080         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
78081         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
78082
78083         Module localcharset.
78084         * m4/localcharset.m4: New file.
78085
78086         Module hard-locale.
78087         * m4/hard-locale.m4: New file.
78088
78089         Module mbswidth.
78090         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
78091         onceonly macros.
78092         * m4/mbrtowc.m4: Add comment.
78093
78094         Module memcasecmp.
78095         * m4/memcasecmp.m4: New file.
78096
78097         Module memcoll.
78098         * m4/memcoll.m4: New file.
78099
78100         Module unicodeio.
78101         * m4/unicodeio.m4: New file.
78102
78103         Module rpmatch.
78104         * m4/rpmatch.m4: New file.
78105
78106         Module yesno.
78107         * m4/yesno.m4: New file.
78108
78109         Module exitfail.
78110         * m4/exitfail.m4: New file.
78111
78112         Module c-stack.
78113         * m4/c-stack.m4 (gl_C_STACK): New macro.
78114         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
78115
78116         Module error.
78117         * m4/error.m4 (gl_ERROR): New macro.
78118         (jm_PREREQ_ERROR): Use onceonly macros.
78119
78120         Module fatal.
78121         * m4/fatal.m4: New file.
78122
78123         Module getloadavg.
78124         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
78125         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
78126
78127         Module getpagesize.
78128         * m4/getpagesize.m4: New file.
78129
78130         Module getusershell.
78131         * m4/getusershell.m4: New file.
78132
78133         Module physmem.
78134         * m4/physmem.m4: New file.
78135
78136         Module posixver.
78137         * m4/posixver.m4: New file.
78138
78139         Module quotearg.
78140         * m4/quotearg.m4: New file.
78141
78142         Module quote.
78143         * m4/quote.m4: New file.
78144
78145         Module readutmp.
78146         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
78147
78148         Module sig2str.
78149         * m4/sig2str.m4: New file.
78150
78151         Other.
78152         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
78153         ulonglong.m4.
78154         * m4/intmax_t.m4: New file.
78155         * m4/d-type.m4: Indentation.
78156         * m4/jm-macros.m4: Update.
78157         * m4/prereq.m4 (jm_PREREQ): Update.
78158         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
78159         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
78160         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
78161         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
78162         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
78163         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
78164         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
78165         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
78166         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
78167         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
78168         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
78169         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
78170         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
78171         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
78172         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
78173         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
78174         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
78175         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
78176         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
78177
78178 2002-12-24  Bruno Haible  <bruno@clisp.org>
78179
78180         * MODULES.txt: Update according to m4/ changes.
78181
78182         Module gettext.
78183         * config.rpath: New file, from gettext-0.11.5.
78184
78185         * modules/*: New module descriptions.
78186         * gnulib-tool: New file.
78187         * MODULES.html.sh: New file.
78188
78189 2002-12-21  Karl Berry  <karl@gnu.org>
78190
78191         * doc/fdl.texi: update to version 1.2.
78192
78193 2002-12-19  Karl Berry  <karl@gnu.org>
78194
78195         * config/config.guess: update from prep.
78196
78197 2002-12-18  Bruno Haible  <bruno@clisp.org>
78198
78199         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
78200         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
78201
78202 2002-12-17  Bruno Haible  <bruno@clisp.org>
78203
78204         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
78205         stdlib.h, string.h.
78206
78207 2002-12-17  Bruno Haible  <bruno@clisp.org>
78208
78209         * lib/canon-host.c (strdup): Remove unused declaration.
78210
78211         * lib/fsusage.c: Include full_read.h.
78212         (get_fs_usage): Use full_read instead of safe_read.
78213
78214         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
78215
78216 2002-12-12  Karl Berry  <karl@gnu.org>
78217
78218         * config/config.guess: update from prep.
78219
78220 2002-12-11  Bruno Haible  <bruno@clisp.org>
78221
78222         * m4/setenv.m4: New file, from gettext-0.11.5.
78223
78224 2002-12-11  Bruno Haible  <bruno@clisp.org>
78225
78226         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
78227         not unsetenv().
78228         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
78229         modifications:
78230
78231         2002-12-11  Bruno Haible  <bruno@clisp.org>
78232
78233                 * setenv.c (alloca): Fall back to malloc.
78234                 (freea): New macro.
78235                 (setenv): Use freea() to free memory allocated with alloca().
78236
78237         2002-11-13  Bruno Haible  <bruno@clisp.org>
78238
78239                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
78240                 function declarations.
78241                 * unsetenv.c (unsetenv): Likewise.
78242
78243         2002-03-04  Bruno Haible  <bruno@clisp.org>
78244
78245                 Portability to AIX 4.3.3.
78246                 * unsetenv.c: New file, extracted from setenv.c.
78247                 * setenv.c: Move the unsetenv() function to unsetenv.c.
78248
78249         2001-12-20  Bruno Haible  <bruno@clisp.org>
78250
78251                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
78252                 use malloc instead. For SunOS 4.
78253
78254         2001-12-11  Bruno Haible  <bruno@clisp.org>
78255
78256                 * setenv.c: Declare alloca.
78257                 (compar_fn_t): New typedef.
78258                 (KNOWN_VALUE, STORE_VALUE): Use it.
78259
78260         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
78261         setenv.h.
78262
78263 2002-12-10  Paul Eggert  <eggert@twinsun.com>
78264
78265         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
78266         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
78267         Choose values that are less likely to collide with system fnmatch
78268         options.
78269         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
78270         defined (e.g., a pure POSIX system).
78271         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
78272         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
78273
78274 2002-12-06  Paul Eggert  <eggert@twinsun.com>
78275
78276         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
78277         a pain in practice to deal with generated m4 files.  This change
78278         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
78279
78280         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
78281         and jm-glibc-io.m4, as they are no longer a special case.
78282         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
78283         kludge and the auto-generation stuff.  Check only whether the
78284         functions are declared, not whether they exist, since older hosts
78285         that don't declare the functions can't use the optimization anyway.
78286
78287 2002-12-06  Jim Meyering  <jim@meyering.net>
78288
78289         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
78290
78291         Merge in changes from libc's misc/error.c, in preparation
78292         for the merge of gnulib's changes back into libc.
78293
78294         * lib/error.c (_): Define only if not already defined.
78295         Move definition to follow all #include directives.
78296         Include unlocked-io.h only if !_LIBC.
78297         [_LIBC]: Include <libio/libioP.h>.
78298         [USE_IN_LIBIO]: Include <libio/iolibio.h>
78299         (fflush): Tweak definition to use INTUSE.
78300         (putc): Define.
78301
78302 2002-12-05  Paul Eggert  <eggert@twinsun.com>
78303
78304         * lib/alloca.c [defined emacs]: Include "lisp.h".
78305         (xalloc_die) [defined emacs]: New macro.
78306         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
78307         [! defined emacs]: Include <xalloc.h>.
78308         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
78309         (pointer): Typedef to POINTER_TYPE *.
78310         (malloc): Remove decl; we now always use xmalloc.
78311         (alloca): Use old-style definition, since Emacs needs this.
78312         Check for arithmetic overflow when computing combined size.
78313
78314 2002-12-04  Paul Eggert  <eggert@twinsun.com>
78315
78316         Do not generate unlocked-io.h automatically, since it's easier to
78317         maintain it by hand.
78318
78319         * lib/unlocked-io.h: New file, from GNU diffutils,
78320         but with proper copyright notice and attribution.
78321         * lib/gen-uio: Remove.
78322         * lib/Makefile.am: Add copyright notice.
78323         (libfetish_a_SOURCES): Add unlocked-io.h.
78324         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
78325         (DISTCLEANFILES, io_functions): Remove macros.
78326         (EXTRA_DIST): Remove gen_uio.
78327         (unlocked-io.h): Remove rule.
78328
78329 2002-12-04  Jim Meyering  <jim@meyering.net>
78330
78331         Reflect the fact that stat.c and lstat.c are no longer generated.
78332         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
78333         (DISTCLEANFILES): Likewise.
78334         (EXTRA_DIST): Likewise.
78335         (all_local): Don't depend on stat.c or lstat.c.
78336         (stat.c, lstat.c): Remove rules.
78337         (EXTRA_DIST): Remove xstat.in.
78338
78339         * lib/xstat.in: Remove file.  Contents moved into stat.c.
78340         * lib/stat.c: New file.  Contents mostly from xstat.in.
78341         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
78342         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
78343
78344         * lib/safe-read.c: Rework so that it may serve to define safe_write,
78345         too.
78346         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
78347
78348 2002-12-03  Jim Meyering  <jim@meyering.net>
78349
78350         * lib/safe-read.c, safe-write.c: Change variable names and comments,
78351         but not semantics, to minimize the differences between these two files.
78352         (safe_read): Change comment to mention SAFE_READ_ERROR.
78353
78354         * lib/safe-read.c (IS_EINTR): Define.
78355         (safe_read): Use IS_EINTR in place of in-function cpp directives.
78356
78357 2002-12-02  Jim Meyering  <jim@meyering.net>
78358
78359         * lib/safe-read.c (EINTR): Define.
78360         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78361         (INT_MAX): Provide fallback.
78362         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
78363
78364         * lib/safe-read.h (SAFE_READ_ERROR): Define.
78365
78366 2002-12-02  Bruno Haible  <bruno@clisp.org>
78367
78368         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
78369         Define, taken from safe-read.c.
78370         (INT_MAX): Provide fallback.
78371         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
78372         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
78373
78374         * lib/safe-read.c (EINTR): Remove definition.
78375         (safe_read): Don't use EINTR if it is absent.
78376
78377 2002-12-01  Jim Meyering  <jim@meyering.net>
78378
78379         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
78380         zero.
78381         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
78382
78383 2002-11-27  Paul Eggert  <eggert@twinsun.com>
78384
78385         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
78386         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
78387         with `if (! (value < limit)) abort ();', for readability.
78388
78389 2002-11-26  Karl Berry  <karl@gnu.org>
78390
78391         * lib/strdup.c: copy from libc again, with jim's ok.
78392         * lib/.cppi-disable: re-add strdup.c
78393
78394 2002-11-25  Karl Berry  <karl@gnu.org>
78395
78396         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
78397         instead of "strtol.c".
78398
78399 2002-11-25  Karl Berry  <karl@gnu.org>
78400
78401         * config/install-sh: update from automake for variable quoting, $0 in
78402         error msgs, etc.
78403
78404         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
78405         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
78406         entry.
78407
78408 2002-11-25  Jim Meyering  <jim@meyering.net>
78409
78410         * lib/mktime.c: Sync from libc, now that it has the latest fix.
78411
78412 2002-11-24  Karl Berry  <karl@gnu.org>
78413
78414         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
78415         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
78416
78417 2002-11-24  Jim Meyering  <jim@meyering.net>
78418
78419         Update from coreutils:
78420
78421         * lib/mktime.c: Merge in changes from libc.
78422
78423         Avoid a link-time failure on some Linux systems.
78424         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
78425         (otherwise).
78426         (__mon_yday): Declare with the STATIC attribute.
78427         (__mktime_internal): Likewise.
78428         Based on a report from Greg Schafer.
78429
78430 2002-11-23  Jim Meyering  <jim@meyering.net>
78431
78432         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
78433         Use `unsigned', not `int', as type of index.
78434
78435         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
78436
78437         * lib/fsusage.c: Remove unneeded parentheses around operands of
78438         `defined'.
78439
78440 2002-11-22  Paul Eggert  <eggert@twinsun.com>
78441
78442         * lib/quotearg.h: Allow multiple inclusion by surrounding with
78443         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
78444         so that we can be included first.
78445         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
78446         * lib/quotearg.c: Include quotearg.h immediately after config.h.
78447         No need to include stddef.h or sys/types.h any more.
78448         Surround local include files with "", not "<>".
78449         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
78450         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
78451         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
78452         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
78453         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
78454         (ISPRINT): Remove; no longer needed now that we assume C89.
78455
78456         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
78457         Preserve errno.
78458
78459         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
78460         quotearg_char): Use SIZE_MAX rather than
78461         (size_t) -1 when we are talking about "infinity".
78462
78463         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
78464
78465 2002-11-22  Paul Eggert  <eggert@twinsun.com>
78466
78467         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
78468         hint that one should use `if (! x) abort ();' rather than `assert
78469         (x);', and anyway it's one less thing to worry about configuring.
78470         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
78471         hash_rehash, hash_insert): Use abort rather than assert.
78472
78473 2002-11-22  Bruno Haible  <bruno@clisp.org>
78474
78475         * lib/safe-read.h: Assume C89. Add comments.
78476         (safe_read): Change return type to size_t.
78477         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
78478         byte counts > SSIZE_MAX correctly.
78479         * lib/safe-write.h: New file.
78480         * lib/safe-write.c: New file.
78481         * lib/full-read.h: New file.
78482         * lib/full-read.c: New file.
78483         * lib/full-write.h: Assume C89. Add comments.
78484         * lib/full-write.c: Include safe-write.h.
78485         (full_write): Rewritten to use safe_write.
78486         Suggested by Jim Meyering and Paul Eggert.
78487
78488 2002-11-21  Jim Meyering  <jim@meyering.net>
78489
78490         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
78491
78492         Merge in changes from the coreutils.
78493
78494         2002-09-25  Paul Eggert  <eggert@twinsun.com>
78495         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
78496         <stdint.h>.
78497         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
78498         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
78499         int.  Work more efficiently if X is the same width as uintmax_t.
78500         Do not compare X to -1, to avoid bogus compiler warning.
78501         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
78502         Don't assume that f_frsize and f_bsize are the same type.
78503
78504         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
78505         warning on FreeBSD.
78506
78507         * lib/makepath.c (make_path): Restore umask *before* creating the final
78508         component.
78509         (make_path): Minor reformatting.
78510
78511         * lib/xmalloc.c: Adjust to work with new autoconf macros,
78512         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
78513         HAVE_MALLOC/HAVE_REALLOC.
78514
78515         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
78516         dummy ones.  At least on GNU/Linux systems, `auto' means something
78517         else.
78518         From Michael Stone.
78519
78520 2002-11-21  Bruno Haible  <bruno@clisp.org>
78521
78522         Remove case insensitive option matching.
78523         * lib/argmatch.h (argcasematch): Remove declaration.
78524         (ARGCASEMATCH): Remove macro.
78525         (__xargmatch_internal): Remove case_sensitive argument.
78526         (XARGMATCH): Update.
78527         (XARGCASEMATCH): Remove macro.
78528         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
78529         case_sensitive argument.
78530         (argcasematch): Remove function.
78531         (__xargmatch_internal): Remove case_sensitive argument.
78532         (main): Use XARGMATCH instead of XARGCASEMATCH.
78533
78534         * lib/xmalloc.c: Change compile-time error message. Add comment about
78535         required autoconf version.
78536
78537 2002-11-20  Paul Eggert  <eggert@twinsun.com>
78538
78539         Merge argmatch cleanups from Bison.  Assume C89.
78540
78541         * lib/argmatch.c: Include config.h here, not in argmatch.h.
78542         Include stdlib.h, for EXIT_FAILURE.
78543         Always include <string.h>, since we assume C89.
78544         (EXIT_FAILURE): Remove pre-C89 bug workaround.
78545         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
78546         Include <stddef.h> instead, since it's all we need for size_t.
78547         (PARAMS): Remove.  All uses removed.
78548         (ARRAY_CARDINALITY): Do not bother to #undef.
78549         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
78550         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78551         Remove unnecessary parentheses.
78552         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78553         Insert necessary parentheses.
78554         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
78555         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
78556
78557 2002-11-19  Bruno Haible  <bruno@clisp.org>
78558
78559         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
78560         * lib/mbswidth.h: Include <stddef.h>, for size_t.
78561
78562         * lib/mbswidth.h (PARAMS): Remove macro.
78563         (mbswidth, mbsnwidth): Use ANSI C function declarations.
78564         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
78565
78566         * lib/gcd.h (PARAMS): Remove macro.
78567         (gcd): Use ANSI C function declarations.
78568         * lib/gcd.c (gcd): Likewise.
78569
78570 2002-11-15  Bruno Haible  <bruno@clisp.org>
78571
78572         * lib/strcspn.c: Include <stddef.h>.
78573         (strcspn): Use ANSI C function declaration. Change return type to
78574         size_t. Use NULL.
78575         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
78576         (strpbrk): Use NULL.
78577         * lib/strpbrk.h (PARAMS): Remove macro.
78578         (strpbrk): Use ANSI C function declaration.
78579         * lib/strstr.c: Don't include <sys/types.h>.
78580         * lib/strstr.h (PARAMS): Remove macro.
78581         (strstr): Use ANSI C function declarations.
78582
78583 2002-11-14  Karl Berry  <karl@gnu.org>
78584
78585         * config/mkinstalldirs: `do' on separate line, instead of
78586         `for var; do'.
78587
78588 2002-11-06  Bruno Haible  <bruno@clisp.org>
78589
78590         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
78591         * lib/gcd.c (gcd): Likewise.
78592
78593 2002-11-05  Bruno Haible  <bruno@clisp.org>
78594
78595         * lib/gcd.h: New file, from gettext-0.11.5.
78596         * lib/gcd.c: New file, from gettext-0.11.5.
78597
78598 2002-11-05  Bruno Haible  <bruno@clisp.org>
78599
78600         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78601         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78602         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78603         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78604
78605         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
78606         <libintl.h>.
78607         * lib/makepath.c: Include gettext.h instead of <locale.h> and
78608         <libintl.h>.
78609
78610         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
78611         * lib/human.c: Include gettext.h instead of <libintl.h>.
78612         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
78613         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
78614         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
78615         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
78616         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
78617         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
78618         (textdomain): Remove definition.
78619         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
78620
78621         * lib/long-options.c: Remove include of <libintl.h> and definition of
78622         _.
78623         * lib/same.c: Remove include of <libintl.h> and definition of _.
78624
78625 2002-11-04  Owen Taylor  <otaylor@redhat.com>
78626
78627         * lib/config.charset: A few additions for Solaris.
78628
78629 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78630
78631         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
78632         * lib/localcharset.c (locale_charset): Declare as extern "C".
78633
78634 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78635
78636         * lib/config.charset: msdos in uk_UA uses CP1125.
78637
78638 2002-11-04  Bruno Haible  <bruno@clisp.org>
78639
78640         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
78641         * lib/strcase.h: New file, from GNU gettext-0.11.5.
78642         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
78643         * lib/strstr.h: New file, from GNU gettext-0.11.5.
78644         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
78645
78646 2002-11-04  Bruno Haible  <bruno@clisp.org>
78647
78648         * lib/localcharset.c (locale_charset): Don't return an empty string.
78649
78650 2002-11-04  Bruno Haible  <bruno@clisp.org>
78651
78652         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
78653         aliases.
78654
78655 2002-11-04  Bruno Haible  <bruno@clisp.org>
78656
78657         * lib/config.charset: Update for newest glibc. Add canonical names
78658         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
78659
78660 2002-11-04  Bruno Haible  <bruno@clisp.org>
78661
78662         * lib/config.charset: Add support for NetBSD.
78663
78664 2002-11-04  Bruno Haible  <bruno@clisp.org>
78665
78666         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
78667
78668 2002-11-01  Bruno Haible  <bruno@clisp.org>
78669
78670         * configure.in: Add AC_CONFIG_AUX_DIR call.
78671         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
78672         test/Makefile.
78673         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
78674
78675 2002-09-28  Karl Berry  <karl@gnu.org>
78676
78677         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
78678         installed automake until the next release, since changes have been
78679         made.
78680
78681 2002-09-25  Karl Berry  <karl@gnu.org>
78682
78683         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
78684         * lib/getopt*: copy from libc/posix.
78685         * lib/gettext.h: copy from gettext.
78686         * lib/.cppi-disable: add strdup.c, gettext.h.
78687
78688 2002-09-25  Karl Berry  <karl@gnu.org>
78689
78690         * config/srclist.txt: enable gettext.h check.
78691         * config/config.{guess,sub}: update from prep.
78692         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
78693                 from automake 1.6.3.
78694         See srclist*.
78695
78696 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
78697
78698         * regex.c (PATFETCH): Remove the translating fetch.
78699         (PATFETCH_RAW): Rename to PATFETCH.
78700         (set_image_of_range): New fun.
78701         (SET_RANGE_TABLE_WORK_AREA): Use it.
78702         (regex_compile): Don't translate the pattern chars so eagerly.
78703         Only do it when inserting an `exactn' bytecode or when handling
78704         a char-range.
78705         (mutually_exclusive_p): Avoid empty statement.
78706
78707 2002-07-06  Jim Meyering  <meyering@lucent.com>
78708
78709         * m4/README: Don't mention Makefile.am.in.
78710         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
78711
78712 2002-07-01  Jim Meyering  <meyering@lucent.com>
78713
78714         * lib/c-stack.c: Include sys/time.h.
78715         From Volker Borchert.
78716
78717 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78718
78719         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
78720
78721 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78722
78723         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
78724         New macro.  Use it uniformly instead of
78725         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
78726         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
78727         reported by Vin Shelton.
78728
78729 2002-06-22  Paul Eggert  <eggert@twinsun.com>
78730
78731         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
78732         Do not assume SA_SIGINFO behavior.
78733         Bug reported by Jim Meyering on NetBSD 1.5.2.
78734
78735 2002-06-22  Jim Meyering  <meyering@lucent.com>
78736
78737         * m4/c-stack.m4: New file, from diffutils-2.8.2.
78738         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
78739
78740         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
78741         now that configure.ac uses AC_GNU_SOURCE.
78742         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
78743         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
78744
78745         Update to latest tools.  Suggestions from Paul Eggert.
78746         * m4/stdbool.m4: New file, from diffutils-2.8.2.
78747         * m4/gnu-source.m4: Update from diffutils-2.8.2.
78748         * m4/fnmatch.m4: Likewise.
78749         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
78750         to AC_HEADER_STDBOOL
78751
78752 2002-06-22  Jim Meyering  <meyering@lucent.com>
78753
78754         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
78755         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
78756
78757 2002-06-22  Jim Meyering  <meyering@lucent.com>
78758
78759         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
78760
78761         * lib/exitfail.c, exitfail.h: Likewise.
78762         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
78763
78764         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
78765         of fnmatch.h.
78766         (EXTRA_DIST): Add fnmatch_loop.c.
78767         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
78768
78769         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
78770         * lib/fnmatch.c: Update from diffutils-2.8.2.
78771         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
78772         * lib/fnmatch.h: Remove file.
78773
78774 2002-06-21  Jim Meyering  <meyering@lucent.com>
78775
78776         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
78777         * m4/mbrtowc.m4: Likewise.
78778
78779         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
78780         * m4/mbswidth.m4: Reflect name change:
78781         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
78782         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78783
78784         * m4/lib-link.m4: Update from gettext-0.11.2.
78785         * m4/gettext.m4: Likewise.
78786
78787         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
78788         From Alfred M. Szmidt.
78789
78790 2002-06-18  Paul Eggert  <eggert@twinsun.com>
78791
78792         * lib/file-type.h: Report an error if neither S_ISREG nor
78793         S_IFREG is defined, instead of using a test specific to glibc
78794         2.2.  This should be safe, since POSIX requires S_ISREG and
78795         Unix Version 7 had S_IFREG.  We don't need to check for
78796         <sys/types.h> since we don't use any symbols that it defines.
78797
78798 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
78799
78800         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
78801         $@-t, so that each temporary file name is unique and valid in the first
78802         8 characters, for operation under DOS.
78803
78804 2002-06-15  Paul Eggert  <eggert@twinsun.com>
78805
78806         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
78807
78808 2002-06-15  Jim Meyering  <meyering@lucent.com>
78809
78810         Work even with DJGPP 2.03, which lacks support for symlinks.
78811         From Richard Dawe.
78812         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
78813         is defined.
78814         * lib/lchown.c (S_ISLNK): Likewise.
78815
78816 2002-06-15  Jim Meyering  <meyering@lucent.com>
78817
78818         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
78819         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
78820         have been included before this file.
78821
78822 2002-06-14  Jim Meyering  <meyering@lucent.com>
78823
78824         * lib/file-type.h: Use the version from diffutils-2.8.2.
78825         * lib/file-type.c: Likewise.
78826
78827 2002-06-07  Jim Meyering  <meyering@lucent.com>
78828
78829         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
78830         They're needed at least for NetBSD 1.5.2.
78831         ($statxfs_includes): Include those same headers.
78832         ($statxfs_includes): Include sys/vfs.h if available.
78833         ($statxfs_includes): Likewise for sys/statvfs.h.
78834         Check for the following members in both structs statfs and statvfs:
78835         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
78836
78837 2002-06-01  Jim Meyering  <meyering@lucent.com>
78838
78839         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
78840         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
78841
78842 2002-05-28  Jim Meyering  <meyering@lucent.com>
78843
78844         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
78845         Reported by Volker Borchert.
78846
78847 2002-05-27  Jim Meyering  <meyering@lucent.com>
78848
78849         Fix a problem seen only on nonconforming systems whereby ls.c's
78850         use of localtime, and then of gettimeofday would cause trouble:
78851         the localtime call used to initialize rpl_gettimeofday's save
78852         mechanism would clobber ls's current local time information so
78853         that in any long listing the first file would always be listed
78854         with date 1970-01-01.  Analysis by Volker Borchert.
78855
78856         * lib/gettimeofday.c (localtime): Undefine.
78857         (rpl_localtime): New function.
78858
78859 2002-05-27  Jim Meyering  <meyering@lucent.com>
78860
78861         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
78862         localtime.
78863
78864         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
78865         use the replacement function; it wouldn't resolve at link time.
78866         Reported by Volker Borchert.
78867
78868 2002-05-22  Jim Meyering  <meyering@lucent.com>
78869
78870         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
78871         file-type.h.
78872         * lib/file-type.h: New file.
78873         * lib/file-type.c (file_type): New file/function.  Extracted from
78874         diffutils.
78875
78876 2002-04-30  Jim Meyering  <meyering@lucent.com>
78877
78878         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
78879
78880 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78881
78882         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
78883
78884 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78885
78886         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
78887         Do not check for alloca.h (no longer used) or stdbool.h (was never
78888         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
78889
78890 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78891
78892         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
78893
78894 2002-04-29  Jim Meyering  <meyering@lucent.com>
78895
78896         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
78897         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
78898         Use AC_FUNC_STRNLEN here instead.
78899
78900         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
78901         With autoconf-2.53a, it's part of AC_PROG_CC.
78902
78903 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78904
78905         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
78906         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
78907
78908 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78909
78910         * lib/sig2str.h, lib/sig2str.c: New files.
78911         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
78912
78913 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78914
78915         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
78916         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
78917         of 127, since 64 is the largest conceivable number for ancient
78918         nonstandard hosts.
78919         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
78920
78921 2002-04-28  Jim Meyering  <meyering@lucent.com>
78922
78923         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
78924
78925 2002-04-24  Jim Meyering  <meyering@lucent.com>
78926
78927         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
78928         (jm_PREREQ): Use it.
78929
78930         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
78931         mach/mach.h fcntl.h.
78932         Check for this function: setlocale.
78933
78934 2002-04-24  Jim Meyering  <meyering@lucent.com>
78935
78936         * lib/gettext.h: New file, from Gettext.
78937         * lib/Makefile.am (INCLUDES): Remove -I../intl.
78938         (libfetish_a_SOURCES): Add gettext.h.
78939
78940 2002-04-16  Jim Meyering  <meyering@lucent.com>
78941
78942         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
78943         ut_pid, ut_id, ut_exit.
78944
78945 2002-04-16  Jim Meyering  <meyering@lucent.com>
78946
78947         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
78948         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
78949         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
78950
78951 2002-04-12  Jim Meyering  <meyering@lucent.com>
78952
78953         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
78954         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
78955         existence of the getmntinfo function.  Needed for Darwin 5.3.
78956
78957         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
78958         This is necessary at least on Darwin 5.3.
78959
78960         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
78961         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
78962         strnlen.o in the library, and that makes some versions of ranlib
78963         object.
78964
78965 2002-04-12  Jim Meyering  <meyering@lucent.com>
78966
78967         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
78968
78969 2002-04-09  Jim Meyering  <meyering@lucent.com>
78970
78971         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
78972         to be more precise.  Rather than saying we're checking whether the
78973         function `works', say what we're testing.
78974         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
78975         Reported by Bruno Haible.
78976
78977 2002-03-10  Jim Meyering  <meyering@lucent.com>
78978
78979         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
78980         Suggestion from Santiago Vila.
78981
78982 2002-03-08  Jim Meyering  <meyering@lucent.com>
78983
78984         * lib/rename.c: Mention that this wrapper is needed also on
78985         mips-dec-ultrix4.4 systems.
78986
78987 2002-03-02  Jim Meyering  <meyering@lucent.com>
78988
78989         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
78990         not HAVE_CLOCK_SETTIME.
78991
78992 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78993
78994         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
78995         Check for clock_settime.
78996
78997 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78998
78999         * lib/nanosleep.h: Rename to....
79000         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
79001
79002         * lib/gettime.c: New file.
79003         * lib/settime.c: New file.
79004         * lib/stime.c: Remove.
79005
79006         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
79007         timespec.h.  Remove nanosleep.h.
79008
79009 2002-02-25  Paul Eggert  <eggert@twinsun.com>
79010
79011         * m4/acl.m4: New file.
79012         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
79013         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
79014
79015 2002-02-25  Paul Eggert  <eggert@twinsun.com>
79016
79017         * lib/acl.c, lib/acl.h: New files.
79018         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
79019
79020 2002-02-24  Jim Meyering  <meyering@lucent.com>
79021
79022         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
79023         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
79024         cause trouble.  Reported by Nelson Beebe.
79025
79026 2002-02-23  Paul Eggert  <eggert@twinsun.com>
79027
79028         * lib/path-concat.c (xpath_concat): Reorder code to pacify
79029         compilers that don't know that xalloc_die never returns.
79030
79031 2002-02-20  Jim Meyering  <meyering@lucent.com>
79032
79033         * lib/getdate.c: Regenerate using bison-1.33.
79034
79035 2002-02-17  Jim Meyering  <meyering@lucent.com>
79036
79037         * config/config.guess (main): Don't use `head -1'; it's no longer
79038         portable. Use `sed 1q' instead.
79039
79040 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
79041
79042         * m4/codeset.m4: Upgrade to gettext-0.11.
79043         * m4/gettext.m4: Upgrade to gettext-0.11.
79044         * m4/glibc21.m4: Upgrade to gettext-0.11.
79045         * m4/iconv.m4: Upgrade to gettext-0.11.
79046         * m4/isc-posix.m4: Upgrade to gettext-0.11.
79047         * m4/lcmessage.m4: Upgrade to gettext-0.11.
79048         * m4/lib-ld.m4: New file, from gettext-0.11.
79049         * m4/lib-link.m4: New file, from gettext-0.11.
79050         * m4/lib-prefix.m4: New file, from gettext-0.11.
79051         * m4/progtest.m4: Upgrade to gettext-0.11.
79052
79053 2002-02-15  Paul Eggert  <eggert@twinsun.com>
79054
79055         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
79056         (jm_PREREQ): Use it.
79057
79058 2002-02-15  Paul Eggert  <eggert@twinsun.com>
79059
79060         * lib/posixver.c, lib/posixver.h: New files.
79061         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
79062
79063 2002-02-02  Paul Eggert  <eggert@twinsun.com>
79064             Bruno Haible  <bruno@clisp.org>
79065
79066         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
79067         (fwrite_success_callback): New declaration.
79068         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
79069         print_unicode_char. Call failure callback instead of error.
79070         (fwrite_success_callback): New function.
79071         (exit_failure_callback): New function.
79072         (fallback_failure_callback): New function.
79073         (print_unicode_char): Call unicode_to_mb.
79074
79075 2002-01-26  Jim Meyering  <meyering@lucent.com>
79076
79077         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
79078         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
79079
79080 2002-01-26  Jim Meyering  <meyering@lucent.com>
79081
79082         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
79083
79084 2002-01-22  Paul Eggert  <eggert@twinsun.com>
79085
79086         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
79087
79088 2002-01-22  Jim Meyering  <meyering@lucent.com>
79089
79090         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
79091         Otherwise, some versions of automake would omit the rule that makes
79092         Makefile from Makefile.in.
79093
79094 2002-01-21  Paul Eggert  <eggert@twinsun.com>
79095
79096         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
79097         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
79098         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
79099         (memcoll): Set errno to zero if there is no error.
79100
79101         * lib/quotearg.c (quotearg_buffer_restyled):
79102         Fix bug with quoting buffers containing NUL when backslashing escapes.
79103         This bug was exposed by the other changes in this patch.
79104         (quotearg_n_options): New arg ARGSIZE.
79105         All callers changed.
79106         (quoting_options_from_style): New function.
79107         (quotearg_n_style): Use it.
79108         (quotearg_n_style_mem): New function.
79109
79110         * lib/quotearg.h (quotearg_n_style_mem): New function.
79111
79112 2002-01-19  Jim Meyering  <meyering@lucent.com>
79113
79114         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
79115         Remove useless quotes: DF_PROG="df".
79116         * m4/strnlen.m4: New file.
79117
79118 2002-01-16  Paul Eggert  <eggert@twinsun.com>
79119
79120         * lib/backupfile.c (ISDIGIT): Comment fix.
79121         * lib/getdate.y (ISDIGIT): Likewise.
79122         * lib/posixtm.c (ISDIGIT, year): Likewise.
79123         * lib/strverscmp.c (ISDIGIT): Likewise.
79124         * lib/userspec.c (ISDIGIT): Likewise.
79125
79126 2002-01-16  Jim Meyering  <meyering@lucent.com>
79127
79128         * lib/getdate.y: Add three semicolons, each just before a closing
79129         brace. Bison (as of version 1.31) no longer papers over that mistake.
79130
79131 2002-01-05  Jim Meyering  <meyering@lucent.com>
79132
79133         * lib/version-etc.c (version_etc_copyright): Update copyright year.
79134
79135 2001-12-19  Paul Eggert  <eggert@twinsun.com>
79136
79137         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
79138         not silently exit merely because the output buffer happens to
79139         have nothing pending.
79140
79141 2001-12-18  Paul Eggert  <eggert@twinsun.com>
79142
79143         See the big note in ../ChangeLog.
79144         * lib/human.c (suffixes): Prefer K to k for 1024.
79145         (generate_suffix_backwards): New function.
79146         (human_readable_inexact): Use it.
79147         * lib/xstrtol.c (__xstrtol): If there is no number but there
79148         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
79149         Accept 'K' as well as 'k'.
79150
79151 2001-12-15  Jim Meyering  <meyering@lucent.com>
79152
79153         * lib/regex.h (__restrict_arr): Update from libc.
79154
79155         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
79156         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
79157         (STREQ): Define.
79158
79159 2001-12-14  Jim Meyering  <meyering@lucent.com>
79160
79161         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
79162         Suggestion from Bruno Haible.
79163
79164 2001-12-10  Jim Meyering  <meyering@lucent.com>
79165
79166         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
79167         xrealloc, Instead, include "xalloc.h".
79168         (initbuffer): Don't cast xmalloc return value to char*.
79169         (readline): Reword comment.
79170         Don't cast xrealloc return value to char*
79171         Return NULL, not 0.
79172
79173 2001-12-09  Jim Meyering  <meyering@lucent.com>
79174
79175         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
79176         about `signed and unsigned type in conditional expression'.
79177         * lib/posixtm.c (posix_time_parse): Likewise.
79178
79179         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
79180
79181         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
79182         to avoid a pedantic warning.
79183
79184         * lib/getstr.c: Don't include assert.h.
79185         (getstr): Remove warning-evoking assertions.
79186         Return -1 if offset parameter is out of bounds.
79187         Change the type of a local from int to size_t.
79188
79189         * lib/strftime.c (my_strftime_localtime_r): Include this function
79190         definition in the `#if ! HAVE_TM_GMTOFF' block.
79191
79192         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
79193         Include xalloc.h instead.
79194
79195 2001-12-02  Jim Meyering  <meyering@lucent.com>
79196
79197         * lib/tempname.c: Don't declare getenv, thus reverting the change of
79198         2001-11-18.  It's no longer necessary, now that stdlib.h is always
79199         included.
79200
79201         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
79202         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
79203
79204 2001-11-30  Akim Demaille  <akim@epita.fr>
79205
79206         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
79207         before being defined.
79208
79209 2001-11-27  Paul Eggert  <eggert@twinsun.com>
79210
79211         * lib/quotearg.h (quotearg_n, quotearg_n_style):
79212         First arg is int, not unsigned.
79213         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
79214         (SIZE_MAX, UINT_MAX): New macros.
79215         (quotearg_n_options): Abort if N is negative.
79216         Avoid overflow check on hosts where size_t is 64 bits and int
79217         is 32 bits, as overflow is impossible there.
79218         Fix off-by-one typo that caused unnecessary reallocation.
79219
79220 2001-11-27  Jim Meyering  <meyering@lucent.com>
79221
79222         * lib/tempname.c: Merge with version from libc.
79223         * lib/regex.c: Likewise.
79224
79225         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
79226         systems for which STDC_HEADERS is 0, it was not included, resulting in
79227         a warning about an integer-to-pointer conversion problem with getenv.
79228         Reported by Volker Borchert.
79229
79230 2001-11-26  Jim Meyering  <meyering@lucent.com>
79231
79232         * lib/gtod.h: Remove file.
79233         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
79234         * lib/gettimeofday.c: Don't include gtod.h.
79235         (GTOD_init): Remove function.
79236         (rpl_gettimeofday): Do its job here instead, rather than aborting.
79237         Suggestion from Volker Borchert.
79238
79239 2001-11-23  Jim Meyering  <meyering@lucent.com>
79240
79241         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
79242         it.
79243         * lib/hash.c (struct hash_table): Define it here instead.
79244
79245 2001-11-22  Jim Meyering  <meyering@lucent.com>
79246
79247         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
79248
79249 2001-11-20  Jim Meyering  <meyering@lucent.com>
79250
79251         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
79252         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
79253
79254 2001-11-19  Jim Meyering  <meyering@lucent.com>
79255
79256         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
79257         directory.  Use "conftestXXXXXX" as the template.
79258         Suggestion from Paul Eggert.
79259
79260         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
79261         immediately, so the test doesn't mistakenly hit the max-open-files
79262         limit.
79263
79264 2001-11-18  Paul Eggert  <eggert@twinsun.com>
79265
79266         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
79267         (TEMPORARIES): New macro.
79268         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
79269         removes an artificial limitation (e.g. HP-UX 10.20, where
79270         TMP_MAX is 17576).
79271
79272 2001-11-18  Jim Meyering  <meyering@lucent.com>
79273
79274         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
79275
79276 2001-11-18  Jim Meyering  <meyering@lucent.com>
79277
79278         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
79279         on SunOS 4.
79280
79281         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
79282         files will be created before anything else.
79283
79284 2001-11-17  Paul Eggert  <eggert@twinsun.com>
79285
79286         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
79287         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
79288
79289 2001-11-17  Jim Meyering  <meyering@lucent.com>
79290
79291         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
79292         Prompted by a report from Bob Proulx.
79293
79294         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
79295         Instead, require UTILS_FUNC_MKSTEMP.
79296
79297 2001-11-17  Jim Meyering  <meyering@lucent.com>
79298
79299         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
79300         Now, that's done as part of AC_FUNC_STRTOD.
79301
79302 2001-11-17  Jim Meyering  <meyering@lucent.com>
79303
79304         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
79305         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
79306         rather than group writable.  Patch by Juan F. Codagnone.
79307
79308         * lib/readtokens.c: Remove explicit declarations of xmalloc and
79309         xrealloc, Instead, include "xalloc.h".
79310
79311         * lib/mountlist.c: Include unlocked-io.h after all system headers.
79312         Remove explicit declarations of xmalloc, xrealloc,
79313         and xstrdup.  Instead, include "xalloc.h".
79314
79315         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
79316         unlocked-io.h.
79317         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
79318         Likewise.
79319         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
79320
79321         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
79322         Reported by Padraig Brady.
79323
79324         * lib/mkstemp.c: #undef mkstemp.
79325         Include config.h.
79326         (rpl_mkstemp): Rename from mkstemp.
79327         Protoize.
79328
79329 2001-11-16  Jim Meyering  <meyering@lucent.com>
79330
79331         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
79332         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
79333         determine the amount of total physical memory, use pstat_getstatic.
79334         HPUX-11 doesn't define _SC_PHYS_PAGES.
79335         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
79336         If sysconf couldn't be used to determine the amount of available
79337         physical memory, use both pstat_getstatic and pstat_getdynamic.
79338         Based on a patch from Bob Proulx.
79339
79340 2001-11-10  Jim Meyering  <meyering@lucent.com>
79341
79342         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
79343         (jm_PREREQ): Use it.
79344
79345 2001-11-09  Jim Meyering  <meyering@lucent.com>
79346
79347         * m4/jm-macros.m4: Require autoconf-2.52f.
79348         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
79349         Use these AC_-prefixed names, not the AM_-prefixed ones.
79350
79351         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
79352
79353 2001-11-05  Jim Meyering  <meyering@lucent.com>
79354
79355         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
79356
79357 2001-11-04  Jim Meyering  <meyering@lucent.com>
79358
79359         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
79360         $DEFS.
79361
79362 2001-11-03  Jim Meyering  <meyering@lucent.com>
79363
79364         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
79365         of AC_DEFUN.
79366
79367         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
79368         know the name of the variable in the macro definition.
79369
79370 2001-11-03  Jim Meyering  <meyering@lucent.com>
79371
79372         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
79373         in argmatch_to_argument call.
79374
79375         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
79376         argument.
79377
79378         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
79379         e.g., a fault due to an attempt to free a NULL pointer.
79380
79381 2001-11-01  Jim Meyering  <meyering@lucent.com>
79382
79383         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
79384         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
79385
79386 2001-11-01  Jim Meyering  <meyering@lucent.com>
79387
79388         * lib/dirfd.c, lib/dirfd.h: New files.
79389         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
79390
79391         * lib/hash.c (hash_print) [TESTING]: Clean up.
79392
79393 2001-10-22  Paul Eggert  <eggert@twinsun.com>
79394
79395         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
79396         to avoid a warning if -Wall.
79397
79398 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
79399
79400         * README: New file
79401         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
79402         (per RMS's instructions, this is now the canonical source)
79403         * lgpl/, gpl/: New directories.
79404
79405 2001-10-21  Paul Eggert  <eggert@twinsun.com>
79406
79407         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
79408
79409 2001-10-21  Jim Meyering  <meyering@lucent.com>
79410
79411         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
79412         this code would end up calling gettext even in packages built
79413         with --disable-nls.
79414         * lib/getopt.c (_): Likewise.
79415         * lib/regex.c (_): Likewise.
79416
79417 2001-10-20  Paul Eggert  <eggert@twinsun.com>
79418
79419         * m4/error.m4 (jm_PREREQ_ERROR):
79420         Do not invoke AC_CHECK_FUNCS with strerror_r, as
79421         AC_FUNC_STRERROR_R does that.
79422         Check for strerror declaration.
79423
79424         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
79425         are supposed to have them these days.
79426         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
79427         Merge changes from latest Autoconf CVS.
79428         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
79429         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
79430         POSIX decided to standardize on the int flavor of strerror_r.
79431
79432 2001-10-20  Paul Eggert  <eggert@twinsun.com>
79433
79434         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
79435         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
79436         Use strerror_r that is only a macro, even if it is not a function.
79437         (strerror): Check for HAVE_DECL_STRERROR before declaring.
79438         (private_strerror): Use prototypes, not old-style function definition.
79439         (print_errno_message): New function.
79440         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
79441         char*-flavored one.
79442         (error_tail, error, error_at_line): Use it.
79443
79444 2001-10-11  Jim Meyering  <meyering@lucent.com>
79445
79446         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
79447         and quote_n (1, ... to avoid clobbering a buffer.
79448
79449 2001-10-05  Jim Meyering  <meyering@lucent.com>
79450
79451         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
79452         hash-pjw.h.
79453         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
79454         * lib/hash-pjw.h: New file.
79455
79456 2001-09-30  Jim Meyering  <meyering@lucent.com>
79457
79458         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
79459         `struct fsstat' has the `f_fstypename' member.
79460         Use that to define FS_TYPE, which is now used to make
79461         the getfsstat link test tighter.
79462
79463 2001-09-30  Jim Meyering  <meyering@lucent.com>
79464
79465         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
79466         Include <sys/ucred.h>, for Apple Darwin.
79467         Include sys/mount.h and sys/fs_types.h only if available.
79468         (FS_TYPE): Define.
79469         (read_filesystem_list): Use FS_TYPE.
79470
79471 2001-09-29  Paul Eggert  <eggert@twinsun.com>
79472
79473         * lib/exclude.c (excluded_filename): 0 -> false, since it's
79474         a boolean context.
79475
79476 2001-09-29  Jim Meyering  <meyering@lucent.com>
79477
79478         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
79479         [one-argument getmntent function]): Include stdio.h before mntent.h.
79480         SunOS 4.1.x needs it for the declaration of `FILE'.
79481         Patch by Volker Borchert.
79482
79483         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
79484         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
79485         sys/fs_types.h, and make the link-test for getfsstat guard #include
79486         directives with appropriate #if HAVE_*_H tests so that we can
79487         detect getfsstat on Apple Darwin1.3.7 systems.
79488         Reported by Nelson Beebe.
79489         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
79490
79491 2001-09-28  Paul Eggert  <eggert@twinsun.com>
79492
79493         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
79494         #defines strtoimax.  Also treat the other strto* functions
79495         like strtoimax.
79496
79497         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79498         Check for strtoul and strtoumax,
79499         as those declarations are made even in the signed case.
79500         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
79501         Likewise, for strtol and strtoimax.
79502
79503 2001-09-28  Paul Eggert  <eggert@twinsun.com>
79504
79505         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
79506         #defines strtoimax.  Also treat the other strto* functions
79507         like strtoimax.
79508
79509         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
79510         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
79511         (strtoimax, strtoumax): Do not declare if already defined as a macro.
79512
79513 2001-09-26  Jim Meyering  <meyering@lucent.com>
79514
79515         Most macros in unlocked-io.h had the wrong number of arguments.
79516         * lib/gen-uio: New script.
79517         (USE_UNLOCKED_IO): Define to 1 if not already defined.
79518         * lib/unlocked-io.hin: Remove file.
79519         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
79520         rather than trying to embed it here.
79521         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
79522         Reported by Padraig Brady.
79523
79524 2001-09-25  Volker Borchert  <bt@teknon.de>
79525
79526         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
79527         `result'.
79528
79529 2001-09-24  Jim Meyering  <meyering@lucent.com>
79530
79531         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
79532
79533 2001-09-23  Jim Meyering  <meyering@lucent.com>
79534
79535         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
79536         instead of the mere test for existence of mntent.h.  The latter
79537         would get a false-positive on AIX 3.4 systems.
79538         In the outer getmntent if-block, don't die if neither of the getmntent
79539         tests succeeds.  Instead, just fall through and continue with the
79540         remaining tests.
79541
79542 2001-09-23  Jim Meyering  <meyering@lucent.com>
79543
79544         * lib/mountlist.c: Remove useless parentheses in #if directives.
79545         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
79546         the deprecated MOUNTED symbol is no longer defined in mntent.h.
79547
79548 2001-09-22  Jim Meyering  <meyering@lucent.com>
79549
79550         * m4/gettext.m4: New file.  From gettext.
79551         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
79552         * m4/progtest.m4: Likewise
79553         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
79554         * m4/glibc21.m4: Likewise.
79555
79556         * m4/libintl.m4: Remove.  No longer used.
79557
79558 2001-09-22  Jim Meyering  <meyering@lucent.com>
79559
79560         * lib/localcharset.c: Update from latest gettext.
79561         * lib/config.charset: Likewise.
79562
79563 2001-09-20  Jim Meyering  <meyering@lucent.com>
79564
79565         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
79566         strtoimax.
79567         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
79568         strtoumax.
79569
79570 2001-09-20  Jim Meyering  <meyering@lucent.com>
79571
79572         * lib/xstrtol.c (strtoimax): Guard declaration with
79573         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
79574         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
79575         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
79576         (strtoumax): Likewise, for completeness (it wasn't necessary).
79577
79578 2001-09-17  Paul Eggert  <eggert@twinsun.com>
79579
79580         * lib/strtoimax.c (HAVE_LONG_LONG):
79581         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
79582         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
79583         to work around bug in IBM C compiler.
79584
79585 2001-09-17  Jim Meyering  <meyering@lucent.com>
79586
79587         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
79588         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
79589         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
79590         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
79591         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
79592         whenever the right hand side need not be expanded by the shell.
79593
79594 2001-09-16  Paul Eggert  <eggert@twinsun.com>
79595
79596         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
79597         library.  It's not correct, as some older glibcs are buggy.
79598         fnmatch wasn't fixed until glibc 2.2.
79599
79600         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
79601         special shell magic here.
79602
79603 2001-09-16  Jim Meyering  <meyering@lucent.com>
79604
79605         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
79606         * m4/jm-macros.m4: Require it.
79607
79608 2001-09-16  Jim Meyering  <meyering@lucent.com>
79609
79610         * lib/mkdir.c: New file.
79611
79612 2001-09-15  Jim Meyering  <meyering@lucent.com>
79613
79614         * m4/jm-macros.m4: Check for help2man.
79615
79616 2001-09-11  Jim Meyering  <meyering@lucent.com>
79617
79618         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
79619         The body, by Paul Eggert, was moved here from configure.in.
79620         * m4/jm-macros.m4: Require UTILS_HOST_OS.
79621
79622 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79623
79624         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
79625         (jm_PREREQ): Use it.
79626
79627 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79628
79629         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
79630         Use ssize_t, not int, to store result of readlink.
79631         Check for ssize_t overflow as well as size_t overflow,
79632         as POSIX says the result of readlink is implementation-defined
79633         when ssize_t overflows.
79634         Remove unnecessary cast to char*.
79635         Use free+malloc instead of realloc, as the storage doesn't need
79636         to be preserved and it's clearer and can be more efficient that way.
79637         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
79638         * lib/xreadlink.h (xreadlink): Update prototype.
79639
79640 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79641
79642         * lib/xgetcwd.c: Revert some of the previous change; intead,
79643         fix the HAVE_GETCWD_NULL code to behave more like the
79644         !HAVE_GETCWD_NULL code used to.
79645
79646         Include "xalloc.h".
79647         (xgetcwd): Do not return NULL when memory is exhausted; instead,
79648         invoke xalloc_die.
79649
79650 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79651
79652         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
79653         sys/param.h, as pathmax.h includes them.
79654
79655 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79656
79657         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
79658         (jm_PREREQ_XGETCWD): New macro.
79659
79660         * m4/getcwd.m4: New file.
79661
79662 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79663
79664         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
79665         like the HAVE_GETCWD_NULL code.
79666         Include pathmax.h if not HAVE_GETCWD.
79667         Do not include xalloc.h.
79668         (INITIAL_BUFFER_SIZE): New symbol.
79669         Do not use xmalloc / xrealloc, since the caller is responsible for
79670         handling errors.  Preserve errno around `free' during failure.
79671         Do not overrun buffer when using getwd.
79672
79673 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79674
79675         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
79676         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
79677         getcwd (NULL, 0).
79678
79679 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79680
79681         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
79682         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
79683         spotted by Jim Meyering.
79684
79685 2001-09-03  Jim Meyering  <meyering@lucent.com>
79686
79687         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
79688         failure.
79689
79690 2001-09-02  Jim Meyering  <meyering@lucent.com>
79691
79692         * lib/error.c: Update from GNU libc.
79693
79694 2001-09-01  Jim Meyering  <meyering@lucent.com>
79695
79696         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
79697         Used by df.
79698
79699 2001-09-01  Jim Meyering  <meyering@lucent.com>
79700
79701         * lib/xreadlink.c: New file.
79702         * lib/xreadlink.h: New file.
79703         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
79704         xreadlink.h.
79705
79706         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
79707         doesn't conflict with sparc Solaris 7's definition in
79708         /usr/include/sys/int_types.h.
79709
79710         * lib/exclude.c: Use `""', not `<>' to #include non-system header
79711         files.
79712         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
79713         and strncasecmp as r-values.  Unixware didn't have declarations.
79714
79715 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79716
79717         * lib/xstrtol.h: Add copyright notice.
79718         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
79719         LONGINT_INVALID_SUFFIX_CHAR.
79720
79721 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79722
79723         * lib/xstrtol.c (strtoimax): New decl.
79724
79725 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79726
79727         * lib/xgetcwd.c: Don't include pathmax.h.
79728         Include stdlib.h and unistd.h if available.
79729         Include xalloc.h.
79730         (xmalloc, xstrdup, free): Remove decls.
79731         (xgetcwd): Don't assume sizes fit in unsigned.
79732         Check for overflow when computing sizes.
79733         Simplify reallocation code.
79734
79735 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79736
79737         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
79738         a directory's st_size can have an arbitrary value, so the old
79739         usage could waste an arbitrary amount of memory.  All uses
79740         changed.
79741         * lib/savedir.h: Update prototype.
79742
79743 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79744
79745         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
79746
79747         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
79748         old strtoimax.c.
79749
79750         Also, make the following further changes to make this file's
79751         configuration more similar to that of strtol.c:
79752         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
79753         (strtoumax, uintmax_t, strtoull, strtol): Remove.
79754         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
79755         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
79756         changed to signed values.
79757
79758         And make the following changes as well:
79759         Fix copyright notice, as 1999 was missing.
79760         (verify): New macro.
79761         (strtoimax): Check sizes at compile-time, not run-time.
79762         Prefer strtol to strtoll if both work.
79763         (main): Remove; it was not that useful and was a pain to maintain.
79764
79765         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
79766
79767 2001-08-31  Jim Meyering  <meyering@lucent.com>
79768
79769         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
79770         Use an initial, malloc'd, buffer of length 128 rather than
79771         a statically allocated one of length 1024.
79772
79773 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79774
79775         Simplify code, partly by assuming autoconf 2.52 semantics.
79776
79777         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
79778
79779         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
79780         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
79781         All uses removed.
79782         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
79783         Move AC_REQUIRE to next-to-top level, to avoid confusion.
79784         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
79785         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
79786         jm_AC_HEADER_INTTYPES_H.
79787         * m4/jm-macros.m4 (jm_MACROS): Likewise.
79788
79789         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
79790
79791         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79792         Quote first arg of AC_DEFUN.
79793         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
79794         since they are needed to parse the include file even if we need
79795         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
79796         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
79797         but with opposite signedness.
79798
79799 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79800
79801         Merge 'exclude' changes from tar 1.13.22.
79802         This fixes one or two unlikely storage allocation overflow bugs,
79803         but doesn't change user-visible behavior otherwise.
79804
79805 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79806
79807         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
79808         (jm_PREREQ_EXCLUDE): New macro.
79809
79810 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79811
79812         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
79813         tm to be declared.
79814
79815 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79816
79817         * lib/hash.c: Remove '2001' from copyright notice.
79818
79819 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79820
79821         * lib/full-write.h: New file.
79822         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
79823         * lib/full-write.c: Correct credits, as cccp.c no longer
79824         exists and anyway it was so heavily changed from the old cccp
79825         code as to be unrecognizable.  Include full-write.h.
79826         (full_write): Return size_t, with short writes meaning failure.
79827         All callers changed.  This fixes a bug with large buffers
79828         on 64-bit hosts.
79829         * lib/utime.c: Include full-write.h.
79830
79831 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79832
79833         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
79834         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
79835         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
79836         Include if available.
79837         (<xalloc.h>): Include
79838         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
79839         (verify): New macro.  Use it to verify that EXCLUDE macros do not
79840         collide with FNM macros.
79841         (struct patopts): New struct.
79842         (struct exclude): Use it, as exclude patterns now come with options.
79843         (new_exclude): Support above changes.
79844         (new_exclude, add_exclude_file):
79845         Initial size must now be a power of two to simplify overflow checking.
79846         (free_exclude, fnmatch_no_wildcards): New function.
79847         (excluded_filename): No longer requires options arg, as the options
79848         are determined by add_exclude.  Now returns bool, not int.
79849         (excluded_filename, add_exclude):
79850         Add support for the fancy new exclusion options.
79851         (add_exclude, add_exclude_file): Now takes int options arg.
79852         Check for arithmetic overflow when computing sizes.
79853         (add_exclude_file): xrealloc might modify errno, so don't
79854         realloc until after errno might be used.
79855
79856         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
79857         New macros.
79858         (free_exclude): New decl.
79859         (add_exclude, add_exclude_file): Now takes int options arg.
79860         (excluded_filename): No longer requires options arg, as the options
79861         are determined by add_exclude.  Now returns bool, not int.
79862
79863 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79864
79865         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
79866
79867 2001-08-27  Jim Meyering  <meyering@lucent.com>
79868
79869         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
79870
79871         * lib/version-etc.c (N_): Remove definition.
79872         Revert most of last change.
79873         Instead, simply don't mark the `Copyright...' string for translation.
79874         Based on advice from Paul Eggert.
79875
79876         * lib/strtoxmax.c: Tweak comment.
79877
79878 2001-08-26  Jim Meyering  <meyering@lucent.com>
79879
79880         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
79881
79882         * m4/xstrtoimax.m4: New file.
79883         * m4/xstrtoumax.m4: Add comments explaining why we
79884         AC_REPLACE_FUNCS(strtol).
79885
79886 2001-08-26  Jim Meyering  <meyering@lucent.com>
79887
79888         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
79889         of copyright with `%s' so translators don't get an untranslated
79890         message in 2002.
79891         (COPYRIGHT_YEAR): Define.
79892         (version_etc): Use fprintf rather than fputs.
79893         Suggestion from Ulrich Drepper.
79894
79895         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
79896
79897         * lib/strtoll.c: New file, from GNU libc.
79898         * lib/xstrtoimax.c: New file.
79899
79900         * lib/xstrtol.h: Add xstrtoimax.
79901         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
79902         * lib/strtoimax.c: New file.  Likewise, but first define
79903         STRTOUXMAX_SIGNED.
79904
79905         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
79906         ...
79907         * lib/strtoxmax.c: ... then renamed to this.
79908
79909 2001-08-18  Paul Eggert  <eggert@twinsun.com>
79910
79911         * m4/inttypes.m4: Add AC_PREREQ(2.13).
79912         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
79913         (jm_AC_TYPE_INTMAX_T): New macro.
79914         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
79915
79916         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
79917
79918         * m4/longlong.m4: Renamed from ulonglong.m4.
79919         * m4/inttypes.m4: Renamed from inttypes_h.m4.
79920         * m4/uintmax_t.m4: Removed.
79921
79922 2001-08-13  Paul Eggert  <eggert@twinsun.com>
79923
79924         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
79925         Port to Solaris 8, where 'sed' requires a space after the 'r'
79926         command, and where sh dislikes "$/".  Clean up the spacing a bit.
79927         Redirect output to $tmp just once.
79928
79929 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
79930
79931         * lib/addext.c (<errno.h>): Include.
79932         (errno): Declare if not defined.
79933         (addext): Work correctly when pathconf returns -1 and leaves
79934         errno alone because there is no limit.  Also, work even if
79935         pathconf returns a value greater than SIZE_MAX.
79936
79937 2001-08-12  Jim Meyering  <meyering@lucent.com>
79938
79939         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
79940         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
79941         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
79942         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
79943         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
79944         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
79945         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
79946         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
79947         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
79948         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
79949         utime.m4, utimes.m4, xstrtoumax.m4:
79950         Quote the first argument in each use of AC_DEFUN.
79951
79952 2001-08-12  Jim Meyering  <meyering@lucent.com>
79953
79954         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
79955         Simply `return getcwd (NULL, 0);'.
79956         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
79957         Use 1300 as initial value for length, not PATH_MAX.
79958
79959         * lib/pathmax.h: Clean up cpp syntax.
79960
79961 2001-08-12  Jim Meyering  <meyering@lucent.com>
79962
79963         * lib/gettimeofday.c: New file.
79964         * lib/gtod.h: New file.
79965         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
79966
79967 2001-08-05  Jim Meyering  <meyering@lucent.com>
79968
79969         * m4/jm-macros.m4: Require autoconf-2.52.
79970
79971 2001-08-04  Jim Meyering  <meyering@lucent.com>
79972
79973         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
79974         stmt, to get in sync with glibc.
79975
79976 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79977
79978         The following changes are from gettext 0.10.39 as maintained by
79979         Bruno Haible.
79980
79981         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
79982         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
79983         with inverted sense.  All uses changed.
79984
79985         * lib/mbswidth.c: Don't include <limits.h>.
79986         Include <stdlib.h> and <string.h> unconditionally.
79987         (iswcntrl, mbsinit, ISCNTRL): New macros.
79988         (mbsnwidth): Use K&R style function declarations.
79989         Don't bother checking for MB_LEN_MAX == 1, since the compiler
79990         can optimize it when MB_CUR_MAX == 1.
79991         The width of control characters is zero, not 1.
79992
79993 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79994
79995         The following changes are from gettext 0.10.39 as maintained by
79996         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
79997
79998         * m4/codeset.m4: Upgrade to serial AM1.
79999         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
80000         all uses changed.  Quote first arg of AC_DEFUN.
80001         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
80002
80003         * m4/iconv.m4: Upgrade to serial AM2.
80004         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
80005         Add --with-libconv-prefix.
80006         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
80007         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
80008         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
80009         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
80010         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
80011
80012         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
80013         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
80014         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
80015         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
80016         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
80017         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
80018         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
80019         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
80020         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80021
80022         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
80023         string.h any more.
80024
80025         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
80026         not the default value.
80027
80028         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
80029         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
80030         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
80031         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
80032         Also check for iswcntrl, used for wcwidth fallback.
80033         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
80034         to Autoconf 2.13.
80035
80036 2001-08-03  Jim Meyering  <meyering@lucent.com>
80037
80038         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
80039         as it was in the original.  Reported by Paul Eggert.
80040
80041 2001-07-16  Jim Meyering  <meyering@lucent.com>
80042
80043         * m4/gettimeofday.m4: New file.
80044         Prompted by a report from Bernhard Baehr.
80045
80046 2001-07-15  Jim Meyering  <meyering@lucent.com>
80047
80048         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
80049         stuff. Now it's in ../Makefile.cfg.
80050
80051 2001-07-15  Jim Meyering  <meyering@lucent.com>
80052
80053         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
80054         (BUILT_SOURCES): Add unlocked-io.h.
80055         (io_functions): Define.
80056         (unlocked-io.h): New rule.
80057         (DISTCLEANFILES): Add unlocked-io.h.
80058         (all-local): Depend on unlocked-io.h, to ensure it is created.
80059
80060         * lib/unlocked-io.hin: New file
80061
80062         * lib/regex.c: Update from glibc.
80063
80064 2001-07-05  Jim Meyering  <meyering@lucent.com>
80065
80066         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
80067         recommendation.
80068         (libfetish_a_SOURCES): Put all .h files here instead.
80069         Remove a thus-exposed (better checks in automake) duplicate and
80070         two unnecessary .h files.
80071
80072 2001-07-04  Jim Meyering  <meyering@lucent.com>
80073
80074         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
80075         that generates jm-glibc-io.m4 so that it doesn't trigger any make
80076         distcheck failure.
80077
80078 2001-07-02  Jim Meyering  <meyering@lucent.com>
80079
80080         The following changes were prompted by suggestions from Bruno Haible.
80081
80082         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
80083         is now generated.
80084         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
80085         definition of EXTRA_DIST.
80086         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
80087         ensure that the generated file is created/updated whenever the list
80088         of $(unlocked_functions) is changed.
80089         (jm-glibc-io.m4): New rule.
80090         (unlocked-io.h): New rule -- currently unused.
80091
80092 2001-06-24  Jim Meyering  <meyering@lucent.com>
80093
80094         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
80095         unmatched right bracket, rather than kludging it with an extra,
80096         falsely-matching quote in a comment.  Patch by Akim Demaille.
80097
80098 2001-06-11  Jim Meyering  <meyering@lucent.com>
80099
80100         * lib/regex.c: Update from GNU libc.
80101
80102 2001-05-27  Jim Meyering  <meyering@lucent.com>
80103
80104         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
80105         Check for ut_type in struct utmp.
80106
80107 2001-05-27  Jim Meyering  <meyering@lucent.com>
80108
80109         * lib/readutmp.h (UT_TYPE): Define.
80110
80111 2001-05-24  Jim Meyering  <meyering@lucent.com>
80112
80113         * lib/argmatch.c: Include "quote.h".
80114         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
80115         quote function.  Reported by Göran Uddeborg.
80116
80117 2001-05-22  Jim Meyering  <meyering@lucent.com>
80118
80119         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
80120         now that we use the package-supplied version unconditionally.
80121         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
80122
80123 2001-05-21  Jim Meyering  <meyering@lucent.com>
80124
80125         * m4/regex.m4: Change a couple backticks to single quotes to avoid
80126         shell syntax errors.
80127
80128 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
80129
80130         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
80131
80132 2001-05-20  Paul Eggert  <eggert@twinsun.com>
80133
80134         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
80135         Don't bother to check library strftime, since
80136         we'll be using our own my_strftime function anyway.
80137         Define my_strftime instead of strftime.
80138
80139 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
80140
80141         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
80142         which is not yet declared.
80143
80144 2001-05-15  Jim Meyering  <meyering@lucent.com>
80145
80146         * m4/regex.m4: Use proper quoting so brackets appear in the test
80147         program.
80148         Reported by, and with help from, Bruno Haible.
80149
80150 2001-05-13  Jim Meyering  <meyering@lucent.com>
80151
80152         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
80153         undefined.
80154
80155 2001-05-11  Paul Eggert  <eggert@twinsun.com>
80156
80157         dirname code cleanup.  base_name now behaves more compatibly
80158         with POSIX basename when given file names that have trailing
80159         slashes, and similarly for dir_name.  Add new primitives
80160         base_len and dir_len.  Put the directory-name-related decls
80161         into dirname.h.
80162
80163         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
80164         * lib/backupfile.c (base_name): Likewise.
80165         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
80166         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
80167         * lib/makepath.c (strip_trailing_slashes): Likewise.
80168         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
80169         ISSLASH): Likewise.
80170         * lib/rename.c (strip_trailing_slashes): Likewise.
80171         * lib/same.c (base_name): Likewise.
80172         * lib/stripslash.c (ISSLASH): Likewise.
80173
80174         * lib/addext.c: Include <dirname.h> after size_t is defined.
80175         * lib/backupfile.c: Likewise.
80176
80177         * lib/addext.c (addext): Use base_len to trim redundant
80178         trailing slashes instead of doing it ourselves.
80179         But do not trim the last slash if it is not redundant.
80180
80181         * lib/backupfile.c (find_backup_file_name,
80182         max_backup_version): Use base_len instead of rolling it ourselves.
80183         Handle the case of "" and (on DOS) "C:" correctly.
80184
80185         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
80186         needed. Include <string.h>, <dirname.h>.
80187         (base_name): Allow file names ending in slashes, other than names
80188         that are all slashes.  In this case, return the basename followed
80189         by the slashes.  This is more general, and can be used in places
80190         where the original base_name purposely had an assertion failure.
80191         (base_len): New function.
80192
80193         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
80194         Do not include <assert.h>; no longer needed.
80195         Include xalloc.h.
80196         (memrchr): Remove decl.
80197         (dir_name_r): Remove.
80198         (dir_len): Renamed from dirlen.  All callers changed.
80199         Rewrite in terms of base_name, for simplicity and consistency.
80200         (dir_name): Never return NULL.  All callers changed.
80201         Do not include <stdlib.h> in test program; no longer needed.
80202         return 0; is fine for test program.
80203
80204         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
80205         New macros.
80206         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
80207
80208         * lib/path-concat.c (path_concat): Use base_len to compute
80209         base length, not strlen; this means we cannot rely on memcpy
80210         to null-terminate.
80211
80212         * lib/same.c (STREQ): Remove.
80213         (same_name): Handle the case where the basename ends in trailing '/'.
80214
80215         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
80216         a slash was stripped.  Do not strip the last slash after a
80217         file system prefix.
80218
80219 2001-05-11  Paul Eggert  <eggert@twinsun.com>
80220
80221         * lib/Makefile.am (libfetish_a_SOURCES):
80222         Add strftime.c, since we now compile it on all hosts.
80223
80224         * lib/strftime.c (my_strftime):
80225         Define to nstrftime if emacs, but only if my_strftime is not defined.
80226         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
80227         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
80228         Add one more extra argument: a nanoseconds value.
80229         All uses changed.
80230         (ns): New macro.
80231         (my_strftime function): Add %N format.
80232         (emacs_strftimeu): Renamed from emacs_strftime,
80233         with extra ut argument.
80234
80235 2001-05-09  Paul Eggert  <eggert@twinsun.com>
80236
80237         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
80238
80239 2001-04-21  Jim Meyering  <meyering@lucent.com>
80240
80241         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
80242         doesn't interfere.
80243
80244 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
80245
80246         * m4/ftruncate.m4: Check for chsize.
80247         Link with ftruncate.o unconditionally if ftruncate is missing.
80248         This was required when cross-compiling to i586-mingw32msvc.
80249
80250 2001-04-08  Jim Meyering  <meyering@lucent.com>
80251
80252         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
80253         recomputed; that's necessary when the offset spans a DST transition.
80254         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
80255
80256 2001-04-02  Jim Meyering  <meyering@lucent.com>
80257
80258         * lib/regex.h, regex.c: Update from GNU libc.
80259
80260 2001-03-24  Jim Meyering  <meyering@lucent.com>
80261
80262         * m4/jm-macros.m4: Require autoconf-2.49d.
80263
80264 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
80265
80266         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
80267
80268 2001-03-19  Paul Eggert  <eggert@twinsun.com>
80269
80270         * lib/version-etc.c (version_etc_copyright): Update to 2001.
80271
80272 2001-03-17  Jim Meyering  <meyering@lucent.com>
80273
80274         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
80275         now that the version in autoconf is equivalent.
80276         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
80277
80278         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
80279         Suggestion from Akim Demaille.
80280
80281         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
80282         (jm_PREREQ_TEMPNAME): New function.
80283
80284 2001-03-16  Paul Eggert  <eggert@twinsun.com>
80285
80286         * lib/tempname.c (uint64_t): Define to uintmax_t if
80287         not defined, and if UINT64_MAX is not defined.
80288         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
80289         Reported by John David Anglin.
80290
80291 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
80292
80293         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
80294         resolve alias if codeset is empty.
80295         * lib/config.charset (BeOS): Use wildcard syntax.
80296
80297 2001-03-13  Jim Meyering  <meyering@lucent.com>
80298
80299         * lib/path-concat.c (path_concat)
80300         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
80301         concatenating e.g., `C:' and `foo'.
80302         From Bruno Haible.
80303
80304 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
80305
80306         * lib/localcharset.c (locale_charset): Don't use
80307         setlocale(LC_CTYPE,NULL). Don't return NULL.
80308         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
80309
80310 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
80311
80312         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
80313         support for DOS/DJGPP.
80314
80315 2001-03-01  Paul Eggert  <eggert@twinsun.com>
80316
80317         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
80318         lacks mkstemp.  Compile our own tempname.c if we compile our own
80319         mkstemp.c, as mkstemp relies on tempname.
80320
80321 2001-03-01  Jim Meyering  <meyering@lucent.com>
80322
80323         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
80324         AH_VERBATIM really does output its argument verbatim.
80325
80326 2001-02-28  Paul Eggert  <eggert@twinsun.com>
80327
80328         * lib/Makefile.am (libfetish_a_SOURCES):
80329         Add dup-safer.c, fopen-safer.c.
80330         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
80331
80332         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
80333         * lib/unistd-safer.h: New files.
80334
80335 2001-02-25  Paul Eggert  <eggert@twinsun.com>
80336
80337         The mkstemp replacement is taken from glibc 2.2.2, with some
80338         portability fixes for use outside glibc, as follows:
80339
80340         * lib/tempname.c (struct_stat64): New macro.
80341         (direxists, __gen_tempname): Use it.
80342         This avoids a portability problem with Solaris 8.
80343
80344         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
80345         (<stddef.h>, <stdint.h>, <string.h>):
80346         Include only if STDC_HEADERS || _LIBC.
80347         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
80348         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
80349         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
80350         (__set_errno): Define this macro if <errno.h> doesn't.
80351         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
80352         Define these macros if <stdio.h> doesn't.
80353         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
80354         Define these macros if <sys/stat.h>
80355         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
80356         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
80357         __xstat64): Define if not _LIBC.
80358         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
80359         (__gen_tempname): Invoke gettimeofday only if
80360         HAVE_GETTIMEOFDAY || _LIBC;
80361         otherwise, fall back on plain "time".
80362         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
80363
80364         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
80365
80366         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
80367
80368 2001-02-18  Paul Eggert  <eggert@twinsun.com>
80369
80370         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
80371
80372 2001-02-17  Paul Eggert  <eggert@twinsun.com>
80373
80374         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
80375         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
80376         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
80377         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80378
80379 2001-02-17  Paul Eggert  <eggert@twinsun.com>
80380
80381         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
80382         Remove workaround macros for hosts that have mbrtowc but not
80383         mbstate_t, as we now insist on proper declarations for both
80384         before using mbrtowc.
80385
80386 2001-02-17  Jim Meyering  <meyering@lucent.com>
80387
80388         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
80389         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
80390         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
80391         UnixWare 7.1.1.
80392
80393         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
80394         rather than AC_CACHE_VAL.
80395
80396 2001-02-17  Jim Meyering  <meyering@lucent.com>
80397
80398         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
80399         around included file name.
80400
80401         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
80402
80403         * lib/strftime.c: Update from GNU libc (the only changes were to
80404         comments).
80405
80406 2001-02-17  Jim Meyering  <meyering@lucent.com>
80407
80408         * lib/regex.c: Update from libc.
80409
80410 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
80411
80412         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
80413         clash.
80414
80415 2001-02-16  Paul Eggert  <eggert@twinsun.com>
80416
80417         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
80418         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
80419         Reported by Mark Hounschell via Paul Eggert.
80420
80421 2001-02-07  Jim Meyering  <meyering@lucent.com>
80422
80423         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
80424
80425 2001-02-05  Jim Meyering  <meyering@lucent.com>
80426
80427         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
80428         it includes the patch required for `large file' support with at least
80429         HP-UX's 10.20 /bin/cc.
80430
80431 2001-02-03  Jim Meyering  <meyering@lucent.com>
80432
80433         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
80434         AS_IF, now that it works once again (mysteriously).
80435         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
80436
80437 2001-01-30  Jim Meyering  <meyering@lucent.com>
80438
80439         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
80440         * m4/chown.m4: Rename conftestchown to conftest.chown.
80441         * m4/rename.m4: s/conftestdir/conftest.d1/ and
80442         s/conftestdir2/conftest.d2/.
80443         * m4/utimes.m4: s/conftestdata/conftest.data/
80444         Inspired by Pavel Roskin's change in autoconf.
80445
80446 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
80447
80448         * lib/config.charset: Update for FreeBSD 4.2.
80449
80450 2001-01-27  Jim Meyering  <meyering@lucent.com>
80451
80452         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
80453         a use of AS_IF.
80454         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
80455
80456 2001-01-26  Jim Meyering  <meyering@lucent.com>
80457
80458         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
80459         quotearg.c includes it.
80460
80461 2001-01-26  Jim Meyering  <meyering@lucent.com>
80462
80463         * lib/quotearg.c: Include stddef.h.
80464         * lib/quote.c: Include stddef.h.
80465         Reported by Axel Kittenberger.
80466
80467         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
80468         line in double quotes so that it evokes a better diagnostic.
80469         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
80470         Reported by Axel Kittenberger.
80471
80472 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
80473
80474         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
80475         as if it was a `charset'.
80476
80477 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
80478
80479         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
80480         has const.
80481
80482 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
80483
80484         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
80485         to avoid a warning.  Add back 'const' to inptr.
80486
80487 2001-01-20  Jim Meyering  <meyering@lucent.com>
80488
80489         Be sure that headers are checked before used in code compiled
80490         for the type checks.
80491         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
80492         In place of that, invoke jm_CHECK_ALL_TYPES.
80493         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
80494         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
80495         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
80496         The check for ssize_t was mistakenly run before the test for unistd.h.
80497
80498         The configure-time check for stdbool.h was missing.
80499         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
80500         (jm_PREREQ_HASH): New function.
80501
80502 2001-01-17  Jim Meyering  <meyering@lucent.com>
80503
80504         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
80505         for autoconf-2.49c.
80506         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
80507
80508 2001-01-16  Jim Meyering  <meyering@lucent.com>
80509
80510         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
80511         From Bruno Haible.
80512
80513 2001-01-14  Jim Meyering  <meyering@lucent.com>
80514
80515         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
80516         foo and bar.  Create conftestdir/ in the script, not in the C code.
80517         Remove directories in the script, not in the C code.
80518         Remove conftestdir{,2} before trying to create the directory.
80519         Make the entire configure script fail if the mkdir fails.
80520
80521 2001-01-14  Jim Meyering  <meyering@lucent.com>
80522
80523         * lib/rename.c: New file.  From Volker Borchert.
80524         Include stdlib.h, string.h or strings.h, and xalloc.h.
80525         Use strip_trailing_slashes rather than open-coding it.
80526
80527 2001-01-03  Paul Eggert  <eggert@twinsun.com>
80528
80529         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
80530
80531 2001-01-03  Jim Meyering  <meyering@lucent.com>
80532
80533         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
80534         of local `inptr' to avoid warning with some system declarations of
80535         iconv.
80536
80537 2001-01-02  Volker Borchert  <bt@teknon.de>
80538
80539         * m4/rename.m4: New file.
80540         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
80541
80542 2001-01-01  Jim Meyering  <meyering@lucent.com>
80543
80544         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
80545         even on systems with utmpx.h.  It's necessary for the declaration of
80546         utmp's ut_user member.  Reported by Andreas Jaeger.
80547
80548         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
80549         available. They are required for the declarations of getgrgid and
80550         getpwuid resp.
80551         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
80552         Reported by Andreas Jaeger.
80553
80554 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
80555
80556         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
80557         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
80558         so `make install' also works in VPATH builds.
80559
80560 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
80561
80562         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
80563         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
80564         can be used in subdirectories.
80565
80566 2000-12-29  Paul Eggert  <eggert@twinsun.com>
80567
80568         * lib/modechange.c: Do not assume that mode_t uses the
80569         traditional octal encoding.  E.g. "chmod 1 FOO" should set
80570         the other-execute bit of FOO even if S_IXOTH != 1.
80571
80572         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
80573         WOTH, XOTH, ALLM): New macros.
80574         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
80575          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
80576         Use them.
80577         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
80578         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
80579         (mode_compile):
80580         No need to use uintmax_t; unsigned long is long enough.
80581         Don't bother to get suffix since we don't use it.
80582
80583 2000-12-26  Jim Meyering  <meyering@lucent.com>
80584
80585         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
80586         better with autoheader.
80587
80588 2000-12-24  Jim Meyering  <meyering@lucent.com>
80589
80590         * lib/hash.c (is_prime): Return explicit boolean values.
80591         (hash_get_first): Return NULL to appease Irix5.6's 89.
80592         Reported by Nelson Beebe.
80593
80594 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
80595
80596         * lib/localcharset.c (locale_charset): Add support for Win32.
80597
80598 2000-12-18  Paul Eggert  <eggert@twinsun.com>
80599
80600         * lib/physmem.h, lib/physmem.c: New files.
80601
80602         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
80603         (noinst_HEADERS): Add physmem.h.
80604
80605         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
80606         't' for compatibility with Solaris 8 sort.
80607
80608 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
80609
80610         * lib/config.charset: Add support for BeOS.
80611
80612 2000-12-17  Jim Meyering  <meyering@lucent.com>
80613
80614         * m4/dos.m4 (jm_AC_DOS): New file and macro.
80615         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
80616
80617 2000-12-16  Jim Meyering  <meyering@lucent.com>
80618
80619         This bug had a serious impact on chown: `chown N:M FILE' (for integer
80620         N and M) would have treated it like `chown N:N FILE'.
80621
80622         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
80623
80624 2000-12-16  Jim Meyering  <meyering@lucent.com>
80625
80626         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
80627         SHELLS_FILE to a file name that's useful on djgpp systems.
80628         Include stdlib.h.
80629         (ADDITIONAL_DEFAULT_SHELLS): Define.
80630         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
80631         Based mostly on a patch from Prashant TR.
80632
80633 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
80634
80635         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
80636         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
80637         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
80638
80639 2000-12-08  Andreas Schwab  <schwab@suse.de>
80640
80641         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
80642         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
80643
80644 2000-12-07  Jim Meyering  <meyering@lucent.com>
80645
80646         * lib/stripslash.c (ISSLASH): Define.
80647         (strip_trailing_slashes): Use ISSLASH rather than comparing against
80648         `/'.
80649         From Prashant TR.
80650
80651         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
80652         (dir_name_r): Declare this function as static.
80653         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
80654         manifest itself on a name containing a mix of slashes and
80655         backslashes.
80656         Make this function work with names starting with a DOS-style
80657         drive letter and colon prefix.
80658         (dir_name): Append `.' if necessary.
80659         Based mostly on patches from Prashant TR and Eli Zaretskii.
80660
80661         * lib/dirname.h (dir_name_r): Remove prototype.
80662
80663 2000-12-06  Paul Eggert  <eggert@twinsun.com>
80664
80665         * m4/off_t-format.m4: Remove this file.
80666         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
80667
80668 2000-12-06  Jim Meyering  <meyering@lucent.com>
80669
80670         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
80671         replacement strtoull, we may well need the replacement strtoul, too.
80672         Check for declarations of strtoul and strtoull.
80673         Check for strtol.  Mainly as a cue to cause automake to include
80674         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
80675         Check for limits.h -- strtol.c needs it.
80676
80677 2000-12-05  Jim Meyering  <meyering@lucent.com>
80678
80679         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
80680
80681 2000-12-04  Jim Meyering  <meyering@lucent.com>
80682
80683         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
80684         Also include memory.h, stdlib.h, unistd.h if appropriate.
80685         Reported by Andreas Jaeger (conflicting declaration of malloc).
80686
80687 2000-12-02  Jim Meyering  <meyering@lucent.com>
80688
80689         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
80690         * m4/jm-macros.m4 (jm_MACROS): require it.
80691
80692 2000-12-02  Jim Meyering  <meyering@lucent.com>
80693
80694         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
80695
80696 2000-12-01  Paul Eggert  <eggert@twinsun.com>
80697
80698         * lib/memrchr.c: Include <config.h> before any system include file.
80699
80700 2000-11-30  Jim Meyering  <meyering@lucent.com>
80701
80702         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
80703
80704 2000-11-30  Jim Meyering  <meyering@lucent.com>
80705
80706         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
80707
80708 2000-11-29  Paul Eggert  <eggert@twinsun.com>
80709
80710         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
80711
80712 2000-11-26  Jim Meyering  <meyering@lucent.com>
80713
80714         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
80715
80716 2000-11-22  Paul Eggert  <eggert@twinsun.com>
80717
80718         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
80719         size of (size_t) -1; it's not portable.
80720
80721 2000-11-17  Jim Meyering  <meyering@lucent.com>
80722
80723         * lib/strstr.c: Update from GNU libc.
80724
80725 2000-11-17  Akim Demaille  <akim@epita.fr>
80726
80727         * lib/obstack.h: Formatting changes.
80728         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
80729         prevent type checking.
80730         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
80731         cast the value to (void *): assigning a `foo *' to a `void *'
80732         variable is valid.
80733         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
80734
80735 2000-11-16  Jim Meyering  <meyering@lucent.com>
80736
80737         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
80738
80739 2000-11-11  Jim Meyering  <meyering@lucent.com>
80740
80741         * lib/error.c: Add a couple #includes, merging from GNU libc version.
80742
80743 2000-11-10  Jim Meyering  <meyering@lucent.com>
80744
80745         * lib/obstack.h: Update from GNU libc.
80746         * lib/obstack.c: Likewise.
80747
80748 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
80749
80750         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
80751
80752 2000-11-06  Paul Eggert  <eggert@twinsun.com>
80753
80754         * lib/getusershell.c (setusershell): Use rewind rather than
80755         fseek/fseeko, to avoid configuration hassles with fseeko.
80756         Don't bother opening SHELLS_FILE if shellstream is NULL;
80757         it's not necessary.
80758
80759 2000-11-05  Jim Meyering  <meyering@lucent.com>
80760
80761         * lib/makepath.h (make_dir): Declare.
80762         * lib/makepath.c (make_dir): Remove `static' attribute.
80763         Tweak a comment.
80764
80765 2000-11-04  Jim Meyering  <meyering@lucent.com>
80766
80767         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
80768
80769 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
80770
80771         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
80772         last one in a bucket, advance to the next bucket.
80773
80774 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
80775
80776         * lib/fnmatch.c: Do not comment out all the code if we are using
80777         the GNU C library, because in some cases we are replacing buggy
80778         code in the GNU C library itself.
80779
80780 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
80781
80782         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
80783         (regex_compile): Catch bogus \(\1\).
80784
80785 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80786
80787         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
80788         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
80789         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
80790
80791 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80792
80793         * lib/error.h, getline.h, modechange.h:
80794         Remove "2000" from Copyright line, as the file hasn't been
80795         changed this year other than in the copyright notice.
80796
80797         * lib/xalloc.h: Add "2000" to Copyright line, as this file
80798         was changed this year.
80799
80800 2000-10-29  Jim Meyering  <meyering@lucent.com>
80801
80802         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
80803         renaming.
80804         * m4/ls-mntd-fs.m4: Likewise
80805
80806 2000-10-29  Jim Meyering  <meyering@lucent.com>
80807
80808         * lib/xstat.in: Fix grammar in comment.
80809
80810 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
80811
80812         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
80813         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
80814         doesn't define __restrict_arr.
80815
80816 2000-10-28  Jim Meyering  <meyering@lucent.com>
80817
80818         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
80819         (jm_PREREQ_MEMCHR): New function.
80820
80821 2000-10-28  Jim Meyering  <meyering@lucent.com>
80822
80823         * lib/memchr.c: Update from libc.
80824         Adjust for portability:
80825         [HAVE_STDLIB_H]: Include stdlib.h.
80826         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
80827         Undef __memchr, too.
80828         [!weak_alias]: Define __memchr to memchr.
80829
80830         * lib/regex.c: Update from libc.
80831         * lib/regex.h: Likewise.
80832         * lib/getopt1.c: Likewise.
80833         * lib/memcmp.c: Likewise.
80834
80835         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
80836         Avoid using fseek, when possible -- it's broken by design.
80837         Patch by Ulrich Drepper.
80838
80839 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
80840
80841         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
80842         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
80843         Giving in to popular pressure to shut up the compiler with casts.
80844
80845 2000-10-26  Jim Meyering  <meyering@lucent.com>
80846
80847         * lib/strftime.c: Update from libc.
80848
80849 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
80850
80851         * regex.c: More `unsigned char' -> `re_char' changes.
80852         Also change several `int' into `re_wchar_t'.
80853         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
80854         (PUSH_FAILURE_POINTER): Don't cast any more.
80855         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
80856         We want GCC to complain, since this piece of code makes
80857         re_match non-reentrant, which *should* be fixed.
80858         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
80859         (EXTEND_BUFFER): Use RETALLOC.
80860         (SET_LIST_BIT): Don't cast.
80861         (re_wchar_t): New type.
80862         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
80863         that those two functions will always properly return.
80864         (IMMEDIATE_QUIT_CHECK): Cast to void.
80865         (analyse_first): Use recursion rather than an explicit stack.
80866         (re_compile_fastmap): Can't fail anymore.
80867         (re_search_2): Don't check re_compile_fastmap for failure.
80868         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
80869         Now also sets the new value (passed in a new argument).
80870         (re_match_2_internal): Use it.
80871         Also, use a new var `reg' of type size_t when looping through regs
80872         rather than reuse the inappropriate `mcnt'.
80873
80874 2000-10-25  Jim Meyering  <meyering@lucent.com>
80875
80876         * lib/obstack.c: Update from libc.
80877
80878 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
80879
80880         * regex.c (regex_compile): Change the way of handling a range from
80881         a char less than 256 to a char not less than 256.
80882
80883 2000-10-24  Andrew Innes  <andrewi@gnu.org>
80884
80885         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
80886         NT-Emacs only.
80887         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
80888         so that re_search functions only quit when callers expect them to.
80889
80890 2000-10-23  Jim Meyering  <meyering@lucent.com>
80891
80892         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
80893         wrong.  That set_locale call must not have any side effects.
80894         From Paul Eggert.
80895
80896 2000-10-22  Jim Meyering  <meyering@lucent.com>
80897
80898         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
80899         [CYCLIC]: Remove now-unused definition.
80900
80901         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
80902         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
80903         Suggestion from Ulrich Drepper.
80904
80905 2000-10-21  Jim Meyering  <meyering@lucent.com>
80906
80907         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
80908         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
80909         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
80910
80911 2000-10-21  Jim Meyering  <meyering@lucent.com>
80912
80913         * lib/dirname.c (memrchr): Declare if necessary.
80914         (dir_name): Remove the restriction that there be no
80915         trailing slashes.  Now, this code skips past them, effectively
80916         ignoring them.
80917         [TEST_DIRNAME] (main): New unit tests.
80918
80919         * lib/memrchr.c: New file from GNU libc.
80920         Undef __memrchr, too.
80921         [!weak_alias]: Define __memrchr to memrchr.
80922         Guard weak_alias use with `#ifdef weak_alias'.
80923
80924 2000-10-21  Jim Meyering  <meyering@lucent.com>
80925
80926         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
80927         (dir_name): Use dir_name_r.
80928         * lib/dirname.h (dir_name_r): Declare it.
80929
80930 2000-10-17  Jim Meyering  <meyering@lucent.com>
80931
80932         * lib/quote.h (PARAMS): Define and use.
80933         Reported by Akim Demaille.
80934
80935         * lib/getopt.c: Update from libc.
80936
80937 2000-10-16  Jim Meyering  <meyering@lucent.com>
80938
80939         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
80940         setlocale.
80941         From Jan Fedak.
80942
80943 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
80944
80945         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
80946
80947 2000-09-25  Jim Meyering  <meyering@lucent.com>
80948
80949         * lib/md5.h (rol): Define (from GnuPG).
80950
80951         * lib/sha.c: Give credit (GnuPG) where due.
80952         (M): Use rol rather than open-coding it.
80953         Add a FIXME comment.
80954
80955 2000-09-21  Jim Meyering  <meyering@lucent.com>
80956
80957         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
80958         Reported by Michael Stone.
80959
80960 2000-09-20  Jim Meyering  <meyering@lucent.com>
80961
80962         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
80963         (noinst_HEADERS): Add sha.h.
80964         Based on code from Scott G. Miller and from GnuPG.
80965
80966 2000-09-18  Jim Meyering  <meyering@lucent.com>
80967
80968         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
80969         LIBS. Otherwise, everyone ends up linking with -lelf for some
80970         configurations.
80971         Reported by Mike Stone.
80972
80973 2000-09-15  Jim Meyering  <meyering@lucent.com>
80974
80975         * lib/regex.c: Update from libc.
80976
80977 2000-09-10  Jim Meyering  <meyering@lucent.com>
80978
80979         * lib/getopt.c (_getopt_internal): Update from glibc.
80980
80981 2000-09-09  Jim Meyering  <meyering@lucent.com>
80982
80983         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
80984         think it should be used as a general replacement for isascii.
80985         * lib/fnmatch.c: Likewise.
80986         * lib/mbswidth.c: Likewise
80987         * lib/regex.c: Likewise.
80988
80989         Don't use atoi.
80990         * lib/userspec.c: Include sys/param.h and limits.h.
80991         Include xstrtol.h.
80992         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80993         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
80994         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
80995         UID, GID.  Check range.
80996
80997 2000-09-06  Jim Meyering  <meyering@lucent.com>
80998
80999         * lib/getopt.c (_getopt_internal): Update from glibc.
81000
81001 2000-08-30  Jim Meyering  <meyering@lucent.com>
81002
81003         * lib/strftime.c: Merge in changes from GNU libc.
81004
81005 2000-08-26  Jim Meyering  <meyering@lucent.com>
81006
81007         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
81008         * m4/fpending.m4: New file.
81009
81010 2000-08-26  Jim Meyering  <meyering@lucent.com>
81011
81012         * lib/closeout.c: Include "__fpending.h".
81013         (close_stdout_status): Return right away if there's nothing to flush.
81014
81015         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
81016         * lib/__fpending.c: New file.
81017         * lib/__fpending.h: New file.
81018
81019 2000-08-20  Jim Meyering  <meyering@lucent.com>
81020
81021         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
81022         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
81023         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
81024
81025 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
81026
81027         Improve fileutils installation on systems where running
81028         programs (like install) can't be unlinked.
81029         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
81030         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
81031
81032 2000-08-07  Paul Eggert  <eggert@twinsun.com>
81033
81034         Standardize on "memory exhausted" instead of "Memory exhausted"
81035         or "virtual memory exhausted".
81036         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
81037         "virtual memory exhausted".
81038         * lib/same.c (same_name): Invoke xalloc_die instead of printing
81039         our own message.
81040         * lib/userspec.c (parse_user_spec): Likewise.
81041         * lib/bumpalloc.h: comment fix
81042         * lib/same.c, userspec.c: Include xalloc.h.
81043
81044         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
81045         not char *const and pointing to a constant array.
81046         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
81047         (xrealloc): Comment fix.
81048
81049         * lib/userspec.c (parse_user_spec):
81050         Don't translate a message until just before returning,
81051         to avoid unnecessary translation.
81052
81053 2000-08-07  Jim Meyering  <meyering@lucent.com>
81054
81055         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
81056         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
81057         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
81058         getgroups.c, gethostname.c, getopt.h, group-member.c,
81059         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
81060         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
81061         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
81062         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
81063         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
81064         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
81065         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
81066         yesno.c: Back out Copyright date changes for each file with no change
81067         this year.  This eases coordination with other programs using the same
81068         source code modules.  From Paul Eggert.
81069
81070 2000-08-06  Paul Eggert  <eggert@twinsun.com>
81071
81072         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
81073         not char, for compatibility with glibc 2.1.3 strftime.c.
81074
81075 2000-08-03  Greg McGary  <greg@mcgary.org>
81076
81077         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
81078         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
81079         (EXTEND_BUFFER): Use them.
81080
81081 2000-08-01  Jim Meyering  <meyering@lucent.com>
81082
81083         * lib/dirname.c (ISSLASH): Define.
81084         (BACKSLASH_IS_PATH_SEPARATOR): Define.
81085         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
81086         both `\' and `/' may be use as path separators.
81087         Based on a patch from Prashant TR.
81088
81089 2000-07-31  Paul Eggert  <eggert@twinsun.com>
81090
81091         * lib/quotearg.c (quotearg_n_options): Don't make the initial
81092         slot vector a constant, since it might get modified.
81093
81094 2000-07-31  Jim Meyering  <meyering@lucent.com>
81095
81096         * lib/xmalloc.c: Use `virtual memory exhausted', not
81097         `Memory exhausted'.
81098         * lib/obstack.c (print_and_abort): Likewise.
81099
81100 2000-07-30  Paul Eggert  <eggert@twinsun.com>
81101
81102         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
81103         buffer, so that the caller can always quote one small
81104         component of a "memory exhausted" message in slot 0.
81105         From a suggestion by Jim Meyering.
81106
81107 2000-07-30  Jim Meyering  <meyering@lucent.com>
81108
81109         * lib/makepath.c (make_path): Quote the other instance, too.
81110
81111         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
81112         (STATIC_BUF_SIZE): Define.
81113         (quotearg_n_options): Use only statically allocated storage when
81114         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
81115         than STATIC_BUF_SIZE.
81116
81117 2000-07-29  Jim Meyering  <meyering@lucent.com>
81118
81119         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
81120         * lib/dirname.c (dir_name): Likewise.
81121
81122         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
81123         `/'.
81124
81125         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
81126         (dir_name): Assert that there are no trailing slashes.
81127
81128 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
81129
81130         * lib/mbswidth.h (mbswidth): Add a flags argument.
81131         (mbswidth): New declaration.
81132         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
81133         * lib/mbswidth.c (mbswidth): Add a flags argument.
81134         (mbsnwidth): New function.
81135
81136 2000-07-24  Jim Meyering  <meyering@lucent.com>
81137
81138         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
81139
81140 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81141
81142         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
81143
81144 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81145
81146         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
81147         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
81148         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
81149         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
81150         invoke multibyte primitives.
81151
81152 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81153
81154         * lib/quotearg.c:
81155         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
81156         so that mbstate_t is always defined.
81157
81158         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
81159         be 1 in at least one GCC installation, and this configuration
81160         error is likely to be common.  Ignoring MB_LEN_MAX hurts
81161         performance on hosts that have mbrtowc but have only unibyte
81162         locales, but I assume these hosts are rare.
81163
81164 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81165
81166         * lib/mbswidth.c (_XOPEN_SOURCE):
81167         Don't define; this causes problems on Solaris 7.
81168         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
81169
81170 2000-07-23  Jim Meyering  <meyering@lucent.com>
81171
81172         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
81173         too: getgrgid, getpwuid, getuid.
81174
81175 2000-07-23  Jim Meyering  <meyering@lucent.com>
81176
81177         * lib/basename.c (base_name): Add an assertion.
81178
81179 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
81180
81181         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
81182         shadow its mbsinit function.
81183
81184 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
81185
81186         * lib/mbswidth.h: New file.
81187         * lib/mbswidth.c: New file.
81188         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
81189         (noinst_HEADERS): Add mbswidth.h.
81190
81191 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
81192
81193         * lib/config.charset: Add support for FreeBSD. Improve support for
81194         HP-UX and IRIX 6.
81195
81196 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
81197
81198         * m4/mbswidth.m4: New file.
81199         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
81200
81201 2000-07-15  Jim Meyering  <meyering@lucent.com>
81202
81203         * lib/makepath.c: Include quote.h.
81204         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
81205         corresponding argument in a `quote (...)' call.
81206         Give better diagnostics.
81207
81208         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
81209         (noinst_HEADERS): Add quote.h.
81210
81211         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
81212         from tar's src/misc.c.
81213         * lib/quote.h: New file.  Prototypes for same.
81214
81215 2000-07-14  Paul Eggert  <eggert@twinsun.com>
81216
81217         From a suggestion by Bruno Haible.
81218         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
81219         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
81220         to decide whether to define the BeOS workaround macro;
81221         this adjusts to the change to AC_MBSTATE_T.
81222
81223 2000-07-14  Jim Meyering  <meyering@lucent.com>
81224
81225         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
81226         jm_AC_TYPE_UINTMAX_T.
81227
81228 2000-07-13  Paul Eggert  <eggert@twinsun.com>
81229
81230         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
81231
81232         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
81233         quotearg_buffer_restyled): Add support for
81234         clocale_quoting_style.  Undo previous change to
81235         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
81236         and "{RIGHT QUOTATION MARK}" msgids.
81237
81238 2000-07-10  Paul Eggert  <eggert@twinsun.com>
81239
81240         From a suggestion by Bruno Haible.
81241         * m4/mbstate_t.m4 (AC_MBSTATE_T):
81242         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
81243         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
81244         and mbstate_t, to a single-part test that simply defines mbstate_t.
81245         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
81246         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
81247
81248 2000-07-10  Jim Meyering  <meyering@lucent.com>
81249
81250         * m4/strerror_r.m4: Mirror the correction made in autoconf.
81251
81252         * m4/gnu-source.m4: Output to confdefs.h directly.
81253         Suggestion from Akim Demaille.
81254
81255 2000-07-09  Paul Eggert  <eggert@twinsun.com>
81256
81257         The old behavior of quoting `like this' doesn't look good with
81258         newer, ISO-style fonts.  See:
81259         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
81260
81261         Instead, quote "like this" by default.  Let the translator
81262         tailor the locale-specific quoting behavior by providing
81263         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
81264
81265         * lib/quotearg.c (N_): New macro.
81266         (gettext_default): New function.
81267         (quotearg_buffer_restyled): Use
81268         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
81269         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
81270
81271 2000-07-09  Jim Meyering  <meyering@lucent.com>
81272
81273         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
81274         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
81275
81276         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
81277         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
81278
81279 2000-07-09  Jim Meyering  <meyering@lucent.com>
81280
81281         * lib/Most files: Update copyright dates to include 2000.
81282
81283 2000-07-08  Jim Meyering  <meyering@lucent.com>
81284
81285         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
81286         if not defined.
81287         (xgethostname): Remove now-unnecessary #ifdef.
81288         Move declaration of `err' into loop where it's used.
81289
81290 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81291         and Bruno Haible  <haible@clisp.cons.org>
81292
81293         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
81294         only if the test for an object-type mbstate_t fails.  This
81295         prevents us from mistakenly reporting that mbstate_t is a
81296         system object type after we "#define mbstate_t int" to work
81297         around its lack.
81298
81299 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81300         and Bruno Haible  <haible@clisp.cons.org>
81301
81302         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
81303
81304 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81305
81306         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
81307         to strerror_r.
81308         Include <ctype.h> for use of isalpha.
81309
81310 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81311
81312         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
81313         by allocating a larger buffer. Test the gethostname return value for
81314         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
81315         returns an error and ENAMETOOLONG isn't defined.
81316
81317 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81318
81319         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
81320         dimension.
81321
81322 2000-07-04  Jim Meyering  <meyering@lucent.com>
81323
81324         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
81325         of the deprecated AC_CHECKING.
81326
81327 2000-07-04  Jim Meyering  <meyering@lucent.com>
81328
81329         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
81330         Reported by Bruno Haible.
81331
81332 2000-07-04  Jim Meyering  <meyering@lucent.com>
81333
81334         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
81335         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
81336         lacks mbrtowc.
81337
81338 2000-07-03  Paul Eggert  <eggert@twinsun.com>
81339
81340         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
81341         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
81342
81343 2000-07-03  Paul Eggert  <eggert@twinsun.com>
81344         and Bruno Haible  <haible@clisp.cons.org>
81345
81346         * lib/quotearg.c (mbrtowc):
81347         Assign to *pwc, and return 1 only if result is nonzero.
81348         (iswprint): Use ISPRINT when substituting our own mbrtowc.
81349
81350 2000-07-03  Jim Meyering  <meyering@lucent.com>
81351
81352         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
81353
81354 2000-07-03  Jim Meyering  <meyering@lucent.com>
81355
81356         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
81357         This is necessary to get a definition of e.g., UTMP_FILE on
81358         HP-UX 10.20.
81359         From Bob Proulx.
81360
81361 2000-07-02  Jim Meyering  <meyering@lucent.com>
81362
81363         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
81364
81365         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
81366         AC_LIBOBJ(function_name).
81367         * m4/chown.m4: Likewise.
81368         * m4/fnmatch.m4: Likewise.
81369         * m4/ftruncate.m4: Likewise.
81370         * m4/getgroups.m4: Likewise.
81371         * m4/getline.m4: Likewise.
81372         * m4/group-member.m4: Likewise.
81373         * m4/jm-macros.m4: Likewise.
81374         * m4/lstat.m4: Likewise.
81375         * m4/malloc.m4: Likewise.
81376         * m4/memcmp.m4: Likewise.
81377         * m4/nanosleep.m4: Likewise.
81378         * m4/putenv.m4: Likewise.
81379         * m4/realloc.m4: Likewise.
81380         * m4/regex.m4: Likewise.
81381         * m4/stat.m4: Likewise.
81382         * m4/strftime.m4: Likewise.
81383
81384 2000-07-02  Jim Meyering  <meyering@lucent.com>
81385
81386         * lib/quotearg.c (mbstate_t): Don't define here.
81387
81388 2000-07-02  Jim Meyering  <meyering@lucent.com>
81389
81390         * lib/nanosleep.c (SIGCONT): Define if not already defined.
81391
81392 2000-07-01  Jim Meyering  <meyering@lucent.com>
81393
81394         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
81395
81396 2000-07-01  Jim Meyering  <meyering@lucent.com>
81397
81398         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
81399         problem.
81400
81401 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
81402
81403         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
81404         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
81405
81406 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
81407
81408         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
81409         per change in ../m4/ls-mntd-fs.m4.
81410         (read_filesystem_list): Ignore symbolic links.
81411
81412 2000-06-29  Jim Meyering  <meyering@lucent.com>
81413
81414         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
81415         for declaration of strcmp.
81416
81417         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
81418
81419         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
81420         Avoid warning by casting result to `char *' to remove `const'.
81421
81422 2000-06-28  Jim Meyering  <meyering@lucent.com>
81423
81424         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
81425         included by quotearg.c, for which we perform this test.  From
81426         Bruno Haible.
81427
81428 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
81429
81430         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
81431         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
81432         <utmpx.h> exists, put readutmp.o into LIBOBJS.
81433
81434 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
81435
81436         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
81437
81438 2000-06-26  Paul Eggert  <eggert@twinsun.com>
81439
81440         savedir now sets errno on failure and invokes xmalloc to get memory.
81441         Fix a couple of other minor bugs while we're at it.
81442
81443         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
81444         (NAMLEN): Remove macro.
81445         (malloc, realloc): Remove decls.
81446         (stpcpy): Likewise.
81447         ("xalloc.h"): Include.
81448         (NAME_SIZE_DEFAULT): New macro.
81449         (savedir): Use xmalloc / xrealloc to allocate memory.
81450         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
81451         Skip "" directory entries.
81452         Use strlen to calculate directory entry length, since the old method
81453         is rarely used these days and isn't worth supporting.
81454         Don't use a pointer after freeing it.
81455         Check for integer overflow when calculating allocation size.
81456         Use memcpy to copy entries, instead of stpcpy.
81457         Set errno properly when returning NULL.
81458         Check for readdir error.
81459
81460 2000-06-26  Jim Meyering  <meyering@lucent.com>
81461
81462         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
81463
81464 2000-06-25  Jim Meyering  <meyering@lucent.com>
81465
81466         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
81467         Linux header bug when _XOPEN_SOURCE is defined to 500.
81468
81469 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
81470
81471         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
81472         deficiency.
81473
81474 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
81475
81476         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
81477         Include xalloc.h.
81478         Don't include <stdlib.h>.  Don't declare malloc, realloc.
81479
81480 2000-06-24  Jim Meyering  <meyering@lucent.com>
81481
81482         * m4/strerror_r.m4: Revive this file -- to try out an experimental
81483         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
81484         for which strerror does return char*, but which lacks a conveniently
81485         accessible declaration of the function.  If the compile-test says
81486         strerror_r doesn't work, then resort to a `run'-test that works on
81487         BeOS and segfaults on DEC Unix.
81488
81489 2000-06-24  Jim Meyering  <meyering@lucent.com>
81490
81491         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
81492
81493 2000-06-23  Paul Eggert  <eggert@twinsun.com>
81494
81495         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
81496         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
81497
81498 2000-06-23  Paul Eggert  <eggert@twinsun.com>
81499
81500         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
81501         (mbrtowc, mbstate_t): Define substitutes if
81502         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
81503         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
81504         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
81505
81506 2000-06-23  Jim Meyering  <meyering@lucent.com>
81507
81508         * m4/afs.m4: Add missing AC_MSG_RESULT.
81509         Reported by Bruno Haible.
81510
81511         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
81512         Suggestion from Bruno Haible.
81513
81514 2000-06-23  Jim Meyering  <meyering@lucent.com>
81515
81516         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
81517
81518 2000-06-21  Jim Meyering  <meyering@lucent.com>
81519
81520         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
81521
81522 2000-06-21  Jim Meyering  <meyering@lucent.com>
81523
81524         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
81525         (noinst_HEADERS): Add getstr.h.
81526
81527         * lib/getline.c (getstr): Move into a separate file.
81528         * lib/getstr.c (getstr): New file, extracted from getline.c, with
81529         the following changes: new parameter, delim2; both delim[12]
81530         parameters have type `int', not `char'.  The latter would lose
81531         with 8-bit delimiters.
81532         * lib/getstr.h: New file.
81533
81534 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81535
81536         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
81537         than 1024, return a memory chunk of least possible size, instead
81538         of size PATH_MAX + 2. In the loop, increment the size proportionally.
81539         Use free/xmalloc instead of xrealloc to avoid copying for very long
81540         paths.
81541
81542 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81543
81544         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
81545         the empty string.
81546
81547 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81548
81549         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
81550         address, not strdup.  Include <stdlib.h> and don't declare free().
81551
81552 2000-06-19  Jim Meyering  <meyering@lucent.com>
81553
81554         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
81555
81556 2000-06-18  Jim Meyering  <meyering@lucent.com>
81557
81558         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
81559
81560         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
81561         `checking whether...' message to be consistent with that of the
81562         lstat test.
81563
81564 2000-06-18  Jim Meyering  <meyering@lucent.com>
81565
81566         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
81567         Besides, these days every porting target provides a mkdir function.
81568
81569         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
81570         needed. (this snippet comes from src/system.h).
81571
81572 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
81573
81574         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
81575
81576 2000-06-15  Paul Eggert  <eggert@twinsun.com>
81577
81578         * lib/human.c (adjust_value): New function.
81579         (human_readable_inexact): Apply rounding style even when
81580         printing approximate values.
81581
81582 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81583
81584         * lib/human.c (human_readable_inexact): Allow an input block
81585         size that is not a multiple of the output block size, and vice versa.
81586         Reported by Piergiorgio Sartor.
81587
81588 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81589
81590         * lib/getdate.y (get_date): Apply relative times after time
81591         zone indicator, not before.  Reported by Todd A. Jacobs.
81592
81593 2000-06-13  Jim Meyering  <meyering@lucent.com>
81594
81595         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
81596
81597         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
81598
81599 2000-06-12  Paul Eggert  <eggert@twinsun.com>
81600
81601         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
81602
81603 2000-06-12  Jim Meyering  <meyering@lucent.com>
81604
81605         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
81606         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
81607         optional argument.
81608         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
81609         the optional argument, `lib'.
81610
81611 2000-06-08  Jim Meyering  <meyering@lucent.com>
81612
81613         * m4/largefile.m4: Remove file (now that it's part of autoconf).
81614
81615 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81616
81617         Rewrite largefile configuration so that we don't need to run
81618         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
81619         AC_CANONICAL_HOST in configure.in -- jmm]
81620
81621         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
81622         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
81623         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
81624         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
81625         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
81626         All uses changed.
81627         Instead of inspecting the output of getconf, try to compile the
81628         test program without and with the macro definition.
81629         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
81630         for getconf.  Instead, check for the needed flags by compiling
81631         test programs.
81632
81633 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81634
81635         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
81636
81637 2000-06-04  Jim Meyering  <meyering@lucent.com>
81638
81639         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
81640         SunOS 4.1.4 for which gid_t is an unsigned type.
81641
81642 2000-06-03  Jim Meyering  <meyering@lucent.com>
81643
81644         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
81645         now that autoconf requires that.
81646
81647         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
81648         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
81649         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
81650
81651 2000-06-03  Jim Meyering  <meyering@lucent.com>
81652
81653         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
81654
81655 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81656
81657         * m4/glibc21.m4: New file.
81658         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
81659
81660 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81661
81662         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
81663         newer, don't install charset.alias.
81664         * lib/config.charset: Change the Linux/glibc rules so they become empty
81665         on glibc-2.1 or newer.
81666
81667 2000-06-02  Jim Meyering  <meyering@lucent.com>
81668
81669         * lib/mountlist.c: Back out last change.  Instead, do this...
81670         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
81671         me_dummy member using the same `ignore'-testing code.
81672         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
81673         fs_type strings.
81674         From Mark D. Roth.
81675
81676 2000-05-29  Jim Meyering  <meyering@lucent.com>
81677
81678         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
81679         mounts with the `ignore' attribute.  Based on a patch from
81680         Mark D. Roth.
81681
81682 2000-05-28  Jim Meyering  <meyering@lucent.com>
81683
81684         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
81685         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81686         * m4/stat.m4: Likewise.
81687         * m4/lstat.m4: Likewise.
81688         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
81689
81690         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
81691         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
81692
81693 2000-05-26  Jim Meyering  <meyering@lucent.com>
81694
81695         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
81696
81697 2000-05-24  Jim Meyering  <meyering@lucent.com>
81698
81699         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
81700         autoconf requires that.
81701         * m4/lib-check.m4: Likewise.
81702         * m4/jm-macros.m4: Likewise.
81703         * m4/strftime.m4: Likewise.
81704
81705         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
81706         AC_CHECK_DECLS, now that autoconf requires that.
81707
81708 2000-05-22  Jim Meyering  <meyering@lucent.com>
81709
81710         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81711         * m4/lstat.m4: Likewise.
81712
81713 2000-05-22  Jim Meyering  <meyering@lucent.com>
81714
81715         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
81716
81717 2000-05-20  Jim Meyering  <meyering@lucent.com>
81718
81719         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
81720         (jm_PREREQ): Use it.
81721
81722 2000-05-18  Jim Meyering  <meyering@lucent.com>
81723
81724         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
81725         back, too, since it may have been modified by allocate_entry.
81726         (hash_delete): Rewrite to use neither the assignment operator
81727         nor the comma operator in an if-expression.
81728
81729 2000-05-15  Paul Eggert  <eggert@twinsun.com>
81730
81731         * lib/closeout.c:
81732         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
81733         Remove; no longer needed.
81734         "quotearg.h": Add include.
81735         (file_name): Do not bother to explicitly initialize to NULL; it's less
81736         efficient on some hosts.
81737         (close_stdout_status): Remove test as to whether stdout was already
81738         closed; it breaks for the case "echo x | sort >&-".
81739         Quote file name colons.
81740         Do not assume that _("write error") lacks format strings.
81741
81742 2000-05-15  Jim Meyering  <meyering@lucent.com>
81743
81744         * lib/version-etc.c (version_etc_copyright): Update the copyright
81745         string used in all --version output.
81746
81747 2000-05-14  Jim Meyering  <meyering@lucent.com>
81748
81749         * lib/closeout.c (close_stdout_set_file_name): New function.
81750         (close_stdout_status): Use new file-scoped global.
81751         Return right away if fstat says the stdout file descriptor is invalid.
81752         * lib/closeout.h (close_stdout_set_file_name): Declare.
81753
81754 2000-05-10  Jim Meyering  <meyering@lucent.com>
81755
81756         * lib/closeout.c [default_exit_status]: New file-scoped variable.
81757         (close_stdout_set_status): New function.
81758         * lib/closeout.h (close_stdout_set_status): Declare.
81759
81760 2000-05-09  Jim Meyering  <meyering@lucent.com>
81761
81762         * m4/gettext.m4: Rename this...
81763         * m4/libintl.m4: ...to this.
81764
81765 2000-05-08  Jim Meyering  <meyering@lucent.com>
81766
81767         * lib/long-options.c: Don't include closeout.h.
81768         (parse_long_options): Don't call close_stdout for --version.
81769
81770 2000-05-06  Paul Eggert  <eggert@twinsun.com>
81771
81772         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
81773         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
81774         2.1.3 bug.  This avoids a clash when files like regex.c define
81775         _GNU_SOURCE.
81776
81777 2000-05-06  Jim Meyering  <meyering@lucent.com>
81778
81779         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
81780         (AC_REPLACE_FUNCS): Add strnlen.
81781
81782         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
81783         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
81784
81785         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
81786         AC_SEARCH_LIBS call for nanosleep.
81787         (LIB_NANOSLEEP): Set and AC_SUBST.
81788
81789 2000-05-06  Jim Meyering  <meyering@lucent.com>
81790
81791         * lib/strnlen.c: Undefine __strnlen and strnlen.
81792         [!weak_alias]: Define __strnlen to strnlen.
81793
81794         * lib/atexit.c: New file, from libiberty.
81795
81796 2000-05-06  Jim Meyering  <meyering@lucent.com>
81797
81798         * lib/closeout.c (close_stdout_status): Also check for errors on the
81799         stderr stream.
81800
81801 2000-05-05  Jim Meyering  <meyering@lucent.com>
81802
81803         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
81804         AC_SEARCH_LIBS call for clock_gettime.
81805         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
81806
81807         * m4/search-libs.m4: Update from autoconf.
81808
81809         su doesn't work on Solaris 2.6.
81810         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
81811         <shadow.h>.  Reported by Dragos Harabor.
81812
81813 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
81814
81815         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
81816         memcpy instead of xmalloc, xrealloc, path_concat.
81817         (locale_charset): Treat empty environment variables as absent.
81818         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
81819
81820 2000-05-04  Jim Meyering  <meyering@lucent.com>
81821
81822         * lib/getopt.c: Update from glibc.
81823         * lib/obstack.c: Likewise.
81824         * lib/obstack.h: Likewise.
81825         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
81826         file
81827
81828         * lib/regex.h: Likewise.
81829         * lib/strndup.c: Likewise.
81830         * lib/strnlen.c: New file, from glibc.
81831
81832 2000-05-03  Jim Meyering  <meyering@lucent.com>
81833
81834         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
81835
81836 2000-05-02  Paul Eggert  <eggert@twinsun.com>
81837
81838         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
81839         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
81840         compile-time test, rather than inspecting host and OS, to
81841         decide whether to define _LARGEFILE_SOURCE.
81842
81843 2000-05-01  Jim Meyering  <meyering@lucent.com>
81844
81845         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
81846
81847         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
81848         Based on a patch from Bruno Haible.
81849
81850 2000-05-01  Jim Meyering  <meyering@lucent.com>
81851
81852         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
81853
81854 2000-04-29  Jim Meyering  <meyering@lucent.com>
81855
81856         * lib/path-concat.c: Declare strdup only if it's not defined.
81857         * lib/canon-host.c: Likewise.
81858
81859 2000-04-28  Jim Meyering  <meyering@lucent.com>
81860
81861         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
81862         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
81863         is included first, then limits.h is included by locale.h by libintl.h.
81864         From John David Anglin.
81865
81866 2000-04-25  Jim Meyering  <meyering@lucent.com>
81867
81868         * lib/makepath.c (S_IRWXUGO): Define.
81869         (make_path): Always perform explicit chmod if MODE specifies any
81870         of the `special' permission bits.  Prompted by a bug report against
81871         install from Mate Wierdl and Joost van Baal.
81872
81873 2000-04-18  Jim Meyering  <meyering@lucent.com>
81874
81875         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
81876         (jm_PREREQ): Use it.
81877
81878 2000-04-18  Jim Meyering  <meyering@lucent.com>
81879
81880         * lib/README: New file.
81881
81882         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
81883         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
81884
81885 2000-04-17  Jim Meyering  <meyering@lucent.com>
81886
81887         Get it right :-)
81888         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
81889         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
81890         Suggestion from Akim Demaille.
81891
81892 2000-04-17  Jim Meyering  <meyering@lucent.com>
81893
81894         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
81895         the definition of it to rpl_strftime also defined-away the system's
81896         declaration.
81897
81898 2000-04-15  Jim Meyering  <meyering@lucent.com>
81899
81900         Use `C' to denote so-called `contiguous' files, the same way
81901         that tar does.
81902         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
81903         (ftypelet): Use S_ISCTG.
81904         From Michael Deutschmann.
81905
81906 2000-04-14  Jim Meyering  <meyering@lucent.com>
81907
81908         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
81909         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
81910         clobbered.
81911
81912 2000-04-14  Jim Meyering  <meyering@lucent.com>
81913
81914         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
81915
81916 2000-04-13  Jim Meyering  <meyering@lucent.com>
81917
81918         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
81919         AH_VERBATIM to insert required #ifndef into config.h.in.
81920         Suggestion from Akim Demaille.
81921
81922 2000-04-12  Jim Meyering  <meyering@lucent.com>
81923
81924         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
81925         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
81926         Christian Krackowizer.
81927
81928         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
81929         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
81930         (AC_SYS_LARGEFILE): Require.
81931         (AM_C_PROTOTYPES): Require.
81932
81933 2000-04-08  Jim Meyering  <meyering@lucent.com>
81934
81935         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
81936         names don't conflict.  Reported by Eli Zaretskii.
81937
81938 2000-04-07  Jim Meyering  <meyering@lucent.com>
81939
81940         * lib/putenv.c: Move inclusion of errno.h so it follows that of
81941         sys/types.h, to work around system header problems on AIX 3.2.5.
81942         From Bruno Haible.
81943
81944 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
81945
81946         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
81947         bug.  Deal with the different error behavior of Irix iconv.
81948
81949 2000-04-05  Paul Eggert  <eggert@twinsun.com>
81950
81951         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
81952         IRIX if the installer said otherwise.
81953
81954 2000-04-05  Jim Meyering  <meyering@lucent.com>
81955
81956         Portability tweaks required for ultrix4.3.
81957         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
81958         (jm_CHECK_DECLS): Add getutent to the list of functions.
81959         (_jm_DECL_HEADERS): Add utmpx.h.
81960         From John David Anglin.
81961
81962         * m4/strftime.m4: Back out the 2000-04-02 change.
81963         Instead of that change, simply undefine putenv in the test program.
81964
81965 2000-04-05  Jim Meyering  <meyering@lucent.com>
81966
81967         Portability tweaks required for ultrix4.3.
81968         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
81969         getutent.
81970         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
81971         * lib/canon-host.c: Declare strdup.
81972         * lib/path-concat.c: Likewise.
81973         From John David Anglin.
81974
81975 2000-04-04  Jim Meyering  <meyering@lucent.com>
81976
81977         Be more DOS 8.3-friendly.
81978         * lib/ref-add.sin: Renamed from ref-add.sed.in.
81979         * lib/ref-del.sin: Renamed from ref-del.sed.in.
81980         * lib/Makefile.am: Reflect renaming.
81981         Reported by Eli Zaretskii.
81982
81983         Use a temporary file name that won't clash with `charset.alias'
81984         in the DOS 8.3 name space.
81985         * lib/Makefile.am (charset_tmp): Define.
81986         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
81987         (uninstall-local): Likewise.
81988         Reported by Eli Zaretskii.
81989
81990 2000-04-03  Jim Meyering  <meyering@lucent.com>
81991
81992         * m4/gettext.m4: Fix typo in comment.
81993
81994         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
81995         textutils/configure.in).  Suggestion from Paul Eggert.
81996         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
81997
81998 2000-04-02  Paul Eggert  <eggert@twinsun.com>
81999
82000         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
82001         variable in the shell rather than using putenv, which isn't
82002         portable.  This avoids the configure-time inter-test dependency
82003         on the potentially-renamed putenv function.
82004
82005 2000-03-30  Paul Eggert  <eggert@twinsun.com>
82006
82007         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
82008         before checking struct stat.st_blksize, so that
82009         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
82010
82011 2000-03-29  Paul Eggert  <eggert@twinsun.com>
82012
82013         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
82014         since strftime.c uses HAVE_STRFTIME to decide whether to use
82015         the underlying strftime.
82016
82017 2000-03-29  Paul Eggert  <eggert@twinsun.com>
82018
82019         * lib/time/strftime.c (my_strftime): Make sure we call the system
82020         strftime, not ourselves, when invoking the underlying strftime.
82021
82022 2000-03-24  Jim Meyering  <meyering@lucent.com>
82023
82024         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
82025         (charset_alias): Define.
82026         (install-exec-local): Factor out common code.
82027         (uninstall-local): Split lines longer than 80.
82028         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
82029         (SUFFIXES): Define.
82030         (.sed.in.sed): New rule.  Don't redirect directly to $@.
82031         (CLEANFILES): Add ref-add.sed and ref-del.sed.
82032
82033 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
82034
82035         * lib/config.charset: Output a line containing "Packages using this
82036         file".
82037         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
82038         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
82039         ref-del.sed): New rules.
82040
82041 2000-03-17  Jim Meyering  <meyering@lucent.com>
82042
82043         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
82044         Otherwise, include <strings.h>
82045
82046 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
82047
82048         * lib/unicodeio.c (utf8_wctomb): New function.
82049         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
82050         format instead of in UCS-4 with platform dependent endianness.
82051
82052 2000-03-10  Jim Meyering  <meyering@lucent.com>
82053
82054         * m4/lib-check.m4: Look for getspnam in -lgen, too.
82055         From Marco Franzen.
82056
82057 2000-03-07  Paul Eggert  <eggert@twinsun.com>
82058
82059         * lib/savedir.c (savedir): Work even if directory size is
82060         negative; this can happen with some screwy NFS configurations.
82061
82062 2000-03-06  Jim Meyering  <meyering@lucent.com>
82063
82064         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
82065         if it's NULL (because we ran out of memory).  From Bruno Haible.
82066
82067 2000-03-05  Jim Meyering  <meyering@lucent.com>
82068
82069         * lib/localcharset.c ("path-concat.h"): Include.
82070         (get_charset_aliases): Use path_concat instead of ANSI string
82071         concatenation.
82072
82073         * lib/unicodeio.h (PARAMS): Define.
82074         Use it to guard prototype.
82075
82076 2000-03-04  Jim Meyering  <meyering@lucent.com>
82077
82078         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
82079         for lib/localcharset.c.
82080
82081 2000-03-04  Jim Meyering  <meyering@lucent.com>
82082
82083         * lib/Makefile.am (install-exec-local): Create $(libdir) before
82084         installing into it.
82085         (uninstall-local): Uncomment this rule so `make distcheck' works
82086         once again.
82087
82088         * lib/unicodeio.c (<errno.h>): Include it.
82089         (errno): Declare if not defined.
82090
82091         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
82092
82093         * lib/config.charset: New version, incorporating remarks from a linux
82094         i18n mailing list.  From Bruno Haible.
82095
82096 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
82097
82098         * m4/codeset.m4: New file.
82099         * m4/iconv.m4: New file.
82100         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
82101
82102 2000-03-03  Jim Meyering  <meyering@lucent.com>
82103
82104         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
82105
82106 2000-03-02  Jim Meyering  <meyering@lucent.com>
82107
82108         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
82109         the messages come out on separate lines.
82110
82111         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
82112         rather than jm_CHECK_DECLARATIONS.
82113         * m4/decl.m4: Remove now-unused file.
82114
82115         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
82116         geteuid.
82117
82118 2000-03-02  Jim Meyering  <meyering@lucent.com>
82119
82120         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
82121
82122 2000-03-01  Jim Meyering  <meyering@lucent.com>
82123
82124         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
82125         * lib/unicodeio.c: Likewise.
82126
82127 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
82128
82129         * lib/config.charset: New file.
82130         * lib/localcharset.c: New file.
82131         * lib/unicodeio.h, lib/unicodeio.c: New files.
82132         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
82133         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
82134         (noinst_HEADERS): Add unicodeio.h.
82135         (all-local, install-exec-local, charset.alias): New targets.
82136
82137 2000-02-28  Paul Eggert  <eggert@twinsun.com>
82138
82139         * lib/quotearg.c (ALERT_CHAR): New macro.
82140         (quotearg_buffer_restyled): Use it.
82141
82142 2000-02-27  Jim Meyering  <meyering@lucent.com>
82143
82144         * m4/check-decl.m4: Add getenv to the list.
82145
82146 2000-02-27  Jim Meyering  <meyering@lucent.com>
82147
82148         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
82149         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
82150
82151         * lib/backupfile.c: Guard inclusion of stdlib.h with
82152         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
82153         Declare malloc if needed.
82154
82155         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
82156         `#ifndef HAVE_DECL..'
82157         now that autoconf always defines the HAVE_DECL_ symbols.
82158         * lib/human.c: Likewise.
82159         * lib/same.c: Likewise.
82160         * lib/strtoumax.c: Likewise.
82161
82162         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
82163         declaration check was not run.
82164         * lib/hash.c: Likewise.
82165         * lib/human.c: Likewise.
82166         * lib/same.c: Likewise.
82167         * lib/strtoumax.c: Likewise.
82168
82169         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
82170         `.', then first look up the entire `.'-containing string as a login
82171         name.
82172
82173 2000-02-23  Jim Meyering  <meyering@lucent.com>
82174
82175         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
82176         in place of my hack.
82177
82178 2000-02-18  Paul Eggert  <eggert@twinsun.com>
82179
82180         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
82181         (textint): New typedef.
82182         (parser_control): Member year changed from int to textint.
82183         All uses changed.
82184         (YYSTYPE): Removed; replaced by %union with int and textint members.
82185         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
82186         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
82187         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
82188         (tSNUMBER, tUNUMBER): Now of type <textintval>.
82189         (date, number, to_year): Use width of number in digits, not its value,
82190         to determine whether it's a 2-digit year, or a 2-digit time.
82191         (yylex): Store number of digits of numeric tokens.
82192         Reported by John Kendall.
82193
82194         (parser_control): Changed from struct parser_control to typedef (for
82195         consistency).  All uses changed.
82196
82197         (tID): Removed; not used.
82198         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
82199
82200 2000-02-14  Paul Eggert  <eggert@twinsun.com>
82201
82202         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
82203         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
82204
82205 2000-02-12  Jim Meyering  <meyering@lucent.com>
82206
82207         * lib/userspec.c (ISDIGIT): Define it.
82208         (isdigit): Remove definition.
82209         (is_number): Use ISDIGIT, not isdigit.
82210         <libintl.h>: Include.
82211         (_ and N_): Define.
82212         (parse_user_spec): Mark translatable strings.
82213
82214 2000-02-10  Jim Meyering  <meyering@lucent.com>
82215
82216         With these changes, nanosleep.[ch] are finally enough like the other
82217         lib/* replacement files to compile on a few more losing systems.
82218
82219         * lib/nanosleep.h: Don't include config.h.
82220         Remove prototype from declaration of nanosleep.
82221         (PARAMS): Remove now-unneeded definition.
82222         * lib/nanosleep.c: #undef nanosleep.
82223         (rpl_nanosleep): Rename from nanosleep.
82224
82225 2000-02-10  Jim Meyering  <meyering@lucent.com>
82226
82227         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
82228         gnu_nanosleep to rpl_nanosleep.
82229
82230 2000-02-09  Jim Meyering  <meyering@lucent.com>
82231
82232         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
82233         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
82234
82235 2000-02-08  Akim Demaille  <akim@epita.fr>
82236
82237         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
82238         `[' and `]' and remove uses of `changequote'.
82239         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
82240         (AC_SYS_LARGEFILE): Likewise.
82241         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
82242         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
82243         of changequote.
82244         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
82245         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
82246         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
82247         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
82248
82249 2000-02-05  Jim Meyering  <meyering@lucent.com>
82250
82251         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
82252         Remove explicit use of AC_HEADER_TIME.  It is required by
82253         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
82254         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
82255         in autoconf whereby the expansion of the latter ended up preceding
82256         the expansion of its prerequisite, AC_HEADER_TIME.
82257         Reported by Volker Borchert.
82258
82259 2000-02-03  Jim Meyering  <meyering@lucent.com>
82260
82261         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
82262
82263 2000-02-03  Jim Meyering  <meyering@lucent.com>
82264
82265         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
82266         rather than with `#if HAVE_UTMPNAME'.
82267
82268 2000-02-02  Jim Meyering  <meyering@lucent.com>
82269
82270         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
82271         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
82272         Reported by Eli Zaretskii.
82273
82274 2000-02-01  Jim Meyering  <meyering@lucent.com>
82275
82276         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
82277
82278 2000-01-31  Jim Meyering  <meyering@lucent.com>
82279
82280         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
82281         functions.  Add the time.h and sys/time.h headers along with the
82282         AC_REQUIRE'ment of AC_HEADER_TIME.
82283
82284 2000-01-31  Jim Meyering  <meyering@lucent.com>
82285
82286         * lib/nanosleep.h (nanosleep): Guard declaration with
82287         `#if ! HAVE_DECL_NANOSLEEP'.
82288         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
82289         the declaration in that vendor's sys/timers.h.
82290         Reported by Christian Krackowizer.
82291
82292         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
82293         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
82294         (ISPRINT): Likewise.
82295         Reported by Tom Tromey.
82296
82297 2000-01-30  Jim Meyering  <meyering@lucent.com>
82298
82299         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
82300
82301         * m4/prereq.m4 (utmp_includes): Define.
82302         Check for ut_user and ut_name members in both struct utmpx
82303         and struct utmp.
82304
82305 2000-01-30  Jim Meyering  <meyering@lucent.com>
82306
82307         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
82308         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
82309         header files where only utmpx.ut_user is declared.
82310
82311         * lib/readutmp.h (UT_USER): Define.
82312
82313 2000-01-29  Jim Meyering  <meyering@lucent.com>
82314
82315         * m4/lib-check.m4: New file containing library-related checks from
82316         fileutils and sh-utils (textutils had none).
82317
82318 2000-01-28  Jim Meyering  <meyering@lucent.com>
82319
82320         * m4/perl.m4: Change format of warning message to look more like that
82321         from the missing script.  Suggestion from François Pinard.
82322
82323 2000-01-25  Jim Meyering  <meyering@lucent.com>
82324
82325         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
82326         well as time.h in the compile check.
82327         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
82328         Fix typo in cross-compiling case: s/yes/no/.
82329
82330 2000-01-23  Jim Meyering  <meyering@lucent.com>
82331
82332         * m4/jm-macros.m4: Move df-related tests here from
82333         fileutils/configure.in
82334
82335         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
82336         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
82337
82338         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
82339         s/space/ac_fsusage_space/.
82340         (jm_FILE_SYSTEM_USAGE): Take two parameters.
82341
82342         * m4/ftruncate.m4: New file (derived from part of
82343         fileutils/configure.in).
82344         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
82345         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
82346
82347         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
82348         AC_SUBST these here, rather than just in sh-util/configure.in, so
82349         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
82350         all the same.
82351         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
82352         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
82353         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
82354         (AC_SUBST(POW_LIBM)): Likewise.
82355         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
82356
82357 2000-01-23  Jim Meyering  <meyering@lucent.com>
82358
82359         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
82360         obstack.c.
82361
82362 2000-01-22  Jim Meyering  <meyering@lucent.com>
82363
82364         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
82365
82366         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
82367
82368         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
82369         configure.in
82370         (AC_CHECK_HEADERS): Likewise for sh-utils.
82371         (AC_CHECK_HEADERS): Likewise for textutils.
82372         Merge the three lists of headers.
82373
82374         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
82375         from fileutils' configure.in.
82376
82377         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
82378         code. Moved tests into their own function (_jm_DECL_HEADERS) in
82379         check-decl.m4.
82380
82381         * m4/check-decl.m4: Use #if rather than #ifdef.
82382         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
82383         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
82384         (_jm_DECL_HEADERS): Define new function.
82385         (jm_CHECK_DECLARATIONS): Require it.
82386
82387 2000-01-22  Jim Meyering  <meyering@lucent.com>
82388
82389         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
82390         [! HAVE_DECL_STRTOULL]: Declare strtoull.
82391         Required for some AIX systems.  Reported by Christian Krackowizer.
82392         [TESTING] (main): New function.
82393
82394         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
82395         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
82396         letters.
82397
82398         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
82399         iswprint.
82400
82401         * lib/strverscmp.c (ISDIGIT): Define.
82402         (strverscmp): Use ISDIGIT, not isdigit.
82403
82404 2000-01-19  Jim Meyering  <meyering@lucent.com>
82405
82406         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
82407         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
82408         defines `struct timespec' in <sys/time.h>
82409
82410         * m4/c-bs-a.m4: Remove uses of changequote altogether.
82411         Thanks to Akim for explaining.
82412
82413 2000-01-17  Paul Eggert  <eggert@twinsun.com>
82414
82415         * lib/nanosleep.c (nanosleep):
82416         Don't use SA_INTERRUPT to decide whether to call sigaction, as
82417         POSIX.1 doesn't require SA_INTERRUPT and some systems
82418         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
82419         it's been part of POSIX.1 since day 1 (in 1988).
82420
82421 2000-01-17  Jim Meyering  <meyering@lucent.com>
82422
82423         * lib/interlock: Remove unused file.  Reported by François Pinard.
82424
82425 2000-01-16  Paul Eggert  <eggert@twinsun.com>
82426
82427         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
82428         alert, backslash, formfeed, and vertical tab unnecessarily in
82429         shell quoting style.
82430
82431 2000-01-16  Jim Meyering  <meyering@lucent.com>
82432
82433         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
82434         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
82435         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
82436         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
82437
82438 2000-01-16  Jim Meyering  <meyering@lucent.com>
82439
82440         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
82441         because the latter didn't work.
82442
82443 2000-01-15  Jim Meyering  <meyering@lucent.com>
82444
82445         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
82446         (AC_REPLACE_FUNCS): Add memcpy and memset.
82447         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
82448         Add strpbrk.
82449         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
82450
82451 2000-01-12  Jim Meyering  <meyering@lucent.com>
82452
82453         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
82454         (jm_PREREQ): Use it.
82455         (jm_PREREQ_READUTMP): New macro.
82456         (jm_PREREQ): Use it.
82457
82458 2000-01-11  Paul Eggert  <eggert@twinsun.com>
82459
82460         Quote multibyte characters correctly.
82461         * m4/c-bs-a.m4: New file.
82462         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
82463         (jm_PREREQ): Use it.
82464
82465 2000-01-11  Paul Eggert  <eggert@twinsun.com>
82466
82467         * m4/uintmax_t.m4: Port to autoconf 2.13.
82468
82469 2000-01-08  Jim Meyering  <meyering@ascend.com>
82470
82471         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
82472         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
82473
82474 2000-01-04  Jim Meyering  <meyering@ascend.com>
82475
82476         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
82477         jm_STRUCT_DIRENT_D_TYPE.
82478         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
82479         jm_STRUCT_DIRENT_D_INO.
82480         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
82481         jm_STRUCT_UTIMBUF.
82482         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
82483         renamings.
82484         * m4/utime.m4: Likewise.
82485
82486         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
82487         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
82488
82489 2000-01-03  Paul Eggert  <eggert@twinsun.com>
82490
82491         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
82492         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
82493
82494 2000-01-02  Jim Meyering  <meyering@ascend.com>
82495
82496         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
82497         remember if this is necessary.
82498
82499 1999-12-26  Jim Meyering  <meyering@ascend.com>
82500
82501         * m4/jm-macros.m4: Use it here.
82502         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
82503
82504 1999-12-23  Jim Meyering  <meyering@ascend.com>
82505
82506         * m4/jm-macros.m4: Check for clock_gettime (moved from
82507         fileutils/configure.in)
82508         Check for gettimeofday.
82509
82510 1999-12-20  Jim Meyering  <meyering@ascend.com>
82511
82512         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
82513         autoconf-2.14a-1999-12-20.
82514
82515 1999-12-19  Jim Meyering  <meyering@ascend.com>
82516
82517         * m4/lstat-slash.m4: New file.
82518         * m4/jm-macros.m4: Use the new macro:
82519         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82520
82521 1999-12-07  Jim Meyering  <meyering@ascend.com>
82522
82523         * m4/perl.m4: Require that File::Compare be available, too.
82524         Too many systems seem to lack it.
82525
82526         * m4/strftime.m4: Add checks for most of the cpp macros tested in
82527         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
82528
82529 1999-11-18  Paul Eggert  <eggert@twinsun.com>
82530
82531         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
82532         problem with the QNX 4.25 shell, which doesn't propagate exit
82533         status of failed commands inside shell assignments.
82534
82535 1999-11-17  Jim Meyering  <meyering@ascend.com>
82536
82537         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
82538
82539 1999-11-07  Jim Meyering  <meyering@ascend.com>
82540
82541         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
82542
82543 1999-11-06  Jim Meyering  <meyering@ascend.com>
82544
82545         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
82546         * m4/jm-macros.m4 (jm_MACROS): Use it here.
82547
82548 1999-11-05  Jim Meyering  <meyering@ascend.com>
82549
82550         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
82551         configure.in of textutils, fileutils, and sh-utils into this one
82552         (shared between those packages) file.
82553         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
82554         AC_STRUCT_ST_BLKSIZE.
82555
82556 1999-11-03  Jim Meyering  <meyering@ascend.com>
82557
82558         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
82559         of AC_CHECK_TYPE checks includes unistd.h.
82560         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
82561         Suggestion from Akim Demaille.
82562
82563 1999-10-30  Jim Meyering  <meyering@ascend.com>
82564
82565         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
82566         m4-quoted string.
82567         * m4/ls-mntd-fs.m4: Likewise.
82568         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
82569         * m4/jm-winsz1.m4: Likewise.
82570
82571         * m4/const.m4: Remove file, since the fix made it into the experimental
82572         version of autoconf.
82573         * m4/mktime.m4: Likewise.
82574
82575         * m4/check-type.m4: Remove file, now that the latest version of
82576         AC_CHECK_TYPE takes a third arg to specify additional #includes.
82577
82578         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
82579         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
82580         AC_CHECK_TYPE.
82581
82582 1999-10-04  Jim Meyering  <meyering@ascend.com>
82583
82584         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
82585
82586 1999-09-22  Paul Eggert  <eggert@twinsun.com>
82587
82588         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
82589         2.95.1 bug with HP-UX 10.20.
82590
82591 1999-09-17  Jim Meyering  <meyering@ascend.com>
82592
82593         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
82594         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
82595         due to missing strdup (against sh-utils-2.0).
82596
82597 1999-08-29  Jim Meyering  <meyering@ascend.com>
82598
82599         * m4/jm-macros.m4: Require jm_BISON.
82600         * m4/bison.m4: New file.
82601
82602 1999-08-17  Paul Eggert  <eggert@twinsun.com>
82603
82604         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
82605         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
82606
82607 1999-08-05  Jim Meyering  <meyering@ascend.com>
82608
82609         * m4/getline.m4: Rename test file from conftestdata to conftest.data
82610         to avoid conflicts with `conftest' on 8+3 filesystems.
82611         Suggestion from Eli Zaretskii.
82612
82613 1999-08-04  Jim Meyering  <meyering@ascend.com>
82614
82615         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
82616         fileutils and sh-utils (textutils's getline test was inadequate).
82617         (AM_FUNC_GETLINE): Run this test.
82618         (AC_CHECK_FUNCS): Check for getdelim.
82619         Reported by Bob Proulx.
82620
82621 1999-08-02  Jim Meyering  <meyering@ascend.com>
82622
82623         * m4/jm-macros.m4: Add a comment.
82624
82625 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82626
82627         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
82628         <inttypes.h> defines strtoumax as a macro (and not as a
82629         function).
82630
82631 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82632
82633         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
82634         that we can shift, multiply and divide unsigned long long
82635         values; Ultrix cc can't do it.
82636
82637 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82638
82639         * m4/mktime.m4: New file, which is a preview of what should appear
82640         in the next public autoconf release.
82641
82642 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82643
82644         * m4/lfs.m4: Remove this file.
82645         * m4/largefile.m4: New file.  It contains the old contents of
82646         lfs.m4, except that all names with prefix AC_LFS have been
82647         changed to use the prefix AC_SYS_LARGEFILE instead, to be
82648         compatible with future autoconf versions.  Also, some minor m4
82649         quoting problems have been fixed.
82650
82651 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82652
82653         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
82654         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
82655         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
82656         and simplify the shell code.
82657
82658 1999-08-01  Jim Meyering  <meyering@ascend.com>
82659
82660         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
82661         m4.
82662
82663 1999-07-20  Jim Meyering  <meyering@ascend.com>
82664
82665         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
82666
82667 1999-07-15  Jim Meyering  <meyering@ascend.com>
82668
82669         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
82670
82671 1999-05-22  Jim Meyering  <meyering@ascend.com>
82672
82673         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
82674
82675 1999-05-20  Jim Meyering  <meyering@ascend.com>
82676
82677         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
82678         Add a colon after each `then' in case $4 is empty.
82679
82680 1999-05-16  Jim Meyering  <meyering@ascend.com>
82681
82682         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
82683
82684 1999-05-10  Jim Meyering  <meyering@ascend.com>
82685
82686         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
82687
82688         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
82689         AC_FUNC_MKTIME.
82690
82691 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
82692
82693         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
82694
82695 1999-05-04  Paul Eggert  <eggert@twinsun.com>
82696
82697         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
82698         not CPPFLAGS, so that linking works correctly in IRIX.
82699
82700 1999-04-30  Paul Eggert  <eggert@twinsun.com>
82701
82702         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
82703
82704 1999-04-20  Paul Eggert  <eggert@twinsun.com>
82705
82706         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
82707         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
82708         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
82709         jm_AC_TYPE_UNSIGNED_LONG_LONG.
82710         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
82711
82712         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
82713
82714 1999-04-20  Jim Meyering  <meyering@ascend.com>
82715
82716         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
82717         AC_REPLACE xstroull if necessary.  From Paul Eggert.
82718         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
82719
82720 1999-04-18  Jim Meyering  <meyering@ascend.com>
82721
82722         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
82723         * m4/jm-macros.m4: Use it.
82724
82725 1999-04-06  Jim Meyering  <meyering@ascend.com>
82726
82727         * m4/strftime.m4: Remove test for %f.
82728
82729 1999-03-29  Jim Meyering  <meyering@ascend.com>
82730
82731         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
82732         superset of the AC_TYPE_* checks in the textutils, fileutils,
82733         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
82734         AC_TYPE_PID_T.
82735
82736 1999-03-28  Jim Meyering  <meyering@ascend.com>
82737
82738         * m4/jm-macros.m4: Define GNU_PACKAGE here.
82739         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
82740         replaced e.g., in the *.sh files of the sh-utils.
82741
82742 1999-03-20  Jim Meyering  <meyering@ascend.com>
82743
82744         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
82745         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
82746         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
82747
82748 1999-03-19  Jim Meyering  <meyering@ascend.com>
82749
82750         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
82751
82752 1999-03-12  Jim Meyering  <meyering@ascend.com>
82753
82754         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
82755
82756 1999-03-07  Jim Meyering  <meyering@ascend.com>
82757
82758         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
82759         declared.
82760
82761 1999-02-17  Jim Meyering  <meyering@ascend.com>
82762
82763         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
82764         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
82765
82766 1999-02-07  Jim Meyering  <meyering@ascend.com>
82767
82768         * m4/group-member.m4: New file -- extracted from sh-utils'
82769         configure.in.
82770
82771         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
82772         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
82773
82774 1999-02-06  Jim Meyering  <meyering@ascend.com>
82775
82776         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
82777         * m4/fnmatch.m4: Likewise.
82778         * m4/getgroups.m4: Likewise.
82779         * m4/lstat.m4: Likewise.
82780         * m4/malloc.m4: Likewise.
82781         * m4/putenv.m4: Likewise.
82782         * m4/realloc.m4: Likewise.
82783         * m4/regex.m4: Likewise.
82784         * m4/stat.m4: Likewise.
82785         * m4/strftime.m4: Likewise.
82786         Suggestion from Alain Magloire.
82787
82788         * m4/chown.m4: Use `.$ac_objext', not `.o'.
82789         * m4/fnmatch.m4: Likewise.
82790         * m4/getgroups.m4: Likewise.
82791         * m4/getline.m4: Likewise.
82792         * m4/lstat.m4: Likewise.
82793         * m4/malloc.m4: Likewise.
82794         * m4/memcmp.m4: Likewise.
82795         * m4/putenv.m4: Likewise.
82796         * m4/realloc.m4: Likewise.
82797         * m4/regex.m4: Likewise.
82798         * m4/stat.m4: Likewise.
82799         * m4/strftime.m4: Likewise.
82800         Suggestion from Alain Magloire.
82801
82802         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
82803         an argument.
82804
82805         * m4/regex.m4: Add a run-time Test for proper operation of
82806         re_compile_pattern.
82807
82808 1999-01-31  Jim Meyering  <meyering@ascend.com>
82809
82810         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
82811
82812 1999-01-30  Jim Meyering  <meyering@ascend.com>
82813
82814         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
82815
82816         * m4/jm-mktime.m4: Make this a wrapper around the official
82817         AM_FUNC_MKTIME rather than my private copy, now that the official one
82818         is up to date.
82819         * m4/mktime.m4: Remove file.
82820
82821         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
82822         * m4/uptime.m4: Likewise.
82823         * m4/uintmax_t.m4: Likewise.
82824
82825 1999-01-28  Jim Meyering  <meyering@ascend.com>
82826
82827         * m4/jm-macros.m4: Use jm_AFS.
82828         * m4/afs.m4: New file (from fileutils' configure.in).
82829
82830         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
82831         * m4/chown.m4: Likewise.
82832         * m4/d-ino.m4: Likewise.
82833         * m4/d-type.m4: Likewise.
82834         * m4/fnmatch.m4: Likewise.
82835         * m4/getgroups.m4: Likewise.
82836         * m4/gettext.m4: Likewise.
82837         * m4/jm-mktime.m4: Likewise.
82838         * m4/jm-winsz2.m4: Likewise.
82839         * m4/lcmessage.m4: Likewise.
82840         * m4/ls-mntd-fs.m4: Likewise.
82841         * m4/malloc.m4: Likewise.
82842         * m4/memcmp.m4: Likewise.
82843         * m4/putenv.m4: Likewise.
82844         * m4/realloc.m4: Likewise.
82845         * m4/st_mtim.m4: Likewise.
82846         * m4/strftime.m4: Likewise.
82847
82848 1999-01-16  Jim Meyering  <meyering@ascend.com>
82849
82850         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
82851         (ARGMATCH_DIE_DECL): Define.
82852
82853 1999-01-12  Jim Meyering  <meyering@ascend.com>
82854
82855         * m4/Makefile.am.in: Rewrite to avoid using fmt.
82856         Reported by Lars Hecking.
82857
82858 1999-01-10  Jim Meyering  <meyering@ascend.com>
82859
82860         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
82861         gross kludge.
82862         * m4/inttypes_h.m4: Likewise.
82863         * m4/lstat.m4: Likewise.
82864         * m4/malloc.m4: Likewise.
82865         * m4/readdir.m4: Likewise.
82866         * m4/realloc.m4: Likewise.
82867         * m4/st_dm_mode.m4: Likewise.
82868         * m4/stat.m4: Likewise.
82869         * m4/utimbuf.m4: Likewise.
82870         * m4/utimes.m4: Likewise.
82871
82872         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
82873         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
82874         comments in config.h.in are meaningful.
82875
82876         * m4/jm-macros.m4: Require autoconf-2.13 here.
82877
82878         * m4/regex.m4: By default, don't use the included regex.c on systems
82879         with glibc 2.  Suggestion from Uli Drepper.
82880
82881 1999-01-02  Jim Meyering  <meyering@ascend.com>
82882
82883         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
82884
82885 1998-12-18  Jim Meyering  <meyering@ascend.com>
82886
82887         * m4/Makefile.am.in (Makefile.am): Simplify rule.
82888         Based on a suggestion from Lars Hecking.
82889
82890 1998-11-16  Paul Eggert  <eggert@twinsun.com>
82891
82892         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
82893
82894 1998-11-16  Jim Meyering  <meyering@ascend.com>
82895
82896         * m4/lfs.m4: Double-quote the `uname...` expression.
82897
82898 1998-11-14  Jim Meyering  <meyering@ascend.com>
82899
82900         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
82901         * m4/stat.m4: Likewise.
82902
82903 1998-11-03  Jim Meyering  <meyering@ascend.com>
82904
82905         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
82906         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
82907
82908 1998-10-18  Jim Meyering  <meyering@ascend.com>
82909
82910         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
82911
82912 1998-10-17  Jim Meyering  <meyering@ascend.com>
82913
82914         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
82915         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
82916         calls for those previously hard-coded headers.  Instead, take a new
82917         parameter.
82918         (jm_CHECK_DECLARATIONS): Reflect interface change.
82919         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
82920         (jm_CHECK_DECL_LOCALTIME_R): New macro.
82921
82922         * m4/mktime.m4: Test for spring-forward gap before long-running test.
82923
82924 1998-10-14  Jim Meyering  <meyering@ascend.com>
82925
82926         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
82927         instead of "TZ=America/Vancouver".  From Paul Eggert.
82928
82929 1998-10-11  Jim Meyering  <meyering@ascend.com>
82930
82931         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
82932         This adds a test for a recently added compatibility fix for mktime.c.
82933         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
82934
82935 1998-09-27  Jim Meyering  <meyering@ascend.com>
82936
82937         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
82938
82939         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
82940         ../configure.in, including a change from Gordon Matzigkeit to allow
82941         cross-compiling for the Hurd.
82942
82943         * m4/glibc.m4: New file/macro to test for the GNU C Library
82944         versions 1 and 2.  From Gordon Matzigkeit.
82945         Indent.
82946
82947 1998-09-21  Jim Meyering  <meyering@ascend.com>
82948
82949         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
82950
82951 1998-08-18  Paul Eggert  <eggert@twinsun.com>
82952
82953         Port nanosecond-resolution times to UnixWare 2.1.2 and
82954         pedantic Solaris 2.6.
82955
82956         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
82957         AC_STRUCT_ST_MTIM.
82958         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
82959         Generate name of ns member, instead of just 1 or undef.
82960         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
82961
82962 1998-08-15  Jim Meyering  <meyering@ascend.com>
82963
82964         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
82965         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
82966         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
82967         instead of jm_TYPE_SSIZE_T.
82968
82969 1998-08-12  Jim Meyering  <meyering@ascend.com>
82970
82971         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
82972
82973 1998-08-02  Jim Meyering  <meyering@ascend.com>
82974
82975         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
82976         in acconfig.h manually.
82977
82978 1998-07-31  Paul Eggert  <eggert@twinsun.com>
82979
82980         * m4/st_mtim.m4: New file.
82981
82982 1998-07-28  Jim Meyering  <meyering@ascend.com>
82983
82984         * m4/utimes.m4: Undef stat.
82985
82986 1998-07-25  Jim Meyering  <meyering@ascend.com>
82987
82988         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
82989         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
82990
82991 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
82992
82993         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
82994         uid and gid actually remain unchanged.
82995
82996 1998-07-07  Jim Meyering  <meyering@ascend.com>
82997
82998         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
82999
83000 1998-07-04  Jim Meyering  <meyering@ascend.com>
83001
83002         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
83003         to prove that this macro can be used in packages without regex.c.
83004
83005 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
83006
83007         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
83008         is to be used.
83009
83010 1998-07-03  Jim Meyering  <meyering@ascend.com>
83011
83012         * m4/gettext.m4: Add -lintl if it's found to be necessary.
83013
83014         * m4/gettext.m4: New file -- from gettext-0.10.35.
83015         * m4/lcmessage.m4: Likewise.
83016         * m4/progtest.m4: Likewise.
83017
83018         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
83019         * m4/jm-macros.m4: Require the new macro.
83020
83021 1998-06-29  Jim Meyering  <meyering@ascend.com>
83022
83023         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
83024         for the definition of NGROUPS (used in a system header included
83025         by sys/mount.h).
83026
83027 1998-06-28  Jim Meyering  <meyering@ascend.com>
83028
83029         * m4/ls-mntd-fs.m4: New file.
83030         * m4/fstypename.m4: New file.
83031
83032         * m4/jm-macros.m4: Require the new macro.
83033         * m4/jm-glibc-io.m4: New file.
83034
83035 1998-05-19  Jim Meyering  <meyering@ascend.com>
83036
83037         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
83038         * m4/lchown.m4: New file.
83039
83040         * m4/Makefile.am.in: New file.
83041         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
83042
83043 1998-05-14  Jim Meyering  <meyering@ascend.com>
83044
83045         * m4/Makefile.am (EXTRA_DIST): Add them.
83046         * m4/jm-macros.m4: New file.
83047         * m4/utimbuf.m4: New file.
83048
83049 1998-05-12  Jim Meyering  <meyering@ascend.com>
83050
83051         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
83052
83053 1998-05-11  Jim Meyering  <meyering@ascend.com>
83054
83055         * m4/isc-posix.m4: New file.
83056
83057 1998-05-10  Jim Meyering  <meyering@ascend.com>
83058
83059         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
83060
83061 1998-05-09  Jim Meyering  <meyering@ascend.com>
83062
83063         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
83064         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
83065         with automake.
83066
83067         * m4/ssize_t.m4: New file.
83068         * m4/mktime.m4: Remove file -- the new automake has this now.
83069
83070 1998-04-26  Jim Meyering  <meyering@ascend.com>
83071
83072         * m4/assert.m4: New file.
83073         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
83074
83075 1998-04-05  Jim Meyering  <meyering@ascend.com>
83076
83077         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
83078         (jm_PREREQ): Use it here.
83079
83080 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
83081
83082         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
83083         in acconfig.h.
83084
83085 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
83086
83087         * m4/prereq.m4: New file.
83088         * m4/error.m4: New file.
83089         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
83090
83091 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
83092
83093         * m4/getline.m4: Don't set am_cv_func_working_getline before the
83094         cache-check for the same variable -- that defeated the purpose of
83095         the test; the test program was never run.  This was a problem only
83096         on systems with losing getline functions -- HP-UX 10.20 is one.
83097         Reported by Bjorn Helgaas.
83098
83099 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
83100
83101         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
83102
83103 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
83104
83105         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
83106
83107         * m4/const.m4: New file.  Use an initializer in this declaration
83108         typedef int charset[2]; const charset x;
83109         Reported by Bob Glickstein.
83110
83111 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
83112
83113         * m4/chown.m4: Fix reversed types on -1 args to chown.
83114         From Kaveh Ghazi.
83115
83116 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
83117
83118         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
83119         Add lseek and memchr.
83120
83121         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
83122         T.E.Dickey <dickey@clark.net> said that some older preprocessors
83123         have a 20-character limit on names.
83124
83125 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
83126
83127         * m4/inttypes_h.m4: New file.
83128         * m4/uintmax_t.m4: New file.
83129         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
83130
83131
83132         -----
83133
83134         Local Variables:
83135         coding: utf-8
83136         End:
83137
83138         Copyright (C) 1997-2011 Free Software Foundation, Inc.
83139
83140         Copying and distribution of this file, with or without
83141         modification, are permitted provided the copyright notice
83142         and this notice are preserved.